diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 0e1b84354a8..10283f068fa 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -1496,8 +1496,8 @@ public static class CustomerTaxId extends StripeObject { * jp_cn}, {@code jp_rn}, {@code li_uid}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code * ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, - * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, or {@code - * unknown}. + * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code + * bg_uic}, {@code hu_tin}, {@code si_tin}, or {@code unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java index 3be4da8c369..d490f604ad2 100644 --- a/src/main/java/com/stripe/model/Refund.java +++ b/src/main/java/com/stripe/model/Refund.java @@ -6,6 +6,7 @@ import com.stripe.exception.StripeException; import com.stripe.net.ApiResource; import com.stripe.net.RequestOptions; +import com.stripe.param.RefundCancelParams; import com.stripe.param.RefundCreateParams; import com.stripe.param.RefundListParams; import com.stripe.param.RefundRetrieveParams; @@ -404,6 +405,76 @@ public Refund update(RefundUpdateParams params, RequestOptions options) throws S return ApiResource.request(ApiResource.RequestMethod.POST, url, params, Refund.class, options); } + /** + * Cancels a refund with a status of requires_action. + * + *

Refunds in other states cannot be canceled, and only refunds for payment methods that + * require customer action will enter the requires_action state. + */ + public Refund cancel() throws StripeException { + return cancel((Map) null, (RequestOptions) null); + } + + /** + * Cancels a refund with a status of requires_action. + * + *

Refunds in other states cannot be canceled, and only refunds for payment methods that + * require customer action will enter the requires_action state. + */ + public Refund cancel(RequestOptions options) throws StripeException { + return cancel((Map) null, options); + } + + /** + * Cancels a refund with a status of requires_action. + * + *

Refunds in other states cannot be canceled, and only refunds for payment methods that + * require customer action will enter the requires_action state. + */ + public Refund cancel(Map params) throws StripeException { + return cancel(params, (RequestOptions) null); + } + + /** + * Cancels a refund with a status of requires_action. + * + *

Refunds in other states cannot be canceled, and only refunds for payment methods that + * require customer action will enter the requires_action state. + */ + public Refund cancel(Map params, RequestOptions options) throws StripeException { + String url = + String.format( + "%s%s", + Stripe.getApiBase(), + String.format("/v1/refunds/%s/cancel", ApiResource.urlEncodeId(this.getId()))); + return ApiResource.request(ApiResource.RequestMethod.POST, url, params, Refund.class, options); + } + + /** + * Cancels a refund with a status of requires_action. + * + *

Refunds in other states cannot be canceled, and only refunds for payment methods that + * require customer action will enter the requires_action state. + */ + public Refund cancel(RefundCancelParams params) throws StripeException { + return cancel(params, (RequestOptions) null); + } + + /** + * Cancels a refund with a status of requires_action. + * + *

Refunds in other states cannot be canceled, and only refunds for payment methods that + * require customer action will enter the requires_action state. + */ + public Refund cancel(RefundCancelParams params, RequestOptions options) throws StripeException { + String url = + String.format( + "%s%s", + Stripe.getApiBase(), + String.format("/v1/refunds/%s/cancel", ApiResource.urlEncodeId(this.getId()))); + return ApiResource.request(ApiResource.RequestMethod.POST, url, params, Refund.class, options); + } + @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java index 0dae86ea15b..001005165b6 100644 --- a/src/main/java/com/stripe/model/TaxId.java +++ b/src/main/java/com/stripe/model/TaxId.java @@ -54,15 +54,15 @@ public class TaxId extends ApiResource implements HasId { String object; /** - * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code br_cnpj}, - * {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code - * ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, {@code eu_vat}, - * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, - * {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, {@code nz_gst}, {@code ru_inn}, - * {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code th_vat}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, or {@code za_vat}. Note that some legacy tax IDs have type - * {@code unknown} + * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, + * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code + * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, + * {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, + * {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, + * {@code si_tin}, {@code th_vat}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code + * za_vat}. Note that some legacy tax IDs have type {@code unknown} */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index b7345748459..9d3a623bee5 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -719,7 +719,7 @@ public static class TaxID extends StripeObject { * kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code * ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, * {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code - * is_vat}, or {@code unknown}. + * is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, or {@code unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index 966862a6c41..eae3d8b5db4 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -1272,14 +1272,15 @@ public static class TaxIdData { Map extraParams; /** - * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code br_cnpj}, - * {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, - * {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, {@code - * nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, - * {@code th_vat}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code za_vat}. + * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, + * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code + * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code + * es_cif}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code kr_brn}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, + * {@code my_sst}, {@code no_vat}, {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code + * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code th_vat}, {@code tw_vat}, + * {@code ua_vat}, {@code us_ein}, or {@code za_vat}. */ @SerializedName("type") Type type; @@ -1337,14 +1338,15 @@ public Builder putAllExtraParam(Map map) { } /** - * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code br_cnpj}, - * {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, - * {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, - * {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code th_vat}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code za_vat}. + * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, + * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, + * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, + * {@code es_cif}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code kr_brn}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code no_vat}, {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, + * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code th_vat}, {@code + * tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code za_vat}. */ public Builder setType(Type type) { this.type = type; @@ -1368,6 +1370,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("bg_uic") + BG_UIC("bg_uic"), + @SerializedName("br_cnpj") BR_CNPJ("br_cnpj"), @@ -1413,6 +1418,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hu_tin") + HU_TIN("hu_tin"), + @SerializedName("id_npwp") ID_NPWP("id_npwp"), @@ -1470,6 +1478,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_uen") SG_UEN("sg_uen"), + @SerializedName("si_tin") + SI_TIN("si_tin"), + @SerializedName("th_vat") TH_VAT("th_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index 08c00754ffc..6a631d4937a 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -1415,14 +1415,15 @@ public static class TaxId { Map extraParams; /** - * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code br_cnpj}, - * {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, - * {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, - * {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code th_vat}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code za_vat}. + * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, + * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, + * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, + * {@code es_cif}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code kr_brn}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code no_vat}, {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, + * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code th_vat}, {@code + * tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code za_vat}. */ @SerializedName("type") Type type; @@ -1483,14 +1484,14 @@ public Builder putAllExtraParam(Map map) { /** * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code - * br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code - * es_cif}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * kr_brn}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, - * {@code no_vat}, {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code - * sg_gst}, {@code sg_uen}, {@code th_vat}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, - * or {@code za_vat}. + * bg_uic}, {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code + * cl_tin}, {@code es_cif}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, + * {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code + * jp_cn}, {@code jp_rn}, {@code kr_brn}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code no_vat}, {@code nz_gst}, {@code ru_inn}, {@code + * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code th_vat}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code za_vat}. */ public Builder setType(Type type) { this.type = type; @@ -1514,6 +1515,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("bg_uic") + BG_UIC("bg_uic"), + @SerializedName("br_cnpj") BR_CNPJ("br_cnpj"), @@ -1559,6 +1563,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hu_tin") + HU_TIN("hu_tin"), + @SerializedName("id_npwp") ID_NPWP("id_npwp"), @@ -1616,6 +1623,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_uen") SG_UEN("sg_uen"), + @SerializedName("si_tin") + SI_TIN("si_tin"), + @SerializedName("th_vat") TH_VAT("th_vat"), diff --git a/src/main/java/com/stripe/param/QuoteListParams.java b/src/main/java/com/stripe/param/QuoteListParams.java index 8b531514757..d284b8abd42 100644 --- a/src/main/java/com/stripe/param/QuoteListParams.java +++ b/src/main/java/com/stripe/param/QuoteListParams.java @@ -57,6 +57,13 @@ public class QuoteListParams extends ApiRequestParams { @SerializedName("status") Status status; + /** + * Provides a list of quotes that are associated with the specified test clock. The response will + * not include quotes with test clocks if this and the customer parameter is not set. + */ + @SerializedName("test_clock") + String testClock; + private QuoteListParams( String customer, String endingBefore, @@ -64,7 +71,8 @@ private QuoteListParams( Map extraParams, Long limit, String startingAfter, - Status status) { + Status status, + String testClock) { this.customer = customer; this.endingBefore = endingBefore; this.expand = expand; @@ -72,6 +80,7 @@ private QuoteListParams( this.limit = limit; this.startingAfter = startingAfter; this.status = status; + this.testClock = testClock; } public static Builder builder() { @@ -93,6 +102,8 @@ public static class Builder { private Status status; + private String testClock; + /** Finalize and obtain parameter instance from this builder. */ public QuoteListParams build() { return new QuoteListParams( @@ -102,7 +113,8 @@ public QuoteListParams build() { this.extraParams, this.limit, this.startingAfter, - this.status); + this.status, + this.testClock); } /** The ID of the customer whose quotes will be retrieved. */ @@ -199,6 +211,15 @@ public Builder setStatus(Status status) { this.status = status; return this; } + + /** + * Provides a list of quotes that are associated with the specified test clock. The response + * will not include quotes with test clocks if this and the customer parameter is not set. + */ + public Builder setTestClock(String testClock) { + this.testClock = testClock; + return this; + } } public enum Status implements ApiRequestParams.EnumParam { diff --git a/src/main/java/com/stripe/param/RefundCancelParams.java b/src/main/java/com/stripe/param/RefundCancelParams.java new file mode 100644 index 00000000000..0011a03dfab --- /dev/null +++ b/src/main/java/com/stripe/param/RefundCancelParams.java @@ -0,0 +1,98 @@ +// File generated from our OpenAPI spec +package com.stripe.param; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class RefundCancelParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private RefundCancelParams(List expand, Map extraParams) { + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public RefundCancelParams build() { + return new RefundCancelParams(this.expand, this.extraParams); + } + + /** + * 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 {@link + * RefundCancelParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * 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 {@link + * RefundCancelParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * 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 {@link + * RefundCancelParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * 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 {@link RefundCancelParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java index 6222b880cef..8f4cf2ef80c 100644 --- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java @@ -25,14 +25,15 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams { Map extraParams; /** - * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code br_cnpj}, - * {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code - * ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, {@code eu_vat}, - * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, - * {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, {@code nz_gst}, {@code ru_inn}, - * {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code th_vat}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, or {@code za_vat}. + * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, + * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code + * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, + * {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, + * {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, + * {@code si_tin}, {@code th_vat}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code + * za_vat}. */ @SerializedName("type") Type type; @@ -120,14 +121,15 @@ public Builder putAllExtraParam(Map map) { } /** - * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code br_cnpj}, - * {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, - * {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code es_cif}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code kr_brn}, {@code li_uid}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code no_vat}, {@code - * nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, - * {@code th_vat}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, or {@code za_vat}. + * Type of the tax ID, one of {@code ae_trn}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, + * {@code br_cnpj}, {@code br_cpf}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code + * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_vat}, {@code cl_tin}, {@code + * es_cif}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code kr_brn}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, + * {@code my_sst}, {@code no_vat}, {@code nz_gst}, {@code ru_inn}, {@code ru_kpp}, {@code + * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code th_vat}, {@code tw_vat}, + * {@code ua_vat}, {@code us_ein}, or {@code za_vat}. */ public Builder setType(Type type) { this.type = type; @@ -151,6 +153,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("bg_uic") + BG_UIC("bg_uic"), + @SerializedName("br_cnpj") BR_CNPJ("br_cnpj"), @@ -196,6 +201,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hu_tin") + HU_TIN("hu_tin"), + @SerializedName("id_npwp") ID_NPWP("id_npwp"), @@ -253,6 +261,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("sg_uen") SG_UEN("sg_uen"), + @SerializedName("si_tin") + SI_TIN("si_tin"), + @SerializedName("th_vat") TH_VAT("th_vat"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index 85ed62d9fec..df9dbbb081f 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -1083,6 +1083,21 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("tax_rate.updated") TAX_RATE__UPDATED("tax_rate.updated"), + @SerializedName("test_helpers.test_clock.advancing") + TEST_HELPERS__TEST_CLOCK__ADVANCING("test_helpers.test_clock.advancing"), + + @SerializedName("test_helpers.test_clock.created") + TEST_HELPERS__TEST_CLOCK__CREATED("test_helpers.test_clock.created"), + + @SerializedName("test_helpers.test_clock.deleted") + TEST_HELPERS__TEST_CLOCK__DELETED("test_helpers.test_clock.deleted"), + + @SerializedName("test_helpers.test_clock.internal_failure") + TEST_HELPERS__TEST_CLOCK__INTERNAL_FAILURE("test_helpers.test_clock.internal_failure"), + + @SerializedName("test_helpers.test_clock.ready") + TEST_HELPERS__TEST_CLOCK__READY("test_helpers.test_clock.ready"), + @SerializedName("topup.canceled") TOPUP__CANCELED("topup.canceled"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index cd64d9f0163..8eba637144d 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -771,6 +771,21 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("tax_rate.updated") TAX_RATE__UPDATED("tax_rate.updated"), + @SerializedName("test_helpers.test_clock.advancing") + TEST_HELPERS__TEST_CLOCK__ADVANCING("test_helpers.test_clock.advancing"), + + @SerializedName("test_helpers.test_clock.created") + TEST_HELPERS__TEST_CLOCK__CREATED("test_helpers.test_clock.created"), + + @SerializedName("test_helpers.test_clock.deleted") + TEST_HELPERS__TEST_CLOCK__DELETED("test_helpers.test_clock.deleted"), + + @SerializedName("test_helpers.test_clock.internal_failure") + TEST_HELPERS__TEST_CLOCK__INTERNAL_FAILURE("test_helpers.test_clock.internal_failure"), + + @SerializedName("test_helpers.test_clock.ready") + TEST_HELPERS__TEST_CLOCK__READY("test_helpers.test_clock.ready"), + @SerializedName("topup.canceled") TOPUP__CANCELED("topup.canceled"),