Sha256: c0424d1d8559812ec6bbd42a36dbda85193870a92c36d2b4a2ae5094570f29cf

Contents?: true

Size: 1012 Bytes

Versions: 4

Compression:

Stored size: 1012 Bytes

Contents

# frozen_string_literal: true

require_relative '../invoice_line/deserializer'
require_relative '../reference/deserializer'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class Invoice
        class Deserializer < QuickBooksOnline::Deserializer
          id

          date :TxnDate
          attribute :PrivateNote

          references_one :Currency,
                         hash_attribute: 'CurrencyRef',
                         deserializer: Reference::Deserializer

          references_one :Customer,
                         hash_attribute: 'CustomerRef',
                         deserializer: Reference::Deserializer

          references_one :DepositToAccount,
                         hash_attribute: 'DepositToAccountRef',
                         deserialier: Reference::Deserializer

          references_many :Line,
                          hash_attribute: 'Line',
                          deserializer: InvoiceLine::Deserializer
        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/invoice/deserializer.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/invoice/deserializer.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/invoice/deserializer.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/invoice/deserializer.rb