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.
Instance methods
benefit_id
The ID of the benefit concerned by this grant.
Sourcecreated_at
Creation timestamp of the object.
Sourcecustomer_id
The ID of the customer concerned by this grant.
Sourceerror
The error information if the benefit grant failed with an unrecoverable error.
Sourcegranted_at
The timestamp when the benefit was granted. If None, the benefit is not granted.
Sourceis_granted
Whether the benefit is granted.
Sourceis_revoked
Whether the benefit is revoked.
Sourcemodified_at
Last modification timestamp of the object.
Sourceorder_id
The ID of the order that granted this benefit.
Sourcerevoked_at
The timestamp when the benefit was revoked. If None, the benefit is not revoked.
Sourcesubscription_id
The ID of the subscription that granted this benefit.
Source