Sha256: be4b49b9a7fd740cc61a6d406bf0d41f2c3fb60183f785eff29892bbc8a50f10

Contents?: true

Size: 696 Bytes

Versions: 13

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module QuickBooksOnline
    class Department
      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(:Name).filled(:string)
              required(:Active).filled(:bool?)
              required(:SubDepartment).filled(:bool?)
              optional(:FullyQualifiedName).maybe(:string)
              optional(:Parent).maybe(:hash, Types::Reference)
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-2.0.0 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/department/operations/create.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/department/operations/create.rb