Package com.oppwa.mobile.connect.payment
Class ShippingAddress
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class ShippingAddress implements Parcelable
The ShippingAddress holds the shipping details of ordered goods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classShippingAddress.Builder
-
Field Summary
Fields Modifier and Type Field Description public final Stringstreet1public final Stringstreet2public final Stringcitypublic final Stringstatepublic final Stringcountrypublic final Stringpostcodepublic final Customercustomerpublic final Stringcostpublic final Stringphonepublic final static Parcelable.Creator<ShippingAddress>CREATOR
-
Constructor Summary
Constructors Constructor Description ShippingAddress(ShippingAddress.Builder builder)
-
Method Summary
Modifier and Type Method Description StringgetStreet1()The door number, floor, building number, building name, and/or street name of the shipping address StringgetStreet2()The adjoining road or locality (if required) of the shipping address. StringgetCity()The town, district or city of the shipping address. StringgetState()The county, state or region of the shipping address. StringgetCountry()The country of the shipping address StringgetPostcode()The postal code or zip code of the shipping address. CustomergetCustomer()The Customer. StringgetCost()The total amount of the shipping costs. StringgetPhone()The phone number for shipping address intdescribeContents()voidwriteToParcel(@NonNull() Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
Constructor Detail
-
ShippingAddress
ShippingAddress(ShippingAddress.Builder builder)
-
-
Method Detail
-
getStreet1
@Nullable() String getStreet1()
The door number, floor, building number, building name, and/or street name of the shipping address
- Returns:
The street1.
-
getStreet2
@Nullable() String getStreet2()
The adjoining road or locality (if required) of the shipping address.
- Returns:
The street2.
-
getCity
@Nullable() String getCity()
The town, district or city of the shipping address.
- Returns:
The city.
-
getState
@Nullable() String getState()
The county, state or region of the shipping address.
- Returns:
the state.
-
getCountry
@Nullable() String getCountry()
The country of the shipping address
- Returns:
the country.
-
getPostcode
@Nullable() String getPostcode()
The postal code or zip code of the shipping address.
- Returns:
the postal code.
-
getCustomer
@Nullable() Customer getCustomer()
The Customer.
- Returns:
the Customer.
-
getCost
@Nullable() String getCost()
The total amount of the shipping costs.
- Returns:
the shipping cost.
-
getPhone
@Nullable() String getPhone()
The phone number for shipping address
- Returns:
the phone number.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-