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
-
Method Summary
Modifier and TypeMethodDescriptionbillTo()
You should only call this once, as it will create a new customer if called more than once.protected boolean
customer()
You should only call this once, as it will create a new customer if called more than once.boolean
javax.money.MonetaryAmount
The transaction amount that was processed by the gatewayThe application idThe billing address associated with this transactionjavax.money.CurrencyUnit
The 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 withThePaymentType
that 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.TheTransactionType
that this transaction is associated withint
hashCode()
void
setAmount
(javax.money.MonetaryAmount amount) The transaction amount that was processed by the gatewayvoid
setApplicationId
(String applicationId) The application idvoid
setBillTo
(Address<GatewayTransactionResponse> billTo) The billing address associated with this transactionvoid
setCustomer
(GatewayCustomer<GatewayTransactionResponse> customer) Any customer information that relates to this transactionvoid
setPaymentId
(String paymentId) The Payment ID that this transaction is associated withvoid
setPaymentOwnerId
(String paymentOwnerId) The ID of the owning entity that this transaction is associated withvoid
setPaymentOwnerType
(String paymentOwnerType) The type of the owning entity that this transaction is associated withvoid
setPaymentType
(String paymentType) ThePaymentType
that this transaction is associated withvoid
setRawTransactionResults
(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.void
setShipTo
(Address<GatewayTransactionResponse> shipTo) If shipping information is captured on the gateway, the shipping address associated with this transaction will be put herevoid
setTenantId
(String tenantId) The tenant idvoid
setTransactionReferenceId
(String transactionReferenceId) The transaction reference that is passed to the payment gateway.void
setTransactionType
(TransactionType transactionType) TheTransactionType
that 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
TheTransactionType
that 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
ThePaymentType
that 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
TheTransactionType
that 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
ThePaymentType
that 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
-