Class TransactionResultEvent
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.messaging.transactionwebhook.TransactionResultEvent
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfromPaymentTransaction(PaymentTransaction transaction) Miscellaneous attributes that can be added to this payload in order to provide more information.javax.money.MonetaryAmountjavax.money.MonetaryAmountcom.broadleafcommerce.data.tracking.core.context.ContextInfoTheContextInfoderived from the original request containing tenant and sandbox info.javax.money.CurrencyUnitjavax.money.MonetaryAmountjavax.money.MonetaryAmountgetId()javax.money.MonetaryAmountcom.broadleafcommerce.paymentgateway.domain.NextActionThe payment in the relationship.The payment transaction's id.javax.money.MonetaryAmountjavax.money.MonetaryAmountgetType()inthashCode()booleanbooleanbooleanWhether the transaction required external interaction (3DS or HPP).voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Miscellaneous attributes that can be added to this payload in order to provide more information.voidsetAdjustmentsTotal(javax.money.MonetaryAmount adjustmentsTotal) voidsetAmount(javax.money.MonetaryAmount amount) voidsetAttributes(Map<String, String> attributes) voidsetContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info.voidsetDateRecorded(Instant dateRecorded) voidsetFailureType(String failureType) voidsetFeesTotal(javax.money.MonetaryAmount feesTotal) voidsetFlaggedForManualReview(boolean flaggedForManualReview) voidsetFulfillmentTotal(javax.money.MonetaryAmount fulfillmentTotal) voidsetGatewayResponseCode(String gatewayResponseCode) voidsetGatewayTransactionId(String gatewayTransactionId) voidsetGatewayTransactionType(String gatewayTransactionType) voidvoidsetIncludedTaxTotal(javax.money.MonetaryAmount includedTaxTotal) voidsetIndeterminateResult(boolean indeterminateResult) voidsetManagementState(String managementState) voidsetManagementStateReason(String managementStateReason) voidsetManualReviewResult(String manualReviewResult) voidsetManualReviewResultReason(String manualReviewResultReason) voidsetNextAction(com.broadleafcommerce.paymentgateway.domain.NextAction nextAction) voidsetParentSourceEntityId(String parentSourceEntityId) voidsetParentSourceEntityType(String parentSourceEntityType) voidsetParentTransactionId(String parentTransactionId) voidsetPaymentId(String paymentId) voidsetPaymentRef(PaymentRef paymentRef) The payment in the relationship.voidsetPaymentTransactionRef(PaymentTransactionRef paymentTransactionRef) The payment transaction's id.voidsetPreviousRequestIds(List<String> previousRequestIds) voidsetRequestId(String requestId) voidvoidsetSourceEntityId(String sourceEntityId) voidsetSourceEntityType(String sourceEntityType) voidvoidsetSubtotal(javax.money.MonetaryAmount subtotal) voidsetTaxTotal(javax.money.MonetaryAmount taxTotal) voidsetTransactionReferenceId(String transactionReferenceId) voidsetTransactionRequiredExternalInteraction(boolean transactionRequiredExternalInteraction) Whether the transaction required external interaction (3DS or HPP).voidtoString()boolean
-
Constructor Details
-
TransactionResultEvent
public TransactionResultEvent()
-
-
Method Details
-
getApplicationId
-
getTenantId
-
getPaymentTransactionRef
The payment transaction's id.- Returns:
- The payment transaction's id.
-
getPaymentRef
The payment in the relationship.- Returns:
- The payment in the relationship.
-
isTransactionRequiredExternalInteraction
public boolean isTransactionRequiredExternalInteraction()Whether the transaction required external interaction (3DS or HPP).- Returns:
- Whether the transaction required external interaction (3DS or HPP).
-
getContextInfo
public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo()TheContextInfoderived from the original request containing tenant and sandbox info.- Returns:
- The
ContextInfoderived from the original request
-
getAdditionalAttributes
Miscellaneous attributes that can be added to this payload in order to provide more information. Note, it is recommended to not add any sensitive information in these attributes.- Returns:
- Miscellaneous attributes that can be added to this payload.
-
setPaymentTransactionRef
The payment transaction's id.- Parameters:
id- The payment transaction's id.
-
setPaymentRef
The payment in the relationship.- Parameters:
paymentRef- The payment in the relationship.
-
setTransactionRequiredExternalInteraction
public void setTransactionRequiredExternalInteraction(boolean transactionRequiredExternalInteraction) Whether the transaction required external interaction (3DS or HPP).- Parameters:
transactionRequiredExternalInteraction- Whether the transaction required external interaction (3DS or HPP).
-
setContextInfo
public void setContextInfo(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TheContextInfoderived from the original request containing tenant and sandbox info. -
setAdditionalAttributes
Miscellaneous attributes that can be added to this payload in order to provide more information. Note, it is recommended to not add any sensitive information in these attributes.- Parameters:
additionalAttributes- Miscellaneous attributes that can be added to this payload.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
wasSuccessful
public boolean wasSuccessful() -
getCurrency
public javax.money.CurrencyUnit getCurrency() -
fromPaymentTransaction
-
getId
-
getParentTransactionId
-
getPaymentId
-
getRequestId
-
getPreviousRequestIds
-
getTransactionReferenceId
-
getGatewayTransactionId
-
getType
-
getGatewayTransactionType
-
getStatus
-
getGatewayResponseCode
-
getFailureType
-
getAmount
public javax.money.MonetaryAmount getAmount() -
getSubtotal
public javax.money.MonetaryAmount getSubtotal() -
getAdjustmentsTotal
public javax.money.MonetaryAmount getAdjustmentsTotal() -
getFulfillmentTotal
public javax.money.MonetaryAmount getFulfillmentTotal() -
getFeesTotal
public javax.money.MonetaryAmount getFeesTotal() -
getTaxTotal
public javax.money.MonetaryAmount getTaxTotal() -
getIncludedTaxTotal
public javax.money.MonetaryAmount getIncludedTaxTotal() -
getSource
-
getSourceEntityType
-
getSourceEntityId
-
getParentSourceEntityType
-
getParentSourceEntityId
-
getManagementState
-
getManagementStateReason
-
isFlaggedForManualReview
public boolean isFlaggedForManualReview() -
getManualReviewResult
-
getManualReviewResultReason
-
getDateRecorded
-
isIndeterminateResult
public boolean isIndeterminateResult() -
getNextAction
public com.broadleafcommerce.paymentgateway.domain.NextAction getNextAction() -
getAttributes
-
setId
-
setParentTransactionId
-
setPaymentId
-
setRequestId
-
setPreviousRequestIds
-
setTransactionReferenceId
-
setGatewayTransactionId
-
setType
-
setGatewayTransactionType
-
setStatus
-
setGatewayResponseCode
-
setFailureType
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount) -
setSubtotal
public void setSubtotal(javax.money.MonetaryAmount subtotal) -
setAdjustmentsTotal
public void setAdjustmentsTotal(javax.money.MonetaryAmount adjustmentsTotal) -
setFulfillmentTotal
public void setFulfillmentTotal(javax.money.MonetaryAmount fulfillmentTotal) -
setFeesTotal
public void setFeesTotal(javax.money.MonetaryAmount feesTotal) -
setTaxTotal
public void setTaxTotal(javax.money.MonetaryAmount taxTotal) -
setIncludedTaxTotal
public void setIncludedTaxTotal(javax.money.MonetaryAmount includedTaxTotal) -
setSource
-
setSourceEntityType
-
setSourceEntityId
-
setParentSourceEntityType
-
setParentSourceEntityId
-
setManagementState
-
setManagementStateReason
-
setFlaggedForManualReview
public void setFlaggedForManualReview(boolean flaggedForManualReview) -
setManualReviewResult
-
setManualReviewResultReason
-
setDateRecorded
-
setIndeterminateResult
public void setIndeterminateResult(boolean indeterminateResult) -
setNextAction
public void setNextAction(com.broadleafcommerce.paymentgateway.domain.NextAction nextAction) -
setAttributes
-