Class: Stripe::Events::V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification

Inherits:
V2::Core::EventNotification
  • Object
show all
Defined in:
lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb

Overview

Occurs when the status of an Account’s recipient configuration capability is updated.

Instance Attribute Summary collapse

Attributes inherited from V2::Core::EventNotification

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

Class Method Summary collapse

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.



49
50
51
# File 'lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb', line 49

def related_object
  @related_object
end

Class Method Details

.lookup_typeObject



45
46
47
# File 'lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb', line 45

def self.lookup_type
  "v2.core.account[configuration.recipient].capability_status_updated"
end

Instance Method Details

Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call.



52
53
54
55
56
57
58
59
60
# File 'lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb', line 52

def fetch_related_object
  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