Sha256: d748e3dec5d076161d854005c08d4f216eeab421256923decfa72e5b0b079a4d

Contents?: true

Size: 594 Bytes

Versions: 8

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

require_relative 'subsidiary'

module LedgerSync
  module Ledgers
    module NetSuite
      class Vendor < NetSuite::Resource
        attribute :company_name, type: Type::String
        attribute :email, type: Type::String
        attribute :display_name, type: Type::String
        attribute :first_name, type: Type::String
        attribute :last_name, type: Type::String
        attribute :phone_number, type: Type::String
        references_one :subsidiary, to: Subsidiary

        def name
          display_name.to_s
        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/resources/vendor.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/resources/vendor.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/resources/vendor.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/resources/vendor.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/resources/vendor.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/resources/vendor.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/resources/vendor.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/resources/vendor.rb