Sha256: 10ec5b6cc7faa37271cb101229cba3ad7758d0040eed7b07cce59a1d3ad8c227

Contents?: true

Size: 742 Bytes

Versions: 25

Compression:

Stored size: 742 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # This event occurs when there are invalid async usage events for a given meter.
  class V1BillingMeterErrorReportTriggeredEvent < Stripe::V2::Event
    def self.lookup_type
      "v1.billing.meter.error_report_triggered"
    end
    # There is additional data present for this event, accessible with the `data` property.
    # See the Stripe API docs for more information.

    # Retrieves the related object from the API. Make an API request on every call.
    def fetch_related_object
      _request(
        method: :get,
        path: related_object.url,
        base_address: :api,
        opts: { stripe_account: context }
      )
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
stripe-13.5.0 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.5.0.pre.beta.1 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.4.1 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.4.0 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.4.0.pre.beta.4 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.4.0.pre.beta.3 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.3.1 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.4.0.pre.beta.2 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.4.0.pre.beta.1 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.3.0 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.3.0.pre.beta.3 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.3.0.pre.beta.2 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.3.0.pre.beta.1 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.2.0 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.1.2 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.2.0.pre.beta.3 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.2.0.pre.beta.2 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.1.1 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.2.0.pre.beta.1 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
stripe-13.1.0 lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb