Class TabbyWebhookEvent
java.lang.Object
com.broadleafcommerce.tabby.domain.webhook.TabbyWebhookEvent
- All Implemented Interfaces:
Serializable
The webhook event. Tabby uses the Webhooks as one of the ways to notify you about any
payment-related or token-related events.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The payment transaction amount.If the payment is captured, the information about it will be added to this list.Date and time the payment was closed, in UTC, and displayed in ISO 8601 datetime format.Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format.The payment transaction currency.Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format.getId()
The Tabby payment ID.getOrder()
The information about the order.If the payment is refunded, the information about it will be added to this list.The status of the payment (lowercase value).int
hashCode()
boolean
Indicates whether the payment is expired or not.boolean
isTest()
Indicates whether the webhook is used in the test environment or not.void
The payment transaction amount.void
setCaptures
(List<TabbyPaymentCapture> captures) If the payment is captured, the information about it will be added to this list.void
setClosedAt
(String closedAt) Date and time the payment was closed, in UTC, and displayed in ISO 8601 datetime format.void
setCreatedAt
(String createdAt) Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format.void
setCurrency
(String currency) The payment transaction currency.void
setExpired
(boolean isExpired) Indicates whether the payment is expired or not.void
setExpiresAt
(String expiresAt) Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format.void
The Tabby payment ID.void
setOrder
(TabbyOrder order) The information about the order.void
setRefunds
(List<TabbyPaymentRefund> refunds) If the payment is refunded, the information about it will be added to this list.void
The status of the payment (lowercase value).void
setTest
(boolean isTest) Indicates whether the webhook is used in the test environment or not.toString()
-
Constructor Details
-
TabbyWebhookEvent
public TabbyWebhookEvent()
-
-
Method Details
-
getId
The Tabby payment ID. -
getCreatedAt
Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format. -
getExpiresAt
Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format. -
getClosedAt
Date and time the payment was closed, in UTC, and displayed in ISO 8601 datetime format. -
getStatus
The status of the payment (lowercase value).- Authorize. Status "authorized" - It changes the status only.
- Capture. Status "authorized" - The information about your Capture Request is added.
- Close. Status "closed" - Such parameters as "status" and "closed_at" are changed.
- Reject. Status "rejected" - It changes the status only.
- Expire (Optional). Status "expired" - Such parameters as "status", "expired_at" and "is_expired" are changed.
- Refund. Status "closed" - The information about your Refund Request is added.
- See Also:
-
isTest
public boolean isTest()Indicates whether the webhook is used in the test environment or not. -
isExpired
public boolean isExpired()Indicates whether the payment is expired or not. -
getAmount
The payment transaction amount. -
getCurrency
The payment transaction currency. -
getOrder
The information about the order. -
getCaptures
If the payment is captured, the information about it will be added to this list. -
getRefunds
If the payment is refunded, the information about it will be added to this list. -
setId
The Tabby payment ID. -
setCreatedAt
Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format. -
setExpiresAt
Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format. -
setClosedAt
Date and time the payment was closed, in UTC, and displayed in ISO 8601 datetime format. -
setStatus
The status of the payment (lowercase value).- Authorize. Status "authorized" - It changes the status only.
- Capture. Status "authorized" - The information about your Capture Request is added.
- Close. Status "closed" - Such parameters as "status" and "closed_at" are changed.
- Reject. Status "rejected" - It changes the status only.
- Expire (Optional). Status "expired" - Such parameters as "status", "expired_at" and "is_expired" are changed.
- Refund. Status "closed" - The information about your Refund Request is added.
- See Also:
-
setTest
public void setTest(boolean isTest) Indicates whether the webhook is used in the test environment or not. -
setExpired
public void setExpired(boolean isExpired) Indicates whether the payment is expired or not. -
setAmount
The payment transaction amount. -
setCurrency
The payment transaction currency. -
setOrder
The information about the order. -
setCaptures
If the payment is captured, the information about it will be added to this list. -
setRefunds
If the payment is refunded, the information about it will be added to this list. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-