Sha256: fad3d504f5a3fc1ea6a4b3aea1d5af5735d8ac9e1797ee81fa1d9d386861028b
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
# frozen_string_literal: true require_relative '../bill_line_item/ledger_serializer' require_relative '../currency/ledger_serializer' module LedgerSync module Adaptors module QuickBooksOnline module Bill class LedgerSerializer < QuickBooksOnline::LedgerSerializer id references_one ledger_attribute: :CurrencyRef, resource_attribute: :currency, serializer: Currency::LedgerSerializer attribute ledger_attribute: 'DueDate', resource_attribute: :due_date, type: LedgerSerializerType::DateType attribute ledger_attribute: 'PrivateNote', resource_attribute: :memo attribute ledger_attribute: 'TxnDate', resource_attribute: :transaction_date, type: LedgerSerializerType::DateType attribute ledger_attribute: 'VendorRef.value', resource_attribute: 'vendor.ledger_id' attribute ledger_attribute: 'APAccountRef.value', resource_attribute: 'account.ledger_id' attribute ledger_attribute: 'DocNumber', resource_attribute: :reference_number references_many ledger_attribute: 'Line', resource_attribute: :line_items, serializer: BillLineItem::LedgerSerializer end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.2 | lib/ledger_sync/adaptors/quickbooks_online/bill/ledger_serializer.rb |