Sha256: 37b31947766e9498ce4ca55424e1dec3c654df3c93783afd88c3f7f61f8b7c3c

Contents?: true

Size: 1.11 KB

Versions: 13

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

module LedgerSync
  module QuickBooksOnline
    class BillPayment
      module Operations
        class Create < Operation::Create
          class Contract < LedgerSync::Ledgers::Contract
            params do
              required(:external_id).maybe(:string)
              optional(:APAccount).hash(Types::Reference)
              required(:TotalAmt).filled(:integer)
              optional(:CheckPayment).maybe(Types::Reference)
              optional(:CreditCardPayment).maybe(Types::Reference)
              required(:Currency).filled(:hash, Types::Reference)
              required(:Department).hash(Types::Reference)
              optional(:ExchangeRate).maybe(:float)
              required(:ledger_id).value(:nil)
              required(:Line).array(Types::Reference)
              optional(:PrivateNote).filled(:string)
              required(:PayType).filled(:string)
              optional(:DocNumber).maybe(:string)
              optional(:TxnDate).filled(:date?)
              required(:Vendor).hash(Types::Reference)
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-2.0.0 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb