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 ordervoid
setBillingAddressBlock
(Entity order, Entity user) set the BillingAddressBlock for a given order and uservoid
setDeliveryAddressBlock
(Entity order, Entity user) set the DeliveryAddressBlock for a given order and uservoid
updateAddressBlockFields
(Entity order) updates the billing and delivery address blocks for a given ordervoid
updateEmailAddress
(Entity order) updates the mail for a given order
-
Method Details
-
getBillingAddressBlock
creates the billing address block for a given order- Returns:
Optional
of the billing address block. AnOptional.empty()
will be returned if there's no billing addressEntity
on 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:
Optional
of the billing address block. AnOptional.empty()
will be returned if there's no billing addressEntity
on 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
-