Class FulfillmentPricingRequest
- java.lang.Object
-
- com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest
-
- All Implemented Interfaces:
com.broadleafcommerce.money.CurrencyConsumer,Serializable,javax.money.CurrencySupplier
public class FulfillmentPricingRequest extends Object implements Serializable, javax.money.CurrencySupplier, com.broadleafcommerce.money.CurrencyConsumer
A grouping of items and address(es) to be used to determine fulfillment pricing as a request DTO sent to FulfillmentPricingProvider.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FulfillmentPricingRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)Map<String,String>getAttributes()Additional attributes for this request.javax.money.CurrencyUnitgetCurrency()TheCurrencyUnitthat should be used for this request.StringgetCustomer()The customer that these pricing will apply to.ShippingAddressgetFromAddress()The address that the items will be shipped from.StringgetFulfillmentOption()The address that the items will be shipped to.List<FulfillmentPricingItem>getFulfillmentPricingItems()The list of items to be priced.StringgetFulfillmentType()The type of means by which this fulfillment group is fulfilled.ShippingAddressgetToAddress()The address that the items will be shipped to.inthashCode()voidsetAttributes(Map<String,String> attributes)Additional attributes for this request.voidsetCurrency(javax.money.CurrencyUnit currency)TheCurrencyUnitthat should be used for this request.voidsetCustomer(String customer)The customer that these pricing will apply to.voidsetFromAddress(ShippingAddress fromAddress)The address that the items will be shipped from.voidsetFulfillmentOption(String fulfillmentOption)The address that the items will be shipped to.voidsetFulfillmentPricingItems(List<FulfillmentPricingItem> fulfillmentPricingItems)The list of items to be priced.voidsetFulfillmentType(String fulfillmentType)The type of means by which this fulfillment group is fulfilled.voidsetToAddress(ShippingAddress toAddress)The address that the items will be shipped to.StringtoString()
-
-
-
Method Detail
-
getCurrency
public javax.money.CurrencyUnit getCurrency()
TheCurrencyUnitthat should be used for this request.- Specified by:
getCurrencyin interfacejavax.money.CurrencySupplier- Returns:
- The currency that should be used for this request.
-
getFulfillmentType
public String getFulfillmentType()
The type of means by which this fulfillment group is fulfilled. This could be SHIP, PICKUP, or VIRTUAL, for example.- Returns:
- The type of means by which this fulfillment group is fulfilled.
- See Also:
DefaultFulfillmentTypes
-
getFulfillmentOption
public String getFulfillmentOption()
The address that the items will be shipped to.- Returns:
- The address that the items will be shipped to.
-
getFulfillmentPricingItems
public List<FulfillmentPricingItem> getFulfillmentPricingItems()
The list of items to be priced.- Returns:
- The list of items to be priced.
-
getFromAddress
public ShippingAddress getFromAddress()
The address that the items will be shipped from.- Returns:
- The address that the items will be shipped from.
-
getToAddress
public ShippingAddress getToAddress()
The address that the items will be shipped to.- Returns:
- The address that the items will be shipped to.
-
getCustomer
public String getCustomer()
The customer that these pricing will apply to.- Returns:
- The customer that these pricing will apply to.
-
getAttributes
public Map<String,String> getAttributes()
Additional attributes for this request.- Returns:
- Additional attributes for this request.
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency)
TheCurrencyUnitthat should be used for this request.- Specified by:
setCurrencyin interfacecom.broadleafcommerce.money.CurrencyConsumer- Parameters:
currency-
-
setFulfillmentType
public void setFulfillmentType(String fulfillmentType)
The type of means by which this fulfillment group is fulfilled. This could be SHIP, PICKUP, or VIRTUAL, for example.- Parameters:
fulfillmentType- The type of means by which this fulfillment group is fulfilled.- See Also:
DefaultFulfillmentTypes
-
setFulfillmentOption
public void setFulfillmentOption(String fulfillmentOption)
The address that the items will be shipped to.- Parameters:
toAddress- The address that the items will be shipped to.
-
setFulfillmentPricingItems
public void setFulfillmentPricingItems(List<FulfillmentPricingItem> fulfillmentPricingItems)
The list of items to be priced.- Parameters:
fulfillmentPricingItems- The list of items to be priced.
-
setFromAddress
public void setFromAddress(ShippingAddress fromAddress)
The address that the items will be shipped from.- Parameters:
fromAddress- The address that the items will be shipped from.
-
setToAddress
public void setToAddress(ShippingAddress toAddress)
The address that the items will be shipped to.- Parameters:
toAddress- The address that the items will be shipped to.
-
setCustomer
public void setCustomer(String customer)
The customer that these pricing will apply to.- Parameters:
customer- The customer that these pricing will apply to.
-
setAttributes
public void setAttributes(Map<String,String> attributes)
Additional attributes for this request.- Parameters:
attributes- Additional attributes for this request.
-
canEqual
protected boolean canEqual(Object other)
-
-