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 boolean
canEqual(Object other)
boolean
equals(Object o)
Map<String,String>
getAttributes()
Additional attributes for this request.javax.money.CurrencyUnit
getCurrency()
TheCurrencyUnit
that should be used for this request.String
getCustomer()
The customer that these pricing will apply to.ShippingAddress
getFromAddress()
The address that the items will be shipped from.String
getFulfillmentOption()
The address that the items will be shipped to.List<FulfillmentPricingItem>
getFulfillmentPricingItems()
The list of items to be priced.String
getFulfillmentType()
The type of means by which this fulfillment group is fulfilled.ShippingAddress
getToAddress()
The address that the items will be shipped to.int
hashCode()
void
setAttributes(Map<String,String> attributes)
Additional attributes for this request.void
setCurrency(javax.money.CurrencyUnit currency)
TheCurrencyUnit
that should be used for this request.void
setCustomer(String customer)
The customer that these pricing will apply to.void
setFromAddress(ShippingAddress fromAddress)
The address that the items will be shipped from.void
setFulfillmentOption(String fulfillmentOption)
The address that the items will be shipped to.void
setFulfillmentPricingItems(List<FulfillmentPricingItem> fulfillmentPricingItems)
The list of items to be priced.void
setFulfillmentType(String fulfillmentType)
The type of means by which this fulfillment group is fulfilled.void
setToAddress(ShippingAddress toAddress)
The address that the items will be shipped to.String
toString()
-
-
-
Method Detail
-
getCurrency
public javax.money.CurrencyUnit getCurrency()
TheCurrencyUnit
that should be used for this request.- Specified by:
getCurrency
in 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)
TheCurrencyUnit
that should be used for this request.- Specified by:
setCurrency
in 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)
-
-