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.DeliveryAddressEnumSpecifies visibility of delivery address fields.static classShopperInput.PersonalDetailsEnumSpecifies visibility of personal details.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BILLING_ADDRESSstatic StringJSON_PROPERTY_DELIVERY_ADDRESSstatic StringJSON_PROPERTY_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)Return true if this ShopperInput object is equal to 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)Specifies visibility of billing address fields.voidsetDeliveryAddress(ShopperInput.DeliveryAddressEnum deliveryAddress)Specifies visibility of delivery address fields.voidsetPersonalDetails(ShopperInput.PersonalDetailsEnum personalDetails)Specifies visibility of personal details.StringtoJson()Convert an instance of ShopperInput to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BILLING_ADDRESS
public static final String JSON_PROPERTY_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_ADDRESS
public static final String JSON_PROPERTY_DELIVERY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PERSONAL_DETAILS
public static final String JSON_PROPERTY_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)
Specifies visibility of billing address fields. Permitted values: * editable * hidden * readOnly- Parameters:
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)
Specifies visibility of delivery address fields. Permitted values: * editable * hidden * readOnly- Parameters:
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)
Specifies visibility of personal details. Permitted values: * editable * hidden * readOnly- Parameters:
personalDetails-
-
equals
public boolean equals(Object o)
Return true if this ShopperInput object is equal to o.
-
fromJson
public static ShopperInput fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ShopperInput given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ShopperInput
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ShopperInput
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ShopperInput to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-