Package com.adyen.model.management
Class SofortInfo
- java.lang.Object
-
- com.adyen.model.management.SofortInfo
-
public class SofortInfo extends Object
SofortInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCY_CODEstatic StringJSON_PROPERTY_LOGO
-
Constructor Summary
Constructors Constructor Description SofortInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SofortInfocurrencyCode(String currencyCode)Sofort currency code.booleanequals(Object o)Return true if this SofortInfo object is equal to o.static SofortInfofromJson(String jsonString)Create an instance of SofortInfo given an JSON stringStringgetCurrencyCode()Sofort currency code.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetLogo()Sofort logo.inthashCode()SofortInfoincludeNullValues(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.SofortInfologo(String logo)Sofort logo.voidsetCurrencyCode(String currencyCode)Sofort currency code.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLogo(String logo)Sofort logo.StringtoJson()Convert an instance of SofortInfo 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_LOGO
public static final String JSON_PROPERTY_LOGO
- See Also:
- Constant Field Values
-
-
Method Detail
-
currencyCode
public SofortInfo currencyCode(String currencyCode)
Sofort currency code. For example, **EUR**.- Parameters:
currencyCode- Sofort currency code. For example, **EUR**.- Returns:
- the current
SofortInfoinstance, allowing for method chaining
-
getCurrencyCode
public String getCurrencyCode()
Sofort currency code. For example, **EUR**.- Returns:
- currencyCode Sofort currency code. For example, **EUR**.
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
Sofort currency code. For example, **EUR**.- Parameters:
currencyCode- Sofort currency code. For example, **EUR**.
-
logo
public SofortInfo logo(String logo)
Sofort logo. Format: Base64-encoded string.- Parameters:
logo- Sofort logo. Format: Base64-encoded string.- Returns:
- the current
SofortInfoinstance, allowing for method chaining
-
getLogo
public String getLogo()
Sofort logo. Format: Base64-encoded string.- Returns:
- logo Sofort logo. Format: Base64-encoded string.
-
setLogo
public void setLogo(String logo)
Sofort logo. Format: Base64-encoded string.- Parameters:
logo- Sofort logo. Format: Base64-encoded string.
-
includeNullValues
public SofortInfo 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 SofortInfo 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 SofortInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SofortInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SofortInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SofortInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SofortInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-