Sha256: 30386cbeb9fb42e15c039bc34b5c9de460e82c8e0c67ad426622a608e4436ed8

Contents?: true

Size: 666 Bytes

Versions: 4

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

require_relative '../primary_phone/serializer'
require_relative '../primary_email_addr/serializer'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Customer
        class Serializer < QuickBooksOnline::Serializer
          id

          attribute :DisplayName
          attribute :GivenName
          attribute :FamilyName
          attribute :MiddleName

          references_one :PrimaryPhone,
                         serializer: PrimaryPhone::Serializer
          references_one :PrimaryEmailAddr,
                         serializer: PrimaryEmailAddr::Serializer
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/customer/serializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/customer/serializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/customer/serializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/customer/serializer.rb