Add subscription support + license extension on renewal

This commit is contained in:
Krystie
2026-08-19 12:45:06 -07:00
parent 14d0eaa2b3
commit ff722aa4d8
2075 changed files with 357707 additions and 63 deletions
+31
View File
@@ -0,0 +1,31 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../StripeResource.js';
export class InvoiceRenderingTemplateResource extends StripeResource {
/**
* List all templates, ordered by creation date, with the most recently created template appearing first.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/invoice_rendering_templates', params, options, {
methodType: 'list',
});
}
/**
* 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.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/invoice_rendering_templates/${encodeURIComponent(id)}`, params, options);
}
/**
* 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.
*/
archive(id, params, options) {
return this._makeRequest('POST', `/v1/invoice_rendering_templates/${encodeURIComponent(id)}/archive`, params, options);
}
/**
* Unarchive an invoice rendering template so it can be used on new Stripe objects again.
*/
unarchive(id, params, options) {
return this._makeRequest('POST', `/v1/invoice_rendering_templates/${encodeURIComponent(id)}/unarchive`, params, options);
}
}
//# sourceMappingURL=InvoiceRenderingTemplates.js.map