mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-05 00:02:14 -05:00
* Add generated RBIs/fields * Manual changes, lint, rubocop, amount * fix accessors * Undo list param change and add extra fields to pass sorbet tc * add typed true * test fix * fix T.any * Ignore rbis in gem for now * fix docstrings and spaces * regen after rebase
47 lines
1.3 KiB
Ruby
47 lines
1.3 KiB
Ruby
# File generated from our OpenAPI spec
|
|
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
module V2
|
|
class Event < APIResource
|
|
OBJECT_NAME = "v2.core.event"
|
|
def self.object_name
|
|
"v2.core.event"
|
|
end
|
|
|
|
class Reason < Stripe::StripeObject
|
|
class Request < Stripe::StripeObject
|
|
# ID of the API request that caused the event.
|
|
attr_reader :id
|
|
# The idempotency key transmitted during the request.
|
|
attr_reader :idempotency_key
|
|
end
|
|
# Event reason type.
|
|
attr_reader :type
|
|
# Information on the API request that instigated the event.
|
|
attr_reader :request
|
|
end
|
|
# Authentication context needed to fetch the event or related object.
|
|
attr_reader :context
|
|
|
|
# Time at which the object was created.
|
|
attr_reader :created
|
|
|
|
# Unique identifier for the event.
|
|
attr_reader :id
|
|
|
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
attr_reader :livemode
|
|
|
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
attr_reader :object
|
|
|
|
# Reason for the event.
|
|
attr_reader :reason
|
|
|
|
# The type of the event.
|
|
attr_reader :type
|
|
end
|
|
end
|
|
end
|