stripe 19.4.0-alpha.1 → 19.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/OPENAPI_VERSION +1 -1
- package/README.md +2 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Issuing/Programs.js +22 -0
- package/cjs/resources.js +2 -2
- package/cjs/stripe.core.js +1 -1
- package/esm/RequestSender.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Issuing/Programs.js +19 -0
- package/esm/resources.js +2 -2
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountsResource.d.ts +88 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +24 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +6 -0
- package/types/Discounts.d.ts +10 -0
- package/types/InvoiceItems.d.ts +13 -0
- package/types/InvoiceLineItems.d.ts +13 -0
- package/types/Invoices.d.ts +13 -0
- package/types/InvoicesResource.d.ts +86 -1
- package/types/Issuing/Programs.d.ts +42 -0
- package/types/Issuing/ProgramsResource.d.ts +96 -0
- package/types/Persons.d.ts +28 -0
- package/types/QuotePreviewInvoices.d.ts +13 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +200 -0
- package/types/Quotes.d.ts +388 -0
- package/types/QuotesResource.d.ts +642 -54
- package/types/SubscriptionSchedules.d.ts +198 -0
- package/types/SubscriptionSchedulesResource.d.ts +176 -0
- package/types/Subscriptions.d.ts +109 -1
- package/types/SubscriptionsResource.d.ts +14 -2
- package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +30 -0
- package/types/TokensResource.d.ts +44 -0
- package/types/apiVersion.d.ts +1 -1
- package/types/index.d.ts +3 -5
- package/cjs/resources/V2/Tax/AutomaticRules.js +0 -22
- package/esm/resources/V2/Tax/AutomaticRules.js +0 -19
- package/types/V2/Tax/AutomaticRules.d.ts +0 -53
- package/types/V2/Tax/AutomaticRulesResource.d.ts +0 -102
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 19.4.0-alpha.2 - 2025-11-13
|
|
4
|
+
This release changes the pinned API version to `2025-10-29.preview`.
|
|
5
|
+
|
|
6
|
+
* [#2501](https://github.com/stripe/stripe-node/pull/2501) Update generated code for private-preview
|
|
7
|
+
* Add support for new resource `Issuing.Program`
|
|
8
|
+
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Issuing.Program`
|
|
9
|
+
* Add support for `schedule` on `Discount`
|
|
10
|
+
* Add support for `applicable_fees` on `DelegatedCheckout.RequestedSession.total_details`
|
|
11
|
+
* Add support for `schedule_details` on `Invoice.parent`, `InvoiceItem.parent`, `InvoiceLineItem.parent`, and `QuotePreviewInvoice.parent`
|
|
12
|
+
* Add support for new value `schedule_details` on enum `InvoiceItem.parent.type`
|
|
13
|
+
* Add support for `billing_schedules` on `InvoiceCreatePreviewParams.schedule_details`, `QuotePreviewSubscriptionSchedule`, `SubscriptionScheduleCreateParams`, `SubscriptionScheduleUpdateParams`, and `SubscriptionSchedule`
|
|
14
|
+
* Add support for new value `schedule_details` on enums `Invoice.parent.type` and `QuotePreviewInvoice.parent.type`
|
|
15
|
+
* Add support for new value `schedule_details` on enum `InvoiceLineItem.parent.type`
|
|
16
|
+
* Add support for `latest_invoice` on `QuotePreviewSubscriptionSchedule` and `SubscriptionSchedule`
|
|
17
|
+
* Add support for `phase_effective_at` on `QuotePreviewSubscriptionSchedule.default_settings`, `SubscriptionSchedule.default_settings`, `SubscriptionScheduleCreateParams.default_settings`, and `SubscriptionScheduleUpdateParams.default_settings`
|
|
18
|
+
* [#2494](https://github.com/stripe/stripe-node/pull/2494) Update generated code for private-preview
|
|
19
|
+
* Remove support for resource `V2.Tax.AutomaticRule`
|
|
20
|
+
* Remove support for `create`, `deactivate`, `find`, `retrieve`, and `update` methods on resource `V2.Tax.AutomaticRule`
|
|
21
|
+
* Add support for `self_reported_income` and `self_reported_monthly_housing_payment` on `AccountCreateParams.individual`, `AccountCreatePersonParams`, `AccountUpdateParams.individual`, `AccountUpdatePersonParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person`
|
|
22
|
+
* Add support for new values `amendment_end`, `line_ends_at`, `schedule_end`, and `upcoming_invoice` on enums `InvoiceCreatePreviewParams.subscription_details.billing_schedules[].bill_until.type`, `Subscription.billing_schedules[].bill_until.type`, `SubscriptionCreateParams.billing_schedules[].bill_until.type`, and `SubscriptionUpdateParams.billing_schedules[].bill_until.type`
|
|
23
|
+
* Add support for `billing_schedules` and `phase_effective_at` on `Quote.subscription_data_overrides[]`, `Quote.subscription_data`, `QuoteCreateParams.subscription_data_overrides[]`, `QuoteCreateParams.subscription_data`, `QuoteUpdateParams.subscription_data_overrides[]`, and `QuoteUpdateParams.subscription_data`
|
|
24
|
+
* Add support for `bill_from` on `Subscription.billing_schedules[]`
|
|
25
|
+
* Add support for `amendment_end` and `line_ends_at` on `Subscription.billing_schedules[].bill_until`
|
|
26
|
+
|
|
3
27
|
## 19.4.0-alpha.1 - 2025-11-06
|
|
4
28
|
* [#2489](https://github.com/stripe/stripe-node/pull/2489) Update generated code for private-preview
|
|
5
29
|
* Add support for new resources `TransitBalance`, `V2.Reporting.ReportRun`, `V2.Reporting.Report`
|
|
@@ -9,6 +33,14 @@
|
|
|
9
33
|
* Add support for `allocated_funds` on `Charge`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`
|
|
10
34
|
* Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `V2.Reporting.ReportRun`
|
|
11
35
|
|
|
36
|
+
## 19.3.1 - 2025-11-12
|
|
37
|
+
* [#2500](https://github.com/stripe/stripe-node/pull/2500) Use `TextEncoder` instead of `Buffer` to ensure support in other JS environments
|
|
38
|
+
* Fixes issues like [#2499](https://github.com/stripe/stripe-node/issues/2499) and [#2493](https://github.com/stripe/stripe-node/issues/2493) where use of `Buffer.byteLength` was causing errors in some runtime environments.
|
|
39
|
+
|
|
40
|
+
## 19.3.0 - 2025-11-05
|
|
41
|
+
* [#2488](https://github.com/stripe/stripe-node/pull/2488) Update generated code
|
|
42
|
+
* 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`
|
|
43
|
+
|
|
12
44
|
## 19.3.0-beta.1 - 2025-10-29
|
|
13
45
|
|
|
14
46
|
This release changes the pinned API version to `2025-10-29.preview`.
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2120
|
package/README.md
CHANGED
|
@@ -565,6 +565,8 @@ npm install stripe@private-preview --save
|
|
|
565
565
|
|
|
566
566
|
### Custom requests
|
|
567
567
|
|
|
568
|
+
> This feature is only available from version 17 of this SDK.
|
|
569
|
+
|
|
568
570
|
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.
|
|
569
571
|
|
|
570
572
|
```javascript
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.4.0-alpha.
|
|
1
|
+
19.4.0-alpha.2
|
package/cjs/RequestSender.js
CHANGED
|
@@ -430,7 +430,7 @@ class RequestSender {
|
|
|
430
430
|
contentType: apiMode == 'v2'
|
|
431
431
|
? 'application/json'
|
|
432
432
|
: 'application/x-www-form-urlencoded',
|
|
433
|
-
contentLength:
|
|
433
|
+
contentLength: new TextEncoder().encode(requestData).length,
|
|
434
434
|
apiVersion: apiVersion,
|
|
435
435
|
clientUserAgent,
|
|
436
436
|
method,
|
package/cjs/apiVersion.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Programs = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.Programs = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v1/issuing/programs' }),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/issuing/programs/{program}',
|
|
12
|
+
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v1/issuing/programs/{program}',
|
|
16
|
+
}),
|
|
17
|
+
list: stripeMethod({
|
|
18
|
+
method: 'GET',
|
|
19
|
+
fullPath: '/v1/issuing/programs',
|
|
20
|
+
methodType: 'list',
|
|
21
|
+
}),
|
|
22
|
+
});
|
package/cjs/resources.js
CHANGED
|
@@ -13,7 +13,6 @@ const Alerts_js_1 = require("./resources/Billing/Alerts.js");
|
|
|
13
13
|
const Associations_js_1 = require("./resources/Tax/Associations.js");
|
|
14
14
|
const Authorizations_js_1 = require("./resources/Issuing/Authorizations.js");
|
|
15
15
|
const Authorizations_js_2 = require("./resources/TestHelpers/Issuing/Authorizations.js");
|
|
16
|
-
const AutomaticRules_js_1 = require("./resources/V2/Tax/AutomaticRules.js");
|
|
17
16
|
const BillSettings_js_1 = require("./resources/V2/Billing/BillSettings.js");
|
|
18
17
|
const BlocklistEntries_js_1 = require("./resources/Identity/BlocklistEntries.js");
|
|
19
18
|
const Cadences_js_1 = require("./resources/V2/Billing/Cadences.js");
|
|
@@ -91,6 +90,7 @@ const PricingPlanSubscriptions_js_1 = require("./resources/V2/Billing/PricingPla
|
|
|
91
90
|
const PricingPlans_js_1 = require("./resources/V2/Billing/PricingPlans.js");
|
|
92
91
|
const Products_js_1 = require("./resources/Climate/Products.js");
|
|
93
92
|
const Profiles_js_1 = require("./resources/V2/Billing/Profiles.js");
|
|
93
|
+
const Programs_js_1 = require("./resources/Issuing/Programs.js");
|
|
94
94
|
const RateCardSubscriptions_js_1 = require("./resources/V2/Billing/RateCardSubscriptions.js");
|
|
95
95
|
const RateCards_js_1 = require("./resources/V2/Billing/RateCards.js");
|
|
96
96
|
const ReaderCollectedData_js_1 = require("./resources/Terminal/ReaderCollectedData.js");
|
|
@@ -320,6 +320,7 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
|
320
320
|
FraudLiabilityDebits: FraudLiabilityDebits_js_1.FraudLiabilityDebits,
|
|
321
321
|
PersonalizationDesigns: PersonalizationDesigns_js_1.PersonalizationDesigns,
|
|
322
322
|
PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
|
|
323
|
+
Programs: Programs_js_1.Programs,
|
|
323
324
|
Tokens: Tokens_js_1.Tokens,
|
|
324
325
|
Transactions: Transactions_js_2.Transactions,
|
|
325
326
|
});
|
|
@@ -448,7 +449,6 @@ exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
|
|
|
448
449
|
ReportRuns: ReportRuns_js_2.ReportRuns,
|
|
449
450
|
Reports: Reports_js_1.Reports,
|
|
450
451
|
}),
|
|
451
|
-
Tax: (0, ResourceNamespace_js_1.resourceNamespace)('tax', { AutomaticRules: AutomaticRules_js_1.AutomaticRules }),
|
|
452
452
|
TestHelper: (0, ResourceNamespace_js_1.resourceNamespace)('testHelper', {
|
|
453
453
|
FinancialAddresses: FinancialAddresses_js_2.FinancialAddresses,
|
|
454
454
|
MoneyManagement: MoneyManagement_js_1.MoneyManagement,
|
package/cjs/stripe.core.js
CHANGED
|
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
37
37
|
];
|
|
38
38
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
39
39
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
40
|
-
Stripe.PACKAGE_VERSION = '19.4.0-alpha.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '19.4.0-alpha.2';
|
|
41
41
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
42
42
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
43
43
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
package/esm/RequestSender.js
CHANGED
|
@@ -427,7 +427,7 @@ export class RequestSender {
|
|
|
427
427
|
contentType: apiMode == 'v2'
|
|
428
428
|
? 'application/json'
|
|
429
429
|
: 'application/x-www-form-urlencoded',
|
|
430
|
-
contentLength:
|
|
430
|
+
contentLength: new TextEncoder().encode(requestData).length,
|
|
431
431
|
apiVersion: apiVersion,
|
|
432
432
|
clientUserAgent,
|
|
433
433
|
method,
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2025-
|
|
2
|
+
export const ApiVersion = '2025-10-29.preview';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Programs = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v1/issuing/programs' }),
|
|
6
|
+
retrieve: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v1/issuing/programs/{program}',
|
|
9
|
+
}),
|
|
10
|
+
update: stripeMethod({
|
|
11
|
+
method: 'POST',
|
|
12
|
+
fullPath: '/v1/issuing/programs/{program}',
|
|
13
|
+
}),
|
|
14
|
+
list: stripeMethod({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
fullPath: '/v1/issuing/programs',
|
|
17
|
+
methodType: 'list',
|
|
18
|
+
}),
|
|
19
|
+
});
|
package/esm/resources.js
CHANGED
|
@@ -9,7 +9,6 @@ import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
|
|
|
9
9
|
import { Associations as TaxAssociations } from './resources/Tax/Associations.js';
|
|
10
10
|
import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
|
|
11
11
|
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
12
|
-
import { AutomaticRules as V2TaxAutomaticRules } from './resources/V2/Tax/AutomaticRules.js';
|
|
13
12
|
import { BillSettings as V2BillingBillSettings } from './resources/V2/Billing/BillSettings.js';
|
|
14
13
|
import { BlocklistEntries as IdentityBlocklistEntries } from './resources/Identity/BlocklistEntries.js';
|
|
15
14
|
import { Cadences as V2BillingCadences } from './resources/V2/Billing/Cadences.js';
|
|
@@ -87,6 +86,7 @@ import { PricingPlanSubscriptions as V2BillingPricingPlanSubscriptions } from '.
|
|
|
87
86
|
import { PricingPlans as V2BillingPricingPlans } from './resources/V2/Billing/PricingPlans.js';
|
|
88
87
|
import { Products as ClimateProducts } from './resources/Climate/Products.js';
|
|
89
88
|
import { Profiles as V2BillingProfiles } from './resources/V2/Billing/Profiles.js';
|
|
89
|
+
import { Programs as IssuingPrograms } from './resources/Issuing/Programs.js';
|
|
90
90
|
import { RateCardSubscriptions as V2BillingRateCardSubscriptions } from './resources/V2/Billing/RateCardSubscriptions.js';
|
|
91
91
|
import { RateCards as V2BillingRateCards } from './resources/V2/Billing/RateCards.js';
|
|
92
92
|
import { ReaderCollectedData as TerminalReaderCollectedData } from './resources/Terminal/ReaderCollectedData.js';
|
|
@@ -254,6 +254,7 @@ export const Issuing = resourceNamespace('issuing', {
|
|
|
254
254
|
FraudLiabilityDebits: IssuingFraudLiabilityDebits,
|
|
255
255
|
PersonalizationDesigns: IssuingPersonalizationDesigns,
|
|
256
256
|
PhysicalBundles: IssuingPhysicalBundles,
|
|
257
|
+
Programs: IssuingPrograms,
|
|
257
258
|
Tokens: IssuingTokens,
|
|
258
259
|
Transactions: IssuingTransactions,
|
|
259
260
|
});
|
|
@@ -382,7 +383,6 @@ export const V2 = resourceNamespace('v2', {
|
|
|
382
383
|
ReportRuns: V2ReportingReportRuns,
|
|
383
384
|
Reports: V2ReportingReports,
|
|
384
385
|
}),
|
|
385
|
-
Tax: resourceNamespace('tax', { AutomaticRules: V2TaxAutomaticRules }),
|
|
386
386
|
TestHelper: resourceNamespace('testHelper', {
|
|
387
387
|
FinancialAddresses: V2TestHelpersFinancialAddresses,
|
|
388
388
|
MoneyManagement: V2TestHelpersMoneyManagement,
|
package/esm/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '19.4.0-alpha.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '19.4.0-alpha.2';
|
|
38
38
|
Stripe.API_VERSION = ApiVersion;
|
|
39
39
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
40
40
|
Stripe.StripeResource = StripeResource;
|
package/package.json
CHANGED
|
@@ -1716,6 +1716,16 @@ declare module 'stripe' {
|
|
|
1716
1716
|
* The individual's verification document information.
|
|
1717
1717
|
*/
|
|
1718
1718
|
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;
|
|
1719
1729
|
}
|
|
1720
1730
|
|
|
1721
1731
|
namespace Individual {
|
|
@@ -1765,6 +1775,18 @@ declare module 'stripe' {
|
|
|
1765
1775
|
title?: string;
|
|
1766
1776
|
}
|
|
1767
1777
|
|
|
1778
|
+
interface SelfReportedIncome {
|
|
1779
|
+
amount: number;
|
|
1780
|
+
|
|
1781
|
+
currency: string;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
interface SelfReportedMonthlyHousingPayment {
|
|
1785
|
+
amount: number;
|
|
1786
|
+
|
|
1787
|
+
currency: string;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1768
1790
|
interface Verification {
|
|
1769
1791
|
/**
|
|
1770
1792
|
* 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' {
|
|
|
3824
3846
|
* The individual's verification document information.
|
|
3825
3847
|
*/
|
|
3826
3848
|
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;
|
|
3827
3859
|
}
|
|
3828
3860
|
|
|
3829
3861
|
namespace Individual {
|
|
@@ -3873,6 +3905,18 @@ declare module 'stripe' {
|
|
|
3873
3905
|
title?: string;
|
|
3874
3906
|
}
|
|
3875
3907
|
|
|
3908
|
+
interface SelfReportedIncome {
|
|
3909
|
+
amount: number;
|
|
3910
|
+
|
|
3911
|
+
currency: string;
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3914
|
+
interface SelfReportedMonthlyHousingPayment {
|
|
3915
|
+
amount: number;
|
|
3916
|
+
|
|
3917
|
+
currency: string;
|
|
3918
|
+
}
|
|
3919
|
+
|
|
3876
3920
|
interface Verification {
|
|
3877
3921
|
/**
|
|
3878
3922
|
* 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' {
|
|
|
4539
4583
|
*/
|
|
4540
4584
|
relationship?: AccountCreatePersonParams.Relationship;
|
|
4541
4585
|
|
|
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
|
+
|
|
4542
4596
|
/**
|
|
4543
4597
|
* The last four digits of the person's Social Security number (U.S. only).
|
|
4544
4598
|
*/
|
|
@@ -4683,6 +4737,18 @@ declare module 'stripe' {
|
|
|
4683
4737
|
title?: string;
|
|
4684
4738
|
}
|
|
4685
4739
|
|
|
4740
|
+
interface SelfReportedIncome {
|
|
4741
|
+
amount: number;
|
|
4742
|
+
|
|
4743
|
+
currency: string;
|
|
4744
|
+
}
|
|
4745
|
+
|
|
4746
|
+
interface SelfReportedMonthlyHousingPayment {
|
|
4747
|
+
amount: number;
|
|
4748
|
+
|
|
4749
|
+
currency: string;
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4686
4752
|
interface UsCfpbData {
|
|
4687
4753
|
/**
|
|
4688
4754
|
* The persons ethnicity details
|
|
@@ -5168,6 +5234,16 @@ declare module 'stripe' {
|
|
|
5168
5234
|
*/
|
|
5169
5235
|
relationship?: AccountUpdatePersonParams.Relationship;
|
|
5170
5236
|
|
|
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
|
+
|
|
5171
5247
|
/**
|
|
5172
5248
|
* The last four digits of the person's Social Security number (U.S. only).
|
|
5173
5249
|
*/
|
|
@@ -5312,6 +5388,18 @@ declare module 'stripe' {
|
|
|
5312
5388
|
title?: string;
|
|
5313
5389
|
}
|
|
5314
5390
|
|
|
5391
|
+
interface SelfReportedIncome {
|
|
5392
|
+
amount: number;
|
|
5393
|
+
|
|
5394
|
+
currency: string;
|
|
5395
|
+
}
|
|
5396
|
+
|
|
5397
|
+
interface SelfReportedMonthlyHousingPayment {
|
|
5398
|
+
amount: number;
|
|
5399
|
+
|
|
5400
|
+
currency: string;
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5315
5403
|
interface UsCfpbData {
|
|
5316
5404
|
/**
|
|
5317
5405
|
* The persons ethnicity details
|
|
@@ -353,6 +353,30 @@ declare module 'stripe' {
|
|
|
353
353
|
* The amount tax of the total details.
|
|
354
354
|
*/
|
|
355
355
|
amount_tax: number | null;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* The applicable fees of the total details.
|
|
359
|
+
*/
|
|
360
|
+
applicable_fees: Array<TotalDetails.ApplicableFee> | null;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
namespace TotalDetails {
|
|
364
|
+
interface ApplicableFee {
|
|
365
|
+
/**
|
|
366
|
+
* The amount of the applicable fee.
|
|
367
|
+
*/
|
|
368
|
+
amount: number;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* The description of the applicable fee.
|
|
372
|
+
*/
|
|
373
|
+
description: string | null;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The display name of the applicable fee.
|
|
377
|
+
*/
|
|
378
|
+
display_name: string;
|
|
379
|
+
}
|
|
356
380
|
}
|
|
357
381
|
}
|
|
358
382
|
}
|
|
@@ -64,6 +64,9 @@ declare module 'stripe' {
|
|
|
64
64
|
|
|
65
65
|
namespace RequestedSessionCreateParams {
|
|
66
66
|
interface FulfillmentDetails {
|
|
67
|
+
/**
|
|
68
|
+
* The customer's address.
|
|
69
|
+
*/
|
|
67
70
|
address?: FulfillmentDetails.Address;
|
|
68
71
|
|
|
69
72
|
/**
|
|
@@ -281,6 +284,9 @@ declare module 'stripe' {
|
|
|
281
284
|
|
|
282
285
|
namespace RequestedSessionUpdateParams {
|
|
283
286
|
interface FulfillmentDetails {
|
|
287
|
+
/**
|
|
288
|
+
* The customer's address.
|
|
289
|
+
*/
|
|
284
290
|
address?: FulfillmentDetails.Address;
|
|
285
291
|
|
|
286
292
|
/**
|
package/types/Discounts.d.ts
CHANGED
|
@@ -51,6 +51,11 @@ declare module 'stripe' {
|
|
|
51
51
|
*/
|
|
52
52
|
promotion_code: string | Stripe.PromotionCode | null;
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.
|
|
56
|
+
*/
|
|
57
|
+
schedule?: string | null;
|
|
58
|
+
|
|
54
59
|
source: DeletedDiscount.Source;
|
|
55
60
|
|
|
56
61
|
/**
|
|
@@ -140,6 +145,11 @@ declare module 'stripe' {
|
|
|
140
145
|
*/
|
|
141
146
|
promotion_code: string | Stripe.PromotionCode | null;
|
|
142
147
|
|
|
148
|
+
/**
|
|
149
|
+
* The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.
|
|
150
|
+
*/
|
|
151
|
+
schedule?: string | null;
|
|
152
|
+
|
|
143
153
|
source: Discount.Source;
|
|
144
154
|
|
|
145
155
|
/**
|
package/types/InvoiceItems.d.ts
CHANGED
|
@@ -169,6 +169,11 @@ declare module 'stripe' {
|
|
|
169
169
|
* The type of parent that generated this invoice item
|
|
170
170
|
*/
|
|
171
171
|
type: Parent.Type;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Details about the subscription schedule that generated this invoice item
|
|
175
|
+
*/
|
|
176
|
+
schedule_details?: Parent.ScheduleDetails | null;
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
namespace Parent {
|
|
@@ -216,6 +221,13 @@ declare module 'stripe' {
|
|
|
216
221
|
rate_card_version: string;
|
|
217
222
|
}
|
|
218
223
|
|
|
224
|
+
interface ScheduleDetails {
|
|
225
|
+
/**
|
|
226
|
+
* The subscription schedule that generated this invoice item
|
|
227
|
+
*/
|
|
228
|
+
schedule: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
219
231
|
interface SubscriptionDetails {
|
|
220
232
|
/**
|
|
221
233
|
* The subscription that generated this invoice item
|
|
@@ -231,6 +243,7 @@ declare module 'stripe' {
|
|
|
231
243
|
type Type =
|
|
232
244
|
| 'license_fee_subscription_details'
|
|
233
245
|
| 'rate_card_subscription_details'
|
|
246
|
+
| 'schedule_details'
|
|
234
247
|
| 'subscription_details';
|
|
235
248
|
}
|
|
236
249
|
|
|
@@ -158,6 +158,11 @@ declare module 'stripe' {
|
|
|
158
158
|
* The type of parent that generated this line item
|
|
159
159
|
*/
|
|
160
160
|
type: Parent.Type;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Details about the subscription schedule that generated this line item
|
|
164
|
+
*/
|
|
165
|
+
schedule_details?: Parent.ScheduleDetails | null;
|
|
161
166
|
}
|
|
162
167
|
|
|
163
168
|
namespace Parent {
|
|
@@ -260,6 +265,13 @@ declare module 'stripe' {
|
|
|
260
265
|
rate_card_version: string;
|
|
261
266
|
}
|
|
262
267
|
|
|
268
|
+
interface ScheduleDetails {
|
|
269
|
+
/**
|
|
270
|
+
* The subscription schedule that generated this line item
|
|
271
|
+
*/
|
|
272
|
+
schedule: string;
|
|
273
|
+
}
|
|
274
|
+
|
|
263
275
|
interface SubscriptionItemDetails {
|
|
264
276
|
/**
|
|
265
277
|
* The invoice item that generated this line item
|
|
@@ -314,6 +326,7 @@ declare module 'stripe' {
|
|
|
314
326
|
| 'invoice_item_details'
|
|
315
327
|
| 'license_fee_subscription_details'
|
|
316
328
|
| 'rate_card_subscription_details'
|
|
329
|
+
| 'schedule_details'
|
|
317
330
|
| 'subscription_item_details';
|
|
318
331
|
}
|
|
319
332
|
|
package/types/Invoices.d.ts
CHANGED
|
@@ -1109,6 +1109,11 @@ declare module 'stripe' {
|
|
|
1109
1109
|
* The type of parent that generated this invoice
|
|
1110
1110
|
*/
|
|
1111
1111
|
type: Parent.Type;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Details about the schedule that generated this invoice
|
|
1115
|
+
*/
|
|
1116
|
+
schedule_details?: Parent.ScheduleDetails | null;
|
|
1112
1117
|
}
|
|
1113
1118
|
|
|
1114
1119
|
namespace Parent {
|
|
@@ -1126,6 +1131,13 @@ declare module 'stripe' {
|
|
|
1126
1131
|
quote: string;
|
|
1127
1132
|
}
|
|
1128
1133
|
|
|
1134
|
+
interface ScheduleDetails {
|
|
1135
|
+
/**
|
|
1136
|
+
* The schedule that generated this invoice
|
|
1137
|
+
*/
|
|
1138
|
+
schedule: string;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1129
1141
|
interface SubscriptionDetails {
|
|
1130
1142
|
/**
|
|
1131
1143
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
|
|
@@ -1170,6 +1182,7 @@ declare module 'stripe' {
|
|
|
1170
1182
|
type Type =
|
|
1171
1183
|
| 'billing_cadence_details'
|
|
1172
1184
|
| 'quote_details'
|
|
1185
|
+
| 'schedule_details'
|
|
1173
1186
|
| 'subscription_details';
|
|
1174
1187
|
}
|
|
1175
1188
|
|
|
@@ -2854,6 +2854,11 @@ declare module 'stripe' {
|
|
|
2854
2854
|
* In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
2855
2855
|
*/
|
|
2856
2856
|
proration_behavior?: ScheduleDetails.ProrationBehavior;
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* Sets the billing schedules for the subscription schedule.
|
|
2860
|
+
*/
|
|
2861
|
+
billing_schedules?: Array<ScheduleDetails.BillingSchedule>;
|
|
2857
2862
|
}
|
|
2858
2863
|
|
|
2859
2864
|
namespace ScheduleDetails {
|
|
@@ -3481,6 +3486,80 @@ declare module 'stripe' {
|
|
|
3481
3486
|
type Type = 'classic' | 'flexible';
|
|
3482
3487
|
}
|
|
3483
3488
|
|
|
3489
|
+
interface BillingSchedule {
|
|
3490
|
+
/**
|
|
3491
|
+
* Configure billing schedule differently for individual subscription items.
|
|
3492
|
+
*/
|
|
3493
|
+
applies_to?: Array<BillingSchedule.AppliesTo>;
|
|
3494
|
+
|
|
3495
|
+
/**
|
|
3496
|
+
* The end date for the billing schedule.
|
|
3497
|
+
*/
|
|
3498
|
+
bill_until?: BillingSchedule.BillUntil;
|
|
3499
|
+
|
|
3500
|
+
/**
|
|
3501
|
+
* Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
3502
|
+
*/
|
|
3503
|
+
key?: string;
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
namespace BillingSchedule {
|
|
3507
|
+
interface AppliesTo {
|
|
3508
|
+
/**
|
|
3509
|
+
* The ID of the price object.
|
|
3510
|
+
*/
|
|
3511
|
+
price?: string;
|
|
3512
|
+
|
|
3513
|
+
/**
|
|
3514
|
+
* Controls which subscription items the billing schedule applies to.
|
|
3515
|
+
*/
|
|
3516
|
+
type: 'price';
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
interface BillUntil {
|
|
3520
|
+
/**
|
|
3521
|
+
* Specifies the billing period.
|
|
3522
|
+
*/
|
|
3523
|
+
duration?: BillUntil.Duration;
|
|
3524
|
+
|
|
3525
|
+
/**
|
|
3526
|
+
* The end date of the billing schedule.
|
|
3527
|
+
*/
|
|
3528
|
+
timestamp?: number;
|
|
3529
|
+
|
|
3530
|
+
/**
|
|
3531
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
3532
|
+
*/
|
|
3533
|
+
type: BillUntil.Type;
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
namespace BillUntil {
|
|
3537
|
+
interface Duration {
|
|
3538
|
+
/**
|
|
3539
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
3540
|
+
*/
|
|
3541
|
+
interval: Duration.Interval;
|
|
3542
|
+
|
|
3543
|
+
/**
|
|
3544
|
+
* The multiplier applied to the interval.
|
|
3545
|
+
*/
|
|
3546
|
+
interval_count?: number;
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
namespace Duration {
|
|
3550
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
type Type =
|
|
3554
|
+
| 'amendment_end'
|
|
3555
|
+
| 'duration'
|
|
3556
|
+
| 'line_ends_at'
|
|
3557
|
+
| 'schedule_end'
|
|
3558
|
+
| 'timestamp'
|
|
3559
|
+
| 'upcoming_invoice';
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3484
3563
|
type EndBehavior = 'cancel' | 'release';
|
|
3485
3564
|
|
|
3486
3565
|
interface Phase {
|
|
@@ -4426,7 +4505,13 @@ declare module 'stripe' {
|
|
|
4426
4505
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4427
4506
|
}
|
|
4428
4507
|
|
|
4429
|
-
type Type =
|
|
4508
|
+
type Type =
|
|
4509
|
+
| 'amendment_end'
|
|
4510
|
+
| 'duration'
|
|
4511
|
+
| 'line_ends_at'
|
|
4512
|
+
| 'schedule_end'
|
|
4513
|
+
| 'timestamp'
|
|
4514
|
+
| 'upcoming_invoice';
|
|
4430
4515
|
}
|
|
4431
4516
|
}
|
|
4432
4517
|
|