Skip to content

Commit eb4b2fe

Browse files
Merge pull request #2229 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 58c96dc + 23e047a commit eb4b2fe

21 files changed

+425
-22
lines changed

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## 17.4.0 - 2024-11-20
4+
* [#2222](https://github.com/stripe/stripe-node/pull/2222) This release changes the pinned API version to `2024-11-20.acacia`.
5+
* Add support for `respond` test helper method on resource `Issuing.Authorization`
6+
* Add support for `authorizer` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship`
7+
* Change type of `Account.future_requirements.disabled_reason` and `Account.requirements.disabled_reason` from `string` to `enum`
8+
* Change `AccountSession.components.account_management.features.disable_stripe_user_authentication`, `AccountSession.components.account_onboarding.features.disable_stripe_user_authentication`, `AccountSession.components.balances.features.disable_stripe_user_authentication`, `AccountSession.components.notification_banner.features.disable_stripe_user_authentication`, and `AccountSession.components.payouts.features.disable_stripe_user_authentication` to be required
9+
* Add support for `adaptive_pricing` on `Checkout.SessionCreateParams` and `Checkout.Session`
10+
* Add support for `mandate_options` on `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit`, and `Checkout.SessionCreateParams.payment_method_options.sepa_debit`
11+
* Add support for `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture`, and `request_overcapture` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
12+
* Add support for `capture_method` on `Checkout.SessionCreateParams.payment_method_options.kakao_pay`, `Checkout.SessionCreateParams.payment_method_options.kr_card`, `Checkout.SessionCreateParams.payment_method_options.naver_pay`, `Checkout.SessionCreateParams.payment_method_options.payco`, and `Checkout.SessionCreateParams.payment_method_options.samsung_pay`
13+
* Add support for new value `subscribe` on enums `Checkout.Session.submit_type`, `Checkout.SessionCreateParams.submit_type`, `PaymentLink.submit_type`, and `PaymentLinkCreateParams.submit_type`
14+
* Add support for new value `li_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
15+
* Add support for new value `li_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
16+
* Add support for new value `financial_account_statement` on enums `File.purpose` and `FileListParams.purpose`
17+
* Add support for `account_holder_address`, `account_holder_name`, `account_type`, and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].aba`, `FundingInstructions.bank_transfer.financial_addresses[].swift`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift`
18+
* Add support for new value `service_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
19+
* Add support for `merchant_amount` and `merchant_currency` on `Issuing.AuthorizationCreateParams.testHelpers`
20+
* Change `Issuing.AuthorizationCreateParams.testHelpers.amount` to be optional
21+
* Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization`
22+
* Add support for new value `link` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
23+
* Add support for `submit_type` on `PaymentLinkUpdateParams`
24+
* Add support for `trace_id` on `Payout`
25+
* Add support for `network_decline_code` on `Refund.destination_details.blik` and `Refund.destination_details.swish`
26+
* Change type of `Treasury.InboundTransfer.origin_payment_method` from `string` to `string | null`
27+
* Add support for new value `2024-11-20.acacia` on enum `WebhookEndpointCreateParams.api_version`
28+
* [#2215](https://github.com/stripe/stripe-node/pull/2215) Remove empty resources created for service groupings
29+
* Remove `Stripe.V2.BillingResource`, `Stripe.V2.CoreResource`, and `Stripe.V2Resource` types from the public interface as they are no longer needed. SDK usage will not be affected but any references to these types in your application will need to be removed.
30+
331
## 17.4.0-beta.3 - 2024-11-14
432
* [#2226](https://github.com/stripe/stripe-node/pull/2226) Update generated code for beta
533
* Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1356
1+
v1370

types/AccountSessions.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ declare module 'stripe' {
8888
namespace AccountManagement {
8989
interface Features {
9090
/**
91-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
91+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
9292
*/
9393
disable_stripe_user_authentication: boolean;
9494

@@ -111,7 +111,7 @@ declare module 'stripe' {
111111
namespace AccountOnboarding {
112112
interface Features {
113113
/**
114-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
114+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
115115
*/
116116
disable_stripe_user_authentication: boolean;
117117

@@ -134,7 +134,7 @@ declare module 'stripe' {
134134
namespace Balances {
135135
interface Features {
136136
/**
137-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
137+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
138138
*/
139139
disable_stripe_user_authentication: boolean;
140140

@@ -224,7 +224,7 @@ declare module 'stripe' {
224224
namespace NotificationBanner {
225225
interface Features {
226226
/**
227-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
227+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
228228
*/
229229
disable_stripe_user_authentication: boolean;
230230

@@ -313,7 +313,7 @@ declare module 'stripe' {
313313
namespace Payouts {
314314
interface Features {
315315
/**
316-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
316+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
317317
*/
318318
disable_stripe_user_authentication: boolean;
319319

types/AccountSessionsResource.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ declare module 'stripe' {
158158
namespace AccountManagement {
159159
interface Features {
160160
/**
161-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
161+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
162162
*/
163163
disable_stripe_user_authentication?: boolean;
164164

@@ -184,7 +184,7 @@ declare module 'stripe' {
184184
namespace AccountOnboarding {
185185
interface Features {
186186
/**
187-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
187+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
188188
*/
189189
disable_stripe_user_authentication?: boolean;
190190

@@ -252,7 +252,7 @@ declare module 'stripe' {
252252
namespace Balances {
253253
interface Features {
254254
/**
255-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
255+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
256256
*/
257257
disable_stripe_user_authentication?: boolean;
258258

@@ -373,7 +373,7 @@ declare module 'stripe' {
373373
namespace FinancialAccount {
374374
interface Features {
375375
/**
376-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
376+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
377377
*/
378378
disable_stripe_user_authentication?: boolean;
379379

@@ -507,7 +507,7 @@ declare module 'stripe' {
507507
namespace NotificationBanner {
508508
interface Features {
509509
/**
510-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
510+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
511511
*/
512512
disable_stripe_user_authentication?: boolean;
513513

@@ -621,7 +621,7 @@ declare module 'stripe' {
621621
namespace Payouts {
622622
interface Features {
623623
/**
624-
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
624+
* Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
625625
*/
626626
disable_stripe_user_authentication?: boolean;
627627

types/BillingPortal/Configurations.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ declare module 'stripe' {
210210
*/
211211
proration_behavior: SubscriptionUpdate.ProrationBehavior;
212212

213-
schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
213+
schedule_at_period_end: SubscriptionUpdate.ScheduleAtPeriodEnd;
214214
}
215215

216216
namespace SubscriptionUpdate {

0 commit comments

Comments
 (0)