Initial project import
This commit is contained in:
37
node_modules/stripe/esm/resources/TestHelpers/TestClocks.js
generated
vendored
Normal file
37
node_modules/stripe/esm/resources/TestHelpers/TestClocks.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class TestClockResource extends StripeResource {
|
||||
/**
|
||||
* Deletes a test clock.
|
||||
*/
|
||||
del(id, params, options) {
|
||||
return this._makeRequest('DELETE', `/v1/test_helpers/test_clocks/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a test clock.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/test_helpers/test_clocks/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Returns a list of your test clocks.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/test_helpers/test_clocks', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a new test clock that can be attached to new customers and quotes.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/test_helpers/test_clocks', params, options);
|
||||
}
|
||||
/**
|
||||
* Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.
|
||||
*/
|
||||
advance(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/test_clocks/${encodeURIComponent(id)}/advance`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=TestClocks.js.map
|
||||
Reference in New Issue
Block a user