Sha256: 583ca580d3db4fc9724f113042da1028fa80fd0363963a5de78e7293ae76e026
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
# frozen_string_literal: true module LedgerSync module Adaptors module QuickBooksOnline module BillPayment 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) optional(:bank_account).maybe(Types::Reference) optional(:credit_card_account).maybe(Types::Reference) required(:currency).filled(:hash, Types::Reference) required(:department).hash(Types::Reference) optional(:exchange_rate).maybe(:float) required(:ledger_id).value(:nil) required(:line_items).array(Types::Reference) optional(:memo).filled(:string) required(:payment_type).filled(:string) optional(:reference_number).maybe(:string) optional(:transaction_date).filled(:date?) required(:vendor).hash(Types::Reference) end end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems