Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (24 loc) · 1.28 KB

CustomerChargeUsageObject.md

File metadata and controls

30 lines (24 loc) · 1.28 KB

LagoAPI::CustomerChargeUsageObject

Properties

Name Type Description Notes
units String The number of units consumed by the customer for a specific charge item.
events_count Integer The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts.
amount_cents Integer The amount in cents, tax excluded, consumed by the customer for a specific charge item.
amount_currency Currency
charge CustomerChargeUsageObjectCharge
billable_metric CustomerChargeUsageObjectBillableMetric
groups Array<CustomerChargeUsageObjectGroupsInner> Array of group object, representing multiple dimensions for a charge item.

Example

require 'lago_ruby'

instance = LagoAPI::CustomerChargeUsageObject.new(
  units: 1.0,
  events_count: 10,
  amount_cents: 123,
  amount_currency: null,
  charge: null,
  billable_metric: null,
  groups: null
)