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.
Instance methods
amount
The amount of the subscription.
Sourcecancel_at_period_end
Whether the subscription will be canceled at the end of the current period.
Sourcecanceled_at
The timestamp when the subscription was canceled. The subscription might still be active if cancel_at_period_end is true.
Sourcecreated_at
Creation timestamp of the object.
Sourcecurrency
The currency of the subscription.
Sourcecurrent_period_end
The end timestamp of the current billing period.
Sourcecurrent_period_start
The start timestamp of the current billing period.
Sourcecustom_field_data
Key-value object storing custom field values.
Sourcediscount_id
The ID of the applied discount, if any.
Sourceends_at
The timestamp when the subscription will end.
Sourceid
The ID of the subscription.
Sourcemeters
List of meters associated with the subscription.
Sourcemodified_at
Last modification timestamp of the object.
Sourceproduct_id
The ID of the subscribed product.
Sourcerecurring_interval
The interval at which the subscription recurs.
Sourcestarted_at
The timestamp when the subscription started.
Sourcetrial_end
The end timestamp of the trial period, if any.
Sourcetrial_start
The start timestamp of the trial period, if any.
Source