Sha256: 3c567ecbb6023936abb3d05ac7777143aa4dc25696d4d57dfe214369fddfce9f

Contents?: true

Size: 597 Bytes

Versions: 5

Compression:

Stored size: 597 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
      attribute :lastModifiedDate, type: Type::String
      references_one :subsidiary, to: Subsidiary

      def name
        display_name.to_s
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ledger_sync-netsuite-0.7.1 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.6.2 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.6.1 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.6.0 lib/ledger_sync/netsuite/resources/vendor.rb
ledger_sync-netsuite-0.5.0 lib/ledger_sync/netsuite/resources/vendor.rb