Interface OrderGenerateAddressService

All Known Implementing Classes:
OrderGenerateAddressServiceImpl

public interface OrderGenerateAddressService
service to create and update billing and delivery address block for orders
  • Method Details

    • getBillingAddressBlock

      Optional<String> getBillingAddressBlock(Entity order)
      creates the billing address block for a given order
      Returns:
      Optional of the billing address block. An Optional.empty() will be returned if there's no billing address Entity on order or the user
    • getBillingAddressBlockForUser

      Optional<String> getBillingAddressBlockForUser(Entity order, Entity user)
      creates the billing address block for a given user. The order is only used for the billing address addition.
      Returns:
      Optional of the billing address block. An Optional.empty() will be returned if there's no billing address Entity on the user
    • getDeliveryAddressBlock

      String getDeliveryAddressBlock(Entity order)
      creates the delivery address block for a given order
      Returns:
      the delivery address block
    • updateAddressBlockFields

      void updateAddressBlockFields(Entity order)
      updates the billing and delivery address blocks for a given order
    • updateEmailAddress

      void updateEmailAddress(Entity order)
      updates the mail for a given order
    • setBillingAddressBlock

      void setBillingAddressBlock(Entity order, Entity user)
      set the BillingAddressBlock for a given order and user
    • setDeliveryAddressBlock

      void setDeliveryAddressBlock(Entity order, Entity user)
      set the DeliveryAddressBlock for a given order and user