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 TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanTotal 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.inthashCode()booleanisTest()Indicates whether this is a test payment (created using the Test API keys or Production API Keys).voidTotal payment amount, including tax, shipping and any discounts.voidsetAttachment(TabbyAttachment attachment) Extra data (booking info, insurance, flight reservations, ...) as serialized JSONvoidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetBuyer(TabbyBuyer buyer) voidsetBuyerHistory(TabbyBuyerHistory buyerHistory) voidsetCaptures(List<TabbyPaymentCapture> captures) voidsetCreatedAt(String createdAt) Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format.voidsetCurrency(String currency) ISO 4217 currency code for the payment amount.voidsetDescription(String description) voidsetExpiresAt(String expiresAt) Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format.voidUnique identifier for the payment (UUID), assigned by Tabby.voidMerchant-defined data about the payment.voidsetOrder(TabbyOrder order) voidsetOrderHistory(List<TabbyOrderHistory> orderHistory) voidsetRefunds(List<TabbyPaymentRefund> refunds) voidsetShippingAddress(TabbyShippingAddress shippingAddress) voidCurrent status of this payment object.voidsetTest(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
-