Sha256: 6a5d41f47a3f3ed339ec84ffc3eef959f8cb26fb2edc1836fa4a94c1e7418825
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 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(:ExchangeRate).maybe(:float) optional(:ledger_id).value(:nil) required(:Line).array(Types::Reference) optional(:PrivateNote).filled(:string) required(:PaymentType).filled(:string) optional(:DocNumber).maybe(:string) optional(:TxnDate).filled(:date?) optional(:Entity).hash(Types::Reference) end end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems