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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.money.MonetaryAmount
getId()
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()
int
hashCode()
void
setAmount
(javax.money.MonetaryAmount amount) void
setFailureType
(String failureType) void
setGatewayResponseCode
(String gatewayResponseCode) void
void
setParentSourceEntityId
(String parentSourceEntityId) void
setParentSourceEntityType
(String parentSourceEntityType) void
setParentTransactionId
(String parentTransactionId) void
setPaymentId
(String paymentId) The id of this payment.void
setRequestId
(String requestId) void
void
setSourceEntityId
(String sourceEntityId) void
setSourceEntityType
(String sourceEntityType) void
void
setTenantId
(String tenantId) The tenant id that the payment transaction belongs to.void
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.void
setTransactionReferenceId
(String transactionReferenceId) void
toString()
-
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:
getToken
in 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:
setToken
in interfacecom.broadleafcommerce.common.messaging.Securable
- Parameters:
token
- A Base64 encoded JWT token
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-