Generic benefit grant webhook payload
@param B The type of benefit
@param P The type of grant properties
Instance methods
benefit
The benefit being granted
Sourcebenefit_id
The ID of the benefit concerned by this grant
Sourcecreated_at
Creation timestamp of the object
Sourcecustomer
The customer receiving the benefit
Sourcecustomer_id
The ID of the customer concerned by this grant
Sourceerror
Error information if the benefit grant failed
Sourcegranted_at
The timestamp when the benefit was 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
Sourceprevious_properties
Previous properties (for update events)
Sourceproperties
Type-specific grant properties
Sourcerevoked_at
The timestamp when the benefit was revoked
Sourcesubscription_id
The ID of the subscription that granted this benefit
Source