struct

Polar::BenefitGrantWebhook(B, P)

Inherits JSON::Serializable < Struct < Value < Object

Generic benefit grant webhook payload

@param B The type of benefit @param P The type of grant properties

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

benefit

The benefit being granted

Source
benefit_id

The ID of the benefit concerned by this grant

Source
created_at

Creation timestamp of the object

Source
customer

The customer receiving the benefit

Source
customer_id

The ID of the customer concerned by this grant

Source
error

Error information if the benefit grant failed

Source
granted_at

The timestamp when the benefit was 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
previous_properties

Previous properties (for update events)

Source
properties

Type-specific grant properties

Source
revoked_at

The timestamp when the benefit was revoked

Source
subscription_id

The ID of the subscription that granted this benefit

Source