Class BillingEventPayment
java.lang.Object
com.broadleafcommerce.billing.domain.BillingEventPayment
- All Implemented Interfaces:
RetryPayment,com.broadleafcommerce.data.tracking.core.ContextStateAware
public class BillingEventPayment
extends Object
implements RetryPayment, com.broadleafcommerce.data.tracking.core.ContextStateAware
A payment associated with a
BillingEvent.-
Constructor Summary
ConstructorsConstructorDescriptionBillingEventPayment(String id, String billingEventId, String paymentProcessType, PaymentStatusEnum paymentStatus, BigDecimal paymentAmount, String preferredPaymentAccountId, String retryScheduleCode, Date nextRetryDate, Integer remainingRetryCount, Integer attemptCount, Date createdDate, Integer version, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe current attempt number.TheBillingEventassociated with this paymentcom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.Creation date of this payment.getId()In the case of a failed payment, the next date to try processing payment.The amount to be billed on this payment.Serves as a reference to the process that's meant to collect payment for this BillingEventPaymentThe payment status of the BillingEventPayment.The ID of the preferred payment account to use for this payment.The remaining number of tries to retry this payment.TheIntervalBillingRetrySpecsto use when calculating the retry date.The version of this payment.inthashCode()voidsetAttemptCount(Integer attemptCount) The current attempt number.voidsetBillingEventId(String billingEventId) TheBillingEventassociated with this paymentvoidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetCreatedDate(Date createdDate) Creation date of this payment.voidvoidsetNextRetryDate(Date nextRetryDate) In the case of a failed payment, the next date to try processing payment.voidsetPaymentAmount(BigDecimal paymentAmount) The amount to be billed on this payment.voidsetPaymentProcessType(String paymentProcessType) Serves as a reference to the process that's meant to collect payment for this BillingEventPaymentvoidsetPaymentStatus(PaymentStatusEnum paymentStatus) The payment status of the BillingEventPayment.voidsetPreferredPaymentAccountId(String preferredPaymentAccountId) The ID of the preferred payment account to use for this payment.voidsetRemainingRetryCount(Integer remainingRetryCount) The remaining number of tries to retry this payment.voidsetRetryScheduleCode(String retryScheduleCode) TheIntervalBillingRetrySpecsto use when calculating the retry date.voidsetVersion(Integer version) The version of this payment.toString()
-
Constructor Details
-
BillingEventPayment
public BillingEventPayment() -
BillingEventPayment
public BillingEventPayment(String id, String billingEventId, String paymentProcessType, PaymentStatusEnum paymentStatus, BigDecimal paymentAmount, String preferredPaymentAccountId, String retryScheduleCode, Date nextRetryDate, Integer remainingRetryCount, Integer attemptCount, Date createdDate, Integer version, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-
-
Method Details
-
getId
-
getBillingEventId
TheBillingEventassociated with this payment -
getPaymentProcessType
Serves as a reference to the process that's meant to collect payment for this BillingEventPayment -
getPaymentStatus
The payment status of the BillingEventPayment.- See Also:
-
getPaymentAmount
The amount to be billed on this payment. -
getPreferredPaymentAccountId
The ID of the preferred payment account to use for this payment. -
getRetryScheduleCode
TheIntervalBillingRetrySpecsto use when calculating the retry date.- Specified by:
getRetryScheduleCodein interfaceRetryPayment- See Also:
-
getNextRetryDate
In the case of a failed payment, the next date to try processing payment.- Specified by:
getNextRetryDatein interfaceRetryPayment- See Also:
-
getRemainingRetryCount
The remaining number of tries to retry this payment.- Specified by:
getRemainingRetryCountin interfaceRetryPayment- See Also:
-
getAttemptCount
The current attempt number.- Specified by:
getAttemptCountin interfaceRetryPayment- See Also:
-
getCreatedDate
Creation date of this payment. This should not be manually set or updated. -
getVersion
The version of this payment. Used for checking if the requested version of the payment is up-to-date before saving changes. This should never be manually decremented/incremented. -
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
TheBillingEventassociated with this payment -
setPaymentProcessType
Serves as a reference to the process that's meant to collect payment for this BillingEventPayment -
setPaymentStatus
The payment status of the BillingEventPayment.- See Also:
-
setPaymentAmount
The amount to be billed on this payment. -
setPreferredPaymentAccountId
The ID of the preferred payment account to use for this payment. -
setRetryScheduleCode
TheIntervalBillingRetrySpecsto use when calculating the retry date.- Specified by:
setRetryScheduleCodein interfaceRetryPayment- See Also:
-
setNextRetryDate
In the case of a failed payment, the next date to try processing payment.- Specified by:
setNextRetryDatein interfaceRetryPayment- See Also:
-
setRemainingRetryCount
The remaining number of tries to retry this payment.- Specified by:
setRemainingRetryCountin interfaceRetryPayment- See Also:
-
setAttemptCount
The current attempt number.- Specified by:
setAttemptCountin interfaceRetryPayment- See Also:
-
setCreatedDate
Creation date of this payment. This should not be manually set or updated. -
setVersion
The version of this payment. Used for checking if the requested version of the payment is up-to-date before saving changes. This should never be manually decremented/incremented. -
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
-