Package com.adyen.model.management
Class ModelConfiguration
- java.lang.Object
-
- com.adyen.model.management.ModelConfiguration
-
public class ModelConfiguration extends Object
ModelConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelConfiguration.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BRANDstatic StringSERIALIZED_NAME_CURRENCIESstatic StringSERIALIZED_NAME_SOURCES
-
Constructor Summary
Constructors Constructor Description ModelConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelConfigurationaddCurrenciesItem(Currency currenciesItem)ModelConfigurationaddSourcesItem(String sourcesItem)ModelConfigurationbrand(String brand)ModelConfigurationcurrencies(List<Currency> currencies)booleanequals(Object o)static ModelConfigurationfromJson(String jsonString)Create an instance of ModelConfiguration given an JSON stringStringgetBrand()Payment method, like **eftpos_australia** or **mc**.List<Currency>getCurrencies()Currency, and surcharge percentage or amount.List<String>getSources()Funding source.inthashCode()voidsetBrand(String brand)voidsetCurrencies(List<Currency> currencies)voidsetSources(List<String> sources)ModelConfigurationsources(List<String> sources)StringtoJson()Convert an instance of ModelConfiguration 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_BRAND
public static final String SERIALIZED_NAME_BRAND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCIES
public static final String SERIALIZED_NAME_CURRENCIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCES
public static final String SERIALIZED_NAME_SOURCES
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public ModelConfiguration brand(String brand)
-
getBrand
public String getBrand()
Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).- Returns:
- brand
-
setBrand
public void setBrand(String brand)
-
currencies
public ModelConfiguration currencies(List<Currency> currencies)
-
addCurrenciesItem
public ModelConfiguration addCurrenciesItem(Currency currenciesItem)
-
getCurrencies
public List<Currency> getCurrencies()
Currency, and surcharge percentage or amount.- Returns:
- currencies
-
sources
public ModelConfiguration sources(List<String> sources)
-
addSourcesItem
public ModelConfiguration addSourcesItem(String sourcesItem)
-
getSources
public List<String> getSources()
Funding source. Possible values: * **Credit** * **Debit**- Returns:
- sources
-
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 ModelConfiguration
-
fromJson
public static ModelConfiguration fromJson(String jsonString) throws IOException
Create an instance of ModelConfiguration given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ModelConfiguration
- Throws:
IOException- if the JSON string is invalid with respect to ModelConfiguration
-
toJson
public String toJson()
Convert an instance of ModelConfiguration to an JSON string- Returns:
- JSON string
-
-