PolarExpress.Schemas.ProductPriceMeteredUnitCreate (polar_express v0.2.2)

Copy Markdown View Source

ProductPriceMeteredUnitCreate

Schema to create a metered price with a fixed unit price.

Summary

Types

t()

@type t() :: %PolarExpress.Schemas.ProductPriceMeteredUnitCreate{
  amount_type: term(),
  cap_amount: term(),
  meter_id: term(),
  price_currency: term(),
  tax_behavior: term(),
  unit_amount: term()
}
  • amount_type
  • cap_amount - Optional maximum amount in cents that can be charged, regardless of the number of units consumed. Nullable.
  • meter_id - The ID of the meter associated to the price. Format: uuid4.
  • price_currency - The currency in which the customer will be charged.
  • tax_behavior - The tax behavior of the price. If not set, it will default to the organization's default tax behavior. Nullable.
  • unit_amount - The price per unit in cents. Supports up to 12 decimal places.

Functions

schema_name()