Class BillingAddress

java.lang.Object
com.thalesgroup.gemalto.d1.clicktopay.BillingAddress

public class BillingAddress extends Object
Represents a billing address used in card enrollment, consumer/card update, get profiles or payment processing.

This class includes standard address fields such as street lines, city, state, ZIP code, and country code.

Since:
4.3.0
  • Constructor Details

    • BillingAddress

      public BillingAddress(@NonNull String countryCode)
      Sets the ISO 3166-1 alpha-2 country code for the billing address.
  • Method Details

    • getLine1

      @Nullable public String getLine1()
      The first line of the street address. The maximum length of the first line allowed is 64 characters.
      Returns:
      first line of the street address.
    • setLine1

      public void setLine1(@Nullable String line1)
      Sets first line of the street address. The maximum length allowed is 64 characters.
    • getLine2

      @Nullable public String getLine2()
      The second line of the street address. The maximum length of the second line allowed is 64 characters.
      Returns:
      second line of the street address.
    • setLine2

      public void setLine2(@Nullable String line2)
      Sets second line of the street address. The maximum length allowed is 64 characters.
    • getLine3

      @Nullable public String getLine3()
      The third line of the street address. The maximum length of the third line allowed is 64 characters.
      Returns:
      third line of the street address.
    • setLine3

      public void setLine3(@Nullable String line3)
      Sets third line of the street address. The maximum length allowed is 64 characters.
    • getCity

      @Nullable public String getCity()
      The city of the billing address. The maximum length of the city allowed is 32 characters.
      Returns:
      city of the billing address.
    • setCity

      public void setCity(@Nullable String city)
      Sets city of the billing address.
    • getState

      @Nullable public String getState()
      The state of the billing address. The maximum length of the state allowed is 3 characters. For example - CZ
      Returns:
      state of the billing address.
    • setState

      public void setState(@Nullable String state)
      Sets state of the billing address.
    • getZipCode

      @Nullable public String getZipCode()
      The postal or ZIP code of the billing address.The maximum length of the zipCode allowed is 10 characters.
      Returns:
      postal or ZIP code of the billing address.
    • setZipCode

      public void setZipCode(@Nullable String zipCode)
      Sets the postal or ZIP code of the billing address.
    • getCountryCode

      @NonNull public String getCountryCode()
      The ISO 3166-1 alpha-2 country code.
      Returns:
      country code