java.lang.Object
com.maxmind.minfraud.request.Billing.Builder
- Enclosing class:
- Billing
Builder
creates instances of Billing
from values set by the builder's
methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Billing.Builder
final Billing.Builder
build()
final Billing.Builder
final Billing.Builder
final Billing.Builder
final Billing.Builder
final Billing.Builder
final Billing.Builder
phoneCountryCode
(String code) final Billing.Builder
phoneNumber
(String number) final Billing.Builder
final Billing.Builder
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
- Returns:
- An instance of
Billing
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.
-