Class TabbyPayment
java.lang.Object
com.broadleafcommerce.tabby.domain.TabbyPayment
- All Implemented Interfaces:
Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
Total payment amount, including tax, shipping and any discounts.Extra data (booking info, insurance, flight reservations, ...) as serialized JSONReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.getBuyer()
Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format.ISO 4217 currency code for the payment amount.Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format.getId()
Unique identifier for the payment (UUID), assigned by Tabby.getMeta()
Merchant-defined data about the payment.getOrder()
Current status of this payment object.int
hashCode()
boolean
isTest()
Indicates whether this is a test payment (created using the Test API keys or Production API Keys).void
Total payment amount, including tax, shipping and any discounts.void
setAttachment
(TabbyAttachment attachment) Extra data (booking info, insurance, flight reservations, ...) as serialized JSONvoid
setAttributes
(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.void
setBuyer
(TabbyBuyer buyer) void
setBuyerHistory
(TabbyBuyerHistory buyerHistory) void
setCaptures
(List<TabbyPaymentCapture> captures) void
setCreatedAt
(String createdAt) Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format.void
setCurrency
(String currency) ISO 4217 currency code for the payment amount.void
setDescription
(String description) void
setExpiresAt
(String expiresAt) Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format.void
Unique identifier for the payment (UUID), assigned by Tabby.void
Merchant-defined data about the payment.void
setOrder
(TabbyOrder order) void
setOrderHistory
(List<TabbyOrderHistory> orderHistory) void
setRefunds
(List<TabbyPaymentRefund> refunds) void
setShippingAddress
(TabbyShippingAddress shippingAddress) void
Current status of this payment object.void
setTest
(boolean isTest) Indicates whether this is a test payment (created using the Test API keys or Production API Keys).toString()
-
Constructor Details
-
TabbyPayment
public TabbyPayment()
-
-
Method Details
-
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name
- Name of the additional attributevalue
- Value of the additional attribute
-
getAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getId
Unique identifier for the payment (UUID), assigned by Tabby. -
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. -
getStatus
Current status of this payment object. The payment for a new session has Created staus. A successful payment that was approved by Tabby has a status of AUTHORIZED. A payment that was successfully captured and closed has a status of CLOSED. A payment which was rejected has a status of Rejected. A payment which status wasn't updated within the session lifetime (20 minutes by default) plus payment confirmation time (up to 10 minutes) - within 30 minutes, has a status of Expired.- See Also:
-
isTest
public boolean isTest()Indicates whether this is a test payment (created using the Test API keys or Production API Keys). -
getAmount
Total payment amount, including tax, shipping and any discounts. Allows to send up to 2 decimals for AED, SAR, QAR; up to 3 decimals for KWD and BHD. -
getCurrency
ISO 4217 currency code for the payment amount. Default: "AED".Enum: "AED" "SAR" "KWD" "BHD" "QAR"
-
getDescription
-
getBuyer
-
getShippingAddress
-
getOrder
-
getCaptures
-
getRefunds
-
getBuyerHistory
-
getOrderHistory
-
getMeta
Merchant-defined data about the payment. This field is a key-value map. -
getAttachment
Extra data (booking info, insurance, flight reservations, ...) as serialized JSON -
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setId
Unique identifier for the payment (UUID), assigned by Tabby. -
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. -
setStatus
Current status of this payment object. The payment for a new session has Created staus. A successful payment that was approved by Tabby has a status of AUTHORIZED. A payment that was successfully captured and closed has a status of CLOSED. A payment which was rejected has a status of Rejected. A payment which status wasn't updated within the session lifetime (20 minutes by default) plus payment confirmation time (up to 10 minutes) - within 30 minutes, has a status of Expired.- See Also:
-
setTest
public void setTest(boolean isTest) Indicates whether this is a test payment (created using the Test API keys or Production API Keys). -
setAmount
Total payment amount, including tax, shipping and any discounts. Allows to send up to 2 decimals for AED, SAR, QAR; up to 3 decimals for KWD and BHD. -
setCurrency
ISO 4217 currency code for the payment amount. Default: "AED".Enum: "AED" "SAR" "KWD" "BHD" "QAR"
-
setDescription
-
setBuyer
-
setShippingAddress
-
setOrder
-
setCaptures
-
setRefunds
-
setBuyerHistory
-
setOrderHistory
-
setMeta
Merchant-defined data about the payment. This field is a key-value map. -
setAttachment
Extra data (booking info, insurance, flight reservations, ...) as serialized JSON -
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-