stripe
Version:
Stripe API wrapper
19 lines • 951 B
JavaScript
// File generated from our OpenAPI spec
import { StripeResource } from '../StripeResource.js';
export class EventResource extends StripeResource {
/**
* List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
*/
list(params, options) {
return this._makeRequest('GET', '/v1/events', params, options, {
methodType: 'list',
});
}
/**
* Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/events/${id}`, params, options);
}
}
//# sourceMappingURL=Events.js.map