Interface OrderGenerateAddressService
- All Known Implementing Classes:
OrderGenerateAddressServiceImpl
public interface OrderGenerateAddressService
service to create and update billing and delivery address block for orders
-
Method Summary
Modifier and TypeMethodDescriptiongetBillingAddressBlock(Entity order) creates the billing address block for a given ordergetBillingAddressBlockForUser(Entity order, Entity user) creates the billing address block for a given user.getDeliveryAddressBlock(Entity order) creates the delivery address block for a given ordervoidsetBillingAddressBlock(Entity order, Entity user) set the BillingAddressBlock for a given order and uservoidsetDeliveryAddressBlock(Entity order, Entity user) set the DeliveryAddressBlock for a given order and uservoidupdateAddressBlockFields(Entity order) updates the billing and delivery address blocks for a given ordervoidupdateEmailAddress(Entity order) updates the mail for a given order
-
Method Details
-
getBillingAddressBlock
creates the billing address block for a given order- Returns:
Optionalof the billing address block. AnOptional.empty()will be returned if there's no billing addressEntityon order or the user
-
getBillingAddressBlockForUser
creates the billing address block for a given user. The order is only used for the billing address addition.- Returns:
Optionalof the billing address block. AnOptional.empty()will be returned if there's no billing addressEntityon the user
-
getDeliveryAddressBlock
creates the delivery address block for a given order- Returns:
- the delivery address block
-
updateAddressBlockFields
updates the billing and delivery address blocks for a given order -
updateEmailAddress
updates the mail for a given order -
setBillingAddressBlock
set the BillingAddressBlock for a given order and user -
setDeliveryAddressBlock
set the DeliveryAddressBlock for a given order and user
-