Class TabbyCapturePaymentRequest

java.lang.Object
com.broadleafcommerce.tabby.domain.TabbyCapturePaymentRequest
All Implemented Interfaces:
Serializable

public class TabbyCapturePaymentRequest extends Object implements Serializable
The request data to capture the Tabby payment.
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • TabbyCapturePaymentRequest

      public TabbyCapturePaymentRequest()
  • Method Details

    • getAmount

      public String getAmount()
      Total payment amount captured, including tax, shipping, and excluding any discounts. Allows to send up to 2 decimals for AED and SAR, QAR and up to 3 decimals for KWD and BHD. Defaults to "0.00".
    • getReferenceId

      public String getReferenceId()
      Idempotency key. Used to avoid similar capture requests.
    • getTaxAmount

      public String getTaxAmount()
      Tax amount captured. Defaults to "0.00".
    • getShippingAmount

      public String getShippingAmount()
      Shipping cost captured. Defaults to "0.00".
    • getDiscountAmount

      public String getDiscountAmount()
      Total discount for the order. Should be positive or zero. Defaults to "0.00".
    • getCreatedAt

      public String getCreatedAt()
      Date and time the capture was created, in UTC, and displayed in ISO 8601 datetime format, assigned by Tabby.
    • getItems

      public List<TabbyOrderItem> getItems()
      Array of objects representing the order items being captured.
    • setAmount

      public void setAmount(String amount)
      Total payment amount captured, including tax, shipping, and excluding any discounts. Allows to send up to 2 decimals for AED and SAR, QAR and up to 3 decimals for KWD and BHD. Defaults to "0.00".
    • setReferenceId

      public void setReferenceId(String referenceId)
      Idempotency key. Used to avoid similar capture requests.
    • setTaxAmount

      public void setTaxAmount(String taxAmount)
      Tax amount captured. Defaults to "0.00".
    • setShippingAmount

      public void setShippingAmount(String shippingAmount)
      Shipping cost captured. Defaults to "0.00".
    • setDiscountAmount

      public void setDiscountAmount(String discountAmount)
      Total discount for the order. Should be positive or zero. Defaults to "0.00".
    • setCreatedAt

      public void setCreatedAt(String createdAt)
      Date and time the capture was created, in UTC, and displayed in ISO 8601 datetime format, assigned by Tabby.
    • setItems

      public void setItems(List<TabbyOrderItem> items)
      Array of objects representing the order items being captured.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object