Package com.adyen.model.checkout
Class Avs
- java.lang.Object
-
- com.adyen.model.checkout.Avs
-
public class Avs extends Object
Avs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAvs.CustomTypeAdapterFactorystatic classAvs.EnabledEnumSpecifies whether the shopper should enter their billing address during checkout.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESS_EDITABLEstatic StringSERIALIZED_NAME_ENABLED
-
Constructor Summary
Constructors Constructor Description Avs()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AvsaddressEditable(Boolean addressEditable)Avsenabled(Avs.EnabledEnum enabled)booleanequals(Object o)static AvsfromJson(String jsonString)Create an instance of Avs given an JSON stringBooleangetAddressEditable()Indicates whether the shopper is allowed to modify the billing address for the current payment request.Avs.EnabledEnumgetEnabled()Specifies whether the shopper should enter their billing address during checkout.inthashCode()voidsetAddressEditable(Boolean addressEditable)voidsetEnabled(Avs.EnabledEnum enabled)StringtoJson()Convert an instance of Avs 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_ADDRESS_EDITABLE
public static final String SERIALIZED_NAME_ADDRESS_EDITABLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddressEditable
public Boolean getAddressEditable()
Indicates whether the shopper is allowed to modify the billing address for the current payment request.- Returns:
- addressEditable
-
setAddressEditable
public void setAddressEditable(Boolean addressEditable)
-
enabled
public Avs enabled(Avs.EnabledEnum enabled)
-
getEnabled
public Avs.EnabledEnum getEnabled()
Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks.- Returns:
- enabled
-
setEnabled
public void setEnabled(Avs.EnabledEnum enabled)
-
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 Avs
-
fromJson
public static Avs fromJson(String jsonString) throws IOException
Create an instance of Avs given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Avs
- Throws:
IOException- if the JSON string is invalid with respect to Avs
-
toJson
public String toJson()
Convert an instance of Avs to an JSON string- Returns:
- JSON string
-
-