Sha256: 477a6d7ab3e28f9d30f9fb99429522924a3228dcf415bc414c0ea579f8ecda78

Contents?: true

Size: 838 Bytes

Versions: 13

Compression:

Stored size: 838 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module NetSuite
    class JournalEntry
      module Operations
        class Update < NetSuite::Operation::Update
          class Contract < LedgerSync::Ledgers::Contract
            params do
              required(:external_id).maybe(:string)
              required(:ledger_id).filled(:string)
              required(:memo).maybe(:string)
              required(:trandate).maybe(:date?)
              required(:tranId).maybe(:string)
              required(:currency).maybe(:hash, Types::Reference)
              required(:subsidiary).maybe(:hash, Types::Reference)
              required(:line_items).array(Types::Reference)
            end
          end

          def request_params
            super.merge({ replace: 'line' })
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-netsuite-0.7.1 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.6.2 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.6.1 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.6.0 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.5.0 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.4.2 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.3.6 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.3.5 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.3.4 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.3.3 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.3.0 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.2.0 lib/ledger_sync/netsuite/journal_entry/operations/update.rb
ledger_sync-netsuite-0.1.1 lib/ledger_sync/netsuite/journal_entry/operations/update.rb