Skip to content

Commit 45f7983

Browse files
Merge upstream and update generated code for v2039 and
2 parents e28bbbe + 6ea2e2d commit 45f7983

11 files changed

+108
-5
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-09-30.preview
1+
68d0314db12eee682455ef80515d9696ff49dd4b

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
## 19.2.0-beta.1 - 2025-10-03
44
* Contains bug fixes and improvements from [v19.1.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1910---2025-10-03).
55

6+
## 19.1.0 - 2025-10-03
7+
* [#2453](https://github.com/stripe/stripe-node/pull/2453) add missing fetchEvent type for UnknownEventNotification
8+
9+
- Add missing `fetchEvent()` declaration to the `Stripe.Events.UnknownEventNotification` interface
10+
- Tweak `Stripe.Events.fetchRelatedObject` so that it's always defined and returns `null` if there's no `related_object`. This fixes the situation where the `UnknownEventNotification` says that `fetchRelatedObject()` is defined, but calling it throws an error.
11+
* [#2447](https://github.com/stripe/stripe-node/pull/2447) Update param in deprecation docs link
12+
* [#2444](https://github.com/stripe/stripe-node/pull/2444) Update CHANGELOG.md to point to right API version
13+
614
## 19.1.0-beta.1 - 2025-09-30
715
This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 19.0.0 which contains breaking changes. Please review the [changelog for 19.0.0](https://github.com/stripe/stripe-go/blob/master/CHANGELOG.md#1900---2025-09-30) if upgrading from older SDK versions.
816

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2028
1+
v2039

test/resources/generated_examples_test.spec.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

types/Files.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ declare module 'stripe' {
8383
| 'identity_document_downloadable'
8484
| 'issuing_regulatory_reporting'
8585
| 'pci_document'
86+
| 'platform_terms_of_service'
8687
| 'selfie'
8788
| 'sigma_scheduled_query'
8889
| 'tax_document_user_upload'

types/FilesResource.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ declare module 'stripe' {
5252
| 'identity_document'
5353
| 'issuing_regulatory_reporting'
5454
| 'pci_document'
55+
| 'platform_terms_of_service'
5556
| 'tax_document_user_upload'
5657
| 'terminal_android_apk'
5758
| 'terminal_reader_splashscreen';
@@ -96,6 +97,7 @@ declare module 'stripe' {
9697
| 'identity_document_downloadable'
9798
| 'issuing_regulatory_reporting'
9899
| 'pci_document'
100+
| 'platform_terms_of_service'
99101
| 'selfie'
100102
| 'sigma_scheduled_query'
101103
| 'tax_document_user_upload'

types/PaymentMethodConfigurations.d.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ declare module 'stripe' {
111111
*/
112112
livemode: boolean;
113113

114+
mb_way?: PaymentMethodConfiguration.MbWay;
115+
114116
mobilepay?: PaymentMethodConfiguration.Mobilepay;
115117

116118
multibanco?: PaymentMethodConfiguration.Multibanco;
@@ -1229,6 +1231,40 @@ declare module 'stripe' {
12291231
}
12301232
}
12311233

1234+
interface MbWay {
1235+
/**
1236+
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1237+
*/
1238+
available: boolean;
1239+
1240+
display_preference: MbWay.DisplayPreference;
1241+
}
1242+
1243+
namespace MbWay {
1244+
interface DisplayPreference {
1245+
/**
1246+
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1247+
*/
1248+
overridable: boolean | null;
1249+
1250+
/**
1251+
* The account's display preference.
1252+
*/
1253+
preference: DisplayPreference.Preference;
1254+
1255+
/**
1256+
* The effective display preference value.
1257+
*/
1258+
value: DisplayPreference.Value;
1259+
}
1260+
1261+
namespace DisplayPreference {
1262+
type Preference = 'none' | 'off' | 'on';
1263+
1264+
type Value = 'off' | 'on';
1265+
}
1266+
}
1267+
12321268
interface Mobilepay {
12331269
/**
12341270
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.

types/PaymentMethodConfigurationsResource.d.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ declare module 'stripe' {
173173
*/
174174
link?: PaymentMethodConfigurationCreateParams.Link;
175175

176+
/**
177+
* MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details.
178+
*/
179+
mb_way?: PaymentMethodConfigurationCreateParams.MbWay;
180+
176181
/**
177182
* MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
178183
*/
@@ -975,6 +980,26 @@ declare module 'stripe' {
975980
}
976981
}
977982

983+
interface MbWay {
984+
/**
985+
* Whether or not the payment method should be displayed.
986+
*/
987+
display_preference?: MbWay.DisplayPreference;
988+
}
989+
990+
namespace MbWay {
991+
interface DisplayPreference {
992+
/**
993+
* The account's preference for whether or not to display this payment method.
994+
*/
995+
preference?: DisplayPreference.Preference;
996+
}
997+
998+
namespace DisplayPreference {
999+
type Preference = 'none' | 'off' | 'on';
1000+
}
1001+
}
1002+
9781003
interface Mobilepay {
9791004
/**
9801005
* Whether or not the payment method should be displayed.
@@ -1679,6 +1704,11 @@ declare module 'stripe' {
16791704
*/
16801705
link?: PaymentMethodConfigurationUpdateParams.Link;
16811706

1707+
/**
1708+
* MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details.
1709+
*/
1710+
mb_way?: PaymentMethodConfigurationUpdateParams.MbWay;
1711+
16821712
/**
16831713
* MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
16841714
*/
@@ -2476,6 +2506,26 @@ declare module 'stripe' {
24762506
}
24772507
}
24782508

2509+
interface MbWay {
2510+
/**
2511+
* Whether or not the payment method should be displayed.
2512+
*/
2513+
display_preference?: MbWay.DisplayPreference;
2514+
}
2515+
2516+
namespace MbWay {
2517+
interface DisplayPreference {
2518+
/**
2519+
* The account's preference for whether or not to display this payment method.
2520+
*/
2521+
preference?: DisplayPreference.Preference;
2522+
}
2523+
2524+
namespace DisplayPreference {
2525+
type Preference = 'none' | 'off' | 'on';
2526+
}
2527+
}
2528+
24792529
interface Mobilepay {
24802530
/**
24812531
* Whether or not the payment method should be displayed.

types/PayoutsResource.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ declare module 'stripe' {
183183
): Promise<Stripe.Response<Stripe.Payout>>;
184184

185185
/**
186-
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
186+
* Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
187187
*
188188
* By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
189189
*/

types/Terminal/Readers.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ declare module 'stripe' {
6969
*/
7070
label: string;
7171

72+
/**
73+
* The last time this reader reported to Stripe backend.
74+
*/
75+
last_seen_at: number | null;
76+
7277
/**
7378
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
7479
*/

0 commit comments

Comments
 (0)