Class PaymentTransaction
java.lang.Object
com.broadleafcommerce.customer.service.provider.domain.PaymentTransaction
- All Implemented Interfaces:
Serializable
@Deprecated(since="1.7.2",
forRemoval=true)
public class PaymentTransaction
extends Object
implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.7.2, in favor of using PaymentTransactionServices as saved payment method
storage location.
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Map of specific attributes that have been gathered from the raw response.Deprecated, for removal: This API element is subject to removal in a future version.The timestamp when this transaction response was recordedDeprecated, for removal: This API element is subject to removal in a future version.The type of transaction failure (hard vs soft failure)Deprecated, for removal: This API element is subject to removal in a future version.The type of transaction failureDeprecated, for removal: This API element is subject to removal in a future version.The response code provided by the payment gateway which may represent a success or failuregetId()
Deprecated, for removal: This API element is subject to removal in a future version.The id of this payment transaction.Deprecated, for removal: This API element is subject to removal in a future version.The id of the parentPaymentTransaction
.Deprecated, for removal: This API element is subject to removal in a future version.The status of the transactionDeprecated, for removal: This API element is subject to removal in a future version.The transaction id known by the payment gateway.getType()
Deprecated, for removal: This API element is subject to removal in a future version.The type of this transaction (authorize, capture, refund, etc.)int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.void
setAttributes
(Map<String, String> attributes) Deprecated, for removal: This API element is subject to removal in a future version.Map of specific attributes that have been gathered from the raw response.void
setDateRecorded
(Instant dateRecorded) Deprecated, for removal: This API element is subject to removal in a future version.The timestamp when this transaction response was recordedvoid
setDeclineType
(String declineType) Deprecated, for removal: This API element is subject to removal in a future version.The type of transaction failure (hard vs soft failure)void
setFailureType
(String failureType) Deprecated, for removal: This API element is subject to removal in a future version.The type of transaction failurevoid
setGatewayResponseCode
(String gatewayResponseCode) Deprecated, for removal: This API element is subject to removal in a future version.The response code provided by the payment gateway which may represent a success or failurevoid
Deprecated, for removal: This API element is subject to removal in a future version.The id of this payment transaction.void
setParentTransactionId
(String parentTransactionId) Deprecated, for removal: This API element is subject to removal in a future version.The id of the parentPaymentTransaction
.void
Deprecated, for removal: This API element is subject to removal in a future version.The status of the transactionvoid
setTransactionReferenceId
(String transactionReferenceId) Deprecated, for removal: This API element is subject to removal in a future version.The transaction id known by the payment gateway.void
Deprecated, for removal: This API element is subject to removal in a future version.The type of this transaction (authorize, capture, refund, etc.)toString()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Whether or not this transaction was successful based ongetStatus()
.
-
Constructor Details
-
PaymentTransaction
public PaymentTransaction()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
wasSuccessful
public boolean wasSuccessful()Deprecated, for removal: This API element is subject to removal in a future version.Whether or not this transaction was successful based ongetStatus()
.- Returns:
- Whether or not this transaction was successful.
- See Also:
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.The id of this payment transaction.- Returns:
- The id of this payment transaction.
-
getType
Deprecated, for removal: This API element is subject to removal in a future version.The type of this transaction (authorize, capture, refund, etc.)- Returns:
- The type of this transaction (authorize, capture, refund, etc.)
-
getStatus
Deprecated, for removal: This API element is subject to removal in a future version.The status of the transaction- Returns:
- The status of the transaction
-
getTransactionReferenceId
Deprecated, for removal: This API element is subject to removal in a future version.The transaction id known by 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 id known by the payment gateway
-
getDateRecorded
Deprecated, for removal: This API element is subject to removal in a future version.The timestamp when this transaction response was recorded- Returns:
- The timestamp when this transaction response was recorded
-
getGatewayResponseCode
Deprecated, for removal: This API element is subject to removal in a future version.The response code provided by the payment gateway which may represent a success or failure- Returns:
- The response code provided by the payment gateway which may represent a success or failure
-
getFailureType
Deprecated, for removal: This API element is subject to removal in a future version.The type of transaction failure- Returns:
- The type of transaction failure
-
getDeclineType
Deprecated, for removal: This API element is subject to removal in a future version.The type of transaction failure (hard vs soft failure)- Returns:
- The type of transaction failure (hard vs soft failure)
-
getParentTransactionId
Deprecated, for removal: This API element is subject to removal in a future version.The id of the parentPaymentTransaction
. Necessary for operations on a payment that require something to have happened beforehand. For instance, an authorize transaction would not have a parent but a capture must have an authorize parent transaction and a refund must have a capture parent transaction. The full set of expected parent-child transaction relationships are as follows:- Child Transaction -> Parent Transaction
- Reverse Authorize -> Authorize
- Capture -> Authorize
- Refund -> Capture
- Refund -> AuthorizeAndCapture
- Returns:
- The id of the parent PaymentTransaction.
-
getAttributes
Deprecated, for removal: This API element is subject to removal in a future version.Map of specific attributes that have been gathered from the raw response. This should be used for data points that are to be used programmatically. For example, a gateway-specific transaction id that can be used to capture or refund the transaction.- Returns:
- Map of specific fields that have been gathered from the raw response
-
setId
Deprecated, for removal: This API element is subject to removal in a future version.The id of this payment transaction.- Parameters:
paymentTransactionId
- The id of this payment transaction.
-
setType
Deprecated, for removal: This API element is subject to removal in a future version.The type of this transaction (authorize, capture, refund, etc.)- Parameters:
amount
- The type of this transaction
-
setStatus
Deprecated, for removal: This API element is subject to removal in a future version.The status of the transaction- Parameters:
status
- The status of the transaction
-
setTransactionReferenceId
Deprecated, for removal: This API element is subject to removal in a future version.The transaction id known by 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 id known by the payment gateway
-
setDateRecorded
Deprecated, for removal: This API element is subject to removal in a future version.The timestamp when this transaction response was recorded- Parameters:
dateRecorded
- The timestamp when this transaction response was recorded
-
setGatewayResponseCode
Deprecated, for removal: This API element is subject to removal in a future version.The response code provided by the payment gateway which may represent a success or failure- Parameters:
gatewayResponseCode
- The response code provided by the payment gateway which may represent a success or failure
-
setFailureType
Deprecated, for removal: This API element is subject to removal in a future version.The type of transaction failure- Parameters:
failureType
- The type of transaction failure
-
setDeclineType
Deprecated, for removal: This API element is subject to removal in a future version.The type of transaction failure (hard vs soft failure)- Parameters:
failureType
- The type of transaction failure (hard vs soft failure)
-
setParentTransactionId
Deprecated, for removal: This API element is subject to removal in a future version.The id of the parentPaymentTransaction
. Necessary for operations on a payment that require something to have happened beforehand. For instance, an authorize transaction would not have a parent but a capture must have an authorize parent transaction and a refund must have a capture parent transaction. The full set of expected parent-child transaction relationships are as follows:- Child Transaction -> Parent Transaction
- Reverse Authorize -> Authorize
- Capture -> Authorize
- Refund -> Capture
- Refund -> AuthorizeAndCapture
- Parameters:
parentTransactionId
- The id of the parent PaymentTransaction.
-
setAttributes
Deprecated, for removal: This API element is subject to removal in a future version.Map of specific attributes that have been gathered from the raw response. This should be used for data points that are to be used programmatically. For example, a gateway-specific transaction id that can be used to capture or refund the transaction.- Parameters:
attributes
- Map of specific fields that have been gathered from the raw response
-
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
canEqual
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-