Files
hydro-builder-app/node_modules/stripe/esm/resources/Billing/Alerts.js
2026-06-13 17:36:44 -07:00

43 lines
1.5 KiB
JavaScript

// File generated from our OpenAPI spec
import { StripeResource } from '../../StripeResource.js';
export class AlertResource extends StripeResource {
/**
* Lists billing active and inactive alerts
*/
list(params, options) {
return this._makeRequest('GET', '/v1/billing/alerts', params, options, {
methodType: 'list',
});
}
/**
* Creates a billing alert
*/
create(params, options) {
return this._makeRequest('POST', '/v1/billing/alerts', params, options);
}
/**
* Retrieves a billing alert given an ID
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/billing/alerts/${encodeURIComponent(id)}`, params, options);
}
/**
* Reactivates this alert, allowing it to trigger again.
*/
activate(id, params, options) {
return this._makeRequest('POST', `/v1/billing/alerts/${encodeURIComponent(id)}/activate`, params, options);
}
/**
* Archives this alert, removing it from the list view and APIs. This is non-reversible.
*/
archive(id, params, options) {
return this._makeRequest('POST', `/v1/billing/alerts/${encodeURIComponent(id)}/archive`, params, options);
}
/**
* Deactivates this alert, preventing it from triggering.
*/
deactivate(id, params, options) {
return this._makeRequest('POST', `/v1/billing/alerts/${encodeURIComponent(id)}/deactivate`, params, options);
}
}
//# sourceMappingURL=Alerts.js.map