Class: OFX::TransactionalRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#satisfies_requirements?

Instance Attribute Details

Returns the value of attribute client_cookie.



65
66
67
# File 'lib/ofx/message_set.rb', line 65

def client_cookie
  @client_cookie
end

#transaction_authorization_numberObject

Returns the value of attribute transaction_authorization_number.



66
67
68
# File 'lib/ofx/message_set.rb', line 66

def transaction_authorization_number
  @transaction_authorization_number
end

#transaction_identifierObject

Returns the value of attribute transaction_identifier.



64
65
66
# File 'lib/ofx/message_set.rb', line 64

def transaction_identifier
  @transaction_identifier
end

Instance Method Details

#ofx_102_request_bodyObject

Raises:

  • (NotImplementedError)


122
123
124
# File 'lib/ofx/1.0.2/message_set.rb', line 122

def ofx_102_request_body
    raise NotImplementedError
end

#to_ofx_102_sObject



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/ofx/1.0.2/message_set.rb', line 104

def to_ofx_102_s
    request = ''
    request += "    <#{ofx_102_name}TRNRQ>\n"

    request += "      <TRNUID>#{transaction_identifier}\n"
    request += "      <CLTCOOKIE>#{client_cookie}\n" if client_cookie
    request += "      <TAN>#{transaction_authorization_number}\n" if transaction_authorization_number

    request += "      <#{ofx_102_name}RQ>\n"

    request += ofx_102_request_body + "\n"

    request += "      </#{ofx_102_name}RQ>\n"

    request += "    </#{ofx_102_name}TRNRQ>"
    request
end