Polar::Models::DiscountUpdate
Inherits JSON::Serializable < Struct < Value < Object
Model representing a DiscountUpdate
This struct is auto-generated from the Polar.sh OpenAPI specification.
It uses JSON::Serializable for automatic JSON parsing and serialization.
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
amount
Sourcebasis_points
Sourcecode
Code customers can use to apply the discount during checkout. Must be between 3 and 256 characters long and contain only alphanumeric characters.If not provided, the discount can only be applied via the API.
currency
Sourceduration
Sourceduration_in_months
Sourcemetadata
Key-value object allowing you to store additional information.
The key must be a string with a maximum length of 40 characters. The value must be either:
A string with a maximum length of 500 characters An integer A floating-point number A boolean
You can store up to 50 key-value pairs.
name
Sourceproducts
Sourcetype
Source