stripe 16.10.0 → 16.11.0
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 +11 -0
- package/VERSION +1 -1
- package/cjs/StripeResource.js +1 -1
- package/cjs/resources/InvoiceRenderingTemplates.js +25 -0
- package/cjs/resources.js +4 -2
- package/cjs/stripe.core.js +1 -1
- package/esm/StripeResource.js +1 -1
- package/esm/resources/InvoiceRenderingTemplates.js +22 -0
- package/esm/resources.js +1 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Checkout/Sessions.d.ts +9 -0
- package/types/Checkout/SessionsResource.d.ts +9 -0
- package/types/Customers.d.ts +5 -0
- package/types/CustomersResource.d.ts +10 -0
- package/types/InvoiceLineItems.d.ts +2 -2
- package/types/InvoiceRenderingTemplates.d.ts +54 -0
- package/types/InvoiceRenderingTemplatesResource.d.ts +93 -0
- package/types/Invoices.d.ts +10 -0
- package/types/InvoicesResource.d.ts +20 -0
- package/types/Issuing/Cards.d.ts +2 -1
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +18 -0
- package/types/QuotesResource.d.ts +2 -2
- package/types/SubscriptionsResource.d.ts +6 -0
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/TestHelpers/TestClocks.d.ts +1 -1
- package/types/index.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 16.11.0 - 2024-09-12
|
|
4
|
+
* [#2171](https://github.com/stripe/stripe-node/pull/2171) Update generated code
|
|
5
|
+
* Add support for new resource `InvoiceRenderingTemplate`
|
|
6
|
+
* Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate`
|
|
7
|
+
* Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection`
|
|
8
|
+
* Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`
|
|
9
|
+
* Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`
|
|
10
|
+
* Add support for new value `submitted` on enum `Issuing.Card.shipping.status`
|
|
11
|
+
* Change `TestHelpers.TestClock.status_details` to be required
|
|
12
|
+
* [#2172](https://github.com/stripe/stripe-node/pull/2172) Null out empty data sent to GET/DELETE APIs
|
|
13
|
+
|
|
3
14
|
## 16.10.0 - 2024-09-05
|
|
4
15
|
* [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code
|
|
5
16
|
* Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
16.
|
|
1
|
+
16.11.0
|
package/cjs/StripeResource.js
CHANGED
|
@@ -122,7 +122,7 @@ StripeResource.prototype = {
|
|
|
122
122
|
spec.validator(data, { headers });
|
|
123
123
|
}
|
|
124
124
|
const dataInQuery = spec.method === 'GET' || spec.method === 'DELETE';
|
|
125
|
-
const bodyData = dataInQuery ?
|
|
125
|
+
const bodyData = dataInQuery ? null : data;
|
|
126
126
|
const queryData = dataInQuery ? data : {};
|
|
127
127
|
return {
|
|
128
128
|
requestMethod,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InvoiceRenderingTemplates = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.InvoiceRenderingTemplates = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
retrieve: stripeMethod({
|
|
9
|
+
method: 'GET',
|
|
10
|
+
fullPath: '/v1/invoice_rendering_templates/{template}',
|
|
11
|
+
}),
|
|
12
|
+
list: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v1/invoice_rendering_templates',
|
|
15
|
+
methodType: 'list',
|
|
16
|
+
}),
|
|
17
|
+
archive: stripeMethod({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/archive',
|
|
20
|
+
}),
|
|
21
|
+
unarchive: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/unarchive',
|
|
24
|
+
}),
|
|
25
|
+
});
|
package/cjs/resources.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = void 0;
|
|
4
|
+
exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.OAuth = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountLinks = exports.Account = void 0;
|
|
5
|
+
exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = void 0;
|
|
6
6
|
const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
|
|
7
7
|
const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
|
|
8
8
|
const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
|
|
@@ -113,6 +113,8 @@ var Files_js_1 = require("./resources/Files.js");
|
|
|
113
113
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return Files_js_1.Files; } });
|
|
114
114
|
var InvoiceItems_js_1 = require("./resources/InvoiceItems.js");
|
|
115
115
|
Object.defineProperty(exports, "InvoiceItems", { enumerable: true, get: function () { return InvoiceItems_js_1.InvoiceItems; } });
|
|
116
|
+
var InvoiceRenderingTemplates_js_1 = require("./resources/InvoiceRenderingTemplates.js");
|
|
117
|
+
Object.defineProperty(exports, "InvoiceRenderingTemplates", { enumerable: true, get: function () { return InvoiceRenderingTemplates_js_1.InvoiceRenderingTemplates; } });
|
|
116
118
|
var Invoices_js_1 = require("./resources/Invoices.js");
|
|
117
119
|
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return Invoices_js_1.Invoices; } });
|
|
118
120
|
var Mandates_js_1 = require("./resources/Mandates.js");
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '16.11.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/StripeResource.js
CHANGED
|
@@ -118,7 +118,7 @@ StripeResource.prototype = {
|
|
|
118
118
|
spec.validator(data, { headers });
|
|
119
119
|
}
|
|
120
120
|
const dataInQuery = spec.method === 'GET' || spec.method === 'DELETE';
|
|
121
|
-
const bodyData = dataInQuery ?
|
|
121
|
+
const bodyData = dataInQuery ? null : data;
|
|
122
122
|
const queryData = dataInQuery ? data : {};
|
|
123
123
|
return {
|
|
124
124
|
requestMethod,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const InvoiceRenderingTemplates = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/invoice_rendering_templates/{template}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/invoice_rendering_templates',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
archive: stripeMethod({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/archive',
|
|
17
|
+
}),
|
|
18
|
+
unarchive: stripeMethod({
|
|
19
|
+
method: 'POST',
|
|
20
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/unarchive',
|
|
21
|
+
}),
|
|
22
|
+
});
|
package/esm/resources.js
CHANGED
|
@@ -87,6 +87,7 @@ export { ExchangeRates } from './resources/ExchangeRates.js';
|
|
|
87
87
|
export { FileLinks } from './resources/FileLinks.js';
|
|
88
88
|
export { Files } from './resources/Files.js';
|
|
89
89
|
export { InvoiceItems } from './resources/InvoiceItems.js';
|
|
90
|
+
export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
|
|
90
91
|
export { Invoices } from './resources/Invoices.js';
|
|
91
92
|
export { Mandates } from './resources/Mandates.js';
|
|
92
93
|
export { OAuth } from './resources/OAuth.js';
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '16.11.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -2026,6 +2026,15 @@ declare module 'stripe' {
|
|
|
2026
2026
|
* Indicates whether tax ID collection is enabled for the session
|
|
2027
2027
|
*/
|
|
2028
2028
|
enabled: boolean;
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Indicates whether a tax ID is required on the payment page
|
|
2032
|
+
*/
|
|
2033
|
+
required: TaxIdCollection.Required;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
namespace TaxIdCollection {
|
|
2037
|
+
type Required = 'if_supported' | 'never';
|
|
2029
2038
|
}
|
|
2030
2039
|
|
|
2031
2040
|
interface TotalDetails {
|
|
@@ -2478,6 +2478,15 @@ declare module 'stripe' {
|
|
|
2478
2478
|
* Enable tax ID collection during checkout. Defaults to `false`.
|
|
2479
2479
|
*/
|
|
2480
2480
|
enabled: boolean;
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* Describes whether a tax ID is required during checkout. Defaults to `never`.
|
|
2484
|
+
*/
|
|
2485
|
+
required?: TaxIdCollection.Required;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
namespace TaxIdCollection {
|
|
2489
|
+
type Required = 'if_supported' | 'never';
|
|
2481
2490
|
}
|
|
2482
2491
|
|
|
2483
2492
|
type UiMode = 'embedded' | 'hosted';
|
package/types/Customers.d.ts
CHANGED
|
@@ -197,6 +197,11 @@ declare module 'stripe' {
|
|
|
197
197
|
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
|
198
198
|
*/
|
|
199
199
|
amount_tax_display: string | null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.
|
|
203
|
+
*/
|
|
204
|
+
template: string | null;
|
|
200
205
|
}
|
|
201
206
|
}
|
|
202
207
|
|
|
@@ -171,6 +171,11 @@ declare module 'stripe' {
|
|
|
171
171
|
amount_tax_display?: Stripe.Emptyable<
|
|
172
172
|
RenderingOptions.AmountTaxDisplay
|
|
173
173
|
>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* ID of the invoice rendering template to use for future invoices.
|
|
177
|
+
*/
|
|
178
|
+
template?: string;
|
|
174
179
|
}
|
|
175
180
|
|
|
176
181
|
namespace RenderingOptions {
|
|
@@ -477,6 +482,11 @@ declare module 'stripe' {
|
|
|
477
482
|
amount_tax_display?: Stripe.Emptyable<
|
|
478
483
|
RenderingOptions.AmountTaxDisplay
|
|
479
484
|
>;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* ID of the invoice rendering template to use for future invoices.
|
|
488
|
+
*/
|
|
489
|
+
template?: string;
|
|
480
490
|
}
|
|
481
491
|
|
|
482
492
|
namespace RenderingOptions {
|
|
@@ -113,12 +113,12 @@ declare module 'stripe' {
|
|
|
113
113
|
/**
|
|
114
114
|
* The amount of tax calculated per tax rate for this line item
|
|
115
115
|
*/
|
|
116
|
-
tax_amounts
|
|
116
|
+
tax_amounts: Array<InvoiceLineItem.TaxAmount>;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* The tax rates which apply to the line item.
|
|
120
120
|
*/
|
|
121
|
-
tax_rates
|
|
121
|
+
tax_rates: Array<Stripe.TaxRate>;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* A string identifying the type of the source of this line item, either an `invoiceitem` or a `subscription`.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
/**
|
|
6
|
+
* The InvoiceRenderingTemplate object.
|
|
7
|
+
*/
|
|
8
|
+
interface InvoiceRenderingTemplate {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for the object.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
16
|
+
*/
|
|
17
|
+
object: 'invoice_rendering_template';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
21
|
+
*/
|
|
22
|
+
created: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
26
|
+
*/
|
|
27
|
+
livemode: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
31
|
+
*/
|
|
32
|
+
metadata: Stripe.Metadata | null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A brief description of the template, hidden from customers
|
|
36
|
+
*/
|
|
37
|
+
nickname: string | null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The status of the template, one of `active` or `archived`.
|
|
41
|
+
*/
|
|
42
|
+
status: InvoiceRenderingTemplate.Status;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering
|
|
46
|
+
*/
|
|
47
|
+
version: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
namespace InvoiceRenderingTemplate {
|
|
51
|
+
type Status = 'active' | 'archived';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
interface InvoiceRenderingTemplateRetrieveParams {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies which fields in the response should be expanded.
|
|
8
|
+
*/
|
|
9
|
+
expand?: Array<string>;
|
|
10
|
+
|
|
11
|
+
version?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface InvoiceRenderingTemplateListParams extends PaginationParams {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies which fields in the response should be expanded.
|
|
17
|
+
*/
|
|
18
|
+
expand?: Array<string>;
|
|
19
|
+
|
|
20
|
+
status?: InvoiceRenderingTemplateListParams.Status;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
namespace InvoiceRenderingTemplateListParams {
|
|
24
|
+
type Status = 'active' | 'archived';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface InvoiceRenderingTemplateArchiveParams {
|
|
28
|
+
/**
|
|
29
|
+
* Specifies which fields in the response should be expanded.
|
|
30
|
+
*/
|
|
31
|
+
expand?: Array<string>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface InvoiceRenderingTemplateUnarchiveParams {
|
|
35
|
+
/**
|
|
36
|
+
* Specifies which fields in the response should be expanded.
|
|
37
|
+
*/
|
|
38
|
+
expand?: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class InvoiceRenderingTemplatesResource {
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.
|
|
44
|
+
*/
|
|
45
|
+
retrieve(
|
|
46
|
+
id: string,
|
|
47
|
+
params?: InvoiceRenderingTemplateRetrieveParams,
|
|
48
|
+
options?: RequestOptions
|
|
49
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
50
|
+
retrieve(
|
|
51
|
+
id: string,
|
|
52
|
+
options?: RequestOptions
|
|
53
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* List all templates, ordered by creation date, with the most recently created template appearing first.
|
|
57
|
+
*/
|
|
58
|
+
list(
|
|
59
|
+
params?: InvoiceRenderingTemplateListParams,
|
|
60
|
+
options?: RequestOptions
|
|
61
|
+
): ApiListPromise<Stripe.InvoiceRenderingTemplate>;
|
|
62
|
+
list(
|
|
63
|
+
options?: RequestOptions
|
|
64
|
+
): ApiListPromise<Stripe.InvoiceRenderingTemplate>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.
|
|
68
|
+
*/
|
|
69
|
+
archive(
|
|
70
|
+
id: string,
|
|
71
|
+
params?: InvoiceRenderingTemplateArchiveParams,
|
|
72
|
+
options?: RequestOptions
|
|
73
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
74
|
+
archive(
|
|
75
|
+
id: string,
|
|
76
|
+
options?: RequestOptions
|
|
77
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Unarchive an invoice rendering template so it can be used on new Stripe objects again.
|
|
81
|
+
*/
|
|
82
|
+
unarchive(
|
|
83
|
+
id: string,
|
|
84
|
+
params?: InvoiceRenderingTemplateUnarchiveParams,
|
|
85
|
+
options?: RequestOptions
|
|
86
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
87
|
+
unarchive(
|
|
88
|
+
id: string,
|
|
89
|
+
options?: RequestOptions
|
|
90
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
package/types/Invoices.d.ts
CHANGED
|
@@ -1199,6 +1199,16 @@ declare module 'stripe' {
|
|
|
1199
1199
|
* Invoice pdf rendering options
|
|
1200
1200
|
*/
|
|
1201
1201
|
pdf: Rendering.Pdf | null;
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* ID of the rendering template that the invoice is formatted by.
|
|
1205
|
+
*/
|
|
1206
|
+
template: string | null;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* Version of the rendering template that the invoice is using.
|
|
1210
|
+
*/
|
|
1211
|
+
template_version: number | null;
|
|
1202
1212
|
}
|
|
1203
1213
|
|
|
1204
1214
|
namespace Rendering {
|
|
@@ -539,6 +539,16 @@ declare module 'stripe' {
|
|
|
539
539
|
* Invoice pdf rendering options
|
|
540
540
|
*/
|
|
541
541
|
pdf?: Rendering.Pdf;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* ID of the invoice rendering template to use for this invoice.
|
|
545
|
+
*/
|
|
546
|
+
template?: string;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* The specific version of invoice rendering template to use for this invoice.
|
|
550
|
+
*/
|
|
551
|
+
template_version?: Stripe.Emptyable<number>;
|
|
542
552
|
}
|
|
543
553
|
|
|
544
554
|
namespace Rendering {
|
|
@@ -1231,6 +1241,16 @@ declare module 'stripe' {
|
|
|
1231
1241
|
* Invoice pdf rendering options
|
|
1232
1242
|
*/
|
|
1233
1243
|
pdf?: Rendering.Pdf;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* ID of the invoice rendering template to use for this invoice.
|
|
1247
|
+
*/
|
|
1248
|
+
template?: string;
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* The specific version of invoice rendering template to use for this invoice.
|
|
1252
|
+
*/
|
|
1253
|
+
template_version?: Stripe.Emptyable<number>;
|
|
1234
1254
|
}
|
|
1235
1255
|
|
|
1236
1256
|
namespace Rendering {
|
package/types/Issuing/Cards.d.ts
CHANGED
package/types/PaymentLinks.d.ts
CHANGED
|
@@ -933,6 +933,12 @@ declare module 'stripe' {
|
|
|
933
933
|
* Indicates whether tax ID collection is enabled for the session.
|
|
934
934
|
*/
|
|
935
935
|
enabled: boolean;
|
|
936
|
+
|
|
937
|
+
required: TaxIdCollection.Required;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
namespace TaxIdCollection {
|
|
941
|
+
type Required = 'if_supported' | 'never';
|
|
936
942
|
}
|
|
937
943
|
|
|
938
944
|
interface TransferData {
|
|
@@ -992,6 +992,15 @@ declare module 'stripe' {
|
|
|
992
992
|
* Enable tax ID collection during checkout. Defaults to `false`.
|
|
993
993
|
*/
|
|
994
994
|
enabled: boolean;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Describes whether a tax ID is required during checkout. Defaults to `never`.
|
|
998
|
+
*/
|
|
999
|
+
required?: TaxIdCollection.Required;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
namespace TaxIdCollection {
|
|
1003
|
+
type Required = 'if_supported' | 'never';
|
|
995
1004
|
}
|
|
996
1005
|
|
|
997
1006
|
interface TransferData {
|
|
@@ -1881,6 +1890,15 @@ declare module 'stripe' {
|
|
|
1881
1890
|
* Enable tax ID collection during checkout. Defaults to `false`.
|
|
1882
1891
|
*/
|
|
1883
1892
|
enabled: boolean;
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Describes whether a tax ID is required during checkout. Defaults to `never`.
|
|
1896
|
+
*/
|
|
1897
|
+
required?: TaxIdCollection.Required;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
namespace TaxIdCollection {
|
|
1901
|
+
type Required = 'if_supported' | 'never';
|
|
1884
1902
|
}
|
|
1885
1903
|
}
|
|
1886
1904
|
|
|
@@ -39,7 +39,7 @@ declare module 'stripe' {
|
|
|
39
39
|
description?: Stripe.Emptyable<string>;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* The discounts applied to the quote.
|
|
42
|
+
* The discounts applied to the quote.
|
|
43
43
|
*/
|
|
44
44
|
discounts?: Stripe.Emptyable<Array<QuoteCreateParams.Discount>>;
|
|
45
45
|
|
|
@@ -378,7 +378,7 @@ declare module 'stripe' {
|
|
|
378
378
|
description?: Stripe.Emptyable<string>;
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
|
-
* The discounts applied to the quote.
|
|
381
|
+
* The discounts applied to the quote.
|
|
382
382
|
*/
|
|
383
383
|
discounts?: Stripe.Emptyable<Array<QuoteUpdateParams.Discount>>;
|
|
384
384
|
|
|
@@ -1741,8 +1741,14 @@ declare module 'stripe' {
|
|
|
1741
1741
|
*/
|
|
1742
1742
|
created?: Stripe.RangeQueryParam | number;
|
|
1743
1743
|
|
|
1744
|
+
/**
|
|
1745
|
+
* Only return subscriptions whose current_period_end falls within the given date interval.
|
|
1746
|
+
*/
|
|
1744
1747
|
current_period_end?: Stripe.RangeQueryParam | number;
|
|
1745
1748
|
|
|
1749
|
+
/**
|
|
1750
|
+
* Only return subscriptions whose current_period_start falls within the given date interval.
|
|
1751
|
+
*/
|
|
1746
1752
|
current_period_start?: Stripe.RangeQueryParam | number;
|
|
1747
1753
|
|
|
1748
1754
|
/**
|
package/types/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
///<reference path='./Identity/VerificationReportsResource.d.ts' />
|
|
50
50
|
///<reference path='./Identity/VerificationSessionsResource.d.ts' />
|
|
51
51
|
///<reference path='./InvoiceItemsResource.d.ts' />
|
|
52
|
+
///<reference path='./InvoiceRenderingTemplatesResource.d.ts' />
|
|
52
53
|
///<reference path='./InvoicesResource.d.ts' />
|
|
53
54
|
///<reference path='./Issuing/AuthorizationsResource.d.ts' />
|
|
54
55
|
///<reference path='./Issuing/CardholdersResource.d.ts' />
|
|
@@ -185,6 +186,7 @@
|
|
|
185
186
|
///<reference path='./Identity/VerificationSessions.d.ts' />
|
|
186
187
|
///<reference path='./InvoiceItems.d.ts' />
|
|
187
188
|
///<reference path='./InvoiceLineItems.d.ts' />
|
|
189
|
+
///<reference path='./InvoiceRenderingTemplates.d.ts' />
|
|
188
190
|
///<reference path='./Invoices.d.ts' />
|
|
189
191
|
///<reference path='./Issuing/Authorizations.d.ts' />
|
|
190
192
|
///<reference path='./Issuing/Cardholders.d.ts' />
|
|
@@ -302,6 +304,7 @@ declare module 'stripe' {
|
|
|
302
304
|
fileLinks: Stripe.FileLinksResource;
|
|
303
305
|
files: Stripe.FilesResource;
|
|
304
306
|
invoiceItems: Stripe.InvoiceItemsResource;
|
|
307
|
+
invoiceRenderingTemplates: Stripe.InvoiceRenderingTemplatesResource;
|
|
305
308
|
invoices: Stripe.InvoicesResource;
|
|
306
309
|
mandates: Stripe.MandatesResource;
|
|
307
310
|
paymentIntents: Stripe.PaymentIntentsResource;
|