Class CustomSheetPaymentInfo.Address.Builder

java.lang.Object
com.samsung.android.sdk.samsungpay.v2.payment.CustomSheetPaymentInfo.Address.Builder
Enclosing class:
CustomSheetPaymentInfo.Address

public static class CustomSheetPaymentInfo.Address.Builder extends Object
This is builder class for constructing Address objects.
Since:
API Level 1.3
  • Method Details

    • setAddressee

      public CustomSheetPaymentInfo.Address.Builder setAddressee(String addressee)
      API to set the addressee for Address details.
      Parameters:
      addressee - Name of the owner.
      Returns:
      Address details Builder.
      Since:
      API Level 1.3
    • setAddressLine1

      public CustomSheetPaymentInfo.Address.Builder setAddressLine1(String addressLine1)
      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

      public CustomSheetPaymentInfo.Address.Builder setAddressLine2(String addressLine2)
      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

      public CustomSheetPaymentInfo.Address.Builder setCountryCode(String country3DigitCode)
      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

      public CustomSheetPaymentInfo.Address.Builder setPostalCode(String postalCode)
      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

      public CustomSheetPaymentInfo.Address.Builder setPhoneNumber(String phoneNumber)
      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