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

Latest commit

 

History

History
34 lines (28 loc) · 1.53 KB

CustomerUsageObject.md

File metadata and controls

34 lines (28 loc) · 1.53 KB

LagoAPI::CustomerUsageObject

Properties

Name Type Description Notes
from_datetime Time The lower bound of the billing period, expressed in the ISO 8601 datetime format in Coordinated Universal Time (UTC).
to_datetime Time The upper bound of the billing period, expressed in the ISO 8601 datetime format in Coordinated Universal Time (UTC).
issuing_date Time The date of creation of the invoice.
lago_invoice_id String A unique identifier associated with the invoice related to this particular usage record. [optional]
currency Currency [optional]
amount_cents Integer The amount in cents, tax excluded.
taxes_amount_cents Integer The tax amount in cents.
total_amount_cents Integer The total amount in cents, tax included.
charges_usage Array<CustomerChargeUsageObject> Array of charges that comprise the current usage. It contains detailed information about individual charge items associated with the usage.

Example

require 'lago_ruby'

instance = LagoAPI::CustomerUsageObject.new(
  from_datetime: 2022-07-01T00:00Z,
  to_datetime: 2022-07-31T23:59:59Z,
  issuing_date: 2022-08-01T23:59:59Z,
  lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
  currency: null,
  amount_cents: 123,
  taxes_amount_cents: 200,
  total_amount_cents: 123,
  charges_usage: null
)