Class TabbyCheckoutSession

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

public class TabbyCheckoutSession extends Object implements Serializable
The Tabby Checkout session.
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • TabbyCheckoutSession

      public TabbyCheckoutSession()
  • Method Details

    • getId

      public String getId()
      Unique identifier for the checkout Session, assigned by Tabby.
    • getConfiguration

      public TabbySessionConfiguration getConfiguration()
      The Tabby Checkout session configuration.
    • getPayment

      public TabbyPayment getPayment()
      The Tabby payment.
    • getStatus

      public String getStatus()
      Status of the current session. It's ok to redirect customer when session is created or approved.
      See Also:
    • isCreateToken

      public boolean isCreateToken()
      Optional, used for Tokenized Checkout flow only with the Account Manager confirmation. Pass true if you want to get token at the end of checkout session. This field will be read only when authorization was made using secret_key.
    • getToken

      public String getToken()
      If you already have token, you can pass it there. This field will be read only when authorization was made using secret_key. In the response, this field will be filled with token value, that you can use for Tokenized Payments.
    • getMerchantUrls

      public TabbyCheckoutSession.TabbyMerchantUrls getMerchantUrls()
      Used for redirecting the customer after the tabby HPP flow. Required for Web integration, optional for Mobile App integration.
    • getLang

      public String getLang()
      Session language, used to launch HPP with desired language.

      Enum: "ar" "en"

    • getMerchant

      public TabbyCheckoutSession.TabbyMerchant getMerchant()
    • getMerchantCode

      public String getMerchantCode()
      The merchant code.
    • setId

      public void setId(String id)
      Unique identifier for the checkout Session, assigned by Tabby.
    • setConfiguration

      public void setConfiguration(TabbySessionConfiguration configuration)
      The Tabby Checkout session configuration.
    • setPayment

      public void setPayment(TabbyPayment payment)
      The Tabby payment.
    • setStatus

      public void setStatus(String status)
      Status of the current session. It's ok to redirect customer when session is created or approved.
      See Also:
    • setCreateToken

      public void setCreateToken(boolean createToken)
      Optional, used for Tokenized Checkout flow only with the Account Manager confirmation. Pass true if you want to get token at the end of checkout session. This field will be read only when authorization was made using secret_key.
    • setToken

      public void setToken(String token)
      If you already have token, you can pass it there. This field will be read only when authorization was made using secret_key. In the response, this field will be filled with token value, that you can use for Tokenized Payments.
    • setMerchantUrls

      public void setMerchantUrls(TabbyCheckoutSession.TabbyMerchantUrls merchantUrls)
      Used for redirecting the customer after the tabby HPP flow. Required for Web integration, optional for Mobile App integration.
    • setLang

      public void setLang(String lang)
      Session language, used to launch HPP with desired language.

      Enum: "ar" "en"

    • setMerchant

      public void setMerchant(TabbyCheckoutSession.TabbyMerchant merchant)
    • setMerchantCode

      public void setMerchantCode(String merchantCode)
      The merchant code.
    • 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