Class ExecutablePayment
java.lang.Object
com.broadleafcommerce.orderoperation.domain.payment.ExecutablePayment
- All Implemented Interfaces:
Serializable
The domain that represents a
PaymentSummary with its executable amount for a transaction
type. Note: These objects are meant to describe what's possible with the payment for the
transaction type, not necessarily what will be executed against the payment. For details on what
will be executed for a given fulfillment or return action, see usages of the
PaymentExecutionRequest.- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanContains the additional information about this payment.javax.money.CurrencyUnitThe currency gathered fromgetExecutableAmount()javax.money.MonetaryAmountThe amount for which this payment is executableThe id of this payment.The executable transaction type of this payment.inthashCode()voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Contains the additional information about this payment.voidsetExecutableAmount(javax.money.MonetaryAmount executableAmount) The amount for which this payment is executablevoidsetPayment(PaymentSummary payment) The id of this payment.voidsetTransactionType(String transactionType) The executable transaction type of this payment.toString()
-
Constructor Details
-
ExecutablePayment
public ExecutablePayment()
-
-
Method Details
-
getCurrency
@Nullable public javax.money.CurrencyUnit getCurrency()The currency gathered fromgetExecutableAmount()- Returns:
- The currency gathered from the amount
-
getPaymentId
-
getPayment
The id of this payment.- Returns:
- The id of this payment.
-
getTransactionType
The executable transaction type of this payment.- Returns:
- The type of this payment like Credit Card or Gift Card.
-
getExecutableAmount
public javax.money.MonetaryAmount getExecutableAmount()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 executable transaction type of this payment.- Parameters:
type- The type of this payment like Credit Card or Gift Card.
-
setExecutableAmount
public void setExecutableAmount(javax.money.MonetaryAmount executableAmount) 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
-