Package com.stripe.param.tax
Class RegistrationCreateParams.Builder
java.lang.Object
com.stripe.param.tax.RegistrationCreateParams.Builder
- Enclosing class:
- RegistrationCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setActiveFrom(RegistrationCreateParams.ActiveFrom activeFrom) Required. Time at which the Tax Registration becomes active.setActiveFrom(Long activeFrom) Required. Time at which the Tax Registration becomes active.setCountry(String country) Required. Two-letter country code (ISO 3166-1 alpha-2).setCountryOptions(RegistrationCreateParams.CountryOptions countryOptions) Required. Specific options for a registration in the specifiedcountry.setExpiresAt(Long expiresAt) If set, the Tax Registration stops being active at this time.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setActiveFrom
public RegistrationCreateParams.Builder setActiveFrom(RegistrationCreateParams.ActiveFrom activeFrom) Required. Time at which the Tax Registration becomes active. It can be eithernowto indicate the current time, or a future timestamp measured in seconds since the Unix epoch. -
setActiveFrom
Required. Time at which the Tax Registration becomes active. It can be eithernowto indicate the current time, or a future timestamp measured in seconds since the Unix epoch. -
setCountry
Required. Two-letter country code (ISO 3166-1 alpha-2). -
setCountryOptions
public RegistrationCreateParams.Builder setCountryOptions(RegistrationCreateParams.CountryOptions countryOptions) Required. Specific options for a registration in the specifiedcountry. -
addExpand
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. SeeRegistrationCreateParams.expandfor the field documentation. -
addAllExpand
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. SeeRegistrationCreateParams.expandfor the field documentation. -
setExpiresAt
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
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. SeeRegistrationCreateParams.extraParamsfor the field documentation. -
putAllExtraParam
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. SeeRegistrationCreateParams.extraParamsfor the field documentation.
-