class OpenApiSDK::Models::Components::WebhookSubscriptionPastDuePayload
**Discord & Slack support:** Full
If payment retries are exhausted, a ‘subscription.revoked` event will be sent.
Benefits may be revoked depending on the organization’s grace period settings.
This is a recoverable state - the customer can update their payment method to restore the subscription.
Sent when a subscription payment fails and the subscription enters ‘past_due` status.
def ==(other)
def ==(other) return false unless other.is_a?(self.class) return false unless @timestamp == other.timestamp return false unless @data == other.data return false unless @type == other.type true end
def initialize(timestamp:, data:, type: "subscription.past_due")
def initialize(timestamp:, data:, type: "subscription.past_due") @timestamp = timestamp @data = data unless type == "subscription.past_due" raise ArgumentError, "Invalid value for type" end @type = "subscription.past_due" end