Sha256: ca9c10034fe1d03b1ef6c3b91236f9765dac6a557188c8a42b3f5fcb2f43b1e1
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'customer' require_relative 'payment_line_item' module LedgerSync class Payment < LedgerSync::Resource attribute :amount, type: Type::Integer attribute :currency, type: Type::String attribute :memo, type: Type::String attribute :transaction_date, type: Type::Date attribute :exchange_rate, type: Type::Float attribute :reference_number, type: Type::String references_one :customer, to: Customer references_one :deposit_account, to: Account references_one :account, to: Account references_many :line_items, to: PaymentLineItem def name "Payment: #{amount} #{currency}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.1 | lib/ledger_sync/resources/payment.rb |