Sha256: e59b26ef45da1b39bfebdc0bdf7f15d269915e91f6b2279e5c8ecfa81fe5923b

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

require_relative 'subsidiary'
require_relative 'primary_phone'
require_relative 'primary_email_addr'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Customer < QuickBooksOnline::Resource
        attribute :DisplayName, type: LedgerSync::Type::String

        references_one :PrimaryPhone, to: PrimaryPhone
        references_one :PrimaryEmailAddr, to: PrimaryEmailAddr
        references_one :subsidiary, to: Subsidiary

        def name
          self.DisplayName
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ledger_sync-1.4.4 lib/ledger_sync/ledgers/quickbooks_online/resources/customer.rb