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.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AVSstatic StringJSON_PROPERTY_CARD_HOLDER_NAMEstatic StringJSON_PROPERTY_INSTALLMENTSstatic StringJSON_PROPERTY_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)avsModelConfigurationcardHolderName(ModelConfiguration.CardHolderNameEnum cardHolderName)Determines whether the cardholder name should be provided or not.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 stringAvsgetAvs()avsModelConfiguration.CardHolderNameEnumgetCardHolderName()Determines whether the cardholder name should be provided or not.InstallmentsNumbergetInstallments()installmentsShopperInputgetShopperInput()shopperInputinthashCode()ModelConfigurationinstallments(InstallmentsNumber installments)installmentsvoidsetAvs(Avs avs)avsvoidsetCardHolderName(ModelConfiguration.CardHolderNameEnum cardHolderName)Determines whether the cardholder name should be provided or not.voidsetInstallments(InstallmentsNumber installments)installmentsvoidsetShopperInput(ShopperInput shopperInput)shopperInputModelConfigurationshopperInput(ShopperInput shopperInput)shopperInputStringtoJson()Convert an instance of ModelConfiguration to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AVS
public static final String JSON_PROPERTY_AVS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD_HOLDER_NAME
public static final String JSON_PROPERTY_CARD_HOLDER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTALLMENTS
public static final String JSON_PROPERTY_INSTALLMENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_INPUT
public static final String JSON_PROPERTY_SHOPPER_INPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
avs
public ModelConfiguration avs(Avs avs)
avs- Parameters:
avs-- Returns:
- the current
ModelConfigurationinstance, allowing for method chaining
-
getAvs
public Avs getAvs()
avs- Returns:
- avs
-
setAvs
public void setAvs(Avs avs)
avs- Parameters:
avs-
-
cardHolderName
public ModelConfiguration cardHolderName(ModelConfiguration.CardHolderNameEnum cardHolderName)
Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED- Parameters:
cardHolderName-- Returns:
- the current
ModelConfigurationinstance, allowing for method chaining
-
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)
Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED- Parameters:
cardHolderName-
-
installments
public ModelConfiguration installments(InstallmentsNumber installments)
installments- Parameters:
installments-- Returns:
- the current
ModelConfigurationinstance, allowing for method chaining
-
getInstallments
public InstallmentsNumber getInstallments()
installments- Returns:
- installments
-
setInstallments
public void setInstallments(InstallmentsNumber installments)
installments- Parameters:
installments-
-
shopperInput
public ModelConfiguration shopperInput(ShopperInput shopperInput)
shopperInput- Parameters:
shopperInput-- Returns:
- the current
ModelConfigurationinstance, allowing for method chaining
-
getShopperInput
public ShopperInput getShopperInput()
shopperInput- Returns:
- shopperInput
-
setShopperInput
public void setShopperInput(ShopperInput shopperInput)
shopperInput- Parameters:
shopperInput-
-
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
-
-