Sha256: 0fb5abb4c3771a97d37440523150ed69633f1d841f9ebf1e5677a4c3a7f9a3c0
Contents?: true
Size: 930 Bytes
Versions: 2
Compression:
Stored size: 930 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'currency' require_relative 'department' require_relative 'vendor' require_relative 'bill_payment_line_item' module LedgerSync class BillPayment < LedgerSync::Resource attribute :amount, type: Type::Integer attribute :memo, type: Type::String attribute :transaction_date, type: Type::Date attribute :exchange_rate, type: Type::Float attribute :reference_number, type: Type::String attribute :payment_type, type: Type::String references_one :account, to: Account references_one :currency, to: Currency references_one :department, to: Department references_one :vendor, to: Vendor references_one :bank_account, to: Account references_one :credit_card_account, to: Account references_many :line_items, to: BillPaymentLineItem def name "Bill Payment: #{reference_number}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.5 | lib/ledger_sync/resources/bill_payment.rb |
ledger_sync-1.3.4 | lib/ledger_sync/resources/bill_payment.rb |