Sha256: 45d5da05d61d010f345efe6cbbd10195d422b4b15d6f4f6054cd5c13aead99b3

Contents?: true

Size: 868 Bytes

Versions: 4

Compression:

Stored size: 868 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Vendor
        module Operations
          class Create < Operation::Create
            class Contract < LedgerSync::Ledgers::Contract
              params do
                required(:external_id).maybe(:string)
                required(:ledger_id).value(:nil)
                optional(:CompanyName).maybe(:string)
                optional(:DisplayName).maybe(:string)
                optional(:FamilyName).maybe(:string)
                optional(:GivenName).maybe(:string)
                optional(:MiddleName).maybe(:string)
                required(:PrimaryPhone).maybe(:hash, Types::Reference)
                required(:PrimaryEmailAddr).maybe(:hash, Types::Reference)
              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/vendor/operations/create.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/vendor/operations/create.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/vendor/operations/create.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/vendor/operations/create.rb