Class Store
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.Store
-
public class Store extends Object
Store
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IN_STORE_TERMINALSstatic StringJSON_PROPERTY_MERCHANT_ACCOUNT_CODEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STORE
-
Constructor Summary
Constructors Constructor Description Store()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreaddInStoreTerminalsItem(String inStoreTerminalsItem)Storeaddress(Address address)Storedescription(String description)booleanequals(Object o)Return true if this Store object is equal to o.static StorefromJson(String jsonString)Create an instance of Store given an JSON stringAddressgetAddress()Get addressStringgetDescription()The description of the store.List<String>getInStoreTerminals()The list of terminals assigned to the store.StringgetMerchantAccountCode()The code of the merchant account.StringgetStatus()The status of the store: - `PreActive`: the store has been created, but not yet activated.StringgetStore()The code of the store.inthashCode()StoreinStoreTerminals(List<String> inStoreTerminals)StoremerchantAccountCode(String merchantAccountCode)voidsetAddress(Address address)addressvoidsetDescription(String description)The description of the store.voidsetInStoreTerminals(List<String> inStoreTerminals)The list of terminals assigned to the store.voidsetMerchantAccountCode(String merchantAccountCode)The code of the merchant account.voidsetStatus(String status)The status of the store: - `PreActive`: the store has been created, but not yet activated.voidsetStore(String store)The code of the store.Storestatus(String status)Storestore(String store)StringtoJson()Convert an instance of Store to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IN_STORE_TERMINALS
public static final String JSON_PROPERTY_IN_STORE_TERMINALS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT_CODE
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE
public static final String JSON_PROPERTY_STORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
address- Parameters:
address-
-
getDescription
public String getDescription()
The description of the store.- Returns:
- description
-
setDescription
public void setDescription(String description)
The description of the store.- Parameters:
description-
-
getInStoreTerminals
public List<String> getInStoreTerminals()
The list of terminals assigned to the store.- Returns:
- inStoreTerminals
-
setInStoreTerminals
public void setInStoreTerminals(List<String> inStoreTerminals)
The list of terminals assigned to the store.- Parameters:
inStoreTerminals-
-
getMerchantAccountCode
public String getMerchantAccountCode()
The code of the merchant account.- Returns:
- merchantAccountCode
-
setMerchantAccountCode
public void setMerchantAccountCode(String merchantAccountCode)
The code of the merchant account.- Parameters:
merchantAccountCode-
-
getStatus
public String getStatus()
The status of the store: - `PreActive`: the store has been created, but not yet activated. - `Active`: the store has been activated. This means you can process payments for this store. - `Inactive`: the store is currently not active. - `InactiveWithModifications`: the store is currently not active, but payment modifications such as refunds are possible. - `Closed`: the store has been closed.- Returns:
- status
-
setStatus
public void setStatus(String status)
The status of the store: - `PreActive`: the store has been created, but not yet activated. - `Active`: the store has been activated. This means you can process payments for this store. - `Inactive`: the store is currently not active. - `InactiveWithModifications`: the store is currently not active, but payment modifications such as refunds are possible. - `Closed`: the store has been closed.- Parameters:
status-
-
getStore
public String getStore()
The code of the store.- Returns:
- store
-
setStore
public void setStore(String store)
The code of the store.- Parameters:
store-
-
equals
public boolean equals(Object o)
Return true if this Store object is equal to o.
-
fromJson
public static Store fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Store given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Store
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Store
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Store to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-