Class PaymentExecutionRequest
java.lang.Object
com.broadleafcommerce.orderoperation.domain.payment.PaymentExecutionRequest
- All Implemented Interfaces:
Serializable
The domain that represent how much to execute against which payment, as well as its transaction
type.
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanContains the additional information about this payment.javax.money.MonetaryAmountjavax.money.CurrencyUnitThe currency gathered fromgetAmount()A collection ofTransactionLineItemsused to describe the items that are related to the requested transaction.The id of this payment.The amount for which this payment is executableThe type of transaction that is to be executed.inthashCode()voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Contains the additional information about this payment.voidsetAmount(javax.money.MonetaryAmount amount) voidsetLineItems(List<TransactionLineItem> lineItems) A collection ofTransactionLineItemsused to describe the items that are related to the requested transaction.voidsetPayment(PaymentSummary payment) The id of this payment.voidsetTransactionAmountDetails(TransactionAmountDetails transactionAmountDetails) The amount for which this payment is executablevoidsetTransactionType(String transactionType) The type of transaction that is to be executed.toString()
-
Constructor Details
-
PaymentExecutionRequest
public PaymentExecutionRequest()
-
-
Method Details
-
getCurrency
@Nullable public javax.money.CurrencyUnit getCurrency()The currency gathered fromgetAmount()- Returns:
- The currency gathered from the amount
-
getPaymentId
-
getAmount
@Nullable public javax.money.MonetaryAmount getAmount() -
setAmount
public void setAmount(javax.money.MonetaryAmount amount) -
getPayment
The id of this payment.- Returns:
- The id of this payment.
-
getTransactionType
The type of transaction that is to be executed.- Returns:
- The type of transaction that is to be executed.
-
getTransactionAmountDetails
The amount for which this payment is executable- Returns:
- The amount for which this payment is allotted.
-
getLineItems
A collection ofTransactionLineItemsused to describe the items that are related to the requested transaction.- Returns:
- A collection of
TransactionLineItemsused to describe the items that are related to the requested transaction.
-
getAdditionalAttributes
Contains the additional information about this payment.- Returns:
- the map with the additional information about this payment
-
setPayment
The id of this payment.- Parameters:
id- The id of this payment.
-
setTransactionType
The type of transaction that is to be executed.- Parameters:
transactionType- The type of transaction that is to be executed.
-
setTransactionAmountDetails
The amount for which this payment is executable- Parameters:
amount- The amount for which this payment is allotted.
-
setLineItems
A collection ofTransactionLineItemsused to describe the items that are related to the requested transaction.- Parameters:
lineItems- A collection ofTransactionLineItemsused to describe the items that are related to the requested transaction.
-
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
-