Class: OFX::CreditCardStatementRequest
- Inherits:
-
TransactionalRequest
- Object
- Request
- TransactionalRequest
- OFX::CreditCardStatementRequest
- 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
-
#account ⇒ Object
Returns the value of attribute account.
-
#include_transactions ⇒ Object
Returns the value of attribute include_transactions.
-
#included_range ⇒ Object
Returns the value of attribute included_range.
Attributes inherited from TransactionalRequest
#client_cookie, #transaction_authorization_number, #transaction_identifier
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from TransactionalRequest
Methods inherited from Request
#satisfies_requirements?, #to_ofx_102_s
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
52 53 54 |
# File 'lib/ofx/credit_card_statement_message_set.rb', line 52 def account @account end |
#include_transactions ⇒ Object
Returns the value of attribute include_transactions.
53 54 55 |
# File 'lib/ofx/credit_card_statement_message_set.rb', line 53 def include_transactions @include_transactions end |
#included_range ⇒ Object
Returns the value of attribute included_range.
57 58 59 |
# File 'lib/ofx/credit_card_statement_message_set.rb', line 57 def included_range @included_range end |
Class Method Details
.from_ofx_102_hash(transaction_hash) ⇒ Object
103 104 105 |
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 103 def self.from_ofx_102_hash(transaction_hash) raise NotImplementedError end |
Instance Method Details
#include_transactions? ⇒ Boolean
54 55 56 |
# File 'lib/ofx/credit_card_statement_message_set.rb', line 54 def include_transactions? include_transactions end |
#ofx_102_name ⇒ Object
84 85 86 |
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 84 def ofx_102_name 'CCSTMT' end |
#ofx_102_request_body ⇒ Object
88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/ofx/1.0.2/credit_card_statement_message_set.rb', line 88 def ofx_102_request_body body = "" body += account.to_ofx_102_request_body body += " <INCTRAN>\n" if include_transactions body += " <DTSTART>#{included_range.begin.to_ofx_102_s}\n" + " <DTEND>#{included_range.end.to_ofx_102_s}\n" if included_range body += " <INCLUDE>#{include_transactions.to_ofx_102_s}\n" if include_transactions body += " </INCTRAN>" if include_transactions body end |