Class FindTerminalResponse
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.FindTerminalResponse
-
public class FindTerminalResponse extends Object
FindTerminalResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COMPANY_ACCOUNTstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_MERCHANT_INVENTORYstatic StringJSON_PROPERTY_STOREstatic StringJSON_PROPERTY_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)Return true if this FindTerminalResponse object is equal to 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)The company account that the terminal is associated with.voidsetMerchantAccount(String merchantAccount)The merchant account that the terminal is associated with.voidsetMerchantInventory(Boolean merchantInventory)Boolean that indicates if the terminal is assigned to the merchant inventory.voidsetStore(String store)The store code of the store that the terminal is assigned to.voidsetTerminal(String terminal)The unique terminal ID.FindTerminalResponsestore(String store)FindTerminalResponseterminal(String terminal)StringtoJson()Convert an instance of FindTerminalResponse 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_MERCHANT_INVENTORY
public static final String JSON_PROPERTY_MERCHANT_INVENTORY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE
public static final String JSON_PROPERTY_STORE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TERMINAL
public static final String JSON_PROPERTY_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)
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.- Parameters:
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)
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.- Parameters:
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)
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.- Parameters:
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)
The store code of the store that the terminal is assigned to.- Parameters:
store-
-
terminal
public FindTerminalResponse terminal(String terminal)
-
getTerminal
public String getTerminal()
The unique terminal ID.- Returns:
- terminal
-
setTerminal
public void setTerminal(String terminal)
The unique terminal ID.- Parameters:
terminal-
-
equals
public boolean equals(Object o)
Return true if this FindTerminalResponse object is equal to o.
-
fromJson
public static FindTerminalResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FindTerminalResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FindTerminalResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FindTerminalResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FindTerminalResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-