Sha256: dff787ab65a7407b0b8a025b8abc4f8723f96c4751b61e183c15cab43ee0d855

Contents?: true

Size: 543 Bytes

Versions: 10

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

require_relative 'subsidiary'

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ledger_sync-netsuite-0.4.2 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.3.6 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.3.5 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.3.4 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.3.3 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.3.2 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.3.1 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.3.0 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.2.0 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.1.1 lib/ledger_sync/netsuite/resources/vendor.rb