Class: Stripe::V2::Core::EventReason

Inherits:
Object
  • Object
show all
Defined in:
lib/stripe/resources/v2/core/event_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_reason_payload = {}) ⇒ EventReason

Returns a new instance of EventReason.



18
19
20
21
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 18

def initialize(event_reason_payload = {})
  @type = event_reason_payload[:type]
  @request = EventReasonRequest.new(event_reason_payload[:request])
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



16
17
18
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 16

def request
  @request
end

#typeObject (readonly)

Returns the value of attribute type.



16
17
18
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 16

def type
  @type
end