Interface CustomizedAccountAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Known Subinterfaces:
AccountAddressRepository<D>, JpaAccountAddressRepository<D>
All Known Implementing Classes:
JpaCustomizedAccountAddressRepository

public interface CustomizedAccountAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced functionality related to AccountAddress.
  • Method Details

    • clearDefaultForAddressType

      @Policy(operationTypes=UPDATE) void clearDefaultForAddressType(AccountRef account, String accountAddressType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Find all AccountAddresses for the provided account with AccountAddress.isDefault() set to true & update it to false.
      Parameters:
      account - the account whose default shipping address should no longer be the default.
      accountAddressType -
      context -