Interface FulfillmentGroup<T extends FulfillmentLineItem>
- All Known Implementing Classes:
FulfillmentGroupDto
public interface FulfillmentGroup<T extends FulfillmentLineItem>
DTO containing information about a group of items that share the same fulfillment information
(means, destination, and payment info).
- Author:
- Chad Harchar (charchar), Nathan Moore (nathanmoore).
-
Method Summary
Modifier and TypeMethodDescriptionAdditional, unspecified attributes.TheDestination
containing information about this fulfillment group's destination address.The fax number for this fulfillment group.Items being fulfilled together in this group.Deprecated.The type of fulfillment that will be used for this fulfillment group.getId()
The id of this group.javax.money.MonetaryAmount
The shipping price of this fulfillment group before adjustments are applied.Out of box implementations will return a Map.The primary phone number for this fulfillment group.The secondary phone number for this fulfillment group.void
setAttributes
(Map<String, Object> attributes) Additional, unspecified attributes.void
setDestination
(Destination destination) TheDestination
containing information about this fulfillment group's destination address.void
setFaxNumber
(String faxNumber) The fax number for this fulfillment group.void
setFulfillmentItems
(List<T> fulfillmentItems) Items being fulfilled together in this group.void
setFulfillmentOptionName
(String fulfillmentOptionName) Deprecated.instead set the key in the mapgetPriceBeforeAdjustmentsByServiceLevel()
along with the associated price.void
setFulfillmentOptionType
(String fulfillmentOptionType) The type of fulfillment that will be used for this fulfillment group.void
The id of this group.void
setPriceBeforeAdjustments
(javax.money.MonetaryAmount priceBeforeAdjustments) The shipping price of this fulfillment group before adjustments are applied.void
setPrimaryPhone
(String primaryPhone) The primary phone number for this fulfillment group.void
setSecondaryPhone
(String secondaryPhone) The secondary phone number for this fulfillment group.
-
Method Details
-
getId
String getId()The id of this group.- Returns:
- The id of this group.
-
setId
The id of this group.- Parameters:
id
- The id of this group.
-
getFulfillmentOptionType
String getFulfillmentOptionType()The type of fulfillment that will be used for this fulfillment group. This could be SHIP, PICKUP, or VIRTUAL, for example.- Returns:
- The type of means by which this fulfillment group is fulfilled.
-
setFulfillmentOptionType
The type of fulfillment that will be used for this fulfillment group. This could be SHIP, PICKUP, or VIRTUAL, for example.- Parameters:
fulfillmentOptionType
- The type of means by which this fulfillment group is fulfilled.
-
getFulfillmentOptionName
String getFulfillmentOptionName()Deprecated.instead see the keys ingetPriceBeforeAdjustmentsByServiceLevel()
The name of the fulfillment option used. This could be "Express Shipping", "Priority Shipping", "2-Day Shipping", etc. As of PromotionServices 2.0.4, returns the first element in thegetPriceBeforeAdjustmentsByServiceLevel()
map if not directly set.- Returns:
- The name of the fulfillment option used.
-
setFulfillmentOptionName
Deprecated.instead set the key in the mapgetPriceBeforeAdjustmentsByServiceLevel()
along with the associated price.The name of the fulfillment option used. This could be "Express Shipping", "Priority Shipping", "2-Day Shipping", etc.- Parameters:
fulfillmentOptionName
- The name of the fulfillment option used.
-
getDestination
Destination getDestination()TheDestination
containing information about this fulfillment group's destination address.- Returns:
- The
Destination
containing information about this fulfillment group's destination address. - See Also:
-
setDestination
TheDestination
containing information about this fulfillment group's destination address.- Parameters:
destination
- TheDestination
containing information about this fulfillment group's destination address.- See Also:
-
getFulfillmentItems
Items being fulfilled together in this group.- Returns:
- Items being fulfilled together in this group.
- See Also:
-
setFulfillmentItems
Items being fulfilled together in this group.- Parameters:
fulfillmentItems
- Items being fulfilled together in this group.- See Also:
-
getPrimaryPhone
String getPrimaryPhone()The primary phone number for this fulfillment group.- Returns:
- The primary phone number for this fulfillment group.
-
setPrimaryPhone
The primary phone number for this fulfillment group.- Parameters:
primaryPhone
- The primary phone number for this fulfillment group.
-
getSecondaryPhone
String getSecondaryPhone()The secondary phone number for this fulfillment group.- Returns:
- The secondary phone number for this fulfillment group.
-
setSecondaryPhone
The secondary phone number for this fulfillment group.- Parameters:
secondaryPhone
- The secondary phone number for this fulfillment group.
-
getFaxNumber
String getFaxNumber()The fax number for this fulfillment group.- Returns:
- The fax number for this fulfillment group.
-
setFaxNumber
The fax number for this fulfillment group.- Parameters:
faxNumber
- The fax number for this fulfillment group.
-
getPriceBeforeAdjustments
javax.money.MonetaryAmount getPriceBeforeAdjustments()The shipping price of this fulfillment group before adjustments are applied. This is pricing specifically at the group level and does not include pricing fromgetFulfillmentItems()
. If no value is set, the sum of the values ingetPriceBeforeAdjustmentsByServiceLevel()
will be returned.- Returns:
- The shipping price of this fulfillment group before adjustments are applied.
-
setPriceBeforeAdjustments
void setPriceBeforeAdjustments(javax.money.MonetaryAmount priceBeforeAdjustments) The shipping price of this fulfillment group before adjustments are applied. This is pricing specifically at the group level and does not include pricing fromgetFulfillmentItems()
.- Parameters:
priceBeforeAdjustments
- The shipping price of this fulfillment group before adjustments are applied.
-
getAttributes
Additional, unspecified attributes.- Returns:
- Additional, unspecified attributes
-
setAttributes
Additional, unspecified attributes.- Parameters:
attributes
- Additional, unspecified attributes.
-
getPriceBeforeAdjustmentsByServiceLevel
Out of box implementations will return a Map. This default returns a null value. Custom extensions prior to Release Train 1.8.2 must implement this method to be compatible with the new service level features in FulfillmentServices.
-
getPriceBeforeAdjustmentsByServiceLevel()