Sha256: 7157a1bf11e745de213281bf5b3976e98377aaac593652924f6b4270aac1e04f

Contents?: true

Size: 865 Bytes

Versions: 4

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module Invoice
        module Operations
          class Create < Operation::Create
            class Contract < LedgerSync::Adaptors::Contract
              params do
                required(:external_id).maybe(:string)
                optional(:account).hash(Types::Reference)
                required(:currency).filled(:hash, Types::Reference)
                required(:customer).hash(Types::Reference)
                optional(:deposit).maybe(:integer)
                required(:ledger_id).value(:nil)
                required(:line_items).array(Types::Reference)
                optional(:memo).filled(:string)
                optional(:transaction_date).filled(:date?)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/quickbooks_online/invoice/operations/create.rb
ledger_sync-1.3.4 lib/ledger_sync/adaptors/quickbooks_online/invoice/operations/create.rb
ledger_sync-1.3.3 lib/ledger_sync/adaptors/quickbooks_online/invoice/operations/create.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/quickbooks_online/invoice/operations/create.rb