-
- 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 private final Stringstreet1private final Stringstreet2private final Stringcityprivate final Stringstateprivate final Stringcountryprivate final Stringpostcodeprivate final Customercustomerprivate final Stringcostprivate 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
-
getStreet2
@Nullable() String getStreet2()
The adjoining road or locality (if required) of the shipping address.
-
getCountry
@Nullable() String getCountry()
The country of the shipping address
-
getPostcode
@Nullable() String getPostcode()
The postal code or zip code of the shipping address.
-
getCustomer
@Nullable() Customer getCustomer()
The Customer.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-