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.EnabledEnumSpecifies whether the shopper should enter their billing address during checkout.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESS_EDITABLEstatic StringJSON_PROPERTY_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)Return true if this Avs object is equal to 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)Indicates whether the shopper is allowed to modify the billing address for the current payment request.voidsetEnabled(Avs.EnabledEnum enabled)Specifies whether the shopper should enter their billing address during checkout.StringtoJson()Convert an instance of Avs to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS_EDITABLE
public static final String JSON_PROPERTY_ADDRESS_EDITABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_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)
Indicates whether the shopper is allowed to modify the billing address for the current payment request.- Parameters:
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)
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.- Parameters:
enabled-
-
equals
public boolean equals(Object o)
Return true if this Avs object is equal to o.
-
fromJson
public static Avs fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Avs given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Avs
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Avs
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Avs to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-