Class: Stripe::Events::V2CoreAccountPersonDeletedEvent

Inherits:
V2::Core::Event show all
Defined in:
lib/stripe/events/v2_core_account_person_deleted_event.rb

Overview

Occurs when a Person is deleted.

Defined Under Namespace

Classes: V2CoreAccountPersonDeletedEventData

Constant Summary

Constants inherited from V2::Core::Event

V2::Core::Event::OBJECT_NAME

Constants inherited from APIResource

APIResource::OBJECT_NAME

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from V2::Core::Event

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

Attributes inherited from APIResource

#save_with_parent

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from V2::Core::Event

field_remappings, object_name

Methods inherited from APIResource

class_name, custom_method, object_name, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource

Methods included from APIOperations::Request

included

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, field_remappings, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



28
29
30
# File 'lib/stripe/events/v2_core_account_person_deleted_event.rb', line 28

def data
  @data
end

Returns the value of attribute related_object.



28
29
30
# File 'lib/stripe/events/v2_core_account_person_deleted_event.rb', line 28

def related_object
  @related_object
end

Class Method Details

.inner_class_typesObject



25
26
27
# File 'lib/stripe/events/v2_core_account_person_deleted_event.rb', line 25

def self.inner_class_types
  @inner_class_types = { data: V2CoreAccountPersonDeletedEventData }
end

.lookup_typeObject



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

def self.lookup_type
  "v2.core.account_person.deleted"
end

Instance Method Details

Retrieves the related object from the API. Makes an API request on every call.



31
32
33
34
35
36
37
38
# File 'lib/stripe/events/v2_core_account_person_deleted_event.rb', line 31

def fetch_related_object
  _request(
    method: :get,
    path: related_object.url,
    base_address: :api,
    opts: { stripe_context: context }
  )
end