Class FulfillmentGroupResponse<P extends ProratedItemOfferAdjustment>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.money.MonetaryAmount
The total final price of this item with adjustments applied.Adjustment information for this fulfillment group.The id for theFulfillmentGroup
that thisFulfillmentGroupResponse
represents.javax.money.MonetaryAmount
The total savings across alladjustments
.Adjustment information for eachFulfillmentGroup.getFulfillmentItems()
fulfillment line item}.javax.money.MonetaryAmount
The total savings across allfulfillmentItemOfferDetails
.javax.money.MonetaryAmount
The total savings across alladjustments
andfulfillmentItemOfferDetails
.javax.money.MonetaryAmount
The future credit savings acrossadjustments
andfulfillmentItemOfferDetails
, indicated byAdjustment.isFutureCredit()
.javax.money.MonetaryAmount
Prorated fulfillment adjustments for the fulfillment group itself.int
hashCode()
void
setAdjustedTotal
(javax.money.MonetaryAmount adjustedTotal) The total final price of this item with adjustments applied.void
setAdjustments
(List<Adjustment> adjustments) Adjustment information for this fulfillment group.void
setFulfillmentGroupId
(String fulfillmentGroupId) The id for theFulfillmentGroup
that thisFulfillmentGroupResponse
represents.void
setFulfillmentGroupSavings
(javax.money.MonetaryAmount fulfillmentGroupSavings) The total savings across alladjustments
.void
setFulfillmentItemOfferDetails
(List<ItemResponse<P>> fulfillmentItemOfferDetails) Adjustment information for eachFulfillmentGroup.getFulfillmentItems()
fulfillment line item}.void
setFulfillmentItemSavings
(javax.money.MonetaryAmount fulfillmentItemSavings) The total savings across allfulfillmentItemOfferDetails
.void
setFulfillmentSavings
(javax.money.MonetaryAmount fulfillmentSavings) The total savings across alladjustments
andfulfillmentItemOfferDetails
.void
setFutureCreditSavings
(javax.money.MonetaryAmount futureCreditSavings) The future credit savings acrossadjustments
andfulfillmentItemOfferDetails
, indicated byAdjustment.isFutureCredit()
.void
setProratedFulfillmentAdjustments
(javax.money.MonetaryAmount proratedFulfillmentAdjustments) Prorated fulfillment adjustments for the fulfillment group itself.toString()
-
Constructor Details
-
FulfillmentGroupResponse
public FulfillmentGroupResponse()
-
-
Method Details
-
getFulfillmentGroupId
The id for theFulfillmentGroup
that thisFulfillmentGroupResponse
represents. -
getFulfillmentItemOfferDetails
Adjustment information for eachFulfillmentGroup.getFulfillmentItems()
fulfillment line item}. -
getAdjustments
Adjustment information for this fulfillment group. -
getFulfillmentItemSavings
public javax.money.MonetaryAmount getFulfillmentItemSavings()The total savings across allfulfillmentItemOfferDetails
. This does not includefutureCreditSavings
. -
getFulfillmentGroupSavings
public javax.money.MonetaryAmount getFulfillmentGroupSavings()The total savings across alladjustments
. This does not includefutureCreditSavings
. -
getFulfillmentSavings
public javax.money.MonetaryAmount getFulfillmentSavings()The total savings across alladjustments
andfulfillmentItemOfferDetails
. This does not includefutureCreditSavings
. -
getFutureCreditSavings
public javax.money.MonetaryAmount getFutureCreditSavings()The future credit savings acrossadjustments
andfulfillmentItemOfferDetails
, indicated byAdjustment.isFutureCredit()
. This does not include children item's future credits, usefulfillmentSavings
if desired. SeeOfferRef.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
The id for theFulfillmentGroup
that thisFulfillmentGroupResponse
represents. -
setFulfillmentItemOfferDetails
Adjustment information for eachFulfillmentGroup.getFulfillmentItems()
fulfillment line item}. -
setAdjustments
Adjustment information for this fulfillment group. -
setFulfillmentItemSavings
public void setFulfillmentItemSavings(javax.money.MonetaryAmount fulfillmentItemSavings) The total savings across allfulfillmentItemOfferDetails
. This does not includefutureCreditSavings
. -
setFulfillmentGroupSavings
public void setFulfillmentGroupSavings(javax.money.MonetaryAmount fulfillmentGroupSavings) The total savings across alladjustments
. This does not includefutureCreditSavings
. -
setFulfillmentSavings
public void setFulfillmentSavings(javax.money.MonetaryAmount fulfillmentSavings) The total savings across alladjustments
andfulfillmentItemOfferDetails
. This does not includefutureCreditSavings
. -
setFutureCreditSavings
public void setFutureCreditSavings(javax.money.MonetaryAmount futureCreditSavings) The future credit savings acrossadjustments
andfulfillmentItemOfferDetails
, indicated byAdjustment.isFutureCredit()
. This does not include children item's future credits, usefulfillmentSavings
if desired. SeeOfferRef.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
-
canEqual
-
hashCode
public int hashCode() -
toString
-