struct

Polar::Models::DiscountFixedRepeatDurationBase

Inherits JSON::Serializable < Struct < Value < Object

Model representing a DiscountFixedRepeatDurationBase

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
Source
code

Code customers can use to apply the discount during checkout.

Source
created_at

Creation timestamp of the object.

Source
currency
Source
duration
Source
duration_in_months
Source
ends_at

Timestamp after which the discount is no longer redeemable.

Source
id

The ID of the object.

Source
max_redemptions

Maximum number of times the discount can be redeemed.

Source
metadata
Source
modified_at

Last modification timestamp of the object.

Source
name

Name of the discount. Will be displayed to the customer when the discount is applied.

Source
organization_id

The organization ID.

Source
redemptions_count

Number of times the discount has been redeemed.

Source
starts_at

Timestamp after which the discount is redeemable.

Source
type
Source