Class RegistrationCreateParams.Builder

java.lang.Object
com.stripe.param.tax.RegistrationCreateParams.Builder
Enclosing class:
RegistrationCreateParams

public static class RegistrationCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public RegistrationCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setActiveFrom

      Required. Time at which the Tax Registration becomes active. It can be either now to indicate the current time, or a future timestamp measured in seconds since the Unix epoch.
    • setActiveFrom

      public RegistrationCreateParams.Builder setActiveFrom(Long activeFrom)
      Required. Time at which the Tax Registration becomes active. It can be either now to indicate the current time, or a future timestamp measured in seconds since the Unix epoch.
    • setCountry

      public RegistrationCreateParams.Builder setCountry(String country)
      Required. Two-letter country code (ISO 3166-1 alpha-2).
    • setCountryOptions

      Required. Specific options for a registration in the specified country.
    • addExpand

      public RegistrationCreateParams.Builder addExpand(String element)
      Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See RegistrationCreateParams.expand for the field documentation.
    • addAllExpand

      public RegistrationCreateParams.Builder addAllExpand(List<String> elements)
      Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See RegistrationCreateParams.expand for the field documentation.
    • setExpiresAt

      public RegistrationCreateParams.Builder setExpiresAt(Long expiresAt)
      If set, the Tax Registration stops being active at this time. If not set, the Tax Registration will be active indefinitely. Timestamp measured in seconds since the Unix epoch.
    • putExtraParam

      public RegistrationCreateParams.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See RegistrationCreateParams.extraParams for the field documentation.
    • putAllExtraParam

      public RegistrationCreateParams.Builder putAllExtraParam(Map<String,Object> map)
      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See RegistrationCreateParams.extraParams for the field documentation.