-
- 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 classBillingAddress.Builder
-
Field Summary
Fields Modifier and Type Field Description private final Stringcountryprivate final Stringstateprivate final Stringcityprivate final StringpostCodeprivate final Stringstreet1private final Stringstreet2private final booleanisCountryRequiredprivate final booleanisStateRequiredprivate final booleanisCityRequiredprivate final booleanisPostCodeRequiredprivate final booleanisStreet1Requiredprivate final booleanisStreet2Requiredpublic final static Parcelable.Creator<BillingAddress>CREATOR
-
Method Summary
Modifier and Type Method Description StringgetCountry()Returns the country of the billing address. StringgetState()Returns the county, state or region of the billing address. StringgetCity()The town, district or city of the billing address Mandatory for 3D Secure v2. StringgetPostCode()Returns the postal code or zip code of the billing address. StringgetStreet1()Returns the door number, floor, building number, building name, and/or street name of the billing address. StringgetStreet2()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. booleanisCountryRequired()Returns boolean which indicates if country is required. booleanisStateRequired()Returns boolean which indicates if state is required. booleanisCityRequired()Returns boolean which indicates if city is required. booleanisPostCodeRequired()Returns boolean which indicates if postal code is required. booleanisStreet1Required()Returns boolean which indicates if street1 is required. booleanisStreet2Required()Returns boolean which indicates if street2 is required. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
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()
-
-
-
-