Class Billing.Builder

java.lang.Object
com.maxmind.minfraud.request.Billing.Builder
Enclosing class:
Billing

public static final class Billing.Builder extends Object
Builder creates instances of Billing from values set by the builder's methods.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public Billing build()
      Returns:
      An instance of Billing created from the fields set on this builder.
    • firstName

      public final Billing.Builder firstName(String name)
      Parameters:
      name - The first name associated with the address
      Returns:
      The builder object.
    • lastName

      public final Billing.Builder lastName(String name)
      Parameters:
      name - The last name associated with the address
      Returns:
      The builder object.
    • company

      public final Billing.Builder company(String name)
      Parameters:
      name - The company name associated with the address
      Returns:
      The builder object.
    • address

      public final Billing.Builder address(String address)
      Parameters:
      address - The first line of the address
      Returns:
      The builder object.
    • address2

      public final Billing.Builder address2(String address2)
      Parameters:
      address2 - The second line of the address
      Returns:
      The builder object.
    • city

      public final Billing.Builder city(String name)
      Parameters:
      name - The city associated with the address
      Returns:
      The builder object.
    • region

      public final Billing.Builder region(String code)
      Parameters:
      code - The ISO 3166-2 subdivision code for the region associated with the address
      Returns:
      The builder object.
    • country

      public final Billing.Builder country(String code)
      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

      public final Billing.Builder postal(String code)
      Parameters:
      code - The postal code for associated with the address
      Returns:
      The builder object.
    • phoneCountryCode

      public final Billing.Builder phoneCountryCode(String code)
      Parameters:
      code - The phone country code for the phone number associated with the address
      Returns:
      The builder object.
    • phoneNumber

      public final Billing.Builder phoneNumber(String number)
      Parameters:
      number - The phone number, without the country code, associated with the address
      Returns:
      The builder object.