Class MerchantAccount
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.MerchantAccount
-
public class MerchantAccount extends Object
MerchantAccount
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IN_STORE_TERMINALSstatic StringJSON_PROPERTY_INVENTORY_TERMINALSstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_STORES
-
Constructor Summary
Constructors Constructor Description MerchantAccount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantAccountaddInStoreTerminalsItem(String inStoreTerminalsItem)MerchantAccountaddInventoryTerminalsItem(String inventoryTerminalsItem)MerchantAccountaddStoresItem(Store storesItem)booleanequals(Object o)Return true if this MerchantAccount object is equal to o.static MerchantAccountfromJson(String jsonString)Create an instance of MerchantAccount given an JSON stringList<String>getInStoreTerminals()List of terminals assigned to this merchant account as in-store terminals.List<String>getInventoryTerminals()List of terminals assigned to the inventory of this merchant account.StringgetMerchantAccount()The merchant account.List<Store>getStores()Array of stores under this merchant account.inthashCode()MerchantAccountinStoreTerminals(List<String> inStoreTerminals)MerchantAccountinventoryTerminals(List<String> inventoryTerminals)MerchantAccountmerchantAccount(String merchantAccount)voidsetInStoreTerminals(List<String> inStoreTerminals)List of terminals assigned to this merchant account as in-store terminals.voidsetInventoryTerminals(List<String> inventoryTerminals)List of terminals assigned to the inventory of this merchant account.voidsetMerchantAccount(String merchantAccount)The merchant account.voidsetStores(List<Store> stores)Array of stores under this merchant account.MerchantAccountstores(List<Store> stores)StringtoJson()Convert an instance of MerchantAccount to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_IN_STORE_TERMINALS
public static final String JSON_PROPERTY_IN_STORE_TERMINALS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVENTORY_TERMINALS
public static final String JSON_PROPERTY_INVENTORY_TERMINALS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORES
public static final String JSON_PROPERTY_STORES
- See Also:
- Constant Field Values
-
-
Method Detail
-
inStoreTerminals
public MerchantAccount inStoreTerminals(List<String> inStoreTerminals)
-
addInStoreTerminalsItem
public MerchantAccount addInStoreTerminalsItem(String inStoreTerminalsItem)
-
getInStoreTerminals
public List<String> getInStoreTerminals()
List of terminals assigned to this merchant account as in-store terminals. This means that the terminal is ready to be boarded, or is already boarded.- Returns:
- inStoreTerminals
-
setInStoreTerminals
public void setInStoreTerminals(List<String> inStoreTerminals)
List of terminals assigned to this merchant account as in-store terminals. This means that the terminal is ready to be boarded, or is already boarded.- Parameters:
inStoreTerminals-
-
inventoryTerminals
public MerchantAccount inventoryTerminals(List<String> inventoryTerminals)
-
addInventoryTerminalsItem
public MerchantAccount addInventoryTerminalsItem(String inventoryTerminalsItem)
-
getInventoryTerminals
public List<String> getInventoryTerminals()
List of terminals assigned to the inventory of this merchant account.- Returns:
- inventoryTerminals
-
setInventoryTerminals
public void setInventoryTerminals(List<String> inventoryTerminals)
List of terminals assigned to the inventory of this merchant account.- Parameters:
inventoryTerminals-
-
merchantAccount
public MerchantAccount merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account.- Parameters:
merchantAccount-
-
stores
public MerchantAccount stores(List<Store> stores)
-
addStoresItem
public MerchantAccount addStoresItem(Store storesItem)
-
getStores
public List<Store> getStores()
Array of stores under this merchant account.- Returns:
- stores
-
setStores
public void setStores(List<Store> stores)
Array of stores under this merchant account.- Parameters:
stores-
-
equals
public boolean equals(Object o)
Return true if this MerchantAccount object is equal to o.
-
fromJson
public static MerchantAccount fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MerchantAccount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantAccount
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MerchantAccount
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MerchantAccount to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-