Class FindTerminalResponse
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.FindTerminalResponse
-
public class FindTerminalResponse extends Object
FindTerminalResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFindTerminalResponse.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_TERMINAL
-
Constructor Summary
Constructors Constructor Description FindTerminalResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FindTerminalResponsecompanyAccount(String companyAccount)booleanequals(Object o)static FindTerminalResponsefromJson(String jsonString)Create an instance of FindTerminalResponse given an JSON stringStringgetCompanyAccount()The company account that the terminal is associated with.StringgetMerchantAccount()The merchant account that the terminal is associated with.BooleangetMerchantInventory()Boolean that indicates if the terminal is assigned to the merchant inventory.StringgetStore()The store code of the store that the terminal is assigned to.StringgetTerminal()The unique terminal ID.inthashCode()FindTerminalResponsemerchantAccount(String merchantAccount)FindTerminalResponsemerchantInventory(Boolean merchantInventory)voidsetCompanyAccount(String companyAccount)voidsetMerchantAccount(String merchantAccount)voidsetMerchantInventory(Boolean merchantInventory)voidsetStore(String store)voidsetTerminal(String terminal)FindTerminalResponsestore(String store)FindTerminalResponseterminal(String terminal)StringtoJson()Convert an instance of FindTerminalResponse 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_TERMINAL
public static final String SERIALIZED_NAME_TERMINAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
companyAccount
public FindTerminalResponse companyAccount(String companyAccount)
-
getCompanyAccount
public String getCompanyAccount()
The company account that the terminal is associated with. If this is the only account level shown in the response, the terminal is assigned to the inventory of the company account.- Returns:
- companyAccount
-
setCompanyAccount
public void setCompanyAccount(String companyAccount)
-
merchantAccount
public FindTerminalResponse merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account that the terminal is associated with. If the response doesn't contain a `store` the terminal is assigned to this merchant account.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
merchantInventory
public FindTerminalResponse merchantInventory(Boolean merchantInventory)
-
getMerchantInventory
public Boolean getMerchantInventory()
Boolean that indicates if the terminal is assigned to the merchant inventory. This is returned when the terminal is assigned to a merchant account. - If **true**, this indicates that the terminal is in the merchant inventory. This also means that the terminal cannot be boarded. - If **false**, this indicates that the terminal is assigned to the merchant account as an in-store terminal. This means that the terminal is ready to be boarded, or is already boarded.- Returns:
- merchantInventory
-
setMerchantInventory
public void setMerchantInventory(Boolean merchantInventory)
-
store
public FindTerminalResponse store(String store)
-
getStore
public String getStore()
The store code of the store that the terminal is assigned to.- Returns:
- store
-
setStore
public void setStore(String store)
-
terminal
public FindTerminalResponse terminal(String terminal)
-
getTerminal
public String getTerminal()
The unique terminal ID.- Returns:
- terminal
-
setTerminal
public void setTerminal(String terminal)
-
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 FindTerminalResponse
-
fromJson
public static FindTerminalResponse fromJson(String jsonString) throws IOException
Create an instance of FindTerminalResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FindTerminalResponse
- Throws:
IOException- if the JSON string is invalid with respect to FindTerminalResponse
-
toJson
public String toJson()
Convert an instance of FindTerminalResponse to an JSON string- Returns:
- JSON string
-
-