Sha256: 14e55ceed6491e8e5cda7e2f379a722604db5ccad539e5050644412c7d796097

Contents?: true

Size: 849 Bytes

Versions: 4

Compression:

Stored size: 849 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Customer
        module Operations
          class Create < QuickBooksOnline::Operation::Create
            class Contract < LedgerSync::Ledgers::Contract
              params do
                required(:external_id).maybe(:string)
                required(:ledger_id).value(:nil)
                required(:PrimaryEmailAddr).maybe(:hash, Types::Reference)
                optional(:DisplayName).filled(:string)
                optional(:firstName).maybe(:string)
                optional(:lastName).maybe(:string)
                required(:PrimaryPhone).maybe(:hash, Types::Reference)
                required(:subsidiary).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.4.4 lib/ledger_sync/ledgers/quickbooks_online/customer/operations/create.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/customer/operations/create.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/customer/operations/create.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/customer/operations/create.rb