Package com.adyen.model.management
Class Standalone
- java.lang.Object
-
- com.adyen.model.management.Standalone
-
public class Standalone extends Object
Standalone
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCY_CODEstatic StringJSON_PROPERTY_ENABLE_GRATUITIESstatic StringJSON_PROPERTY_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)The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.StandaloneenableGratuities(Boolean enableGratuities)Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.StandaloneenableStandalone(Boolean enableStandalone)Enable standalone mode.booleanequals(Object o)Return true if this Standalone object is equal to 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.BooleangetEnableGratuities()Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.BooleangetEnableStandalone()Enable standalone mode.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.inthashCode()StandaloneincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetCurrencyCode(String currencyCode)The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.voidsetEnableGratuities(Boolean enableGratuities)Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.voidsetEnableStandalone(Boolean enableStandalone)Enable standalone mode.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.StringtoJson()Convert an instance of Standalone to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY_CODE
public static final String JSON_PROPERTY_CURRENCY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLE_GRATUITIES
public static final String JSON_PROPERTY_ENABLE_GRATUITIES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLE_STANDALONE
public static final String JSON_PROPERTY_ENABLE_STANDALONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
currencyCode
public Standalone currencyCode(String currencyCode)
The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.- Parameters:
currencyCode- The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.- Returns:
- the current
Standaloneinstance, allowing for method chaining
-
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 The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.- Parameters:
currencyCode- The default currency of the standalone payment terminal as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.
-
enableGratuities
public Standalone enableGratuities(Boolean enableGratuities)
Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.- Parameters:
enableGratuities- Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.- Returns:
- the current
Standaloneinstance, allowing for method chaining
-
getEnableGratuities
public Boolean getEnableGratuities()
Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.- Returns:
- enableGratuities Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.
-
setEnableGratuities
public void setEnableGratuities(Boolean enableGratuities)
Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.- Parameters:
enableGratuities- Indicates whether the tipping options specified in `gratuities` are enabled on the standalone terminal.
-
enableStandalone
public Standalone enableStandalone(Boolean enableStandalone)
Enable standalone mode.- Parameters:
enableStandalone- Enable standalone mode.- Returns:
- the current
Standaloneinstance, allowing for method chaining
-
getEnableStandalone
public Boolean getEnableStandalone()
Enable standalone mode.- Returns:
- enableStandalone Enable standalone mode.
-
setEnableStandalone
public void setEnableStandalone(Boolean enableStandalone)
Enable standalone mode.- Parameters:
enableStandalone- Enable standalone mode.
-
includeNullValues
public Standalone includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this Standalone object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static Standalone fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Standalone given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Standalone
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Standalone
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Standalone to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-