Sha256: c2e910d8c28eb41c313e723960efcb41af42073f7774b4752a3ae1af5927e60c

Contents?: true

Size: 1.26 KB

Versions: 46

Compression:

Stored size: 1.26 KB

Contents

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module OpenApiSDK
  module Operations
  

    class Sale < ::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 :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, invoice_id: ::String, metadata: T::Hash[Symbol, ::Object], payment_processor: ::String).void }
      def initialize(amount: nil, currency: nil, invoice_id: nil, metadata: nil, payment_processor: nil)
        @amount = amount
        @currency = currency
        @invoice_id = invoice_id
        @metadata = metadata
        @payment_processor = payment_processor
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
dub-0.2.2.pre.alpha.55 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.54 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.53 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.52 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.51 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.50 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.49 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.48 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.47 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.46 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.45 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.44 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.43 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.42 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.41 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.40 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.39 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.38 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.37 lib/open_api_sdk/models/operations/sale.rb
dub-0.2.2.pre.alpha.36 lib/open_api_sdk/models/operations/sale.rb