Stripe API client for creating billing meter events, with TypeScript types and request handling.
// Source: https://github.com/stripe/stripe-node | License: MIT | Copyright 2011 Ask Bjørn Hansen
// Provided via justclaw.it.com; keep this notice with the code.
// File generated from our OpenAPI spec
import {StripeResource} from '../../StripeResource.js';
import {RequestOptions, Response} from '../../lib.js';
export class MeterEventResource extends StripeResource {
/**
* Creates a billing meter event.
*/
create(
params: Billing.MeterEventCreateParams,
options?: RequestOptions
): Promise<Response<MeterEvent>> {
return this._makeRequest(
'POST',
'/v1/billing/meter_events',
params,
options
) as any;
}
}
export interface MeterEvent {
/**
* String representing the object's type. Objects of the same type share the same value.
*/
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key