Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
T |
address(String address) |
T |
address2(String address2) |
Shipping |
build() |
T |
city(String name) |
T |
company(String name) |
T |
country(String code) |
Shipping.Builder |
deliverySpeed(Shipping.DeliverySpeed speed) |
T |
firstName(String name) |
T |
lastName(String name) |
T |
phoneCountryCode(String code) |
T |
phoneNumber(String number) |
T |
postal(String code) |
T |
region(String code) |
public Shipping.Builder deliverySpeed(Shipping.DeliverySpeed speed)
speed
- The shipping delivery speed for the order.public Shipping build()
Shipping
created from the
fields set on this builder.public final T firstName(String name)
name
- The first name associated with the addresspublic final T lastName(String name)
name
- The last name associated with the addresspublic final T company(String name)
name
- The company name associated with the addresspublic final T address(String address)
address
- The first line of the addresspublic final T address2(String address2)
address2
- The second line of the addresspublic final T city(String name)
name
- The city associated with the addresspublic final T region(String code)
code
- The ISO 3166-2 subdivision code for the region
associated with the addresspublic final T country(String code)
code
- The ISO 3166-1 alpha-2 country code for the country
associated with the address (e.g, "US")IllegalArgumentException
- when code is not a two-letter
country code.public final T postal(String code)
code
- The postal code for associated with the addresspublic final T phoneCountryCode(String code)
code
- The phone country code for the phone number associated with the addresspublic final T phoneNumber(String number)
number
- The phone number, without the country code, associated with the addressCopyright © 2016 MaxMind, Inc.. All rights reserved.