Package com.adyen.checkout.googlepay
Class ShippingAddressParameters
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ShippingAddressParameters extends ModelObjectPass this object to GooglePayConfiguration.shippingAddressParameters to the required shipping address details. This object is a mapping of the ShippingAddressParameters object from the Google Pay SDK.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ModelObject.Serializer<ShippingAddressParameters>SERIALIZERprivate List<String>allowedCountryCodesprivate BooleanisPhoneNumberRequired
-
Constructor Summary
Constructors Constructor Description ShippingAddressParameters(List<String> allowedCountryCodes, Boolean isPhoneNumberRequired)
-
Method Summary
Modifier and Type Method Description final List<String>getAllowedCountryCodes()final UnitsetAllowedCountryCodes(List<String> allowedCountryCodes)final BooleanisPhoneNumberRequired()final UnitsetPhoneNumberRequired(Boolean isPhoneNumberRequired)-
Methods inherited from class com.adyen.checkout.core.internal.data.model.ModelObject
describeContents -
Methods inherited from class android.os.Parcelable
writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ShippingAddressParameters
ShippingAddressParameters(List<String> allowedCountryCodes, Boolean isPhoneNumberRequired)
- Parameters:
allowedCountryCodes- A list of ISO 3166-1 alpha-2 country code values where shipping is allowed.isPhoneNumberRequired- Set to true if a phone number is required for the shipping address.
-
-
Method Detail
-
getAllowedCountryCodes
final List<String> getAllowedCountryCodes()
-
setAllowedCountryCodes
final Unit setAllowedCountryCodes(List<String> allowedCountryCodes)
- Parameters:
allowedCountryCodes- A list of ISO 3166-1 alpha-2 country code values where shipping is allowed.
-
isPhoneNumberRequired
final Boolean isPhoneNumberRequired()
-
setPhoneNumberRequired
final Unit setPhoneNumberRequired(Boolean isPhoneNumberRequired)
- Parameters:
isPhoneNumberRequired- Set to true if a phone number is required for the shipping address.
-
-
-
-