Sha256: 08b818f4d3c50d16479a00f183c3076dde7cd2c5d177440898b980bd384cb235

Contents?: true

Size: 1.49 KB

Versions: 3

Compression:

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dub-0.0.4 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.0.3 lib/open_api_sdk/models/operations/tracksale_responsebody.rb
dub-0.0.2 lib/open_api_sdk/models/operations/tracksale_responsebody.rb