View Source ExOAPI.Stripe.Schemas.UsageRecordSummary (exoapi_stripe v0.1.4)

:id :: :string

Unique identifier for the object.

:invoice :: ExOAPI.Stripe.Schemas.Invoice

The invoice in which this usage period has been billed for.

:livemode :: :boolean

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

:object :: :string

String representing the object's type. Objects of the same type share the same value.

:period :: ExOAPI.Stripe.Schemas.Period

:subscription_item :: ExOAPI.Stripe.Schemas.SubscriptionItem

The ID of the subscription item this summary is describing.

:total_usage :: :integer

The total usage within this usage period.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.UsageRecordSummary{
  id: String.t() | nil,
  invoice: String.t() | nil,
  livemode: boolean() | nil,
  object: :usage_record_summary | nil,
  period: ExOAPI.Stripe.Schemas.Period.t() | nil,
  subscription_item: String.t() | nil,
  total_usage: integer() | nil
}

Link to this section Functions

Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source
@spec changeset(t(), params()) :: Ecto.Changeset.t()