Module: Stripe::EventTypes

Defined in:
lib/stripe/event_types.rb

Class Method Summary collapse

Class Method Details

.event_notification_types_to_classesObject



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/stripe/event_types.rb', line 16

def self.event_notification_types_to_classes
  {
    # event notification types: The beginning of the section generated from our OpenAPI spec
    Events::V1BillingMeterErrorReportTriggeredEventNotification.lookup_type =>
    Events::V1BillingMeterErrorReportTriggeredEventNotification,
    Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type =>
    Events::V1BillingMeterNoMeterFoundEventNotification,
    Events::V2CoreEventDestinationPingEventNotification.lookup_type =>
    Events::V2CoreEventDestinationPingEventNotification,
    # event notification types: The end of the section generated from our OpenAPI spec
  }
end

.v2_event_types_to_classesObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/stripe/event_types.rb', line 5

def self.v2_event_types_to_classes
  {
    # v2 event types: The beginning of the section generated from our OpenAPI spec
    Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type =>
    Events::V1BillingMeterErrorReportTriggeredEvent,
    Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent,
    Events::V2CoreEventDestinationPingEvent.lookup_type => Events::V2CoreEventDestinationPingEvent,
    # v2 event types: The end of the section generated from our OpenAPI spec
  }
end