Sha256: adae6c17c9d4e5fc9d7dad43fe824525a350792ad3df2b0921557359c07217bf
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
module LedgerSync module Adaptors module QuickBooksOnline module JournalEntry module Operations class Find < Operation::Find class Contract < LedgerSync::Adaptors::Contract schema do required(:ledger_id).filled(:string) optional(:currency).maybe(:string) optional(:memo).maybe(:string) optional(:transaction_date).filled(:date?) optional(:line_items).array(Types::Reference) end end private def operate return failure(nil) if resource.ledger_id.nil? response = adaptor.find( resource: 'journal_entry', id: resource.ledger_id ) success(response: response) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.1.1 | lib/ledger_sync/adaptors/quickbooks_online/journal_entry/operations/find.rb |