Class AssignTerminalsRequest
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.AssignTerminalsRequest
-
public class AssignTerminalsRequest extends Object
AssignTerminalsRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssignTerminalsRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMPANY_ACCOUNTstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_MERCHANT_INVENTORYstatic StringSERIALIZED_NAME_STOREstatic StringSERIALIZED_NAME_TERMINALS
-
Constructor Summary
Constructors Constructor Description AssignTerminalsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AssignTerminalsRequestaddTerminalsItem(String terminalsItem)AssignTerminalsRequestcompanyAccount(String companyAccount)booleanequals(Object o)static AssignTerminalsRequestfromJson(String jsonString)Create an instance of AssignTerminalsRequest given an JSON stringStringgetCompanyAccount()Your company account.StringgetMerchantAccount()Name of the merchant account.BooleangetMerchantInventory()Boolean that indicates if you are assigning the terminals to the merchant inventory.StringgetStore()The store code of the store that you want to assign the terminals to.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.inthashCode()AssignTerminalsRequestmerchantAccount(String merchantAccount)AssignTerminalsRequestmerchantInventory(Boolean merchantInventory)voidsetCompanyAccount(String companyAccount)voidsetMerchantAccount(String merchantAccount)voidsetMerchantInventory(Boolean merchantInventory)voidsetStore(String store)voidsetTerminals(List<String> terminals)AssignTerminalsRequeststore(String store)AssignTerminalsRequestterminals(List<String> terminals)StringtoJson()Convert an instance of AssignTerminalsRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COMPANY_ACCOUNT
public static final String SERIALIZED_NAME_COMPANY_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_INVENTORY
public static final String SERIALIZED_NAME_MERCHANT_INVENTORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORE
public static final String SERIALIZED_NAME_STORE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TERMINALS
public static final String SERIALIZED_NAME_TERMINALS
- See Also:
- Constant Field Values
-
-
Method Detail
-
companyAccount
public AssignTerminalsRequest companyAccount(String companyAccount)
-
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)
-
merchantAccount
public AssignTerminalsRequest merchantAccount(String merchantAccount)
-
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)
-
merchantInventory
public AssignTerminalsRequest merchantInventory(Boolean merchantInventory)
-
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)
-
store
public AssignTerminalsRequest store(String store)
-
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)
-
terminals
public AssignTerminalsRequest terminals(List<String> terminals)
-
addTerminalsItem
public AssignTerminalsRequest addTerminalsItem(String terminalsItem)
-
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
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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 AssignTerminalsRequest
-
fromJson
public static AssignTerminalsRequest fromJson(String jsonString) throws IOException
Create an instance of AssignTerminalsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AssignTerminalsRequest
- Throws:
IOException- if the JSON string is invalid with respect to AssignTerminalsRequest
-
toJson
public String toJson()
Convert an instance of AssignTerminalsRequest to an JSON string- Returns:
- JSON string
-
-