Class: Stripe::Events::V1BillingMeterErrorReportTriggeredEventNotification
- Inherits:
-
V2::Core::EventNotification
- Object
- V2::Core::EventNotification
- Stripe::Events::V1BillingMeterErrorReportTriggeredEventNotification
- Defined in:
- lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb
Overview
Occurs when a Meter has invalid async usage events.
Instance Attribute Summary collapse
-
#related_object ⇒ Object
readonly
Returns the value of attribute related_object.
Attributes inherited from V2::Core::EventNotification
#context, #created, #id, #livemode, #reason, #type
Class Method Summary collapse
Instance Method Summary collapse
-
#fetch_related_object ⇒ Object
Retrieves the Meter related to this EventNotification from the Stripe API.
Methods inherited from V2::Core::EventNotification
Constructor Details
This class inherits a constructor from Stripe::V2::Core::EventNotification
Instance Attribute Details
#related_object ⇒ Object (readonly)
Returns the value of attribute related_object.
109 110 111 |
# File 'lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb', line 109 def end |
Class Method Details
.lookup_type ⇒ Object
105 106 107 |
# File 'lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb', line 105 def self.lookup_type "v1.billing.meter.error_report_triggered" end |
Instance Method Details
#fetch_related_object ⇒ Object
Retrieves the Meter related to this EventNotification from the Stripe API. Makes an API request on every call.
112 113 114 115 116 117 118 119 120 |
# File 'lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb', line 112 def resp = @client.raw_request( :get, .url, opts: { stripe_context: context }, usage: ["fetch_related_object"] ) @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(.url)) end |