Package com.adyen.model.management
Class UpdatePaymentMethodInfo
- java.lang.Object
-
- com.adyen.model.management.UpdatePaymentMethodInfo
-
public class UpdatePaymentMethodInfo extends Object
UpdatePaymentMethodInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdatePaymentMethodInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTRIESstatic StringSERIALIZED_NAME_CURRENCIESstatic StringSERIALIZED_NAME_CUSTOM_ROUTING_FLAGSstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_SHOPPER_STATEMENTstatic StringSERIALIZED_NAME_STORE_IDS
-
Constructor Summary
Constructors Constructor Description UpdatePaymentMethodInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdatePaymentMethodInfoaddCountriesItem(String countriesItem)UpdatePaymentMethodInfoaddCurrenciesItem(String currenciesItem)UpdatePaymentMethodInfoaddCustomRoutingFlagsItem(String customRoutingFlagsItem)UpdatePaymentMethodInfoaddStoreIdsItem(String storeIdsItem)UpdatePaymentMethodInfocountries(List<String> countries)UpdatePaymentMethodInfocurrencies(List<String> currencies)UpdatePaymentMethodInfocustomRoutingFlags(List<String> customRoutingFlags)UpdatePaymentMethodInfoenabled(Boolean enabled)booleanequals(Object o)static UpdatePaymentMethodInfofromJson(String jsonString)Create an instance of UpdatePaymentMethodInfo given an JSON stringList<String>getCountries()The list of countries where a payment method is available.List<String>getCurrencies()The list of currencies that a payment method supports.List<String>getCustomRoutingFlags()Custom routing flags for acquirer routing.BooleangetEnabled()Indicates whether the payment method is enabled (**true**) or disabled (**false**).ShopperStatementgetShopperStatement()Get shopperStatementList<String>getStoreIds()The list of stores for this payment methodinthashCode()voidsetCountries(List<String> countries)voidsetCurrencies(List<String> currencies)voidsetCustomRoutingFlags(List<String> customRoutingFlags)voidsetEnabled(Boolean enabled)voidsetShopperStatement(ShopperStatement shopperStatement)voidsetStoreIds(List<String> storeIds)UpdatePaymentMethodInfoshopperStatement(ShopperStatement shopperStatement)UpdatePaymentMethodInfostoreIds(List<String> storeIds)StringtoJson()Convert an instance of UpdatePaymentMethodInfo 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_COUNTRIES
public static final String SERIALIZED_NAME_COUNTRIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCIES
public static final String SERIALIZED_NAME_CURRENCIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CUSTOM_ROUTING_FLAGS
public static final String SERIALIZED_NAME_CUSTOM_ROUTING_FLAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_STATEMENT
public static final String SERIALIZED_NAME_SHOPPER_STATEMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORE_IDS
public static final String SERIALIZED_NAME_STORE_IDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
countries
public UpdatePaymentMethodInfo countries(List<String> countries)
-
addCountriesItem
public UpdatePaymentMethodInfo addCountriesItem(String countriesItem)
-
getCountries
public List<String> getCountries()
The list of countries where a payment method is available. By default, all countries supported by the payment method.- Returns:
- countries
-
currencies
public UpdatePaymentMethodInfo currencies(List<String> currencies)
-
addCurrenciesItem
public UpdatePaymentMethodInfo addCurrenciesItem(String currenciesItem)
-
getCurrencies
public List<String> getCurrencies()
The list of currencies that a payment method supports. By default, all currencies supported by the payment method.- Returns:
- currencies
-
customRoutingFlags
public UpdatePaymentMethodInfo customRoutingFlags(List<String> customRoutingFlags)
-
addCustomRoutingFlagsItem
public UpdatePaymentMethodInfo addCustomRoutingFlagsItem(String customRoutingFlagsItem)
-
getCustomRoutingFlags
public List<String> getCustomRoutingFlags()
Custom routing flags for acquirer routing.- Returns:
- customRoutingFlags
-
enabled
public UpdatePaymentMethodInfo enabled(Boolean enabled)
-
getEnabled
public Boolean getEnabled()
Indicates whether the payment method is enabled (**true**) or disabled (**false**).- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
shopperStatement
public UpdatePaymentMethodInfo shopperStatement(ShopperStatement shopperStatement)
-
getShopperStatement
public ShopperStatement getShopperStatement()
Get shopperStatement- Returns:
- shopperStatement
-
setShopperStatement
public void setShopperStatement(ShopperStatement shopperStatement)
-
storeIds
public UpdatePaymentMethodInfo storeIds(List<String> storeIds)
-
addStoreIdsItem
public UpdatePaymentMethodInfo addStoreIdsItem(String storeIdsItem)
-
getStoreIds
public List<String> getStoreIds()
The list of stores for this payment method- Returns:
- storeIds
-
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 UpdatePaymentMethodInfo
-
fromJson
public static UpdatePaymentMethodInfo fromJson(String jsonString) throws IOException
Create an instance of UpdatePaymentMethodInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdatePaymentMethodInfo
- Throws:
IOException- if the JSON string is invalid with respect to UpdatePaymentMethodInfo
-
toJson
public String toJson()
Convert an instance of UpdatePaymentMethodInfo to an JSON string- Returns:
- JSON string
-
-