public class ShippingAddress extends Object
| Constructor and Description |
|---|
ShippingAddress() |
| Modifier and Type | Method and Description |
|---|---|
ShippingAddress |
city(String city) |
ShippingAddress |
country(String country) |
ShippingAddress |
phone(String phone) |
void |
setCity(String city) |
void |
setCountry(String country) |
void |
setPhone(String phone) |
void |
setState(String state) |
void |
setStreet(String street) |
void |
setZip(String zip) |
ShippingAddress |
state(String state) |
ShippingAddress |
street(String street) |
String |
toString() |
ShippingAddress |
zip(String zip) |
public void setCity(String city)
public ShippingAddress city(String city)
city - Delivery city. May include whitespaces, hyphens, apostrophes, commas and dotspublic void setCountry(String country)
public ShippingAddress country(String country)
country - [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) code of country: 2 or 3 latin letters or numeric code. Mandatory if 'shipping_address' is presented.public void setPhone(String phone)
public ShippingAddress phone(String phone)
phone - Valid Customer phone numberpublic void setState(String state)
public ShippingAddress state(String state)
state - Delivery state or province. May include whitespaces, hyphens, apostrophes, commas and dotspublic void setStreet(String street)
public ShippingAddress street(String street)
street - Delivery street address. May include whitespaces, hyphens, apostrophes, commas, quotes, dots, slashes and semicolonspublic void setZip(String zip)
public ShippingAddress zip(String zip)
zip - Delivery postal codeCopyright © 2019. All rights reserved.