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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Contains the additional information about this payment.javax.money.MonetaryAmount
The amount for which this payment is executablejavax.money.CurrencyUnit
The currency gathered fromgetAmount()
The id of this payment.The type of this payment like Credit Card or Gift Card.int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Contains the additional information about this payment.void
setAmount
(javax.money.MonetaryAmount amount) The amount for which this payment is executablevoid
setPayment
(PaymentSummary payment) The id of this payment.void
setTransactionType
(String transactionType) The type of this payment like Credit Card or Gift Card.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
-
getPayment
The id of this payment.- Returns:
- The id of this payment.
-
getTransactionType
The type of this payment like Credit Card or Gift Card.- Returns:
- The type of this payment like Credit Card or Gift Card.
-
getAmount
public javax.money.MonetaryAmount getAmount()The amount for which this payment is executable- Returns:
- The amount for which this payment is allotted.
-
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 this payment like Credit Card or Gift Card.- Parameters:
type
- The type of this payment like Credit Card or Gift Card.
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount) The amount for which this payment is executable- Parameters:
amount
- The amount for which this payment is allotted.
-
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
-