Class: Stripe::Events::UnknownEventNotification

Inherits:
V2::Core::EventNotification show all
Defined in:
lib/stripe/events/unknown_event_notification.rb

Instance Attribute Summary collapse

Attributes inherited from V2::Core::EventNotification

#context, #created, #id, #livemode, #reason, #type

Instance Method Summary collapse

Methods inherited from V2::Core::EventNotification

#fetch_event, #initialize

Constructor Details

This class inherits a constructor from Stripe::V2::Core::EventNotification

Instance Attribute Details

Returns the value of attribute related_object.



8
9
10
# File 'lib/stripe/events/unknown_event_notification.rb', line 8

def related_object
  @related_object
end

Instance Method Details



10
11
12
13
14
15
16
# File 'lib/stripe/events/unknown_event_notification.rb', line 10

def fetch_related_object
  return nil if @related_object.nil?

  resp = @client.raw_request(:get, related_object.url, opts: { stripe_context: context },
                                                       usage: ["fetch_related_object"])
  @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
end