Class CreateSessionRequest


  • public class CreateSessionRequest
    extends Object
    CreateSessionRequest
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object o)
      Return true if this CreateSessionRequest object is equal to o.
      static CreateSessionRequest fromJson​(String jsonString)
      Create an instance of CreateSessionRequest given an JSON string
      Map<String,​Object> getExplicitNulls()
      Returns a map of properties to be merged into the JSON payload as explicit null values.
      String getMerchantAccount()
      The unique identifier of your merchant account.
      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`.
      String getStore()
      The unique identifier of the store that you want to process transactions for.
      int hashCode()  
      CreateSessionRequest includeNullValues​(boolean includeNullValues)
      Configures whether null values are explicitly serialized in the JSON payload.
      boolean isIncludeNullValues()
      Returns whether null values are explicitly serialized in the JSON payload.
      CreateSessionRequest merchantAccount​(String merchantAccount)
      The unique identifier of your merchant account.
      void setIncludeNullValues​(boolean includeNullValues)
      Sets whether null values should be explicitly serialized in the JSON payload.
      void setMerchantAccount​(String merchantAccount)
      The unique identifier of your merchant account.
      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`.
      void setStore​(String store)
      The unique identifier of the store that you want to process transactions for.
      CreateSessionRequest setupToken​(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`.
      CreateSessionRequest store​(String store)
      The unique identifier of the store that you want to process transactions for.
      String toJson()
      Convert an instance of CreateSessionRequest to an JSON string
      String toString()  
    • Constructor Detail

      • CreateSessionRequest

        public CreateSessionRequest()
    • Method Detail

      • merchantAccount

        public CreateSessionRequest merchantAccount​(String merchantAccount)
        The unique identifier of your merchant account.
        Parameters:
        merchantAccount - The unique identifier of your merchant account.
        Returns:
        the current CreateSessionRequest instance, allowing for method chaining
      • getMerchantAccount

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

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

        public CreateSessionRequest setupToken​(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 - 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:
        the current CreateSessionRequest instance, allowing for method chaining
      • 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 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`.
      • 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 - 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`.
      • store

        public CreateSessionRequest store​(String store)
        The unique identifier of the store that you want to process transactions for.
        Parameters:
        store - The unique identifier of the store that you want to process transactions for.
        Returns:
        the current CreateSessionRequest instance, allowing for method chaining
      • getStore

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

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

        public CreateSessionRequest includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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