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 Details

    • FulfillmentPricingRequest

      public FulfillmentPricingRequest()
  • Method Details

    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
      The CurrencyUnit that should be used for this request.
      Specified by:
      getCurrency in interface javax.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:
    • 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)
      The CurrencyUnit that should be used for this request.
      Specified by:
      setCurrency in interface com.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:
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object