Sha256: 0417ffb308d9899fc692cfbc632c8b2a7fc3e7ac55c0b44a18060545accc6cf0

Contents?: true

Size: 901 Bytes

Versions: 2

Compression:

Stored size: 901 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module NetSuite
      module Account
        module Operations
          class Create < NetSuite::Operation::Create
            class Contract < LedgerSync::Adaptors::Contract
              params do
                required(:external_id).maybe(:string)
                required(:ledger_id).value(:nil)
                required(:name).filled(:string)
                required(:classification).maybe(:string)
                required(:account_type).maybe(:string)
                required(:account_sub_type).maybe(:string)
                required(:number).filled(:integer)
                required(:currency).filled(:hash, Types::Reference)
                required(:description).maybe(:string)
                required(:active).maybe(:bool)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ledger_sync-1.3.3 lib/ledger_sync/adaptors/netsuite/account/operations/create.rb
ledger_sync-1.3.2 lib/ledger_sync/adaptors/netsuite/account/operations/create.rb