Class GetTerminalsUnderAccountRequest
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.GetTerminalsUnderAccountRequest
-
public class GetTerminalsUnderAccountRequest extends Object
GetTerminalsUnderAccountRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetTerminalsUnderAccountRequest.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_STORE
-
Constructor Summary
Constructors Constructor Description GetTerminalsUnderAccountRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetTerminalsUnderAccountRequestcompanyAccount(String companyAccount)booleanequals(Object o)static GetTerminalsUnderAccountRequestfromJson(String jsonString)Create an instance of GetTerminalsUnderAccountRequest given an JSON stringStringgetCompanyAccount()Your company account.StringgetMerchantAccount()The merchant account.StringgetStore()The store code of the store.inthashCode()GetTerminalsUnderAccountRequestmerchantAccount(String merchantAccount)voidsetCompanyAccount(String companyAccount)voidsetMerchantAccount(String merchantAccount)voidsetStore(String store)GetTerminalsUnderAccountRequeststore(String store)StringtoJson()Convert an instance of GetTerminalsUnderAccountRequest 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_STORE
public static final String SERIALIZED_NAME_STORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
companyAccount
public GetTerminalsUnderAccountRequest companyAccount(String companyAccount)
-
getCompanyAccount
public String getCompanyAccount()
Your company account. If you only specify this parameter, the response includes all terminals at all account levels.- Returns:
- companyAccount
-
setCompanyAccount
public void setCompanyAccount(String companyAccount)
-
merchantAccount
public GetTerminalsUnderAccountRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account. This is required if you are retrieving the terminals assigned to a store.If you don't specify a `store` the response includes the terminals assigned to the specified merchant account and the terminals assigned to the stores under this merchant account.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
store
public GetTerminalsUnderAccountRequest store(String store)
-
getStore
public String getStore()
The store code of the store. With this parameter, the response only includes the terminals assigned to the specified store.- Returns:
- store
-
setStore
public void setStore(String store)
-
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 GetTerminalsUnderAccountRequest
-
fromJson
public static GetTerminalsUnderAccountRequest fromJson(String jsonString) throws IOException
Create an instance of GetTerminalsUnderAccountRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTerminalsUnderAccountRequest
- Throws:
IOException- if the JSON string is invalid with respect to GetTerminalsUnderAccountRequest
-
toJson
public String toJson()
Convert an instance of GetTerminalsUnderAccountRequest to an JSON string- Returns:
- JSON string
-
-