Sha256: 6bd1a351363c23c31d33cf5b5ce9530db4e8ac26c2df683fb290e47a3e9dce29

Contents?: true

Size: 863 Bytes

Versions: 4

Compression:

Stored size: 863 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Invoice
        module Operations
          class Create < Operation::Create
            class Contract < LedgerSync::Ledgers::Contract
              params do
                required(:external_id).maybe(:string)
                required(:Currency).filled(:hash, Types::Reference)
                required(:Customer).hash(Types::Reference)
                optional(:Deposit).maybe(:integer)
                optional(:DepositToAccount).hash(Types::Reference)
                required(:ledger_id).value(:nil)
                required(:Line).array(Types::Reference)
                optional(:PrivateNote).filled(:string)
                optional(:TxnDate).filled(:date?)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/invoice/operations/create.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/invoice/operations/create.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/invoice/operations/create.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/invoice/operations/create.rb