struct

Polar::Models::ProductPriceMeteredUnitCreate

Inherits JSON::Serializable < Struct < Value < Object

Model representing a ProductPriceMeteredUnitCreate

This struct is auto-generated from the Polar.sh OpenAPI specification. It uses JSON::Serializable for automatic JSON parsing and serialization.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

amount_type
Source
cap_amount

Optional maximum amount in cents that can be charged, regardless of the number of units consumed.

Source
meter_id

The ID of the meter associated to the price.

Source
price_currency

The currency. Currently, only usd is supported.

Source
unit_amount

The price per unit in cents. Supports up to 12 decimal places.

Source