Class GetTerminalsUnderAccountRequest
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.GetTerminalsUnderAccountRequest
-
public class GetTerminalsUnderAccountRequest extends Object
GetTerminalsUnderAccountRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COMPANY_ACCOUNTstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_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)Your company account.booleanequals(Object o)Return true if this GetTerminalsUnderAccountRequest object is equal to 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)The merchant account.voidsetCompanyAccount(String companyAccount)Your company account.voidsetMerchantAccount(String merchantAccount)The merchant account.voidsetStore(String store)The store code of the store.GetTerminalsUnderAccountRequeststore(String store)The store code of the store.StringtoJson()Convert an instance of GetTerminalsUnderAccountRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_COMPANY_ACCOUNT
public static final String JSON_PROPERTY_COMPANY_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE
public static final String JSON_PROPERTY_STORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
companyAccount
public GetTerminalsUnderAccountRequest companyAccount(String companyAccount)
Your company account. If you only specify this parameter, the response includes all terminals at all account levels.- Parameters:
companyAccount-- Returns:
- the current
GetTerminalsUnderAccountRequestinstance, allowing for method chaining
-
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)
Your company account. If you only specify this parameter, the response includes all terminals at all account levels.- Parameters:
companyAccount-
-
merchantAccount
public GetTerminalsUnderAccountRequest merchantAccount(String merchantAccount)
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.- Parameters:
merchantAccount-- Returns:
- the current
GetTerminalsUnderAccountRequestinstance, allowing for method chaining
-
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)
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.- Parameters:
merchantAccount-
-
store
public GetTerminalsUnderAccountRequest store(String store)
The store code of the store. With this parameter, the response only includes the terminals assigned to the specified store.- Parameters:
store-- Returns:
- the current
GetTerminalsUnderAccountRequestinstance, allowing for method chaining
-
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)
The store code of the store. With this parameter, the response only includes the terminals assigned to the specified store.- Parameters:
store-
-
equals
public boolean equals(Object o)
Return true if this GetTerminalsUnderAccountRequest object is equal to o.
-
fromJson
public static GetTerminalsUnderAccountRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GetTerminalsUnderAccountRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTerminalsUnderAccountRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GetTerminalsUnderAccountRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GetTerminalsUnderAccountRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-