Sha256: df505b83b2524cb868072f435a6ab086da36c2a564084f2d88eff06c88b568cb
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module LedgerSync module Adaptors module QuickBooksOnline module Payment module Operations class Create < Operation::Create class Contract < LedgerSync::Adaptors::Contract params do required(:external_id).maybe(:string) optional(:account).hash(Types::Reference) required(:amount).filled(:integer) required(:currency).filled(:hash, Types::Reference) required(:customer).hash(Types::Reference) optional(:deposit_account).hash(Types::Reference) optional(:exchange_rate).maybe(:float) required(:ledger_id).value(:nil) required(:line_items).array(Types::Reference) optional(:memo).filled(:string) optional(:reference_number).maybe(:string) optional(:transaction_date).filled(:date?) end end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems