Sha256: aa364ed62fb4d3e9d212fe1325b189a5d531dc67b479a1f62b39229d9180ef6d

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

require_relative "../base.rb"
module Figo
  # Object representing one bank transaction on a certain bank account of the User
  class Transaction < Base
    @dump_attributes = []

    def initialize(session, json)
      super(session, json)
    end

    # Internal figo Connect transaction ID
    # @return [String]
    attr_accessor :transaction_id

    # Internal figo Connect account ID
    # @return [String]
    attr_accessor :account_id

    # Name of originator or recipient
    # @return [String]
    attr_accessor :name

    # Account number of originator or recipient
    # @return [String]
    attr_accessor :account_number

    # Bank code of originator or recipient
    # @return [String]
    attr_accessor :bank_code

    # Bank name of originator or recipient
    # @return [String]
    attr_accessor :bank_name

    # Transaction amount
    # @return [DecNum]
    attr_accessor :amount

    # Three-character currency code
    # @return [String]
    attr_accessor :currency

    # Booking date
    # @return [Date]
    attr_accessor :booking_date

    # Value date
    # @return [Date]
    attr_accessor :value_date

    # Purpose text
    # @return [String]
    attr_accessor :purpose

    # Transaction type
    # @return [String]
    attr_accessor :type

    # Booking text
    # @return [String]
    attr_accessor :booking_text

    # This flag indicates whether the transaction is booked or pending
    # @return [Boolean]
    attr_accessor :booked

    # Internal creation timestamp on the figo Connect server
    # @return [DateTime]
    attr_accessor :creation_timestamp

    # Internal modification timestamp on the figo Connect server
    # @return [DateTime]
    attr_accessor :modification_timestamp
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
figo-1.4.2 lib/transaction/model.rb
figo-1.4.1 lib/transaction/model.rb
figo-1.4.0 lib/transaction/model.rb
figo-1.3.3 lib/transaction/model.rb