Sha256: 7948c280894e7904f34eb08c264465224598a4addcc5e3c6ceb695129a46b1c8
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
module LedgerSync module Adaptors module QuickBooksOnline module Account module Operations class Find < Operation::Find class Contract < LedgerSync::Adaptors::Contract params do required(:ledger_id).filled(:string) required(:name).maybe(:string) required(:classification).maybe(:string) required(:account_type).maybe(:string) required(:account_sub_type).maybe(:string) required(:number).maybe(:integer) required(:currency).maybe(:string) required(:description).maybe(:string) required(:active).maybe(:bool) end end private def operate return failure(nil) if resource.ledger_id.nil? response = adaptor.find( resource: 'account', 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/account/operations/find.rb |