Sha256: 87ade2e96e3e946227fdc103192afd38cd52b2f50ca8aae03e48b4e3d47c8460

Contents?: true

Size: 847 Bytes

Versions: 3

Compression:

Stored size: 847 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Ledgers
    module NetSuite
    class Vendor
        module Operations
          class Create < NetSuite::Operation::Create
            class Contract < LedgerSync::Ledgers::Contract
              params do
                required(:external_id).filled(:string)
                required(:ledger_id).value(:nil)
                required(:company_name).filled(:string)
                required(:display_name).filled(:string)
                optional(:first_name).maybe(:string)
                optional(:last_name).maybe(:string)
                optional(:email).maybe(:string)
                optional(:phone_number).maybe(:string)
                required(:subsidiary).filled(:hash, Types::Reference)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/vendor/operations/create.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/vendor/operations/create.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/vendor/operations/create.rb