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
+18
View File
@@ -0,0 +1,18 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../StripeResource.js';
export class TokenResource extends StripeResource {
/**
* Retrieves the token with the given ID.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/tokens/${encodeURIComponent(id)}`, params, options);
}
/**
* Creates a single-use token that represents a bank account's details.
* You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/tokens', params, options);
}
}
//# sourceMappingURL=Tokens.js.map