Class: OFX::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/statements.rb,
lib/ofx/1.0.2/statements.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



31
32
33
# File 'lib/ofx/statements.rb', line 31

def amount
  @amount
end

#check_numberObject

Returns the value of attribute check_number.



38
39
40
# File 'lib/ofx/statements.rb', line 38

def check_number
  @check_number
end

#corrected_financial_institution_transaction_identifierObject

Returns the value of attribute corrected_financial_institution_transaction_identifier.



35
36
37
# File 'lib/ofx/statements.rb', line 35

def corrected_financial_institution_transaction_identifier
  @corrected_financial_institution_transaction_identifier
end

#correction_actionObject

Returns the value of attribute correction_action.



36
37
38
# File 'lib/ofx/statements.rb', line 36

def correction_action
  @correction_action
end

#currencyObject

Returns the value of attribute currency.



32
33
34
# File 'lib/ofx/statements.rb', line 32

def currency
  @currency
end

#date_availableObject

Returns the value of attribute date_available.



29
30
31
# File 'lib/ofx/statements.rb', line 29

def date_available
  @date_available
end

#date_initiatedObject

Returns the value of attribute date_initiated.



28
29
30
# File 'lib/ofx/statements.rb', line 28

def date_initiated
  @date_initiated
end

#date_postedObject

Returns the value of attribute date_posted.



27
28
29
# File 'lib/ofx/statements.rb', line 27

def date_posted
  @date_posted
end

#financial_institution_transaction_identifierObject

Returns the value of attribute financial_institution_transaction_identifier.



34
35
36
# File 'lib/ofx/statements.rb', line 34

def financial_institution_transaction_identifier
  @financial_institution_transaction_identifier
end

#memoObject

Returns the value of attribute memo.



47
48
49
# File 'lib/ofx/statements.rb', line 47

def memo
  @memo
end

#payeeObject

Returns the value of attribute payee.



44
45
46
# File 'lib/ofx/statements.rb', line 44

def payee
  @payee
end

#payee_identifierObject

Returns the value of attribute payee_identifier.



43
44
45
# File 'lib/ofx/statements.rb', line 43

def payee_identifier
  @payee_identifier
end

#reference_numberObject

Returns the value of attribute reference_number.



39
40
41
# File 'lib/ofx/statements.rb', line 39

def reference_number
  @reference_number
end

#server_transaction_identifierObject

Returns the value of attribute server_transaction_identifier.



37
38
39
# File 'lib/ofx/statements.rb', line 37

def server_transaction_identifier
  @server_transaction_identifier
end

#standard_industrial_codeObject

Returns the value of attribute standard_industrial_code.



41
42
43
# File 'lib/ofx/statements.rb', line 41

def standard_industrial_code
  @standard_industrial_code
end

#transaction_typeObject

Returns the value of attribute transaction_type.



25
26
27
# File 'lib/ofx/statements.rb', line 25

def transaction_type
  @transaction_type
end

#transfer_destination_accountObject

Returns the value of attribute transfer_destination_account.



45
46
47
# File 'lib/ofx/statements.rb', line 45

def 
  @transfer_destination_account
end

Class Method Details

.ofx_102_transaction_type_name_to_transaction_type(transaction_type_name) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/ofx/1.0.2/statements.rb', line 31

def self.ofx_102_transaction_type_name_to_transaction_type(transaction_type_name)
    case transaction_type_name
        when 'CREDIT'       then :credit
        when 'DEBIT'        then :debit
        when 'INT'          then :interest
        when 'DIV'          then :dividend
        when 'FEE'          then :fee
        when 'SRVCHG'       then :service_charge
        when 'DEP'          then :deposit
        when 'ATM'          then :automated_teller_machine
        when 'POS'          then :point_of_sale
        when 'XFER'         then :transfer
        when 'CHECK'        then :check
        when 'PAYMENT'      then :electronic_payment
        when 'CASH'         then :cash_withdrawal
        when 'DIRECTDEP'    then :direct_deposit
        when 'DIRECTDEBIT'  then :direct_debit
        when 'REPEATPMT'    then :repeating_payment
        when 'OTHER'        then :other
        else raise NotImplementedError
    end
end