mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-06 00:02:18 -04:00
* Support for APIs in the new API version 2024-09-30.acacia (#1458) * remove parseSnapshotEvent (#1463) * Bump version to 13.0.0 * Fixed API Version --------- Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> Co-authored-by: Ramya Rao <ramya@stripe.com> Co-authored-by: Prathmesh Ranaut <prathmesh@stripe.com>
18 lines
470 B
Ruby
18 lines
470 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
class ThinEvent
|
|
attr_reader :id, :type, :created, :context, :related_object
|
|
|
|
def initialize(event_payload = {})
|
|
@id = event_payload[:id]
|
|
@type = event_payload[:type]
|
|
@created = event_payload[:created]
|
|
@context = event_payload[:context]
|
|
@livemode = event_payload[:livemode]
|
|
@related_object = event_payload[:related_object]
|
|
@reason = event_payload[:reason]
|
|
end
|
|
end
|
|
end
|