Sha256: 440bdd8eee88886fb305957e0e4206034bf5be5e9e2bcb6cda73413d3f9c4af7

Contents?: true

Size: 907 Bytes

Versions: 8

Compression:

Stored size: 907 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/journal_entry/operations/update.rb