Model
QuoteAddressValidator
Magento\Quote\Model\QuoteAddressValidator
What it does
QuoteAddressValidator validates shipping and billing addresses in shopping carts (quotes).
Developers use this class to ensure addresses are valid, belong to the correct customer, and have proper permissions before saving them to a quote.
It verifies customer IDs, address IDs, and prevents guests from using saved addresses.
Public Methods
- validate()
- validateForCart()
- validateWithExistingAddress()