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 booleanbooleanAdditional, unspecified attributes.TheDestinationcontaining 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.MonetaryAmountReturn 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.inthashCode()voidsetAttributes(Map<String, Object> attributes) Additional, unspecified attributes.voidsetDestination(Destination destination) TheDestinationcontaining information about this fulfillment group's destination address.voidsetFaxNumber(String faxNumber) The fax number for this fulfillment group.voidsetFulfillmentItems(List<T> fulfillmentItems) Items being fulfilled together in this group.voidsetFulfillmentOptionName(String fulfillmentOptionName) The name of the fulfillment option used.voidsetFulfillmentOptionType(String fulfillmentOptionType) The type of fulfillment that will be used for this fulfillment group.voidThe id of this group.voidsetPriceBeforeAdjustments(javax.money.MonetaryAmount priceBeforeAdjustments) The shipping price of this fulfillment group before adjustments are applied.voidsetPriceBeforeAdjustmentsByServiceLevel(Map<String, javax.money.MonetaryAmount> priceBeforeAdjustmentsByServiceLevel) voidsetPrimaryPhone(String primaryPhone) The primary phone number for this fulfillment group.voidsetSecondaryPhone(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:
getPriceBeforeAdjustmentsin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- MonetaryAmount for the total fulfillment price or null if unset
-
getId
Description copied from interface:FulfillmentGroupThe id of this group.- Specified by:
getIdin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- The id of this group.
-
getFulfillmentOptionType
Description copied from interface:FulfillmentGroupThe type of fulfillment that will be used for this fulfillment group. This could be SHIP, PICKUP, or VIRTUAL, for example.- Specified by:
getFulfillmentOptionTypein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- The type of means by which this fulfillment group is fulfilled.
-
getFulfillmentOptionName
Description copied from interface:FulfillmentGroupThe 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:
getFulfillmentOptionNamein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- The name of the fulfillment option used.
-
getDestination
Description copied from interface:FulfillmentGroupTheDestinationcontaining information about this fulfillment group's destination address.- Specified by:
getDestinationin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- The
Destinationcontaining information about this fulfillment group's destination address. - See Also:
-
getFulfillmentItems
Description copied from interface:FulfillmentGroupItems being fulfilled together in this group.- Specified by:
getFulfillmentItemsin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- Items being fulfilled together in this group.
- See Also:
-
getPrimaryPhone
Description copied from interface:FulfillmentGroupThe primary phone number for this fulfillment group.- Specified by:
getPrimaryPhonein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- The primary phone number for this fulfillment group.
-
getSecondaryPhone
Description copied from interface:FulfillmentGroupThe secondary phone number for this fulfillment group.- Specified by:
getSecondaryPhonein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- The secondary phone number for this fulfillment group.
-
getFaxNumber
Description copied from interface:FulfillmentGroupThe fax number for this fulfillment group.- Specified by:
getFaxNumberin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- The fax number for this fulfillment group.
-
getPriceBeforeAdjustmentsByServiceLevel
Description copied from interface:FulfillmentGroupOut 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:
getPriceBeforeAdjustmentsByServiceLevelin interfaceFulfillmentGroup<T extends FulfillmentLineItem>
-
getAttributes
Description copied from interface:FulfillmentGroupAdditional, unspecified attributes.- Specified by:
getAttributesin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Returns:
- Additional, unspecified attributes
-
setId
Description copied from interface:FulfillmentGroupThe id of this group.- Specified by:
setIdin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
id- The id of this group.
-
setFulfillmentOptionType
Description copied from interface:FulfillmentGroupThe type of fulfillment that will be used for this fulfillment group. This could be SHIP, PICKUP, or VIRTUAL, for example.- Specified by:
setFulfillmentOptionTypein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
fulfillmentOptionType- The type of means by which this fulfillment group is fulfilled.
-
setFulfillmentOptionName
Description copied from interface:FulfillmentGroupThe name of the fulfillment option used. This could be "Express Shipping", "Priority Shipping", "2-Day Shipping", etc.- Specified by:
setFulfillmentOptionNamein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
fulfillmentOptionName- The name of the fulfillment option used.
-
setDestination
Description copied from interface:FulfillmentGroupTheDestinationcontaining information about this fulfillment group's destination address.- Specified by:
setDestinationin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
destination- TheDestinationcontaining information about this fulfillment group's destination address.- See Also:
-
setFulfillmentItems
Description copied from interface:FulfillmentGroupItems being fulfilled together in this group.- Specified by:
setFulfillmentItemsin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
fulfillmentItems- Items being fulfilled together in this group.- See Also:
-
setPrimaryPhone
Description copied from interface:FulfillmentGroupThe primary phone number for this fulfillment group.- Specified by:
setPrimaryPhonein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
primaryPhone- The primary phone number for this fulfillment group.
-
setSecondaryPhone
Description copied from interface:FulfillmentGroupThe secondary phone number for this fulfillment group.- Specified by:
setSecondaryPhonein interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
secondaryPhone- The secondary phone number for this fulfillment group.
-
setFaxNumber
Description copied from interface:FulfillmentGroupThe fax number for this fulfillment group.- Specified by:
setFaxNumberin 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:FulfillmentGroupThe 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:
setPriceBeforeAdjustmentsin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
priceBeforeAdjustments- The shipping price of this fulfillment group before adjustments are applied.
-
setPriceBeforeAdjustmentsByServiceLevel
-
setAttributes
Description copied from interface:FulfillmentGroupAdditional, unspecified attributes.- Specified by:
setAttributesin interfaceFulfillmentGroup<T extends FulfillmentLineItem>- Parameters:
attributes- Additional, unspecified attributes.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-