struct

Polar::Models::CustomerStateSubscription

Inherits JSON::Serializable < Struct < Value < Object

Model representing a CustomerStateSubscription

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

The amount of the subscription.

Source
cancel_at_period_end

Whether the subscription will be canceled at the end of the current period.

Source
canceled_at

The timestamp when the subscription was canceled. The subscription might still be active if cancel_at_period_end is true.

Source
created_at

Creation timestamp of the object.

Source
currency

The currency of the subscription.

Source
current_period_end

The end timestamp of the current billing period.

Source
current_period_start

The start timestamp of the current billing period.

Source
custom_field_data

Key-value object storing custom field values.

Source
discount_id

The ID of the applied discount, if any.

Source
ends_at

The timestamp when the subscription will end.

Source
id

The ID of the subscription.

Source
metadata
Source
meters

List of meters associated with the subscription.

Source
modified_at

Last modification timestamp of the object.

Source
product_id

The ID of the subscribed product.

Source
recurring_interval

The interval at which the subscription recurs.

Source
started_at

The timestamp when the subscription started.

Source
status
Source
trial_end

The end timestamp of the trial period, if any.

Source
trial_start

The start timestamp of the trial period, if any.

Source