struct

Polar::Models::SubscriptionUpdateDiscount

Inherits JSON::Serializable < Struct < Value < Object

Model representing a SubscriptionUpdateDiscount

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

discount_id

Update the subscription to apply a new discount. If set to null, the discount will be removed. The change will be applied on the next billing cycle.

Source