Class GatewayTransactionResponse
java.lang.Object
com.broadleafcommerce.paymentgateway.domain.GatewayTransactionResponse
- All Implemented Interfaces:
Serializable
A DTO that contains information needed to save transaction data from a payment gateway.
- Author:
- mariestandeven
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbillTo()You should only call this once, as it will create a new customer if called more than once.protected booleancustomer()You should only call this once, as it will create a new customer if called more than once.booleanjavax.money.MonetaryAmountThe transaction amount that was processed by the gatewayThe application idThe billing address associated with this transactionjavax.money.CurrencyUnitThe currency gathered from thegetAmount()Any customer information that relates to this transactionThe Payment ID that this transaction is associated withThe ID of the owning entity that this transaction is associated withThe type of the owning entity that this transaction is associated withThePaymentTypethat this transaction is associated withThe raw transaction response from the gateway; contains additional properties from the gateway to be processed and saved to the payment.If shipping information is captured on the gateway, the shipping address associated with this transaction will be put hereThe tenant idThe transaction reference that is passed to the payment gateway.TheTransactionTypethat this transaction is associated withinthashCode()voidsetAmount(javax.money.MonetaryAmount amount) The transaction amount that was processed by the gatewayvoidsetApplicationId(String applicationId) The application idvoidsetBillTo(Address<GatewayTransactionResponse> billTo) The billing address associated with this transactionvoidsetCustomer(GatewayCustomer<GatewayTransactionResponse> customer) Any customer information that relates to this transactionvoidsetPaymentId(String paymentId) The Payment ID that this transaction is associated withvoidsetPaymentOwnerId(String paymentOwnerId) The ID of the owning entity that this transaction is associated withvoidsetPaymentOwnerType(String paymentOwnerType) The type of the owning entity that this transaction is associated withvoidsetPaymentType(String paymentType) ThePaymentTypethat this transaction is associated withvoidsetRawTransactionResults(Map<String, Object> rawTransactionResults) The raw transaction response from the gateway; contains additional properties from the gateway to be processed and saved to the payment.voidsetShipTo(Address<GatewayTransactionResponse> shipTo) If shipping information is captured on the gateway, the shipping address associated with this transaction will be put herevoidsetTenantId(String tenantId) The tenant idvoidsetTransactionReferenceId(String transactionReferenceId) The transaction reference that is passed to the payment gateway.voidsetTransactionType(TransactionType transactionType) TheTransactionTypethat this transaction is associated withshipTo()You should only call this once, as it will create a new customer if called more than once.toString()
-
Constructor Details
-
GatewayTransactionResponse
public GatewayTransactionResponse()
-
-
Method Details
-
customer
You should only call this once, as it will create a new customer if called more than once. Use the getter if you need to append more information later. -
billTo
You should only call this once, as it will create a new customer if called more than once. Use the getter if you need to append more information later. -
shipTo
You should only call this once, as it will create a new customer if called more than once. Use the getter if you need to append more information later. -
getCurrency
@Nullable public javax.money.CurrencyUnit getCurrency()The currency gathered from thegetAmount()- Returns:
- The currency gathered from the transaction response's amount
-
getTransactionType
TheTransactionTypethat this transaction is associated with- Returns:
- the TransactionType that this transaction is associated with
-
getTransactionReferenceId
The transaction reference that is passed to the payment gateway. This reference can be used to link the request to the gateway's record of the transaction in the case that the calling application does not receive a response from the gateway.- Returns:
- The transaction reference that is passed to the payment gateway.
-
getPaymentId
The Payment ID that this transaction is associated with- Returns:
- the Payment ID that this transaction is associated with
-
getPaymentType
ThePaymentTypethat this transaction is associated with- Returns:
- the payment type that this transaction is associated with
-
getPaymentOwnerType
The type of the owning entity that this transaction is associated with- Returns:
- the owner type that this transaction is associated with
-
getPaymentOwnerId
The ID of the owning entity that this transaction is associated with- Returns:
- the owner ID that this transaction is associated with
-
getAmount
public javax.money.MonetaryAmount getAmount()The transaction amount that was processed by the gateway- Returns:
- the transaction amount
-
getApplicationId
The application id -
getTenantId
The tenant id -
getCustomer
Any customer information that relates to this transaction- Returns:
- any customer information that relates to this transaction
-
getBillTo
The billing address associated with this transaction- Returns:
- the customer's billing address
-
getShipTo
If shipping information is captured on the gateway, the shipping address associated with this transaction will be put here- Returns:
- the customer's shipping address
-
getRawTransactionResults
The raw transaction response from the gateway; contains additional properties from the gateway to be processed and saved to the payment.- Returns:
- the raw transaction response from the gateway
-
setTransactionType
TheTransactionTypethat this transaction is associated with -
setTransactionReferenceId
The transaction reference that is passed to the payment gateway. This reference can be used to link the request to the gateway's record of the transaction in the case that the calling application does not receive a response from the gateway.- Parameters:
transactionReferenceId- The transaction reference that is passed to the payment gateway.
-
setPaymentId
The Payment ID that this transaction is associated with -
setPaymentType
ThePaymentTypethat this transaction is associated with -
setPaymentOwnerType
The type of the owning entity that this transaction is associated with -
setPaymentOwnerId
The ID of the owning entity that this transaction is associated with -
setAmount
public void setAmount(javax.money.MonetaryAmount amount) The transaction amount that was processed by the gateway -
setApplicationId
The application id -
setTenantId
The tenant id -
setCustomer
Any customer information that relates to this transaction -
setBillTo
The billing address associated with this transaction -
setShipTo
If shipping information is captured on the gateway, the shipping address associated with this transaction will be put here -
setRawTransactionResults
The raw transaction response from the gateway; contains additional properties from the gateway to be processed and saved to the payment. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-