java.lang.Object
com.maxmind.minfraud.request.Shipping.Builder
- Enclosing class:
- Shipping
Builder
creates instances of Shipping
from values set by the builder's
methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Shipping.Builder
final Shipping.Builder
build()
final Shipping.Builder
final Shipping.Builder
final Shipping.Builder
final Shipping.Builder
final Shipping.Builder
final Shipping.Builder
phoneCountryCode
(String code) final Shipping.Builder
phoneNumber
(String number) final Shipping.Builder
final Shipping.Builder
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deliverySpeed
- Parameters:
speed
- The shipping delivery speed for the order.- Returns:
- The builder object.
-
build
- Returns:
- An instance of
Shipping
created from the fields set on this builder.
-
firstName
- Parameters:
name
- The first name associated with the address- Returns:
- The builder object.
-
lastName
- Parameters:
name
- The last name associated with the address- Returns:
- The builder object.
-
company
- Parameters:
name
- The company name associated with the address- Returns:
- The builder object.
-
address
- Parameters:
address
- The first line of the address- Returns:
- The builder object.
-
address2
- Parameters:
address2
- The second line of the address- Returns:
- The builder object.
-
city
- Parameters:
name
- The city associated with the address- Returns:
- The builder object.
-
region
- Parameters:
code
- The ISO 3166-2 subdivision code for the region associated with the address- Returns:
- The builder object.
-
country
- Parameters:
code
- The ISO 3166-1 alpha-2 country code for the country associated with the address (e.g, "US")- Returns:
- The builder object.
- Throws:
IllegalArgumentException
- when code is not a two-letter country code.
-
postal
- Parameters:
code
- The postal code for associated with the address- Returns:
- The builder object.
-
phoneCountryCode
- Parameters:
code
- The phone country code for the phone number associated with the address- Returns:
- The builder object.
-
phoneNumber
- Parameters:
number
- The phone number, without the country code, associated with the address- Returns:
- The builder object.
-