Skip to content

Commit

Permalink
Merge pull request #1851 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Aug 22, 2024
2 parents c8c12ee + 2f5a657 commit 61c62d2
Show file tree
Hide file tree
Showing 60 changed files with 2,143 additions and 4,430 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,23 @@
* Add support for `collected_information` on `Checkout.Session` and `checkout.SessionUpdateParams`
* Add support for `shipping_options` on `checkout.SessionUpdateParams`

## 26.8.0 - 2024-08-15
* [#1847](https://github.com/stripe/stripe-java/pull/1847) Update generated code
* Add support for `authorization_code` on `Charge.payment_method_details.card`
* Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
* Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit`
* Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
* Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, `treasury.OutboundPaymentUpdateParams.tracking_details.us_domestic_wire`, and `treasury.OutboundTransferUpdateParams.tracking_details.us_domestic_wire`
* [#1849](https://github.com/stripe/stripe-java/pull/1849) Update recommended VSCode extensions

## 26.8.0-beta.1 - 2024-08-12
* [#1844](https://github.com/stripe/stripe-java/pull/1844) Update generated code for beta
* Add support for `capital_financing_application` and `capital_financing` on `AccountSession.components`
* Add support for `payto` on `Checkout.Session.payment_method_options` and `checkout.SessionCreateParams.payment_method_options`
* Add support for new value `payto` on enum `checkout.SessionCreateParams.payment_method_types[]`
* Add support for new value `custom` on enum `checkout.SessionCreateParams.ui_mode`
* ⚠️ Remove support for `risk_correlation_id` on `PaymentIntent.payment_method_options.rechnung`, `PaymentIntentConfirmParams.payment_method_options.rechnung`, `PaymentIntentCreateParams.payment_method_options.rechnung`, and `PaymentIntentUpdateParams.payment_method_options.rechnung`
* Add support for new value `payto` on enums `PaymentLinkCreateParams.payment_method_types[]` and `PaymentLinkUpdateParams.payment_method_types[]`
* Add support for new value `payto` on enums `PaymentLinkCreateParams.payment_method_types[]` and `PaymentLinkUpdateParams.payment_method_types[]`

## 26.7.0 - 2024-08-08
* [#1843](https://github.com/stripe/stripe-java/pull/1843) Update generated code
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1201
v1214
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

final class ApiVersion {
public static final String CURRENT = "2024-06-20";
public static final String PREVIEW_CURRENT = "2024-07-16.preview-v2";
public static final String PREVIEW_CURRENT = "2024-08-21.preview-v2";
}
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("link_payments")
String linkPayments;

/**
* The status of the MB WAY payments capability of the account, or whether the account can
* directly process MB WAY charges.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("mb_way_payments")
String mbWayPayments;

/**
* The status of the MobilePay capability of the account, or whether the account can directly
* process MobilePay charges.
Expand Down
21 changes: 16 additions & 5 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,14 @@ public class Charge extends ApiResource implements MetadataStore<Charge>, Balanc
ExpandableField<Transfer> sourceTransfer;

/**
* For a non-card charge, text that appears on the customer's statement as the <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors">statement
* descriptor</a>. This value overrides the account's default statement descriptor. For a card
* charge, this value is ignored unless you don't specify a {@code statement_descriptor_suffix},
* in which case this value is used as the suffix.
* For a non-card charge, text that appears on the customer's statement as the statement
* descriptor. This value overrides the account's default statement descriptor. For information
* about requirements, including the 22-character limit, see <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors">the Statement
* Descriptor docs</a>.
*
* <p>For a card charge, this value is ignored unless you don't specify a {@code
* statement_descriptor_suffix}, in which case this value is used as the suffix.
*/
@SerializedName("statement_descriptor")
String statementDescriptor;
Expand Down Expand Up @@ -1196,6 +1199,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("link")
Link link;

@SerializedName("mb_way")
MbWay mbWay;

@SerializedName("mobilepay")
Mobilepay mobilepay;

Expand Down Expand Up @@ -2752,6 +2758,11 @@ public static class Link extends StripeObject {
String country;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class MbWay extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
18 changes: 13 additions & 5 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("link")
Link link;

@SerializedName("mb_way")
MbWay mbWay;

@SerializedName("mobilepay")
Mobilepay mobilepay;

Expand Down Expand Up @@ -373,11 +376,11 @@ public static class PaymentMethodPreview extends StripeObject {
* {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code bancontact}, {@code
* blik}, {@code boleto}, {@code card}, {@code card_present}, {@code cashapp}, {@code
* customer_balance}, {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal},
* {@code interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mobilepay},
* {@code multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code paypal}, {@code payto},
* {@code pix}, {@code promptpay}, {@code rechnung}, {@code revolut_pay}, {@code sepa_debit},
* {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or
* {@code zip}.
* {@code interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mb_way},
* {@code mobilepay}, {@code multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code
* paypal}, {@code payto}, {@code pix}, {@code promptpay}, {@code rechnung}, {@code
* revolut_pay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code
* us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -1536,6 +1539,11 @@ public static class Link extends StripeObject {
String persistentToken;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class MbWay extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/CustomerSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
/**
* A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
* control over a Customer.
*
* <p>Related guides: <a
* href="https://stripe.com/payments/accept-a-payment-deferred?platform=web&amp;type=payment#save-payment-methods">Customer
* Session with the Payment Element</a>, <a
* href="https://stripe.com/payments/checkout/pricing-table#customer-session">Customer Session with
* the Pricing Table</a>, <a
* href="https://stripe.com/payment-links/buy-button#pass-an-existing-customer">Customer Session
* with the Buy Button</a>.
*/
@Getter
@Setter
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/stripe/model/Dispute.java
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,7 @@ public static class VisaCompellingEvidence3 extends StripeObject {
/**
* Visa Compelling Evidence 3.0 eligibility status.
*
* <p>One of {@code accepted}, {@code not_qualified}, {@code partner_rejected}, {@code
* qualified}, {@code requires_action}, or {@code submitted}.
* <p>One of {@code not_qualified}, {@code qualified}, or {@code requires_action}.
*/
@SerializedName("status")
String status;
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2605,18 +2605,18 @@ public static class CustomerTaxId extends StripeObject {
/**
* The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code
* bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin},
* {@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
* 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}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin},
* {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code unknown}.
* {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@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 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}, {@code bh_vat}, {@code kz_bin},
* {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code unknown}.
*/
@SerializedName("type")
String type;
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/com/stripe/model/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -1723,18 +1723,18 @@ public static class TaxId extends StripeObject {
/**
* The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code
* bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin},
* {@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
* 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}, {@code bh_vat}, {@code
* kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code
* {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@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 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}, {@code bh_vat},
* {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code
* unknown}.
*/
@SerializedName("type")
Expand Down
43 changes: 39 additions & 4 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,13 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P
ExpandableField<PaymentSource> source;

/**
* Text that appears on the customer's statement as the <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors">statement
* descriptor</a> for a non-card charge. This value overrides the account's default statement
* descriptor. Setting this value for a card charge returns an error. For card charges, set the <a
* Text that appears on the customer's statement as the statement descriptor for a non-card
* charge. This value overrides the account's default statement descriptor. For information about
* requirements, including the 22-character limit, see <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors">the Statement
* Descriptor docs</a>.
*
* <p>Setting this value for a card charge returns an error. For card charges, set the <a
* href="https://docs.stripe.com/get-started/account/statement-descriptors#dynamic">statement_descriptor_suffix</a>
* instead.
*/
Expand Down Expand Up @@ -2832,6 +2835,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("link")
Link link;

@SerializedName("mb_way")
MbWay mbWay;

@SerializedName("mobilepay")
Mobilepay mobilepay;

Expand Down Expand Up @@ -4052,6 +4058,35 @@ public static class Link extends StripeObject {
String setupFutureUsage;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class MbWay extends StripeObject {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
* <p>If you provide a Customer with the PaymentIntent, you can use this parameter to <a
* href="https://stripe.com/payments/save-during-payment">attach the payment method</a> to the
* Customer after the PaymentIntent is confirmed and the customer completes any required
* actions. If you don't provide a Customer, you can still <a
* href="https://stripe.com/api/payment_methods/attach">attach</a> the payment method to a
* Customer after the transaction completes.
*
* <p>If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
* and attaches a <a
* href="https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card</a>
* payment method representing the card to the Customer instead.
*
* <p>When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
* with regional legislation and network rules, such as <a
* href="https://stripe.com/strong-customer-authentication">SCA</a>.
*
* <p>Equal to {@code none}.
*/
@SerializedName("setup_future_usage")
String setupFutureUsage;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
19 changes: 14 additions & 5 deletions src/main/java/com/stripe/model/PaymentMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore<P
@SerializedName("livemode")
Boolean livemode;

@SerializedName("mb_way")
MbWay mbWay;

/**
* Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
* to an object. This can be useful for storing additional information about the object in a
Expand Down Expand Up @@ -219,11 +222,11 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore<P
* amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code bancontact}, {@code blik},
* {@code boleto}, {@code card}, {@code card_present}, {@code cashapp}, {@code customer_balance},
* {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, {@code
* interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mobilepay}, {@code
* multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code paypal}, {@code payto}, {@code
* pix}, {@code promptpay}, {@code rechnung}, {@code revolut_pay}, {@code sepa_debit}, {@code
* sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code
* zip}.
* interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mb_way}, {@code
* mobilepay}, {@code multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code paypal},
* {@code payto}, {@code pix}, {@code promptpay}, {@code rechnung}, {@code revolut_pay}, {@code
* sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code
* wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -1771,6 +1774,11 @@ public static class Link extends StripeObject {
String persistentToken;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class MbWay extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -2158,6 +2166,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(klarna, responseGetter);
trySetResponseGetter(konbini, responseGetter);
trySetResponseGetter(link, responseGetter);
trySetResponseGetter(mbWay, responseGetter);
trySetResponseGetter(mobilepay, responseGetter);
trySetResponseGetter(multibanco, responseGetter);
trySetResponseGetter(oxxo, responseGetter);
Expand Down
Loading

0 comments on commit 61c62d2

Please sign in to comment.