Package com.adyen.model.management
Class Standalone
- java.lang.Object
-
- com.adyen.model.management.Standalone
-
public class Standalone extends Object
Standalone
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandalone.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CURRENCY_CODEstatic StringSERIALIZED_NAME_ENABLE_STANDALONE
-
Constructor Summary
Constructors Constructor Description Standalone()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StandalonecurrencyCode(String currencyCode)StandaloneenableStandalone(Boolean enableStandalone)booleanequals(Object o)static StandalonefromJson(String jsonString)Create an instance of Standalone given an JSON stringStringgetCurrencyCode()The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.BooleangetEnableStandalone()Enable standalone mode.inthashCode()voidsetCurrencyCode(String currencyCode)voidsetEnableStandalone(Boolean enableStandalone)StringtoJson()Convert an instance of Standalone 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_CURRENCY_CODE
public static final String SERIALIZED_NAME_CURRENCY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLE_STANDALONE
public static final String SERIALIZED_NAME_ENABLE_STANDALONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
currencyCode
public Standalone currencyCode(String currencyCode)
-
getCurrencyCode
public String getCurrencyCode()
The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.- Returns:
- currencyCode
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
-
enableStandalone
public Standalone enableStandalone(Boolean enableStandalone)
-
getEnableStandalone
public Boolean getEnableStandalone()
Enable standalone mode.- Returns:
- enableStandalone
-
setEnableStandalone
public void setEnableStandalone(Boolean enableStandalone)
-
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 Standalone
-
fromJson
public static Standalone fromJson(String jsonString) throws IOException
Create an instance of Standalone given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Standalone
- Throws:
IOException- if the JSON string is invalid with respect to Standalone
-
toJson
public String toJson()
Convert an instance of Standalone to an JSON string- Returns:
- JSON string
-
-