Class FulfillmentGroupDto<T extends FulfillmentLineItem>
java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.FulfillmentGroupDto<T>
- All Implemented Interfaces:
FulfillmentGroup<T>
,Serializable
public class FulfillmentGroupDto<T extends FulfillmentLineItem>
extends Object
implements FulfillmentGroup<T>, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional, 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.The name of the fulfillment option used.The type of fulfillment that will be used for this fulfillment group.getId()
The id of this group.javax.money.MonetaryAmount
Return the sum of values by service level if populated; otherwise, return the value set directlyOut of box implementations will return a Map.The primary phone number for this fulfillment group.The secondary phone number for this fulfillment group.int
hashCode()
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) The name of the fulfillment option used.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
setPriceBeforeAdjustmentsByServiceLevel
(Map<String, javax.money.MonetaryAmount> priceBeforeAdjustmentsByServiceLevel) void
setPrimaryPhone
(String primaryPhone) The primary phone number for this fulfillment group.void
setSecondaryPhone
(String secondaryPhone) The secondary phone number for this fulfillment group.toString()
-
Constructor Details
-
FulfillmentGroupDto
public FulfillmentGroupDto()
-
-
Method Details
-
getPriceBeforeAdjustments
public javax.money.MonetaryAmount getPriceBeforeAdjustments()Return the sum of values by service level if populated; otherwise, return the value set directly- Specified by:
getPriceBeforeAdjustments
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- MonetaryAmount for the total fulfillment price or null if unset
-
getId
Description copied from interface:FulfillmentGroup
The id of this group.- Specified by:
getId
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- The id of this group.
-
getFulfillmentOptionType
Description copied from interface:FulfillmentGroup
The type of fulfillment that will be used for this fulfillment group. This could be SHIP, PICKUP, or VIRTUAL, for example.- Specified by:
getFulfillmentOptionType
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- The type of means by which this fulfillment group is fulfilled.
-
getFulfillmentOptionName
Description copied from interface:FulfillmentGroup
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 theFulfillmentGroup.getPriceBeforeAdjustmentsByServiceLevel()
map if not directly set.- Specified by:
getFulfillmentOptionName
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- The name of the fulfillment option used.
-
getDestination
Description copied from interface:FulfillmentGroup
TheDestination
containing information about this fulfillment group's destination address.- Specified by:
getDestination
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- The
Destination
containing information about this fulfillment group's destination address. - See Also:
-
getFulfillmentItems
Description copied from interface:FulfillmentGroup
Items being fulfilled together in this group.- Specified by:
getFulfillmentItems
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- Items being fulfilled together in this group.
- See Also:
-
getPrimaryPhone
Description copied from interface:FulfillmentGroup
The primary phone number for this fulfillment group.- Specified by:
getPrimaryPhone
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- The primary phone number for this fulfillment group.
-
getSecondaryPhone
Description copied from interface:FulfillmentGroup
The secondary phone number for this fulfillment group.- Specified by:
getSecondaryPhone
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- The secondary phone number for this fulfillment group.
-
getFaxNumber
Description copied from interface:FulfillmentGroup
The fax number for this fulfillment group.- Specified by:
getFaxNumber
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- The fax number for this fulfillment group.
-
getPriceBeforeAdjustmentsByServiceLevel
Description copied from interface:FulfillmentGroup
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.- Specified by:
getPriceBeforeAdjustmentsByServiceLevel
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
-
getAttributes
Description copied from interface:FulfillmentGroup
Additional, unspecified attributes.- Specified by:
getAttributes
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Returns:
- Additional, unspecified attributes
-
setId
Description copied from interface:FulfillmentGroup
The id of this group.- Specified by:
setId
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
id
- The id of this group.
-
setFulfillmentOptionType
Description copied from interface:FulfillmentGroup
The type of fulfillment that will be used for this fulfillment group. This could be SHIP, PICKUP, or VIRTUAL, for example.- Specified by:
setFulfillmentOptionType
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
fulfillmentOptionType
- The type of means by which this fulfillment group is fulfilled.
-
setFulfillmentOptionName
Description copied from interface:FulfillmentGroup
The name of the fulfillment option used. This could be "Express Shipping", "Priority Shipping", "2-Day Shipping", etc.- Specified by:
setFulfillmentOptionName
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
fulfillmentOptionName
- The name of the fulfillment option used.
-
setDestination
Description copied from interface:FulfillmentGroup
TheDestination
containing information about this fulfillment group's destination address.- Specified by:
setDestination
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
destination
- TheDestination
containing information about this fulfillment group's destination address.- See Also:
-
setFulfillmentItems
Description copied from interface:FulfillmentGroup
Items being fulfilled together in this group.- Specified by:
setFulfillmentItems
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
fulfillmentItems
- Items being fulfilled together in this group.- See Also:
-
setPrimaryPhone
Description copied from interface:FulfillmentGroup
The primary phone number for this fulfillment group.- Specified by:
setPrimaryPhone
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
primaryPhone
- The primary phone number for this fulfillment group.
-
setSecondaryPhone
Description copied from interface:FulfillmentGroup
The secondary phone number for this fulfillment group.- Specified by:
setSecondaryPhone
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
secondaryPhone
- The secondary phone number for this fulfillment group.
-
setFaxNumber
Description copied from interface:FulfillmentGroup
The fax number for this fulfillment group.- Specified by:
setFaxNumber
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
faxNumber
- The fax number for this fulfillment group.
-
setPriceBeforeAdjustments
public void setPriceBeforeAdjustments(javax.money.MonetaryAmount priceBeforeAdjustments) Description copied from interface:FulfillmentGroup
The shipping price of this fulfillment group before adjustments are applied. This is pricing specifically at the group level and does not include pricing fromFulfillmentGroup.getFulfillmentItems()
.- Specified by:
setPriceBeforeAdjustments
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
priceBeforeAdjustments
- The shipping price of this fulfillment group before adjustments are applied.
-
setPriceBeforeAdjustmentsByServiceLevel
-
setAttributes
Description copied from interface:FulfillmentGroup
Additional, unspecified attributes.- Specified by:
setAttributes
in interfaceFulfillmentGroup<T extends FulfillmentLineItem>
- Parameters:
attributes
- Additional, unspecified attributes.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-