-
- All Implemented Interfaces:
-
android.os.Parcelable
public class BillingAddress implements Parcelable
The billing address holds the address of the customer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
BillingAddress.Builder
-
Field Summary
Fields Modifier and Type Field Description private final String
country
private final String
state
private final String
city
private final String
postCode
private final String
street1
private final String
street2
private final boolean
isCountryRequired
private final boolean
isStateRequired
private final boolean
isCityRequired
private final boolean
isPostCodeRequired
private final boolean
isStreet1Required
private final boolean
isStreet2Required
public final static Parcelable.Creator<BillingAddress>
CREATOR
-
Method Summary
Modifier and Type Method Description String
getCountry()
Returns the country of the billing address. String
getState()
Returns the county, state or region of the billing address. String
getCity()
The town, district or city of the billing address Mandatory for 3D Secure v2. String
getPostCode()
Returns the postal code or zip code of the billing address. String
getStreet1()
Returns the door number, floor, building number, building name, and/or street name of the billing address. String
getStreet2()
Returns the adjoining road or locality (if required) of the billing address The combination of street1 and street2 can't contain numbers only, it should also include characters. boolean
isCountryRequired()
Returns boolean which indicates if country is required. boolean
isStateRequired()
Returns boolean which indicates if state is required. boolean
isCityRequired()
Returns boolean which indicates if city is required. boolean
isPostCodeRequired()
Returns boolean which indicates if postal code is required. boolean
isStreet1Required()
Returns boolean which indicates if street1 is required. boolean
isStreet2Required()
Returns boolean which indicates if street2 is required. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
Method Detail
-
getCountry
@Nullable() String getCountry()
Returns the country of the billing address.
-
getCity
@Nullable() String getCity()
The town, district or city of the billing address Mandatory for 3D Secure v2.
-
getPostCode
@Nullable() String getPostCode()
Returns the postal code or zip code of the billing address.
-
getStreet1
@Nullable() String getStreet1()
Returns the door number, floor, building number, building name, and/or street name of the billing address. Mandatory for 3D Secure v2.
-
getStreet2
@Nullable() String getStreet2()
Returns the adjoining road or locality (if required) of the billing address The combination of street1 and street2 can't contain numbers only, it should also include characters.
-
isCountryRequired
boolean isCountryRequired()
Returns boolean which indicates if country is required.
-
isStateRequired
boolean isStateRequired()
Returns boolean which indicates if state is required.
-
isCityRequired
boolean isCityRequired()
Returns boolean which indicates if city is required.
-
isPostCodeRequired
boolean isPostCodeRequired()
Returns boolean which indicates if postal code is required.
-
isStreet1Required
boolean isStreet1Required()
Returns boolean which indicates if street1 is required.
-
isStreet2Required
boolean isStreet2Required()
Returns boolean which indicates if street2 is required.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-