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
+25
View File
@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../StripeResource.js';
export class CalculationResource extends StripeResource {
/**
* Retrieves a Tax Calculation object, if the calculation hasn't expired.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/tax/calculations/${encodeURIComponent(id)}`, params, options);
}
/**
* Calculates tax based on the input and returns a Tax Calculation object.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/tax/calculations', params, options);
}
/**
* Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired.
*/
listLineItems(id, params, options) {
return this._makeRequest('GET', `/v1/tax/calculations/${encodeURIComponent(id)}/line_items`, params, options, {
methodType: 'list',
});
}
}
//# sourceMappingURL=Calculations.js.map