Class FulfillmentPricingGroup
java.lang.Object
com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroup
- All Implemented Interfaces:
Serializable
This is synonymous with a Cart's Fulfillment Group but with only those details that are important
for fulfillment pricing.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Address
The fulfillment address.@NonNull String
The fulfillment type of this group.javax.money.MonetaryAmount
Optional merchandise subtotal of the Fulfillment Group.@NonNull String
getId()
The reference number of the FulfillmentGroup that this group represents.@NonNull List<FulfillmentPricingItem>
getItems()
List of items in this group that need to be fulfilled.Service level for the group.Optional aggregate weight of all items in the group.void
setAddress
(@NonNull Address address) The fulfillment address.void
setFulfillmentType
(@NonNull String fulfillmentType) The fulfillment type of this group.void
setGroupSubtotal
(javax.money.MonetaryAmount groupSubtotal) Optional merchandise subtotal of the Fulfillment Group.void
The reference number of the FulfillmentGroup that this group represents.void
setItems
(@NonNull List<FulfillmentPricingItem> items) List of items in this group that need to be fulfilled.void
setServiceLevel
(String serviceLevel) Service level for the group.void
setTotalGroupWeight
(Weight totalGroupWeight) Optional aggregate weight of all items in the group.
-
Constructor Details
-
FulfillmentPricingGroup
public FulfillmentPricingGroup()
-
-
Method Details
-
getId
The reference number of the FulfillmentGroup that this group represents. -
getGroupSubtotal
@Nullable public javax.money.MonetaryAmount getGroupSubtotal()Optional merchandise subtotal of the Fulfillment Group. System will attempt to calculate from the contained fulfillment items if not provided. -
getTotalGroupWeight
Optional aggregate weight of all items in the group. System will attempt to calculate from the contained fulfillment items if not provided. -
getAddress
The fulfillment address. This could be either a Ship-To address or a Store address. Calculators are configured to work with certain destinations and will use the passed in address to select the best calculator. Some implementations may work without any address information, most will require at least a country. Some calculator configurations may require state and even postal code to compute the correct shipping options and prices. -
getFulfillmentType
The fulfillment type of this group. This is typically SHIP or PICKUP, but may otherwise be defined by the implementor, as needed. This provides context for the address. All items in this group are expected to have the same fulfillment type. -
getServiceLevel
Service level for the group. Applicable if pricing for the group; otherwise can work as a default for item level pricing where the service level is not set. -
getItems
List of items in this group that need to be fulfilled. -
setId
The reference number of the FulfillmentGroup that this group represents. -
setGroupSubtotal
public void setGroupSubtotal(@Nullable javax.money.MonetaryAmount groupSubtotal) Optional merchandise subtotal of the Fulfillment Group. System will attempt to calculate from the contained fulfillment items if not provided. -
setTotalGroupWeight
Optional aggregate weight of all items in the group. System will attempt to calculate from the contained fulfillment items if not provided. -
setAddress
The fulfillment address. This could be either a Ship-To address or a Store address. Calculators are configured to work with certain destinations and will use the passed in address to select the best calculator. Some implementations may work without any address information, most will require at least a country. Some calculator configurations may require state and even postal code to compute the correct shipping options and prices. -
setFulfillmentType
The fulfillment type of this group. This is typically SHIP or PICKUP, but may otherwise be defined by the implementor, as needed. This provides context for the address. All items in this group are expected to have the same fulfillment type. -
setServiceLevel
Service level for the group. Applicable if pricing for the group; otherwise can work as a default for item level pricing where the service level is not set. -
setItems
List of items in this group that need to be fulfilled.
-