Class DefaultPaymentRefundService.PaymentWithRefundableAmount
java.lang.Object
com.broadleafcommerce.orderoperation.service.payment.DefaultPaymentRefundService.PaymentWithRefundableAmount
- Enclosing class:
- DefaultPaymentRefundService
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountThe actual non-reversed amount that is available for refund fromgetPayment().A payment that exists on anOrderthat has captured some amount that can be used for a refund.inthashCode()voidsetAmountAvailableForRefund(javax.money.MonetaryAmount amountAvailableForRefund) The actual non-reversed amount that is available for refund fromgetPayment().voidsetPayment(PaymentSummary payment) A payment that exists on anOrderthat has captured some amount that can be used for a refund.toString()
-
Constructor Details
-
PaymentWithRefundableAmount
public PaymentWithRefundableAmount()
-
-
Method Details
-
getPaymentId
-
getPayment
A payment that exists on anOrderthat 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 fromgetPayment(). -
setPayment
A payment that exists on anOrderthat 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 fromgetPayment(). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-