Sha256: db5ab4cd353bd9add76af8ccb6d5ba714950e0374f03b406b879317cf75c7334

Contents?: true

Size: 951 Bytes

Versions: 4

Compression:

Stored size: 951 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Bill
        module Operations
          class Create < Operation::Create
            class Contract < LedgerSync::Ledgers::Contract
              params do
                required(:external_id).maybe(:string)
                optional(:APAccount).hash(Types::Reference)
                optional(:Currency).hash(Types::Reference)
                required(:Department).hash(Types::Reference)
                optional(:DueDate).maybe(:date?)
                optional(:ledger_id).value(:nil)
                required(:Line).array(Types::Reference)
                optional(:PrivateNote).maybe(:string)
                optional(:DocNumber).maybe(:string)
                optional(:TxnDate).maybe(:date?)
                required(:Vendor).hash(Types::Reference)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/bill/operations/create.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/bill/operations/create.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/bill/operations/create.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/bill/operations/create.rb