PolarExpress.Schemas.ProductPriceMeteredUnit (polar_express v0.2.2)

Copy Markdown View Source

ProductPriceMeteredUnit

A metered, usage-based, price for a product, with a fixed unit price.

Summary

Types

t()

@type t() :: %PolarExpress.Schemas.ProductPriceMeteredUnit{
  amount_type: term(),
  cap_amount: term(),
  created_at: term(),
  id: term(),
  is_archived: term(),
  meter: term(),
  meter_id: term(),
  modified_at: term(),
  price_currency: term(),
  product_id: term(),
  source: term(),
  tax_behavior: term(),
  unit_amount: term()
}
  • amount_type
  • cap_amount - The maximum amount in cents that can be charged, regardless of the number of units consumed. Nullable.
  • created_at - Creation timestamp of the object. Format: date-time.
  • id - The ID of the price. Format: uuid4.
  • is_archived - Whether the price is archived and no longer available.
  • meter - The meter associated to the price.
  • meter_id - The ID of the meter associated to the price. Format: uuid4.
  • modified_at - Last modification timestamp of the object. Nullable.
  • price_currency - The currency in which the customer will be charged.
  • product_id - The ID of the product owning the price. Format: uuid4.
  • source - The source of the price . catalog is a predefined price, while ad_hoc is a price created dynamically on a Checkout session.
  • tax_behavior - The tax behavior of the price. If null, it defaults to the organization's default tax behavior. Nullable.
  • unit_amount - The price per unit in cents.

Functions

schema_name()