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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional attributes for this request.javax.money.CurrencyUnit
TheCurrencyUnit
that should be used for this request.The customer that these pricing will apply to.The address that the items will be shipped from.The address that the items will be shipped to.The list of items to be priced.The type of means by which this fulfillment group is fulfilled.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.toString()
-
Constructor Details
-
FulfillmentPricingRequest
public FulfillmentPricingRequest()
-
-
Method Details
-
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
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:
-
getFulfillmentOption
The address that the items will be shipped to.- Returns:
- The address that the items will be shipped to.
-
getFulfillmentPricingItems
The list of items to be priced.- Returns:
- The list of items to be priced.
-
getFromAddress
The address that the items will be shipped from.- Returns:
- The address that the items will be shipped from.
-
getToAddress
The address that the items will be shipped to.- Returns:
- The address that the items will be shipped to.
-
getCustomer
The customer that these pricing will apply to.- Returns:
- The customer that these pricing will apply to.
-
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
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:
-
setFulfillmentOption
The address that the items will be shipped to.- Parameters:
toAddress
- The address that the items will be shipped to.
-
setFulfillmentPricingItems
The list of items to be priced.- Parameters:
fulfillmentPricingItems
- The list of items to be priced.
-
setFromAddress
The address that the items will be shipped from.- Parameters:
fromAddress
- The address that the items will be shipped from.
-
setToAddress
The address that the items will be shipped to.- Parameters:
toAddress
- The address that the items will be shipped to.
-
setCustomer
The customer that these pricing will apply to.- Parameters:
customer
- The customer that these pricing will apply to.
-
setAttributes
Additional attributes for this request.- Parameters:
attributes
- Additional attributes for this request.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-