Sha256: e27dd4bd8abe3a947ca0c3a9e1b3e5ed3aa959b04422d97b6c7f3058ea88fe36
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
# frozen_string_literal: true require_relative '../bill_line_item/ledger_serializer' module LedgerSync module Adaptors module QuickBooksOnline module Bill class LedgerSerializer < QuickBooksOnline::LedgerSerializer id attribute ledger_attribute: 'CurrencyRef.value', resource_attribute: :currency 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
3 entries across 3 versions & 1 rubygems