Sha256: 066c73ccdf467c97a26912a9ce23e9cf4b91f4f0721640b8675c10b6781dc945
Contents?: true
Size: 744 Bytes
Versions: 4
Compression:
Stored size: 744 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'currency' require_relative 'customer' require_relative 'payment_line_item' module LedgerSync class Payment < 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 references_one :customer, to: Customer references_one :deposit_account, to: Account references_one :account, to: Account references_one :currency, to: Currency references_many :line_items, to: PaymentLineItem def name "Payment: #{amount} #{currency}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems