Class CustomSheetPaymentInfo.Address.Builder
java.lang.Object
com.samsung.android.sdk.samsungpay.v2.payment.CustomSheetPaymentInfo.Address.Builder
- Enclosing class:
- CustomSheetPaymentInfo.Address
This is builder class for constructing Address objects.
- Since:
- API Level 1.3
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
API to set the Address object.setAddressee
(String addressee) API to set the addressee for Address details.setAddressLine1
(String addressLine1) API to set the address line 1 for Address details.setAddressLine2
(String addressLine2) API to set the address line 2 for Address details.API to set the city for Address details.setCountryCode
(String country3DigitCode) API to set the country code for Address details.API to set the email address for Address details.setExtraAddressInfo
(android.os.Bundle extraAddressInfo) API to set the extra address information for Address details.setPhoneNumber
(String phoneNumber) API to set the phone number for Address details.setPostalCode
(String postalCode) API to set the postal code for Address details.API to set the state for Address details.
-
Method Details
-
setAddressee
API to set the addressee for Address details.- Parameters:
addressee
- Name of the owner.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setAddressLine1
API to set the address line 1 for Address details.- Parameters:
addressLine1
- Street address details.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setAddressLine2
API to set the address line 2 for Address details.- Parameters:
addressLine2
- Flat, avenue, building details.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setCity
API to set the city for Address details.- Parameters:
city
- City or town name.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setState
API to set the state for Address details.- Parameters:
state
- State or province name.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setCountryCode
API to set the country code for Address details. This API also verifies if the country code is valid or not.- Parameters:
country3DigitCode
- Three-letter ISO 3166 country code.- Returns:
- Address details Builder.
- Throws:
IllegalArgumentException
- If the country code is empty or invalid.NullPointerException
- If the country code is null.- Since:
- API Level 1.3
-
setPostalCode
API to set the postal code for Address details.- Parameters:
postalCode
- Valid postal code for shipping.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setPhoneNumber
API to set the phone number for Address details.- Parameters:
phoneNumber
- Phone number for shipping.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setExtraAddressInfo
public CustomSheetPaymentInfo.Address.Builder setExtraAddressInfo(android.os.Bundle extraAddressInfo) API to set the extra address information for Address details.- Parameters:
extraAddressInfo
- Extra address information data.- Returns:
- Address details Builder.
- Since:
- API Level 1.3
-
setEmail
API to set the email address for Address details.- Parameters:
email
- email address for shipping.- Returns:
- Address details Builder
- Since:
- API Level 1.5
-
build
API to set the Address object.- Returns:
- Address object.
- Since:
- API Level 1.3
-
Samsung Electronics.
Samsung Pay SDK 2.19.00 - Jun 12 2024