Postcode
Magento\Customer\Model\Attribute\Data\Postcode
What it does
This class handles validation and data processing for postal/zip code attributes in customer addresses.
Developers use it to ensure zip codes are validated according to country-specific rules, automatically skipping validation for countries where zip codes are optional.
It manages the complete data lifecycle including extraction from requests, validation, storage, and output formatting.
Public Methods
- validateValue()
- extractValue()
- compactValue()
- restoreValue()
- outputValue()