Package com.adyen.model.checkout
Class ModelConfiguration
- java.lang.Object
-
- com.adyen.model.checkout.ModelConfiguration
-
public class ModelConfiguration extends Object
ModelConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelConfiguration.CardHolderNameEnumDetermines whether the cardholder name should be provided or not.static classModelConfiguration.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AVSstatic StringSERIALIZED_NAME_CARD_HOLDER_NAMEstatic StringSERIALIZED_NAME_INSTALLMENTSstatic StringSERIALIZED_NAME_SHOPPER_INPUT
-
Constructor Summary
Constructors Constructor Description ModelConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelConfigurationavs(Avs avs)ModelConfigurationcardHolderName(ModelConfiguration.CardHolderNameEnum cardHolderName)booleanequals(Object o)static ModelConfigurationfromJson(String jsonString)Create an instance of ModelConfiguration given an JSON stringAvsgetAvs()Get avsModelConfiguration.CardHolderNameEnumgetCardHolderName()Determines whether the cardholder name should be provided or not.InstallmentsNumbergetInstallments()Get installmentsShopperInputgetShopperInput()Get shopperInputinthashCode()ModelConfigurationinstallments(InstallmentsNumber installments)voidsetAvs(Avs avs)voidsetCardHolderName(ModelConfiguration.CardHolderNameEnum cardHolderName)voidsetInstallments(InstallmentsNumber installments)voidsetShopperInput(ShopperInput shopperInput)ModelConfigurationshopperInput(ShopperInput shopperInput)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_AVS
public static final String SERIALIZED_NAME_AVS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CARD_HOLDER_NAME
public static final String SERIALIZED_NAME_CARD_HOLDER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTALLMENTS
public static final String SERIALIZED_NAME_INSTALLMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_INPUT
public static final String SERIALIZED_NAME_SHOPPER_INPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
avs
public ModelConfiguration avs(Avs avs)
-
getAvs
public Avs getAvs()
Get avs- Returns:
- avs
-
setAvs
public void setAvs(Avs avs)
-
cardHolderName
public ModelConfiguration cardHolderName(ModelConfiguration.CardHolderNameEnum cardHolderName)
-
getCardHolderName
public ModelConfiguration.CardHolderNameEnum getCardHolderName()
Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED- Returns:
- cardHolderName
-
setCardHolderName
public void setCardHolderName(ModelConfiguration.CardHolderNameEnum cardHolderName)
-
installments
public ModelConfiguration installments(InstallmentsNumber installments)
-
getInstallments
public InstallmentsNumber getInstallments()
Get installments- Returns:
- installments
-
setInstallments
public void setInstallments(InstallmentsNumber installments)
-
shopperInput
public ModelConfiguration shopperInput(ShopperInput shopperInput)
-
getShopperInput
public ShopperInput getShopperInput()
Get shopperInput- Returns:
- shopperInput
-
setShopperInput
public void setShopperInput(ShopperInput shopperInput)
-
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
-
-