Skip to content

Commit fca03e9

Browse files
Merge pull request #2494 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents ceb0d38 + 9996eef commit fca03e9

22 files changed

Lines changed: 1367 additions & 319 deletions

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9ac5029808e80ae9b96278ea0497ef34d3e529cb
1+
441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
* Add support for `allocated_funds` on `Charge`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`
1010
* Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `V2.Reporting.ReportRun`
1111

12+
## 19.3.0 - 2025-11-05
13+
* [#2488](https://github.com/stripe/stripe-node/pull/2488) Update generated code
14+
* Add support for `capture_method` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
15+
1216
## 19.3.0-beta.1 - 2025-10-29
1317

1418
This release changes the pinned API version to `2025-10-29.preview`.

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2110
1+
v2116

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,8 @@ npm install stripe@private-preview --save
565565

566566
### Custom requests
567567

568+
> This feature is only available from version 17 of this SDK.
569+
568570
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
569571

570572
```javascript

src/apiVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// File generated from our OpenAPI spec
22

3-
export const ApiVersion = '2025-09-30.preview';
3+
export const ApiVersion = '2025-10-29.preview';

src/resources.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {Alerts as BillingAlerts} from './resources/Billing/Alerts.js';
1010
import {Associations as TaxAssociations} from './resources/Tax/Associations.js';
1111
import {Authorizations as IssuingAuthorizations} from './resources/Issuing/Authorizations.js';
1212
import {Authorizations as TestHelpersIssuingAuthorizations} from './resources/TestHelpers/Issuing/Authorizations.js';
13-
import {AutomaticRules as V2TaxAutomaticRules} from './resources/V2/Tax/AutomaticRules.js';
1413
import {BillSettings as V2BillingBillSettings} from './resources/V2/Billing/BillSettings.js';
1514
import {BlocklistEntries as IdentityBlocklistEntries} from './resources/Identity/BlocklistEntries.js';
1615
import {Cadences as V2BillingCadences} from './resources/V2/Billing/Cadences.js';
@@ -383,7 +382,6 @@ export const V2 = resourceNamespace('v2', {
383382
ReportRuns: V2ReportingReportRuns,
384383
Reports: V2ReportingReports,
385384
}),
386-
Tax: resourceNamespace('tax', {AutomaticRules: V2TaxAutomaticRules}),
387385
TestHelper: resourceNamespace('testHelper', {
388386
FinancialAddresses: V2TestHelpersFinancialAddresses,
389387
MoneyManagement: V2TestHelpersMoneyManagement,

src/resources/V2/Tax/AutomaticRules.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/resources/generated_examples_test.spec.js

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

types/AccountsResource.d.ts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,16 @@ declare module 'stripe' {
17161716
* The individual's verification document information.
17171717
*/
17181718
verification?: Individual.Verification;
1719+
1720+
/**
1721+
* The credit applicant's self-reported yearly income in minor units.
1722+
*/
1723+
self_reported_income?: Individual.SelfReportedIncome;
1724+
1725+
/**
1726+
* The credit applicant's self-reported monthly housing payment in minor units.
1727+
*/
1728+
self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
17191729
}
17201730

17211731
namespace Individual {
@@ -1765,6 +1775,18 @@ declare module 'stripe' {
17651775
title?: string;
17661776
}
17671777

1778+
interface SelfReportedIncome {
1779+
amount: number;
1780+
1781+
currency: string;
1782+
}
1783+
1784+
interface SelfReportedMonthlyHousingPayment {
1785+
amount: number;
1786+
1787+
currency: string;
1788+
}
1789+
17681790
interface Verification {
17691791
/**
17701792
* A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
@@ -3824,6 +3846,16 @@ declare module 'stripe' {
38243846
* The individual's verification document information.
38253847
*/
38263848
verification?: Individual.Verification;
3849+
3850+
/**
3851+
* The credit applicant's self-reported yearly income in minor units.
3852+
*/
3853+
self_reported_income?: Individual.SelfReportedIncome;
3854+
3855+
/**
3856+
* The credit applicant's self-reported monthly housing payment in minor units.
3857+
*/
3858+
self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
38273859
}
38283860

38293861
namespace Individual {
@@ -3873,6 +3905,18 @@ declare module 'stripe' {
38733905
title?: string;
38743906
}
38753907

3908+
interface SelfReportedIncome {
3909+
amount: number;
3910+
3911+
currency: string;
3912+
}
3913+
3914+
interface SelfReportedMonthlyHousingPayment {
3915+
amount: number;
3916+
3917+
currency: string;
3918+
}
3919+
38763920
interface Verification {
38773921
/**
38783922
* A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
@@ -4539,6 +4583,16 @@ declare module 'stripe' {
45394583
*/
45404584
relationship?: AccountCreatePersonParams.Relationship;
45414585

4586+
/**
4587+
* The credit applicant's self-reported yearly income in minor units.
4588+
*/
4589+
self_reported_income?: AccountCreatePersonParams.SelfReportedIncome;
4590+
4591+
/**
4592+
* The credit applicant's self-reported monthly housing payment in minor units.
4593+
*/
4594+
self_reported_monthly_housing_payment?: AccountCreatePersonParams.SelfReportedMonthlyHousingPayment;
4595+
45424596
/**
45434597
* The last four digits of the person's Social Security number (U.S. only).
45444598
*/
@@ -4683,6 +4737,18 @@ declare module 'stripe' {
46834737
title?: string;
46844738
}
46854739

4740+
interface SelfReportedIncome {
4741+
amount: number;
4742+
4743+
currency: string;
4744+
}
4745+
4746+
interface SelfReportedMonthlyHousingPayment {
4747+
amount: number;
4748+
4749+
currency: string;
4750+
}
4751+
46864752
interface UsCfpbData {
46874753
/**
46884754
* The persons ethnicity details
@@ -5168,6 +5234,16 @@ declare module 'stripe' {
51685234
*/
51695235
relationship?: AccountUpdatePersonParams.Relationship;
51705236

5237+
/**
5238+
* The credit applicant's self-reported yearly income in minor units.
5239+
*/
5240+
self_reported_income?: AccountUpdatePersonParams.SelfReportedIncome;
5241+
5242+
/**
5243+
* The credit applicant's self-reported monthly housing payment in minor units.
5244+
*/
5245+
self_reported_monthly_housing_payment?: AccountUpdatePersonParams.SelfReportedMonthlyHousingPayment;
5246+
51715247
/**
51725248
* The last four digits of the person's Social Security number (U.S. only).
51735249
*/
@@ -5312,6 +5388,18 @@ declare module 'stripe' {
53125388
title?: string;
53135389
}
53145390

5391+
interface SelfReportedIncome {
5392+
amount: number;
5393+
5394+
currency: string;
5395+
}
5396+
5397+
interface SelfReportedMonthlyHousingPayment {
5398+
amount: number;
5399+
5400+
currency: string;
5401+
}
5402+
53155403
interface UsCfpbData {
53165404
/**
53175405
* The persons ethnicity details

types/DelegatedCheckout/RequestedSessionsResource.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ declare module 'stripe' {
6464

6565
namespace RequestedSessionCreateParams {
6666
interface FulfillmentDetails {
67+
/**
68+
* The customer's address.
69+
*/
6770
address?: FulfillmentDetails.Address;
6871

6972
/**
@@ -281,6 +284,9 @@ declare module 'stripe' {
281284

282285
namespace RequestedSessionUpdateParams {
283286
interface FulfillmentDetails {
287+
/**
288+
* The customer's address.
289+
*/
284290
address?: FulfillmentDetails.Address;
285291

286292
/**

0 commit comments

Comments
 (0)