Class PaymentTransactionDetail
java.lang.Object
com.broadleafcommerce.billing.domain.PaymentTransactionDetail
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
public class PaymentTransactionDetail
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware
This represents a single transaction's state and results.
-
Constructor Summary
ConstructorsConstructorDescriptionPaymentTransactionDetail(String id, String paymentAccountId, String paymentAccountName, String paymentAccountType, String paymentProcessor, String billingEventPaymentId, String transactionType, BigDecimal amount, Date dateProcessed, Date dateRecorded, String rawResponse, ProcessingResultEnum processingResult, String failureReason, String transactionReferenceId, String originalTransactionId, Integer billingAttemptNumber, Integer walletLoopThroughNumber, Map<@Size(max=255) String, @Size(max=2000) String> additionalFields, Integer version, PaymentFailureTypeEnum failureType, String transactionFailureCategory, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetAdditionalField(String key) Name/Value pairs of additional attributes.The monetary amount of this transactionThe number of the billing attempt that created this transaction.Reference to the relatedBillingEventPaymentcom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.The date and time this transaction was sent to the processorThe date and time the processor response was recordedReason for the transaction failure if availablePayment processor failure severity (i.e.getId()The parentPaymentTransactionDetailidentifier, typically used in aPaymentAccountProcessingTransactionType.REFUNDtransactionReference to thePaymentAccountused for the transactionDisplay name of the payment account from the user’s walletThe type of the payment account from the user’s walletCode for the payment processor used for the transaction.Result of this transactionThe raw response from the payment processorPayment transaction failure category as determined by the payment processorThis unique value is used by the processor to rule out the duplicatesTransaction type of the transactionThe number of the payment account in the billing attempt.inthashCode()voidsetAdditionalFields(Map<@Size(max=255) String, @Size(max=2000) String> additionalFields) Name/Value pairs of additional attributes.voidsetAmount(BigDecimal amount) The monetary amount of this transactionvoidsetBillingAttemptNumber(Integer billingAttemptNumber) The number of the billing attempt that created this transaction.voidsetBillingEventPaymentId(String billingEventPaymentId) Reference to the relatedBillingEventPaymentvoidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDateProcessed(Date dateProcessed) The date and time this transaction was sent to the processorvoidsetDateRecorded(Date dateRecorded) The date and time the processor response was recordedvoidsetFailureReason(String failureReason) Reason for the transaction failure if availablevoidsetFailureType(PaymentFailureTypeEnum failureType) Payment processor failure severity (i.e.voidvoidsetOriginalTransactionId(String originalTransactionId) The parentPaymentTransactionDetailidentifier, typically used in aPaymentAccountProcessingTransactionType.REFUNDtransactionvoidsetPaymentAccountId(String paymentAccountId) Reference to thePaymentAccountused for the transactionvoidsetPaymentAccountName(String paymentAccountName) Display name of the payment account from the user’s walletvoidsetPaymentAccountType(String paymentAccountType) The type of the payment account from the user’s walletvoidsetPaymentProcessor(String paymentProcessor) Code for the payment processor used for the transaction.voidsetProcessingResult(ProcessingResultEnum processingResult) Result of this transactionvoidsetRawResponse(String rawResponse) The raw response from the payment processorvoidsetTransactionFailureCategory(String transactionFailureCategory) Payment transaction failure category as determined by the payment processorvoidsetTransactionReferenceId(String transactionReferenceId) This unique value is used by the processor to rule out the duplicatesvoidsetTransactionType(String transactionType) Transaction type of the transactionvoidsetVersion(Integer version) voidsetWalletLoopThroughNumber(Integer walletLoopThroughNumber) The number of the payment account in the billing attempt.toString()
-
Constructor Details
-
PaymentTransactionDetail
public PaymentTransactionDetail() -
PaymentTransactionDetail
public PaymentTransactionDetail(String id, String paymentAccountId, String paymentAccountName, String paymentAccountType, String paymentProcessor, String billingEventPaymentId, String transactionType, BigDecimal amount, Date dateProcessed, Date dateRecorded, String rawResponse, ProcessingResultEnum processingResult, String failureReason, String transactionReferenceId, String originalTransactionId, Integer billingAttemptNumber, Integer walletLoopThroughNumber, Map<@Size(max=255) String, @Size(max=2000) String> additionalFields, Integer version, PaymentFailureTypeEnum failureType, String transactionFailureCategory, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-
-
Method Details
-
getAdditionalField
-
getId
-
getPaymentAccountId
Reference to thePaymentAccountused for the transaction -
getPaymentAccountName
Display name of the payment account from the user’s wallet -
getPaymentAccountType
The type of the payment account from the user’s wallet -
getPaymentProcessor
Code for the payment processor used for the transaction. Ex: CYBERSOURCE, PAYPAL -
getBillingEventPaymentId
Reference to the relatedBillingEventPayment -
getTransactionType
Transaction type of the transaction- See Also:
-
getAmount
The monetary amount of this transaction -
getDateProcessed
The date and time this transaction was sent to the processor -
getDateRecorded
The date and time the processor response was recorded -
getRawResponse
The raw response from the payment processor -
getProcessingResult
Result of this transaction -
getFailureReason
Reason for the transaction failure if available -
getTransactionReferenceId
This unique value is used by the processor to rule out the duplicates -
getOriginalTransactionId
The parentPaymentTransactionDetailidentifier, typically used in aPaymentAccountProcessingTransactionType.REFUNDtransaction -
getBillingAttemptNumber
The number of the billing attempt that created this transaction. One-based, first one is: 1, second one is: 2 and so on. -
getWalletLoopThroughNumber
The number of the payment account in the billing attempt. One-based, first one is: 1, second one is: 2 and so on. -
getAdditionalFields
Name/Value pairs of additional attributes. For example, can be used to store the payment processor's internal transaction id -
getVersion
-
getFailureType
Payment processor failure severity (i.e. hard or soft failure) -
getTransactionFailureCategory
Payment transaction failure category as determined by the payment processor -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
setId
-
setPaymentAccountId
Reference to thePaymentAccountused for the transaction -
setPaymentAccountName
Display name of the payment account from the user’s wallet -
setPaymentAccountType
The type of the payment account from the user’s wallet -
setPaymentProcessor
Code for the payment processor used for the transaction. Ex: CYBERSOURCE, PAYPAL -
setBillingEventPaymentId
Reference to the relatedBillingEventPayment -
setTransactionType
Transaction type of the transaction- See Also:
-
setAmount
The monetary amount of this transaction -
setDateProcessed
The date and time this transaction was sent to the processor -
setDateRecorded
The date and time the processor response was recorded -
setRawResponse
The raw response from the payment processor -
setProcessingResult
Result of this transaction -
setFailureReason
Reason for the transaction failure if available -
setTransactionReferenceId
This unique value is used by the processor to rule out the duplicates -
setOriginalTransactionId
The parentPaymentTransactionDetailidentifier, typically used in aPaymentAccountProcessingTransactionType.REFUNDtransaction -
setBillingAttemptNumber
The number of the billing attempt that created this transaction. One-based, first one is: 1, second one is: 2 and so on. -
setWalletLoopThroughNumber
The number of the payment account in the billing attempt. One-based, first one is: 1, second one is: 2 and so on. -
setAdditionalFields
Name/Value pairs of additional attributes. For example, can be used to store the payment processor's internal transaction id -
setVersion
-
setFailureType
Payment processor failure severity (i.e. hard or soft failure) -
setTransactionFailureCategory
Payment transaction failure category as determined by the payment processor -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-