Skip to content

Commit

Permalink
Update generated code (#1745)
Browse files Browse the repository at this point in the history
* Update generated code for v815

* Update generated code for v817

* Update generated code for v818

* Update generated code for v819

* Update generated code for v820

* Update generated code for v822

* Update generated code for v823

* Update generated code for v826

* Update generated code for v827

* Update generated code for v829

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Feb 15, 2024
1 parent ddefe65 commit 7c8fa24
Show file tree
Hide file tree
Showing 36 changed files with 612 additions and 206 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v814
v829
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ public class Card extends ApiResource
@SerializedName("name")
String name;

@SerializedName("networks")
Networks networks;

/**
* String representing the object's type. Objects of the same type share the same value.
*
Expand Down Expand Up @@ -480,4 +483,17 @@ public Card delete(Map<String, Object> params, RequestOptions options) throws St
BaseAddress.API, ApiResource.RequestMethod.DELETE, url, params, options, ApiMode.V1);
return getResponseGetter().request(request, Card.class);
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Networks extends StripeObject {
/**
* The preferred network for co-branded cards. Can be {@code cartes_bancaires}, {@code
* mastercard}, {@code visa} or {@code invalid_preference} if requested network is not valid for
* the card.
*/
@SerializedName("preferred")
String preferred;
}
}
1 change: 1 addition & 0 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public class Event extends ApiResource implements HasId {
* financial_connections.account.deactivated}, {@code financial_connections.account.disconnected},
* {@code financial_connections.account.reactivated}, {@code
* financial_connections.account.refreshed_balance}, {@code
* financial_connections.account.refreshed_ownership}, {@code
* financial_connections.account.refreshed_transactions}, {@code
* identity.verification_session.canceled}, {@code identity.verification_session.created}, {@code
* identity.verification_session.processing}, {@code identity.verification_session.redacted},
Expand Down
22 changes: 11 additions & 11 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1894,14 +1894,14 @@ public static class CustomerTaxId extends StripeObject {
* {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code
* rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat},
* {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code
* za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, {@code ru_kpp},
* {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code th_vat}, {@code jp_cn},
* {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin},
* {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
* no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn},
* {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code th_vat},
* {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code
* tr_tin}, {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -2108,9 +2108,9 @@ public static class Card extends StripeObject {
* href="https://stripe.com/docs/strong-customer-authentication">other requirements</a>.
* However, if you wish to request 3D Secure based on logic from your own fraud engine,
* provide this option. Read our guide on <a
* href="https://stripe.com/docs/payments/3d-secure#manual-three-ds">manually requesting 3D
* Secure</a> for more information on how this configuration interacts with Radar and our
* SCA Engine.
* href="https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds">manually
* requesting 3D Secure</a> for more information on how this configuration interacts with
* Radar and our SCA Engine.
*
* <p>One of {@code any}, {@code automatic}, or {@code challenge}.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/InvoiceLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public class InvoiceLineItem extends StripeObject implements HasId {
@SerializedName("id")
String id;

/** The ID of the invoice that contains this line item. */
@SerializedName("invoice")
String invoice;

/**
* The ID of the <a href="https://stripe.com/docs/api/invoiceitems">invoice item</a> associated
* with this line item if any.
Expand Down
32 changes: 12 additions & 20 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -791,9 +791,7 @@ public PaymentIntent capture(PaymentIntentCaptureParams params, RequestOptions o
* attempts must be initiated using a secret key. If any actions are required for the payment, the
* PaymentIntent will return to the {@code requires_confirmation} state after those actions are
* completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
* next payment attempt. Read the <a
* href="https://stripe.com/docs/payments/payment-intents/web-manual">expanded documentation</a>
* to learn more about manual confirmation.
* next payment attempt.
*/
public PaymentIntent confirm() throws StripeException {
return confirm((Map<String, Object>) null, (RequestOptions) null);
Expand All @@ -817,9 +815,7 @@ public PaymentIntent confirm() throws StripeException {
* attempts must be initiated using a secret key. If any actions are required for the payment, the
* PaymentIntent will return to the {@code requires_confirmation} state after those actions are
* completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
* next payment attempt. Read the <a
* href="https://stripe.com/docs/payments/payment-intents/web-manual">expanded documentation</a>
* to learn more about manual confirmation.
* next payment attempt.
*/
public PaymentIntent confirm(RequestOptions options) throws StripeException {
return confirm((Map<String, Object>) null, options);
Expand All @@ -843,9 +839,7 @@ public PaymentIntent confirm(RequestOptions options) throws StripeException {
* attempts must be initiated using a secret key. If any actions are required for the payment, the
* PaymentIntent will return to the {@code requires_confirmation} state after those actions are
* completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
* next payment attempt. Read the <a
* href="https://stripe.com/docs/payments/payment-intents/web-manual">expanded documentation</a>
* to learn more about manual confirmation.
* next payment attempt.
*/
public PaymentIntent confirm(Map<String, Object> params) throws StripeException {
return confirm(params, (RequestOptions) null);
Expand All @@ -869,9 +863,7 @@ public PaymentIntent confirm(Map<String, Object> params) throws StripeException
* attempts must be initiated using a secret key. If any actions are required for the payment, the
* PaymentIntent will return to the {@code requires_confirmation} state after those actions are
* completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
* next payment attempt. Read the <a
* href="https://stripe.com/docs/payments/payment-intents/web-manual">expanded documentation</a>
* to learn more about manual confirmation.
* next payment attempt.
*/
public PaymentIntent confirm(Map<String, Object> params, RequestOptions options)
throws StripeException {
Expand Down Expand Up @@ -901,9 +893,7 @@ public PaymentIntent confirm(Map<String, Object> params, RequestOptions options)
* attempts must be initiated using a secret key. If any actions are required for the payment, the
* PaymentIntent will return to the {@code requires_confirmation} state after those actions are
* completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
* next payment attempt. Read the <a
* href="https://stripe.com/docs/payments/payment-intents/web-manual">expanded documentation</a>
* to learn more about manual confirmation.
* next payment attempt.
*/
public PaymentIntent confirm(PaymentIntentConfirmParams params) throws StripeException {
return confirm(params, (RequestOptions) null);
Expand All @@ -927,9 +917,7 @@ public PaymentIntent confirm(PaymentIntentConfirmParams params) throws StripeExc
* attempts must be initiated using a secret key. If any actions are required for the payment, the
* PaymentIntent will return to the {@code requires_confirmation} state after those actions are
* completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
* next payment attempt. Read the <a
* href="https://stripe.com/docs/payments/payment-intents/web-manual">expanded documentation</a>
* to learn more about manual confirmation.
* next payment attempt.
*/
public PaymentIntent confirm(PaymentIntentConfirmParams params, RequestOptions options)
throws StripeException {
Expand Down Expand Up @@ -2134,7 +2122,10 @@ public static class SwishHandleRedirectOrDisplayQrCode extends StripeObject {
@SerializedName("hosted_instructions_url")
String hostedInstructionsUrl;

/** The url for mobile redirect based auth. */
/**
* The url for mobile redirect based auth (for internal use only and not typically available
* in standard API requests).
*/
@SerializedName("mobile_auth_url")
String mobileAuthUrl;

Expand Down Expand Up @@ -2779,7 +2770,8 @@ public static class Card extends StripeObject {
* href="https://stripe.com/docs/strong-customer-authentication">other requirements</a>.
* However, if you wish to request 3D Secure based on logic from your own fraud engine,
* provide this option. If not provided, this value defaults to {@code automatic}. Read our
* guide on <a href="https://stripe.com/docs/payments/3d-secure#manual-three-ds">manually
* guide on <a
* href="https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds">manually
* requesting 3D Secure</a> for more information on how this configuration interacts with
* Radar and our SCA Engine.
*
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,16 @@ public static class Card extends StripeObject {
@SerializedName("description")
String description;

/**
* The brand to use when displaying the card, this accounts for customer's brand choice on
* dual-branded cards. Can be {@code american_express}, {@code cartes_bancaires}, {@code
* diners_club}, {@code discover}, {@code eftpos_australia}, {@code interac}, {@code jcb},
* {@code mastercard}, {@code union_pay}, {@code visa}, or {@code other} and may contain more
* values in the future.
*/
@SerializedName("display_brand")
String displayBrand;

/** Two-digit number representing the card's expiration month. */
@SerializedName("exp_month")
Long expMonth;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/stripe/model/SetupIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,8 @@ public static class Card extends StripeObject {
* href="https://stripe.com/docs/strong-customer-authentication">other requirements</a>.
* However, if you wish to request 3D Secure based on logic from your own fraud engine,
* provide this option. If not provided, this value defaults to {@code automatic}. Read our
* guide on <a href="https://stripe.com/docs/payments/3d-secure#manual-three-ds">manually
* guide on <a
* href="https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds">manually
* requesting 3D Secure</a> for more information on how this configuration interacts with
* Radar and our SCA Engine.
*
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -1497,9 +1497,9 @@ public static class Card extends StripeObject {
* href="https://stripe.com/docs/strong-customer-authentication">other requirements</a>.
* However, if you wish to request 3D Secure based on logic from your own fraud engine,
* provide this option. Read our guide on <a
* href="https://stripe.com/docs/payments/3d-secure#manual-three-ds">manually requesting 3D
* Secure</a> for more information on how this configuration interacts with Radar and our
* SCA Engine.
* href="https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds">manually
* requesting 3D Secure</a> for more information on how this configuration interacts with
* Radar and our SCA Engine.
*
* <p>One of {@code any}, {@code automatic}, or {@code challenge}.
*/
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/TaxId.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ public class TaxId extends ApiResource implements HasId {
* 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 jp_trn}, {@code ke_pin}, {@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 pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code
* ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code
* sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code
* uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat}. Note that some legacy tax IDs have
* type {@code unknown}
* no_vat}, {@code no_voec}, {@code nz_gst}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin},
* {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen},
* {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code ua_vat},
* {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat}. Note that
* some legacy tax IDs have type {@code unknown}
*/
@SerializedName("type")
String type;
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1170,14 +1170,14 @@ public static class TaxId extends StripeObject {
* {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code
* rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat},
* {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code
* za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, {@code ru_kpp},
* {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code th_vat}, {@code
* jp_cn}, {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code
* tr_tin}, {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
* no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn},
* {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code
* th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin},
* {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/model/tax/Calculation.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ public static class TaxId extends StripeObject {
* {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code
* rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat},
* {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code
* za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, {@code ru_kpp},
* {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code th_vat}, {@code
* jp_cn}, {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code
* tr_tin}, {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
* no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn},
* {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code
* th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin},
* {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/model/tax/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,14 @@ public static class TaxId extends StripeObject {
* {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code
* rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat},
* {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code
* za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, {@code ru_kpp},
* {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code th_vat}, {@code
* jp_cn}, {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code
* tr_tin}, {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
* no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn},
* {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code
* th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@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}, {@code bg_uic}, {@code hu_tin}, {@code si_tin},
* {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, or {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down
Loading

0 comments on commit 7c8fa24

Please sign in to comment.