Sha256: 9c0709376c7a4f15ae675c734552312b328dc7f6361580287f28aae2d82de8c6

Contents?: true

Size: 1.68 KB

Versions: 14

Compression:

Stored size: 1.68 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module OpenApiSDK
  module Operations
  
    # A sale was tracked.
    class TrackSaleResponseBody < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig


      field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }

      field :currency, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('currency') } }

      field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } }

      field :event_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('eventName') } }

      field :invoice_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }

      field :metadata, T::Hash[Symbol, ::Object], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('metadata') } }

      field :payment_processor, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor') } }


      sig { params(amount: ::Float, currency: ::String, customer_id: ::String, event_name: ::String, invoice_id: ::String, metadata: T::Hash[Symbol, ::Object], payment_processor: ::String).void }
      def initialize(amount: nil, currency: nil, customer_id: nil, event_name: nil, invoice_id: nil, metadata: nil, payment_processor: nil)
        @amount = amount
        @currency = currency
        @customer_id = customer_id
        @event_name = event_name
        @invoice_id = invoice_id
        @metadata = metadata
        @payment_processor = payment_processor
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dub-0.2.2.pre.alpha.3 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.2.2.pre.alpha.2 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.2.2.pre.alpha.1 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.2.2.pre.alpha lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.2.2 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.2.1 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.2.0 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.1.3 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.1.2 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.1.1 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.1.0 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.0.7 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.0.6 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.0.5 lib/open_api_sdk/models/operations/tracksale_responsebody.rb