Sha256: d6395f9504f8bf60d6f0b5ed22f98ddf2257ed5d1567c2c1a83cdc69a9cc381c

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

require_relative 'subsidiary'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Vendor < QuickBooksOnline::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

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.4.4 lib/ledger_sync/ledgers/quickbooks_online/resources/vendor.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/resources/vendor.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/resources/vendor.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/resources/vendor.rb