Class CreateSessionRequest


  • public class CreateSessionRequest
    extends Object
    CreateSessionRequest
    • Constructor Detail

      • CreateSessionRequest

        public CreateSessionRequest()
    • Method Detail

      • getMerchantAccount

        public String getMerchantAccount()
        The unique identifier of your merchant account.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
        The unique identifier of your merchant account.
        Parameters:
        merchantAccount -
      • getSetupToken

        public String getSetupToken()
        The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`.
        Returns:
        setupToken
      • setSetupToken

        public void setSetupToken​(String setupToken)
        The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`.
        Parameters:
        setupToken -
      • getStore

        public String getStore()
        The unique identifier of the store that you want to process transactions for.
        Returns:
        store
      • setStore

        public void setStore​(String store)
        The unique identifier of the store that you want to process transactions for.
        Parameters:
        store -
      • equals

        public boolean equals​(Object o)
        Return true if this CreateSessionRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static CreateSessionRequest fromJson​(String jsonString)
                                             throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CreateSessionRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateSessionRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CreateSessionRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CreateSessionRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException