Class MerchantAccount


  • public class MerchantAccount
    extends Object
    MerchantAccount
    • Constructor Detail

      • MerchantAccount

        public MerchantAccount()
    • Method Detail

      • addInStoreTerminalsItem

        public MerchantAccount addInStoreTerminalsItem​(String inStoreTerminalsItem)
      • getInStoreTerminals

        public List<String> getInStoreTerminals()
        List of terminals assigned to this merchant account as in-store terminals. This means that the terminal is ready to be boarded, or is already boarded.
        Returns:
        inStoreTerminals
      • setInStoreTerminals

        public void setInStoreTerminals​(List<String> inStoreTerminals)
      • addInventoryTerminalsItem

        public MerchantAccount addInventoryTerminalsItem​(String inventoryTerminalsItem)
      • getInventoryTerminals

        public List<String> getInventoryTerminals()
        List of terminals assigned to the inventory of this merchant account.
        Returns:
        inventoryTerminals
      • setInventoryTerminals

        public void setInventoryTerminals​(List<String> inventoryTerminals)
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • getStores

        public List<Store> getStores()
        Array of stores under this merchant account.
        Returns:
        stores
      • setStores

        public void setStores​(List<Store> stores)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to MerchantAccount
      • fromJson

        public static MerchantAccount fromJson​(String jsonString)
                                        throws IOException
        Create an instance of MerchantAccount given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of MerchantAccount
        Throws:
        IOException - if the JSON string is invalid with respect to MerchantAccount
      • toJson

        public String toJson()
        Convert an instance of MerchantAccount to an JSON string
        Returns:
        JSON string