Class TransactionWebhookPayload
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.messaging.transactionwebhook.TransactionWebhookPayload
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.Securable,Serializable
public class TransactionWebhookPayload
extends Object
implements com.broadleafcommerce.common.messaging.Securable, Serializable
A message representing a request to be sent if the
PaymentTransaction was updated via
payment webhook request.- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanjavax.money.MonetaryAmountgetId()The id of this payment.The tenant id that the payment transaction belongs to.getToken()A JWT token that can be verified for authenticity and that contains claims about the messages originating user that can be validated for suitability of consumption in the current context.getType()inthashCode()voidsetAmount(javax.money.MonetaryAmount amount) voidsetFailureType(String failureType) voidsetGatewayResponseCode(String gatewayResponseCode) voidvoidsetParentSourceEntityId(String parentSourceEntityId) voidsetParentSourceEntityType(String parentSourceEntityType) voidsetParentTransactionId(String parentTransactionId) voidsetPaymentId(String paymentId) The id of this payment.voidsetRequestId(String requestId) voidvoidsetSourceEntityId(String sourceEntityId) voidsetSourceEntityType(String sourceEntityType) voidvoidsetTenantId(String tenantId) The tenant id that the payment transaction belongs to.voidA JWT token that can be verified for authenticity and that contains claims about the messages originating user that can be validated for suitability of consumption in the current context.voidsetTransactionReferenceId(String transactionReferenceId) voidtoString()
-
Constructor Details
-
TransactionWebhookPayload
public TransactionWebhookPayload()
-
-
Method Details
-
getId
- See Also:
-
getType
- See Also:
-
getTransactionReferenceId
-
getRequestId
- See Also:
-
getStatus
- See Also:
-
getAmount
public javax.money.MonetaryAmount getAmount()- See Also:
-
getPaymentId
The id of this payment.- Returns:
- The id of this payment.
-
getParentTransactionId
-
getSource
- See Also:
-
getParentSourceEntityType
-
getParentSourceEntityId
-
getSourceEntityType
- See Also:
-
getSourceEntityId
- See Also:
-
getFailureType
- See Also:
-
getGatewayResponseCode
-
getTenantId
The tenant id that the payment transaction belongs to.- Returns:
- The tenant id value.
-
getToken
A JWT token that can be verified for authenticity and that contains claims about the messages originating user that can be validated for suitability of consumption in the current context.- Specified by:
getTokenin interfacecom.broadleafcommerce.common.messaging.Securable- Returns:
- A Base64 encoded JWT token
-
setId
- See Also:
-
setType
- See Also:
-
setTransactionReferenceId
-
setRequestId
- See Also:
-
setStatus
- See Also:
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount) - See Also:
-
setPaymentId
The id of this payment.- Parameters:
paymentId- The id of this payment.
-
setParentTransactionId
-
setSource
- See Also:
-
setParentSourceEntityType
-
setParentSourceEntityId
-
setSourceEntityType
- See Also:
-
setSourceEntityId
- See Also:
-
setFailureType
- See Also:
-
setGatewayResponseCode
-
setTenantId
The tenant id that the payment transaction belongs to.- Parameters:
tenantId- the tenant id value.
-
setToken
A JWT token that can be verified for authenticity and that contains claims about the messages originating user that can be validated for suitability of consumption in the current context.- Specified by:
setTokenin interfacecom.broadleafcommerce.common.messaging.Securable- Parameters:
token- A Base64 encoded JWT token
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-