Sha256: 33ec01659b09dec0dd6d3b51bba337cc80f0b96b187e7f33e1d0b36855d31d79
Contents?: true
Size: 715 Bytes
Versions: 4
Compression:
Stored size: 715 Bytes
Contents
# frozen_string_literal: true 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 attribute :GivenName, type: LedgerSync::Type::String attribute :FamilyName, type: LedgerSync::Type::String attribute :MiddleName, type: LedgerSync::Type::String references_one :PrimaryPhone, to: PrimaryPhone references_one :PrimaryEmailAddr, to: PrimaryEmailAddr def name self.DisplayName || [self.GivenName, self.FamilyName].join(' ') end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems