Package com.adyen.model.management
Class ModelConfiguration
- java.lang.Object
-
- com.adyen.model.management.ModelConfiguration
-
public class ModelConfiguration extends Object
ModelConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_CURRENCIESstatic StringJSON_PROPERTY_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)Return true if this Configuration object is equal to 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()
-
-
-
Field Detail
-
JSON_PROPERTY_BRAND
public static final String JSON_PROPERTY_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENCIES
public static final String JSON_PROPERTY_CURRENCIES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCES
public static final String JSON_PROPERTY_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
-
equals
public boolean equals(Object o)
Return true if this Configuration object is equal to o.
-
fromJson
public static ModelConfiguration fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ModelConfiguration given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ModelConfiguration
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ModelConfiguration
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ModelConfiguration to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-