Sha256: c014eb9315fc9132bacdb471c978110265bd5e1912d7b7d50fad5b0b0e0b2e0b

Contents?: true

Size: 618 Bytes

Versions: 13

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

require_relative 'primary_phone'
require_relative 'primary_email_addr'

module LedgerSync
  module QuickBooksOnline
    class Vendor < QuickBooksOnline::Resource
      attribute :DisplayName, type: Type::String
      attribute :GivenName, type: Type::String
      attribute :MiddleName, type: Type::String
      attribute :FamilyName, type: Type::String
      attribute :CompanyName, type: Type::String

      references_one :PrimaryPhone, to: PrimaryPhone
      references_one :PrimaryEmailAddr, to: PrimaryEmailAddr

      def name
        self.DisplayName
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-2.0.0 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-1.0.1 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/resources/vendor.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/resources/vendor.rb