Sha256: 1acb459e07075a73d8a788a23d530b506dd7089b86043b4d173f5f7ab4cbd5b2
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require_relative '../deposit_line_item/serializer' require_relative '../currency/serializer' module LedgerSync module Ledgers module QuickBooksOnline class Deposit class Serializer < QuickBooksOnline::Serializer id references_one :CurrencyRef, resource_attribute: :currency, serializer: Currency::Serializer date 'TxnDate', resource_attribute: :transaction_date attribute 'PrivateNote', resource_attribute: :memo attribute 'ExchangeRate', resource_attribute: :exchange_rate attribute 'DepositToAccountRef.value', resource_attribute: 'account.ledger_id' attribute 'DepartmentRef.value', resource_attribute: 'department.ledger_id' references_many 'Line', resource_attribute: :line_items, serializer: DepositLineItem::Serializer end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems