Class Store
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.Store
-
public class Store extends Object
Store
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStore.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IN_STORE_TERMINALSstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNT_CODEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_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)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)voidsetDescription(String description)voidsetInStoreTerminals(List<String> inStoreTerminals)voidsetMerchantAccountCode(String merchantAccountCode)voidsetStatus(String status)voidsetStore(String store)Storestatus(String status)Storestore(String store)StringtoJson()Convert an instance of Store 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_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IN_STORE_TERMINALS
public static final String SERIALIZED_NAME_IN_STORE_TERMINALS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT_CODE
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORE
public static final String SERIALIZED_NAME_STORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
-
getDescription
public String getDescription()
The description of the store.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getInStoreTerminals
public List<String> getInStoreTerminals()
The list of terminals assigned to the store.- Returns:
- inStoreTerminals
-
getMerchantAccountCode
public String getMerchantAccountCode()
The code of the merchant account.- Returns:
- merchantAccountCode
-
setMerchantAccountCode
public void setMerchantAccountCode(String 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)
-
getStore
public String getStore()
The code of the store.- Returns:
- store
-
setStore
public void setStore(String store)
-
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 Store
-
fromJson
public static Store fromJson(String jsonString) throws IOException
Create an instance of Store given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Store
- Throws:
IOException- if the JSON string is invalid with respect to Store
-
toJson
public String toJson()
Convert an instance of Store to an JSON string- Returns:
- JSON string
-
-