Class TerminalReassignmentRequest


  • public class TerminalReassignmentRequest
    extends Object
    TerminalReassignmentRequest
    • Constructor Detail

      • TerminalReassignmentRequest

        public TerminalReassignmentRequest()
    • Method Detail

      • companyId

        public TerminalReassignmentRequest companyId​(String companyId)
        The unique identifier of the company account to which the terminal is reassigned.
        Parameters:
        companyId -
        Returns:
        the current TerminalReassignmentRequest instance, allowing for method chaining
      • getCompanyId

        public String getCompanyId()
        The unique identifier of the company account to which the terminal is reassigned.
        Returns:
        companyId
      • setCompanyId

        public void setCompanyId​(String companyId)
        The unique identifier of the company account to which the terminal is reassigned.
        Parameters:
        companyId -
      • inventory

        public TerminalReassignmentRequest inventory​(Boolean inventory)
        Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions.
        Parameters:
        inventory -
        Returns:
        the current TerminalReassignmentRequest instance, allowing for method chaining
      • getInventory

        public Boolean getInventory()
        Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions.
        Returns:
        inventory
      • setInventory

        public void setInventory​(Boolean inventory)
        Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions.
        Parameters:
        inventory -
      • merchantId

        public TerminalReassignmentRequest merchantId​(String merchantId)
        The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field.
        Parameters:
        merchantId -
        Returns:
        the current TerminalReassignmentRequest instance, allowing for method chaining
      • getMerchantId

        public String getMerchantId()
        The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field.
        Returns:
        merchantId
      • setMerchantId

        public void setMerchantId​(String merchantId)
        The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field.
        Parameters:
        merchantId -
      • storeId

        public TerminalReassignmentRequest storeId​(String storeId)
        The unique identifier of the store to which the terminal is reassigned.
        Parameters:
        storeId -
        Returns:
        the current TerminalReassignmentRequest instance, allowing for method chaining
      • getStoreId

        public String getStoreId()
        The unique identifier of the store to which the terminal is reassigned.
        Returns:
        storeId
      • setStoreId

        public void setStoreId​(String storeId)
        The unique identifier of the store to which the terminal is reassigned.
        Parameters:
        storeId -
      • equals

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

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

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

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