Class BillingAddress
java.lang.Object
com.thalesgroup.gemalto.d1.clicktopay.BillingAddress
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 Summary
ConstructorsConstructorDescriptionBillingAddress(String countryCode) Sets the ISO 3166-1 alpha-2 country code for the billing address. -
Method Summary
Modifier and TypeMethodDescriptiongetCity()The city of the billing address.The ISO 3166-1 alpha-2 country code.getLine1()The first line of the street address.getLine2()The second line of the street address.getLine3()The third line of the street address.getState()The state of the billing address.The postal or ZIP code of the billing address.The maximum length of the zipCode allowed is 10 characters.voidSets city of the billing address.voidSets first line of the street address.voidSets second line of the street address.voidSets third line of the street address.voidSets state of the billing address.voidsetZipCode(String zipCode) Sets the postal or ZIP code of the billing address.
-
Constructor Details
-
BillingAddress
Sets the ISO 3166-1 alpha-2 country code for the billing address.
-
-
Method Details
-
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
Sets first line of the street address. The maximum length allowed is 64 characters. -
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
Sets second line of the street address. The maximum length allowed is 64 characters. -
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
Sets third line of the street address. The maximum length allowed is 64 characters. -
getCity
The city of the billing address. The maximum length of the city allowed is 32 characters.- Returns:
- city of the billing address.
-
setCity
Sets city of the billing address. -
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
Sets state of the billing address. -
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
Sets the postal or ZIP code of the billing address. -
getCountryCode
The ISO 3166-1 alpha-2 country code.- Returns:
- country code
-