Class DefaultPaymentRefundService.PaymentWithRefundableAmount

java.lang.Object
com.broadleafcommerce.orderoperation.service.payment.DefaultPaymentRefundService.PaymentWithRefundableAmount
Enclosing class:
DefaultPaymentRefundService

public static class DefaultPaymentRefundService.PaymentWithRefundableAmount extends Object
An intermediary data structure used internally by DefaultPaymentRefundService to keep track of a refundable payment on an Order and the non-reversed amount that is actually available for refund on it.
  • Constructor Details

    • PaymentWithRefundableAmount

      public PaymentWithRefundableAmount()
  • Method Details

    • getPaymentId

      public String getPaymentId()
    • getPayment

      public PaymentSummary getPayment()
      A payment that exists on an Order that has captured some amount that can be used for a refund.
    • getAmountAvailableForRefund

      public javax.money.MonetaryAmount getAmountAvailableForRefund()
      The actual non-reversed amount that is available for refund from getPayment().
    • setPayment

      public void setPayment(PaymentSummary payment)
      A payment that exists on an Order that has captured some amount that can be used for a refund.
    • setAmountAvailableForRefund

      public void setAmountAvailableForRefund(javax.money.MonetaryAmount amountAvailableForRefund)
      The actual non-reversed amount that is available for refund from getPayment().
    • 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