Class: OFX::CreditCardClosingStatementRequest

Inherits:
TransactionalRequest show all
Defined in:
lib/ofx/credit_card_statement_message_set.rb,
lib/ofx/1.0.2/credit_card_statement_message_set.rb

Instance Attribute Summary collapse

Attributes inherited from TransactionalRequest

#client_cookie, #transaction_authorization_number, #transaction_identifier

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TransactionalRequest

#to_ofx_102_s

Methods inherited from Request

#satisfies_requirements?, #to_ofx_102_s

Instance Attribute Details

#accountObject

Returns the value of attribute account.



72
73
74
# File 'lib/ofx/credit_card_statement_message_set.rb', line 72

def 
  @account
end

#statement_rangeObject

Returns the value of attribute statement_range.



73
74
75
# File 'lib/ofx/credit_card_statement_message_set.rb', line 73

def statement_range
  @statement_range
end

Class Method Details

.from_ofx_102_hash(transaction_hash) ⇒ Object

Raises:

  • (NotImplementedError)


207
208
209
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 207

def self.from_ofx_102_hash(transaction_hash)
    raise NotImplementedError
end

Instance Method Details

#ofx_102_nameObject



192
193
194
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 192

def ofx_102_name
    'CCSTMTEND'
end

#ofx_102_request_bodyObject



195
196
197
198
199
200
201
202
203
204
205
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 195

def ofx_102_request_body
    body = ""
    
    body += .to_ofx_102_request_body
                
    body +=
    "        <DTSTART>#{statement_range.begin.to_ofx_102_s}\n" +
    "        <DTEND>#{statement_range.end.to_ofx_102_s}\n" if statement_range
    
    body
end