Package com.adyen.model.checkout
Class ShopperInput
- java.lang.Object
-
- com.adyen.model.checkout.ShopperInput
-
public class ShopperInput extends Object
ShopperInput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShopperInput.BillingAddressEnumSpecifies visibility of billing address fields.static classShopperInput.CustomTypeAdapterFactorystatic classShopperInput.DeliveryAddressEnumSpecifies visibility of delivery address fields.static classShopperInput.PersonalDetailsEnumSpecifies visibility of personal details.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BILLING_ADDRESSstatic StringSERIALIZED_NAME_DELIVERY_ADDRESSstatic StringSERIALIZED_NAME_PERSONAL_DETAILS
-
Constructor Summary
Constructors Constructor Description ShopperInput()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShopperInputbillingAddress(ShopperInput.BillingAddressEnum billingAddress)ShopperInputdeliveryAddress(ShopperInput.DeliveryAddressEnum deliveryAddress)booleanequals(Object o)static ShopperInputfromJson(String jsonString)Create an instance of ShopperInput given an JSON stringShopperInput.BillingAddressEnumgetBillingAddress()Specifies visibility of billing address fields.ShopperInput.DeliveryAddressEnumgetDeliveryAddress()Specifies visibility of delivery address fields.ShopperInput.PersonalDetailsEnumgetPersonalDetails()Specifies visibility of personal details.inthashCode()ShopperInputpersonalDetails(ShopperInput.PersonalDetailsEnum personalDetails)voidsetBillingAddress(ShopperInput.BillingAddressEnum billingAddress)voidsetDeliveryAddress(ShopperInput.DeliveryAddressEnum deliveryAddress)voidsetPersonalDetails(ShopperInput.PersonalDetailsEnum personalDetails)StringtoJson()Convert an instance of ShopperInput 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_BILLING_ADDRESS
public static final String SERIALIZED_NAME_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_ADDRESS
public static final String SERIALIZED_NAME_DELIVERY_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PERSONAL_DETAILS
public static final String SERIALIZED_NAME_PERSONAL_DETAILS
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingAddress
public ShopperInput billingAddress(ShopperInput.BillingAddressEnum billingAddress)
-
getBillingAddress
public ShopperInput.BillingAddressEnum getBillingAddress()
Specifies visibility of billing address fields. Permitted values: * editable * hidden * readOnly- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(ShopperInput.BillingAddressEnum billingAddress)
-
deliveryAddress
public ShopperInput deliveryAddress(ShopperInput.DeliveryAddressEnum deliveryAddress)
-
getDeliveryAddress
public ShopperInput.DeliveryAddressEnum getDeliveryAddress()
Specifies visibility of delivery address fields. Permitted values: * editable * hidden * readOnly- Returns:
- deliveryAddress
-
setDeliveryAddress
public void setDeliveryAddress(ShopperInput.DeliveryAddressEnum deliveryAddress)
-
personalDetails
public ShopperInput personalDetails(ShopperInput.PersonalDetailsEnum personalDetails)
-
getPersonalDetails
public ShopperInput.PersonalDetailsEnum getPersonalDetails()
Specifies visibility of personal details. Permitted values: * editable * hidden * readOnly- Returns:
- personalDetails
-
setPersonalDetails
public void setPersonalDetails(ShopperInput.PersonalDetailsEnum personalDetails)
-
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 ShopperInput
-
fromJson
public static ShopperInput fromJson(String jsonString) throws IOException
Create an instance of ShopperInput given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShopperInput
- Throws:
IOException- if the JSON string is invalid with respect to ShopperInput
-
toJson
public String toJson()
Convert an instance of ShopperInput to an JSON string- Returns:
- JSON string
-
-