Class RefundEvent
java.lang.Object
com.broadleafcommerce.billing.domain.RefundEvent
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
public class RefundEvent
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware
This represents a specific instance of refunding a user for a
BillingEvent. This domain
contains the summary fields, while the details and
items store detailed information.-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionRefundEvent(String id, Date refundDate, String billingEventId, RefundEventStatusEnum refundStatus, BigDecimal refundTotal, BigDecimal refundTaxAmount, String eventNotificationChannel, Date createdDate, Map<@Size(max=255) String, @Size(max=2000) String> additionalFields, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTheBillingEventwhose payment this refund event is refundingcom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.Notification channel for sending the processing events for this refund eventgetId()When to process the refundStatus of this refundThe total tax of this refund event.The total amount this refund event represents.inthashCode()voidsetAdditionalFields(Map<@Size(max=255) String, @Size(max=2000) String> additionalFields) voidsetBillingEventId(String billingEventId) TheBillingEventwhose payment this refund event is refundingvoidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetCreatedDate(Date createdDate) voidsetEventNotificationChannel(String eventNotificationChannel) Notification channel for sending the processing events for this refund eventvoidvoidsetRefundDate(Date refundDate) When to process the refundvoidsetRefundStatus(RefundEventStatusEnum refundStatus) Status of this refundvoidsetRefundTaxAmount(BigDecimal refundTaxAmount) The total tax of this refund event.voidsetRefundTotal(BigDecimal refundTotal) The total amount this refund event represents.toString()
-
Field Details
-
additionalFields
-
-
Constructor Details
-
RefundEvent
public RefundEvent() -
RefundEvent
public RefundEvent(String id, Date refundDate, String billingEventId, RefundEventStatusEnum refundStatus, BigDecimal refundTotal, BigDecimal refundTaxAmount, String eventNotificationChannel, Date createdDate, Map<@Size(max=255) String, @Size(max=2000) String> additionalFields, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-
-
Method Details
-
getId
-
getRefundDate
When to process the refund -
getBillingEventId
TheBillingEventwhose payment this refund event is refunding -
getRefundStatus
Status of this refund- See Also:
-
getRefundTotal
The total amount this refund event represents. This should be the sum of the refund amounts from theRefundEventDetail. -
getRefundTaxAmount
The total tax of this refund event. Mainly used for reporting purposes. -
getEventNotificationChannel
Notification channel for sending the processing events for this refund event -
getCreatedDate
-
getAdditionalFields
-
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
-
setRefundDate
When to process the refund -
setBillingEventId
TheBillingEventwhose payment this refund event is refunding -
setRefundStatus
Status of this refund- See Also:
-
setRefundTotal
The total amount this refund event represents. This should be the sum of the refund amounts from theRefundEventDetail. -
setRefundTaxAmount
The total tax of this refund event. Mainly used for reporting purposes. -
setEventNotificationChannel
Notification channel for sending the processing events for this refund event -
setCreatedDate
-
setAdditionalFields
-
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
-