All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stripe.model.tax.Registration Maven / Gradle / Ivy

There is a newer version: 28.1.0-beta.3
Show newest version
// File generated from our OpenAPI spec
package com.stripe.model.tax;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.model.HasId;
import com.stripe.model.StripeObject;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
import com.stripe.net.BaseAddress;
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.tax.RegistrationCreateParams;
import com.stripe.param.tax.RegistrationListParams;
import com.stripe.param.tax.RegistrationRetrieveParams;
import com.stripe.param.tax.RegistrationUpdateParams;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * A Tax {@code Registration} lets us know that your business is registered to collect tax on
 * payments within a region, enabling you to automatically
 * collect tax.
 *
 * 

Stripe doesn't register on your behalf with the relevant authorities when you create a Tax * {@code Registration} object. For more information on how to register to collect tax, see our guide. * *

Related guide: Using the Registrations * API */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public class Registration extends ApiResource implements HasId { /** Time at which the registration becomes active. Measured in seconds since the Unix epoch. */ @SerializedName("active_from") Long activeFrom; /** * Two-letter country code (ISO 3166-1 * alpha-2). */ @SerializedName("country") String country; @SerializedName("country_options") CountryOptions countryOptions; /** Time at which the object was created. Measured in seconds since the Unix epoch. */ @SerializedName("created") Long created; /** * If set, the registration stops being active at this time. If not set, the registration will be * active indefinitely. Measured in seconds since the Unix epoch. */ @SerializedName("expires_at") Long expiresAt; /** Unique identifier for the object. */ @Getter(onMethod_ = {@Override}) @SerializedName("id") String id; /** * Has the value {@code true} if the object exists in live mode or the value {@code false} if the * object exists in test mode. */ @SerializedName("livemode") Boolean livemode; /** * String representing the object's type. Objects of the same type share the same value. * *

Equal to {@code tax.registration}. */ @SerializedName("object") String object; /** * The status of the registration. This field is present for convenience and can be deduced from * {@code active_from} and {@code expires_at}. * *

One of {@code active}, {@code expired}, or {@code scheduled}. */ @SerializedName("status") String status; /** Creates a new Tax {@code Registration} object. */ public static Registration create(Map params) throws StripeException { return create(params, (RequestOptions) null); } /** Creates a new Tax {@code Registration} object. */ public static Registration create(Map params, RequestOptions options) throws StripeException { String path = "/v1/tax/registrations"; ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); return getGlobalResponseGetter().request(request, Registration.class); } /** Creates a new Tax {@code Registration} object. */ public static Registration create(RegistrationCreateParams params) throws StripeException { return create(params, (RequestOptions) null); } /** Creates a new Tax {@code Registration} object. */ public static Registration create(RegistrationCreateParams params, RequestOptions options) throws StripeException { String path = "/v1/tax/registrations"; ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.POST, path, ApiRequestParams.paramsToMap(params), options); return getGlobalResponseGetter().request(request, Registration.class); } /** Returns a list of Tax {@code Registration} objects. */ public static RegistrationCollection list(Map params) throws StripeException { return list(params, (RequestOptions) null); } /** Returns a list of Tax {@code Registration} objects. */ public static RegistrationCollection list(Map params, RequestOptions options) throws StripeException { String path = "/v1/tax/registrations"; ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options); return getGlobalResponseGetter().request(request, RegistrationCollection.class); } /** Returns a list of Tax {@code Registration} objects. */ public static RegistrationCollection list(RegistrationListParams params) throws StripeException { return list(params, (RequestOptions) null); } /** Returns a list of Tax {@code Registration} objects. */ public static RegistrationCollection list(RegistrationListParams params, RequestOptions options) throws StripeException { String path = "/v1/tax/registrations"; ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.GET, path, ApiRequestParams.paramsToMap(params), options); return getGlobalResponseGetter().request(request, RegistrationCollection.class); } /** Returns a Tax {@code Registration} object. */ public static Registration retrieve(String id) throws StripeException { return retrieve(id, (Map) null, (RequestOptions) null); } /** Returns a Tax {@code Registration} object. */ public static Registration retrieve(String id, RequestOptions options) throws StripeException { return retrieve(id, (Map) null, options); } /** Returns a Tax {@code Registration} object. */ public static Registration retrieve(String id, Map params, RequestOptions options) throws StripeException { String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(id)); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options); return getGlobalResponseGetter().request(request, Registration.class); } /** Returns a Tax {@code Registration} object. */ public static Registration retrieve( String id, RegistrationRetrieveParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(id)); ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.GET, path, ApiRequestParams.paramsToMap(params), options); return getGlobalResponseGetter().request(request, Registration.class); } /** * Updates an existing Tax {@code Registration} object. * *

A registration cannot be deleted after it has been created. If you wish to end a * registration you may do so by setting {@code expires_at}. */ public Registration update(Map params) throws StripeException { return update(params, (RequestOptions) null); } /** * Updates an existing Tax {@code Registration} object. * *

A registration cannot be deleted after it has been created. If you wish to end a * registration you may do so by setting {@code expires_at}. */ public Registration update(Map params, RequestOptions options) throws StripeException { String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(this.getId())); ApiRequest request = new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); return getResponseGetter().request(request, Registration.class); } /** * Updates an existing Tax {@code Registration} object. * *

A registration cannot be deleted after it has been created. If you wish to end a * registration you may do so by setting {@code expires_at}. */ public Registration update(RegistrationUpdateParams params) throws StripeException { return update(params, (RequestOptions) null); } /** * Updates an existing Tax {@code Registration} object. * *

A registration cannot be deleted after it has been created. If you wish to end a * registration you may do so by setting {@code expires_at}. */ public Registration update(RegistrationUpdateParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(this.getId())); ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.POST, path, ApiRequestParams.paramsToMap(params), options); return getResponseGetter().request(request, Registration.class); } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CountryOptions extends StripeObject { @SerializedName("ae") Ae ae; @SerializedName("at") At at; @SerializedName("au") Au au; @SerializedName("be") Be be; @SerializedName("bg") Bg bg; @SerializedName("bh") Bh bh; @SerializedName("ca") Ca ca; @SerializedName("ch") Ch ch; @SerializedName("cl") Cl cl; @SerializedName("co") Co co; @SerializedName("cy") Cy cy; @SerializedName("cz") Cz cz; @SerializedName("de") De de; @SerializedName("dk") Dk dk; @SerializedName("ee") Ee ee; @SerializedName("eg") Eg eg; @SerializedName("es") Es es; @SerializedName("fi") Fi fi; @SerializedName("fr") Fr fr; @SerializedName("gb") Gb gb; @SerializedName("ge") Ge ge; @SerializedName("gr") Gr gr; @SerializedName("hr") Hr hr; @SerializedName("hu") Hu hu; @SerializedName("id") Id id; @SerializedName("ie") Ie ie; @SerializedName("is") Is is; @SerializedName("it") It it; @SerializedName("jp") Jp jp; @SerializedName("ke") Ke ke; @SerializedName("kr") Kr kr; @SerializedName("kz") Kz kz; @SerializedName("lt") Lt lt; @SerializedName("lu") Lu lu; @SerializedName("lv") Lv lv; @SerializedName("mt") Mt mt; @SerializedName("mx") Mx mx; @SerializedName("my") My my; @SerializedName("ng") Ng ng; @SerializedName("nl") Nl nl; @SerializedName("no") No no; @SerializedName("nz") Nz nz; @SerializedName("om") Om om; @SerializedName("pl") Pl pl; @SerializedName("pt") Pt pt; @SerializedName("ro") Ro ro; @SerializedName("sa") Sa sa; @SerializedName("se") Se se; @SerializedName("sg") Sg sg; @SerializedName("si") Si si; @SerializedName("sk") Sk sk; @SerializedName("th") Th th; @SerializedName("tr") Tr tr; @SerializedName("us") Us us; @SerializedName("vn") Vn vn; @SerializedName("za") Za za; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ae extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class At extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Au extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Be extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Bg extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Bh extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ca extends StripeObject { @SerializedName("province_standard") ProvinceStandard provinceStandard; /** * Type of registration in Canada. * *

One of {@code province_standard}, {@code simplified}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class ProvinceStandard extends StripeObject { /** * Two-letter CA province code (ISO * 3166-2). */ @SerializedName("province") String province; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ch extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Cl extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Co extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Cy extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Cz extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class De extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Dk extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ee extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Eg extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Es extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Fi extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Fr extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Gb extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ge extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Gr extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Hr extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Hu extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Id extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ie extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Is extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class It extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Jp extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ke extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Kr extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Kz extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Lt extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Lu extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Lv extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Mt extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Mx extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class My extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ng extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Nl extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class No extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Nz extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Om extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Pl extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Pt extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ro extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Sa extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Se extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Sg extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Si extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Sk extends StripeObject { @SerializedName("standard") Standard standard; /** * Type of registration in an EU country. * *

One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Standard extends StripeObject { /** * Place of supply scheme used in an EU standard registration. * *

One of {@code small_seller}, or {@code standard}. */ @SerializedName("place_of_supply_scheme") String placeOfSupplyScheme; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Th extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Tr extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Us extends StripeObject { @SerializedName("local_amusement_tax") LocalAmusementTax localAmusementTax; @SerializedName("local_lease_tax") LocalLeaseTax localLeaseTax; /** * Two-letter US state code (ISO * 3166-2). */ @SerializedName("state") String state; /** * Type of registration in the US. * *

One of {@code local_amusement_tax}, {@code local_lease_tax}, {@code * state_communications_tax}, or {@code state_sales_tax}. */ @SerializedName("type") String type; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class LocalAmusementTax extends StripeObject { /** * A FIPS code * representing the local jurisdiction. */ @SerializedName("jurisdiction") String jurisdiction; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class LocalLeaseTax extends StripeObject { /** * A FIPS code * representing the local jurisdiction. */ @SerializedName("jurisdiction") String jurisdiction; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Vn extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code simplified}. */ @SerializedName("type") String type; } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Za extends StripeObject { /** * Type of registration in {@code country}. * *

Equal to {@code standard}. */ @SerializedName("type") String type; } } @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); trySetResponseGetter(countryOptions, responseGetter); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy