struct

Polar::Models::BenefitGrant

Inherits JSON::Serializable < Struct < Value < Object

Model representing a BenefitGrant

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

benefit
Source
benefit_id

The ID of the benefit concerned by this grant.

Source
created_at

Creation timestamp of the object.

Source
customer
Source
customer_id

The ID of the customer concerned by this grant.

Source
error

The error information if the benefit grant failed with an unrecoverable error.

Source
granted_at

The timestamp when the benefit was granted. If None, the benefit is not granted.

Source
id

The ID of the grant.

Source
is_granted

Whether the benefit is granted.

Source
is_revoked

Whether the benefit is revoked.

Source
modified_at

Last modification timestamp of the object.

Source
order_id

The ID of the order that granted this benefit.

Source
properties
Source
revoked_at

The timestamp when the benefit was revoked. If None, the benefit is not revoked.

Source
subscription_id

The ID of the subscription that granted this benefit.

Source