Sha256: 2a30aa59008acef7a551a49b9f45e95b782695d5fa7ffde12788c854feefee9a
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module LedgerSync module Ledgers module QuickBooksOnline class Expense module Operations class Create < QuickBooksOnline::Operation::Create class Contract < LedgerSync::Ledgers::Contract params do required(:external_id).maybe(:string) required(:account).hash(Types::Reference) optional(:currency).hash(Types::Reference) required(:department).hash(Types::Reference) optional(:exchange_rate).maybe(:float) optional(:ledger_id).value(:nil) required(:line_items).array(Types::Reference) optional(:memo).filled(:string) required(:payment_type).filled(:string) optional(:reference_number).maybe(:string) optional(:transaction_date).filled(:date?) optional(:entity).hash(Types::Reference) end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.4.4 | lib/ledger_sync/ledgers/quickbooks_online/expense/operations/create.rb |