Package com.adyen.model.management
Class SofortInfo
- java.lang.Object
-
- com.adyen.model.management.SofortInfo
-
public class SofortInfo extends Object
SofortInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSofortInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CURRENCY_CODEstatic StringSERIALIZED_NAME_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)booleanequals(Object o)static SofortInfofromJson(String jsonString)Create an instance of SofortInfo given an JSON stringStringgetCurrencyCode()Sofort currency code.StringgetLogo()Sofort logo.inthashCode()SofortInfologo(String logo)voidsetCurrencyCode(String currencyCode)voidsetLogo(String logo)StringtoJson()Convert an instance of SofortInfo 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_LOGO
public static final String SERIALIZED_NAME_LOGO
- See Also:
- Constant Field Values
-
-
Method Detail
-
currencyCode
public SofortInfo currencyCode(String currencyCode)
-
getCurrencyCode
public String getCurrencyCode()
Sofort currency code. For example, **EUR**.- Returns:
- currencyCode
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
-
logo
public SofortInfo logo(String logo)
-
getLogo
public String getLogo()
Sofort logo. Format: Base64-encoded string.- Returns:
- logo
-
setLogo
public void setLogo(String logo)
-
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 SofortInfo
-
fromJson
public static SofortInfo fromJson(String jsonString) throws IOException
Create an instance of SofortInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SofortInfo
- Throws:
IOException- if the JSON string is invalid with respect to SofortInfo
-
toJson
public String toJson()
Convert an instance of SofortInfo to an JSON string- Returns:
- JSON string
-
-