Interface: MeterReceipt
@kortexya/reasoninglayer / MeterReceipt
Interface: MeterReceipt
Section titled “Interface: MeterReceipt”Defined in: src/types/metering.ts:59
The original, immutable receipt of a prepared meter delivery.
Properties
Section titled “Properties”deliveryId
Section titled “deliveryId”deliveryId:
string
Defined in: src/types/metering.ts:61
The delivery.
formula
Section titled “formula”formula:
string
Defined in: src/types/metering.ts:73
The formula that computed it.
identifier
Section titled “identifier”identifier:
string
Defined in: src/types/metering.ts:63
The meter identifier sent to the billing provider.
request
Section titled “request”request:
MeterDeliveryRequest
Defined in: src/types/metering.ts:65
The request it was prepared from.
source
Section titled “source”source:
string
Defined in: src/types/metering.ts:77
The source the value was read from.
sources
Section titled “sources”sources:
Record<string,MeterSourceWitness>
Defined in: src/types/metering.ts:79
The records each source was read from.
stripeCustomerId
Section titled “stripeCustomerId”stripeCustomerId:
string
Defined in: src/types/metering.ts:81
The billing provider’s customer.
stripeSubscriptionId
Section titled “stripeSubscriptionId”stripeSubscriptionId:
string
Defined in: src/types/metering.ts:83
The billing provider’s subscription.
tier:
string
Defined in: src/types/metering.ts:67
The tier that priced it.
timestamp
Section titled “timestamp”timestamp:
number
Defined in: src/types/metering.ts:75
The timestamp to send.
unit:
string
Defined in: src/types/metering.ts:69
The unit.
value:
number
Defined in: src/types/metering.ts:71
The value to send.