Sha256: 19577e333d12330565c86903970a8ba18465e4dec6bd712a69ba905453f5e94d
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true require_relative '../invoice_sales_line_item/ledger_serializer' module LedgerSync module Adaptors module QuickBooksOnline module Invoice class LedgerSerializer < QuickBooksOnline::LedgerSerializer id references_one ledger_attribute: :CurrencyRef, resource_attribute: :currency, serializer: Currency::LedgerSerializer attribute ledger_attribute: 'TxnDate', resource_attribute: :transaction_date, type: LedgerSerializerType::DateType attribute ledger_attribute: 'PrivateNote', resource_attribute: :memo attribute ledger_attribute: 'CustomerRef.value', resource_attribute: 'customer.ledger_id' attribute ledger_attribute: 'DepositToAccountRef.value', resource_attribute: 'account.ledger_id' references_many ledger_attribute: 'Line', resource_attribute: :line_items, serializer: InvoiceSalesLineItem::LedgerSerializer end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems