Sha256: 90ebea85c4938f64e6c0b773a533404a18fbe67ac014ea28e91c8b5b66d0af1d
Contents?: true
Size: 971 Bytes
Versions: 1
Compression:
Stored size: 971 Bytes
Contents
# frozen_string_literal: true module LedgerSync module Adaptors module Test module Expense module Operations class Create < Operation::Create class Contract < LedgerSync::Adaptors::Contract schema do required(:external_id).maybe(:string) required(:ledger_id).value(:nil) required(:account).hash(Types::Reference) required(:entity).hash(Types::Reference) required(:currency).filled(:hash, Types::Reference) required(:memo).filled(:string) required(:payment_type).filled(:string) required(:transaction_date).filled(:date?) required(:exchange_rate).maybe(:float) required(:line_items).array(Types::Reference) required(:reference_number).filled(:string) end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.2 | lib/ledger_sync/adaptors/test/expense/operations/create.rb |