expresspayments
Version:
ExpressPayments API wrapper
44 lines (37 loc) • 1.31 kB
TypeScript
// File generated from our OpenAPI spec
declare module 'expresspayments' {
namespace ExpressPayments {
/**
* Usage records allow you to report customer usage and metrics to ExpressPayments for
* metered billing of subscription prices.
*
* Related guide: [Metered billing](https://docs.epayments.network/billing/subscriptions/metered-billing)
*/
interface UsageRecord {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'usage_record';
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
*/
livemode: boolean;
/**
* The usage quantity for the specified date.
*/
quantity: number;
/**
* The ID of the subscription item this usage record contains data for.
*/
subscription_item: string;
/**
* The timestamp when this usage occurred.
*/
timestamp: number;
}
}
}