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)addressStoredescription(String description)The description of the store.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()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 activatedStringgetStore()The code of the store.inthashCode()StoreinStoreTerminals(List<String> inStoreTerminals)The list of terminals assigned to the store.StoremerchantAccountCode(String merchantAccountCode)The code of the merchant account.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 activatedvoidsetStore(String store)The code of the store.Storestatus(String status)The status of the store: - `PreActive`: the store has been created, but not yet activatedStorestore(String store)The code of the 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
-
address
public Store address(Address address)
address- Parameters:
address-- Returns:
- the current
Storeinstance, allowing for method chaining
-
getAddress
public Address getAddress()
address- Returns:
- address
-
setAddress
public void setAddress(Address address)
address- Parameters:
address-
-
description
public Store description(String description)
The description of the store.- Parameters:
description-- Returns:
- the current
Storeinstance, allowing for method chaining
-
getDescription
public String getDescription()
The description of the store.- Returns:
- description
-
setDescription
public void setDescription(String description)
The description of the store.- Parameters:
description-
-
inStoreTerminals
public Store inStoreTerminals(List<String> inStoreTerminals)
The list of terminals assigned to the store.- Parameters:
inStoreTerminals-- Returns:
- the current
Storeinstance, allowing for method chaining
-
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-
-
merchantAccountCode
public Store merchantAccountCode(String merchantAccountCode)
The code of the merchant account.- Parameters:
merchantAccountCode-- Returns:
- the current
Storeinstance, allowing for method chaining
-
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-
-
status
public Store status(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-- Returns:
- the current
Storeinstance, allowing for method chaining
-
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-
-
store
public Store store(String store)
The code of the store.- Parameters:
store-- Returns:
- the current
Storeinstance, allowing for method chaining
-
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
-
-