Class TransactionWithExecutableAmount

java.lang.Object
com.broadleafcommerce.paymenttransaction.service.utils.TransactionWithExecutableAmount
All Implemented Interfaces:
Serializable

public class TransactionWithExecutableAmount extends Object implements Serializable
A data structure to keep track of a PaymentTransaction and its executable amount.
See Also:
  • Constructor Details

    • TransactionWithExecutableAmount

      public TransactionWithExecutableAmount()
  • Method Details

    • getTransaction

      public PaymentTransaction getTransaction()
      The PaymentTransaction to keep track of.
      Returns:
      The PaymentTransaction to keep track of.
    • getExecutableAmount

      public javax.money.MonetaryAmount getExecutableAmount()
      Amount that is executable for the transaction type.
      Returns:
      Amount that is executable for the transaction type.
    • setTransaction

      public void setTransaction(PaymentTransaction transaction)
      The PaymentTransaction to keep track of.
      Parameters:
      transaction - The PaymentTransaction to keep track of.
    • setExecutableAmount

      public void setExecutableAmount(javax.money.MonetaryAmount executableAmount)
      Amount that is executable for the transaction type.
      Parameters:
      executableAmount - Amount that is executable for the transaction type.
    • 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