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

    • Method Detail

      • clearDefaultShippingAddressForCustomer

        @Policy(operationTypes=UPDATE)
        void clearDefaultShippingAddressForCustomer​(CustomerRef customer,
                                                    @Nullable
                                                    com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Find all CustomerAddresses for the provided customer with CustomerAddress.isDefaultShippingAddress() set to true & update it to false.
        Parameters:
        customer - the customer whose default shipping address should no longer be the default.
        context -
      • clearDefaultBillingAddressForCustomer

        @Policy(operationTypes=UPDATE)
        void clearDefaultBillingAddressForCustomer​(CustomerRef customer,
                                                   @Nullable
                                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Find all CustomerAddresses for the provided customer with CustomerAddress.isDefaultBillingAddress() set to true & update it to false.
        Parameters:
        customer - the customer whose default billing address should no longer be the default.
        context -