-
- All Implemented Interfaces:
public class ShippingAddress.Builder
-
-
Method Summary
Modifier and Type Method Description ShippingAddress.Builder
setStreet1(@Nullable() String street1)
Sets the door number, floor, building number, building name, and/or street name of the shipping address. ShippingAddress.Builder
setStreet2(@Nullable() String street2)
Sets the adjoining road or locality (if required) of the shipping address. ShippingAddress.Builder
setCity(@Nullable() String city)
Sets the town, district or city of the shipping address. ShippingAddress.Builder
setState(@Nullable() String state)
Sets the county, state or region of the shipping address. ShippingAddress.Builder
setCountry(@Nullable() String country)
Sets the country of the shipping address. ShippingAddress.Builder
setPostcode(@Nullable() String postcode)
Sets the postal code or zip code of the shipping address. ShippingAddress.Builder
setCustomer(@Nullable() Customer customer)
Sets the Customer. ShippingAddress.Builder
setCost(@Nullable() String cost)
Sets the total amount of the shipping costs. ShippingAddress.Builder
setPhone(@Nullable() String phone)
Sets the phone number for shipping address. ShippingAddress
build()
Creates a new ShippingAddress object. -
-
Method Detail
-
setStreet1
@NonNull() ShippingAddress.Builder setStreet1(@Nullable() String street1)
Sets the door number, floor, building number, building name, and/or street name of the shipping address.
- Parameters:
street1
- the street 1.
-
setStreet2
@NonNull() ShippingAddress.Builder setStreet2(@Nullable() String street2)
Sets the adjoining road or locality (if required) of the shipping address.
- Parameters:
street2
- the street2.
-
setCity
@NonNull() ShippingAddress.Builder setCity(@Nullable() String city)
Sets the town, district or city of the shipping address.
- Parameters:
city
- the city.
-
setState
@NonNull() ShippingAddress.Builder setState(@Nullable() String state)
Sets the county, state or region of the shipping address.
- Parameters:
state
- the state.
-
setCountry
@NonNull() ShippingAddress.Builder setCountry(@Nullable() String country)
Sets the country of the shipping address.
- Parameters:
country
- the country.
-
setPostcode
@NonNull() ShippingAddress.Builder setPostcode(@Nullable() String postcode)
Sets the postal code or zip code of the shipping address.
- Parameters:
postcode
- the postal code
-
setCustomer
@NonNull() ShippingAddress.Builder setCustomer(@Nullable() Customer customer)
Sets the Customer.
- Parameters:
customer
- the customer.
-
setCost
@NonNull() ShippingAddress.Builder setCost(@Nullable() String cost)
Sets the total amount of the shipping costs.
- Parameters:
cost
- the shipping costs.
-
setPhone
@NonNull() ShippingAddress.Builder setPhone(@Nullable() String phone)
Sets the phone number for shipping address.
- Parameters:
phone
- the phone number.
-
build
@NonNull() ShippingAddress build()
Creates a new ShippingAddress object.
-
-
-
-