Class BillingEventAdjustment
java.lang.Object
com.broadleafcommerce.billing.domain.BillingEventAdjustment
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
public class BillingEventAdjustment
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware
Represents a price adjustment to the original price on a
BillingEvent. These are prorated
into item adjustments upon Billing Event creation in
DefaultBillingEventService.generateProratedEventItemAdjustments(List, List).
As such, they are not used for further pricing calculations.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalThe total event-level adjustment amount.protected StringReference to the promotion or offer that drives this adjustmentprotected @Size(max=255) @NotBlank StringReferences the billing event for this adjustment.protected @Null(groups=Create.class) @Size(max=255) String -
Constructor Summary
ConstructorsConstructorDescriptionBillingEventAdjustment(String id, String billingEventId, String adjustmentRef, BigDecimal adjustmentAmount, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe total event-level adjustment amount.Reference to the promotion or offer that drives this adjustmentReferences the billing event for this adjustment.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.getId()inthashCode()voidsetAdjustmentAmount(BigDecimal adjustmentAmount) The total event-level adjustment amount.voidsetAdjustmentRef(String adjustmentRef) Reference to the promotion or offer that drives this adjustmentvoidsetBillingEventId(String billingEventId) References the billing event for this adjustment.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidtoString()
-
Field Details
-
id
@Null(groups=Create.class) @Size(max=255) protected @Null(groups=Create.class) @Size(max=255) String id -
billingEventId
References the billing event for this adjustment. -
adjustmentRef
Reference to the promotion or offer that drives this adjustment -
adjustmentAmount
The total event-level adjustment amount.
-
-
Constructor Details
-
BillingEventAdjustment
public BillingEventAdjustment() -
BillingEventAdjustment
public BillingEventAdjustment(String id, String billingEventId, String adjustmentRef, BigDecimal adjustmentAmount, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-
-
Method Details
-
getId
-
getBillingEventId
References the billing event for this adjustment. -
getAdjustmentRef
Reference to the promotion or offer that drives this adjustment -
getAdjustmentAmount
The total event-level adjustment amount. -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
setId
-
setBillingEventId
References the billing event for this adjustment. -
setAdjustmentRef
Reference to the promotion or offer that drives this adjustment -
setAdjustmentAmount
The total event-level adjustment amount. -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-