Class AssignTerminalsRequest


  • public class AssignTerminalsRequest
    extends Object
    AssignTerminalsRequest
    • Constructor Detail

      • AssignTerminalsRequest

        public AssignTerminalsRequest()
    • Method Detail

      • companyAccount

        public AssignTerminalsRequest companyAccount​(String companyAccount)
        Your company account. To return terminals to the company inventory, specify only this parameter and the `terminals`.
        Parameters:
        companyAccount -
        Returns:
        the current AssignTerminalsRequest instance, allowing for method chaining
      • getCompanyAccount

        public String getCompanyAccount()
        Your company account. To return terminals to the company inventory, specify only this parameter and the `terminals`.
        Returns:
        companyAccount
      • setCompanyAccount

        public void setCompanyAccount​(String companyAccount)
        Your company account. To return terminals to the company inventory, specify only this parameter and the `terminals`.
        Parameters:
        companyAccount -
      • merchantAccount

        public AssignTerminalsRequest merchantAccount​(String merchantAccount)
        Name of the merchant account. Specify this parameter to assign terminals to this merchant account or to a store under this merchant account.
        Parameters:
        merchantAccount -
        Returns:
        the current AssignTerminalsRequest instance, allowing for method chaining
      • getMerchantAccount

        public String getMerchantAccount()
        Name of the merchant account. Specify this parameter to assign terminals to this merchant account or to a store under this merchant account.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
        Name of the merchant account. Specify this parameter to assign terminals to this merchant account or to a store under this merchant account.
        Parameters:
        merchantAccount -
      • merchantInventory

        public AssignTerminalsRequest merchantInventory​(Boolean merchantInventory)
        Boolean that indicates if you are assigning the terminals to the merchant inventory. Do not use when assigning terminals to a store. Required when assigning the terminal to a merchant account. - Set this to **true** to assign the terminals to the merchant inventory. This also means that the terminals cannot be boarded. - Set this to **false** to assign the terminals to the merchant account as in-store terminals. This makes the terminals ready to be boarded and to process payments through the specified merchant account.
        Parameters:
        merchantInventory -
        Returns:
        the current AssignTerminalsRequest instance, allowing for method chaining
      • getMerchantInventory

        public Boolean getMerchantInventory()
        Boolean that indicates if you are assigning the terminals to the merchant inventory. Do not use when assigning terminals to a store. Required when assigning the terminal to a merchant account. - Set this to **true** to assign the terminals to the merchant inventory. This also means that the terminals cannot be boarded. - Set this to **false** to assign the terminals to the merchant account as in-store terminals. This makes the terminals ready to be boarded and to process payments through the specified merchant account.
        Returns:
        merchantInventory
      • setMerchantInventory

        public void setMerchantInventory​(Boolean merchantInventory)
        Boolean that indicates if you are assigning the terminals to the merchant inventory. Do not use when assigning terminals to a store. Required when assigning the terminal to a merchant account. - Set this to **true** to assign the terminals to the merchant inventory. This also means that the terminals cannot be boarded. - Set this to **false** to assign the terminals to the merchant account as in-store terminals. This makes the terminals ready to be boarded and to process payments through the specified merchant account.
        Parameters:
        merchantInventory -
      • store

        public AssignTerminalsRequest store​(String store)
        The store code of the store that you want to assign the terminals to.
        Parameters:
        store -
        Returns:
        the current AssignTerminalsRequest instance, allowing for method chaining
      • getStore

        public String getStore()
        The store code of the store that you want to assign the terminals to.
        Returns:
        store
      • setStore

        public void setStore​(String store)
        The store code of the store that you want to assign the terminals to.
        Parameters:
        store -
      • terminals

        public AssignTerminalsRequest terminals​(List<String> terminals)
        Array containing a list of terminal IDs that you want to assign or reassign to the merchant account or store, or that you want to return to the company inventory. For example, `[\"V400m-324689776\",\"P400Plus-329127412\"]`.
        Parameters:
        terminals -
        Returns:
        the current AssignTerminalsRequest instance, allowing for method chaining
      • getTerminals

        public List<String> getTerminals()
        Array containing a list of terminal IDs that you want to assign or reassign to the merchant account or store, or that you want to return to the company inventory. For example, `[\"V400m-324689776\",\"P400Plus-329127412\"]`.
        Returns:
        terminals
      • setTerminals

        public void setTerminals​(List<String> terminals)
        Array containing a list of terminal IDs that you want to assign or reassign to the merchant account or store, or that you want to return to the company inventory. For example, `[\"V400m-324689776\",\"P400Plus-329127412\"]`.
        Parameters:
        terminals -
      • equals

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

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

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

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