Class: OFX::CreditCardStatementRequest

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.



52
53
54
# File 'lib/ofx/credit_card_statement_message_set.rb', line 52

def 
  @account
end

#include_transactionsObject

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_rangeObject

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

Raises:

  • (NotImplementedError)


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

Returns:

  • (Boolean)


54
55
56
# File 'lib/ofx/credit_card_statement_message_set.rb', line 54

def include_transactions?
    include_transactions
end

#ofx_102_nameObject



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_bodyObject



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 += .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