Sha256: 37181f9cd926a003ee7c40ed18a1d50e13498ffbe340be6be758c3a5173ade3c

Contents?: true

Size: 940 Bytes

Versions: 11

Compression:

Stored size: 940 Bytes

Contents

# frozen_string_literal: true

require_relative '../invoice_line/serializer'
require_relative '../reference/serializer'

module LedgerSync
  module QuickBooksOnline
    class Invoice
      class Serializer < QuickBooksOnline::Serializer
        id

        date :TxnDate
        attribute :PrivateNote

        references_one 'CurrencyRef',
                       resource_attribute: :Currency,
                       serializer: Reference::Serializer

        references_one 'CustomerRef',
                       resource_attribute: :Customer,
                       serializer: Reference::Serializer

        references_one 'DepositToAccountRef',
                       resource_attribute: :DepositToAccount,
                       serializer: Reference::Serializer

        references_many 'Line',
                        resource_attribute: :Line,
                        serializer: InvoiceLine::Serializer
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/invoice/serializer.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/invoice/serializer.rb