stripe-ruby/lib/stripe/resources/terminal/reader_collected_data.rb
helenye-stripe bc1d5a8721
Add method parameter type classes to all resources and services (#1505)
* barebones request params

* fixes

* manual changes

* Generated changes

* Add search params

* manual change - update to cast params

* add more test

* add newliens (generated)
2024-12-20 10:39:59 -08:00

46 lines
1.3 KiB
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Terminal
# Returns data collected by Terminal readers. This data is only stored for 24 hours.
class ReaderCollectedData < APIResource
OBJECT_NAME = "terminal.reader_collected_data"
def self.object_name
"terminal.reader_collected_data"
end
class Magstripe < Stripe::StripeObject
# The raw magstripe data collected by the reader.
attr_reader :data
end
class RetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created
# Unique identifier for the object.
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
# The magstripe data collected by the reader.
attr_reader :magstripe
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
# The type of data collected by the reader.
attr_reader :type
end
end
end