Class BillingAddress
-
- 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 public final Stringcountrypublic final Stringstatepublic final Stringcitypublic final StringpostCodepublic final Stringstreet1public final Stringstreet2public final booleanisCountryRequiredpublic final booleanisStateRequiredpublic final booleanisCityRequiredpublic final booleanisPostCodeRequiredpublic final booleanisStreet1Requiredpublic 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.
- Returns:
the country
-
getState
@Nullable() String getState()
Returns the county, state or region of the billing address.
- Returns:
the state
-
getCity
@Nullable() String getCity()
The town, district or city of the billing address Mandatory for 3D Secure v2.
- Returns:
the city
-
getPostCode
@Nullable() String getPostCode()
Returns the postal code or zip code of the billing address.
- Returns:
the postal code
-
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.
- Returns:
the street1
-
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.
- Returns:
the street2
-
isCountryRequired
boolean isCountryRequired()
Returns boolean which indicates if country is required.
- Returns:
trueif country is required, otherwisefalse
-
isStateRequired
boolean isStateRequired()
Returns boolean which indicates if state is required.
- Returns:
trueif state is required, otherwisefalse
-
isCityRequired
boolean isCityRequired()
Returns boolean which indicates if city is required.
- Returns:
trueif city is required, otherwisefalse
-
isPostCodeRequired
boolean isPostCodeRequired()
Returns boolean which indicates if postal code is required.
- Returns:
trueif postal code is required, otherwisefalse
-
isStreet1Required
boolean isStreet1Required()
Returns boolean which indicates if street1 is required.
- Returns:
trueif street1 is required, otherwisefalse
-
isStreet2Required
boolean isStreet2Required()
Returns boolean which indicates if street2 is required.
- Returns:
trueif street2 is required, otherwisefalse
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-