Class: Stripe::Events::V2CoreAccountPersonDeletedEventNotification
- Inherits:
-
V2::Core::EventNotification
- Object
- V2::Core::EventNotification
- Stripe::Events::V2CoreAccountPersonDeletedEventNotification
- Defined in:
- lib/stripe/events/v2_core_account_person_deleted_event.rb
Overview
Occurs when a Person is deleted.
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 AccountPerson 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.
47 48 49 |
# File 'lib/stripe/events/v2_core_account_person_deleted_event.rb', line 47 def end |
Class Method Details
.lookup_type ⇒ Object
43 44 45 |
# File 'lib/stripe/events/v2_core_account_person_deleted_event.rb', line 43 def self.lookup_type "v2.core.account_person.deleted" end |
Instance Method Details
#fetch_related_object ⇒ Object
Retrieves the AccountPerson related to this EventNotification from the Stripe API. Makes an API request on every call.
50 51 52 53 54 55 56 57 58 |
# File 'lib/stripe/events/v2_core_account_person_deleted_event.rb', line 50 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 |