java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.discounts.FulfillmentGroupResponse<P>
All Implemented Interfaces:
Serializable

public class FulfillmentGroupResponse<P extends ProratedItemOfferAdjustment> extends Object implements Serializable
A DTO structure that provides pricing information for a given fulfillment group via offer adjustments. These adjustments are a result of running an Order through the offer engine.
Author:
Chad Harchar (charchar)
See Also:
  • Constructor Details

    • FulfillmentGroupResponse

      public FulfillmentGroupResponse()
  • Method Details

    • getFulfillmentGroupId

      public String getFulfillmentGroupId()
      The id for the FulfillmentGroup that this FulfillmentGroupResponse represents.
    • getFulfillmentItemOfferDetails

      public List<ItemResponse<P>> getFulfillmentItemOfferDetails()
      Adjustment information for each FulfillmentGroup.getFulfillmentItems() fulfillment line item}.
    • getAdjustments

      public List<Adjustment> getAdjustments()
      Adjustment information for this fulfillment group.
    • getFulfillmentItemSavings

      public javax.money.MonetaryAmount getFulfillmentItemSavings()
      The total savings across all fulfillmentItemOfferDetails. This does not include futureCreditSavings.
    • getFulfillmentGroupSavings

      public javax.money.MonetaryAmount getFulfillmentGroupSavings()
      The total savings across all adjustments. This does not include futureCreditSavings.
    • getFulfillmentSavings

      public javax.money.MonetaryAmount getFulfillmentSavings()
      The total savings across all adjustments and fulfillmentItemOfferDetails. This does not include futureCreditSavings.
    • getFutureCreditSavings

      public javax.money.MonetaryAmount getFutureCreditSavings()
      The future credit savings across adjustments and fulfillmentItemOfferDetails, indicated by Adjustment.isFutureCredit(). This does not include children item's future credits, use fulfillmentSavings if desired. See OfferRef.isFutureCredit() for more info.
    • getAdjustedTotal

      public javax.money.MonetaryAmount getAdjustedTotal()
      The total final price of this item with adjustments applied.
    • getProratedFulfillmentAdjustments

      public javax.money.MonetaryAmount getProratedFulfillmentAdjustments()
      Prorated fulfillment adjustments for the fulfillment group itself.

      Fulfillment-level adjustments are prorated between the charges of the fulfullment group and those of the individual fulfullment items, the prorated fulfillment adjustments for the items are set at the item level.

      See Also:
    • setFulfillmentGroupId

      public void setFulfillmentGroupId(String fulfillmentGroupId)
      The id for the FulfillmentGroup that this FulfillmentGroupResponse represents.
    • setFulfillmentItemOfferDetails

      public void setFulfillmentItemOfferDetails(List<ItemResponse<P>> fulfillmentItemOfferDetails)
      Adjustment information for each FulfillmentGroup.getFulfillmentItems() fulfillment line item}.
    • setAdjustments

      public void setAdjustments(List<Adjustment> adjustments)
      Adjustment information for this fulfillment group.
    • setFulfillmentItemSavings

      public void setFulfillmentItemSavings(javax.money.MonetaryAmount fulfillmentItemSavings)
      The total savings across all fulfillmentItemOfferDetails. This does not include futureCreditSavings.
    • setFulfillmentGroupSavings

      public void setFulfillmentGroupSavings(javax.money.MonetaryAmount fulfillmentGroupSavings)
      The total savings across all adjustments. This does not include futureCreditSavings.
    • setFulfillmentSavings

      public void setFulfillmentSavings(javax.money.MonetaryAmount fulfillmentSavings)
      The total savings across all adjustments and fulfillmentItemOfferDetails. This does not include futureCreditSavings.
    • setFutureCreditSavings

      public void setFutureCreditSavings(javax.money.MonetaryAmount futureCreditSavings)
      The future credit savings across adjustments and fulfillmentItemOfferDetails, indicated by Adjustment.isFutureCredit(). This does not include children item's future credits, use fulfillmentSavings if desired. See OfferRef.isFutureCredit() for more info.
    • setAdjustedTotal

      public void setAdjustedTotal(javax.money.MonetaryAmount adjustedTotal)
      The total final price of this item with adjustments applied.
    • setProratedFulfillmentAdjustments

      public void setProratedFulfillmentAdjustments(javax.money.MonetaryAmount proratedFulfillmentAdjustments)
      Prorated fulfillment adjustments for the fulfillment group itself.

      Fulfillment-level adjustments are prorated between the charges of the fulfullment group and those of the individual fulfullment items, the prorated fulfillment adjustments for the items are set at the item level.

      See Also:
    • 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