Skip to content

7.85.0

Choose a tag to compare

@spryker-release-bot spryker-release-bot released this 07 Sep 11:14
· 6 commits to master since this release

Included commits: 7.84.0...7.85.0

Improvements

  • Introduced CustomerFacade::getCustomerCollectionByCollectionCriteria() to retrieve customers filtered by ids, references, emails, or search terms, with sorting and pagination, to support the back-office customers list endpoint.
  • Introduced CustomerFacade::getAddressCollection() and CustomerFacade::validateAddress() to retrieve and validate customer addresses for the back-office customers endpoint.
  • Introduced CustomerFacade::validateAddress() to validate first name, last name, salutation, and field lengths, and execute the AddressValidatorPluginInterface plugin stack before an address is created or updated.
  • Extended CustomerFacade::addCustomer(), CustomerFacade::registerCustomer() and CustomerFacade::updateCustomer() to execute the new CustomerValidatorPluginInterface plugin stack, rejecting the customer without persisting anything when a plugin reports an error.
  • Introduced CustomerConfig::getCustomerCollectionSortableFieldMap() and CustomerConfig::getAddressCollectionSortableFieldMap() to define the allow-listed sortable fields for the customer and address collection endpoints.
  • Introduced CustomerConfig::getCustomerNamePattern() to define the pattern first and last names must match.
  • Introduced CustomerDependencyProvider::PLUGINS_CUSTOMER_VALIDATOR and CustomerDependencyProvider::PLUGINS_ADDRESS_VALIDATOR plugin stack constants.
  • Added createdAt and updatedAt fields to AddressTransfer to expose address timestamps on the back-office customers endpoint.
  • Introduced CustomerCollectionCriteriaTransfer, CustomerConditionsTransfer, AddressCriteriaTransfer, AddressConditionsTransfer, AddressCollectionTransfer, AddressResponseTransfer and SortTransfer.
  • Introduced new glossary key Messages::CUSTOMER_STORE_REQUIRED_FOR_PASSWORD_TOKEN, requiring storeName when a password token is requested.