Class PaymentAccountProcessedEvent

java.lang.Object
com.broadleafcommerce.billing.job.domain.PaymentAccountProcessedEvent
All Implemented Interfaces:
Serializable

public class PaymentAccountProcessedEvent extends Object implements Serializable
This DTO is used to record detailed results of the processed transaction to pass on to subsequent handlers
See Also:
  • Constructor Details

    • PaymentAccountProcessedEvent

      public PaymentAccountProcessedEvent()
    • PaymentAccountProcessedEvent

      public PaymentAccountProcessedEvent(String paymentAccountId, String transactionResult, Date transactionDateTime, String failureReason, boolean isLastPaymentAccountInProcess, List<String> paymentAccountIdsWithSoftFailure)
  • Method Details

    • getPaymentAccountId

      public String getPaymentAccountId()
      The list of billing processing requests to process.
    • getTransactionResult

      public String getTransactionResult()
      The result of the last billing transaction for this account. Can be: SUCCESS, SOFT_FAILURE, HARD_FAILURE.
    • getTransactionDateTime

      public Date getTransactionDateTime()
      The date and time of the last transaction for this account.
    • getFailureReason

      public String getFailureReason()
      SOFT/HARD Failures reason codes for the PaymentProcessor
    • isLastPaymentAccountInProcess

      public boolean isLastPaymentAccountInProcess()
      This returns true if last PaymentAccount is in the BillingJob process and have at least one PaymentAccount which is in SOFT_FAILURE
    • getPaymentAccountIdsWithSoftFailure

      public List<String> getPaymentAccountIdsWithSoftFailure()
      This have all the PaymentAccountIds which are in SOFT_FAILURE if the isLastPaymentAccountInProcess is true
    • setPaymentAccountId

      public void setPaymentAccountId(String paymentAccountId)
      The list of billing processing requests to process.
    • setTransactionResult

      public void setTransactionResult(String transactionResult)
      The result of the last billing transaction for this account. Can be: SUCCESS, SOFT_FAILURE, HARD_FAILURE.
    • setTransactionDateTime

      public void setTransactionDateTime(Date transactionDateTime)
      The date and time of the last transaction for this account.
    • setFailureReason

      public void setFailureReason(String failureReason)
      SOFT/HARD Failures reason codes for the PaymentProcessor
    • setLastPaymentAccountInProcess

      public void setLastPaymentAccountInProcess(boolean isLastPaymentAccountInProcess)
      This returns true if last PaymentAccount is in the BillingJob process and have at least one PaymentAccount which is in SOFT_FAILURE
    • setPaymentAccountIdsWithSoftFailure

      public void setPaymentAccountIdsWithSoftFailure(List<String> paymentAccountIdsWithSoftFailure)
      This have all the PaymentAccountIds which are in SOFT_FAILURE if the isLastPaymentAccountInProcess is true
    • 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