Class PaymentDistributionDto
java.lang.Object
com.broadleafcommerce.orderoperation.domain.payment.PaymentDistributionDto
- All Implemented Interfaces:
Serializable
The DTO used to distribute a
MonetaryAmount
across different payments based on defined
ratios.- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Contains the additional information about this payment.A list ofExecutablePayments
to distribute thetotalAmountToDistribute
across.List<com.broadleafcommerce.order.client.domain.payment.PaymentDistributionDetail>
A list ofPaymentDistributionDetails
specifying the details of the distribution ratios.javax.money.MonetaryAmount
The totalMonetaryAmount
to distribute proportionally across different payments.int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Contains the additional information about this payment.void
setExecutablePayments
(List<ExecutablePayment> executablePayments) A list ofExecutablePayments
to distribute thetotalAmountToDistribute
across.void
setPaymentDistributionDetails
(List<com.broadleafcommerce.order.client.domain.payment.PaymentDistributionDetail> paymentDistributionDetails) A list ofPaymentDistributionDetails
specifying the details of the distribution ratios.void
setTotalAmountToDistribute
(javax.money.MonetaryAmount totalAmountToDistribute) The totalMonetaryAmount
to distribute proportionally across different payments.toString()
-
Constructor Details
-
PaymentDistributionDto
public PaymentDistributionDto()
-
-
Method Details
-
getTotalAmountToDistribute
public javax.money.MonetaryAmount getTotalAmountToDistribute()The totalMonetaryAmount
to distribute proportionally across different payments. -
getExecutablePayments
A list ofExecutablePayments
to distribute thetotalAmountToDistribute
across. -
getPaymentDistributionDetails
public List<com.broadleafcommerce.order.client.domain.payment.PaymentDistributionDetail> getPaymentDistributionDetails()A list ofPaymentDistributionDetails
specifying the details of the distribution ratios. -
getAdditionalAttributes
Contains the additional information about this payment.- Returns:
- the map with the additional information about this payment
-
setTotalAmountToDistribute
public void setTotalAmountToDistribute(javax.money.MonetaryAmount totalAmountToDistribute) The totalMonetaryAmount
to distribute proportionally across different payments. -
setExecutablePayments
A list ofExecutablePayments
to distribute thetotalAmountToDistribute
across. -
setPaymentDistributionDetails
public void setPaymentDistributionDetails(List<com.broadleafcommerce.order.client.domain.payment.PaymentDistributionDetail> paymentDistributionDetails) A list ofPaymentDistributionDetails
specifying the details of the distribution ratios. -
setAdditionalAttributes
Contains the additional information about this payment.- Parameters:
additionalAttributes
- the map with the additional information about this payment
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-