Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

OfxStatementData Struct Reference


Detailed Description

An abstraction of an account statement.

The OfxStatementData structure contains information about your account at the time the ofx response was generated, including the balance. A client should check that the total of his recorded transactions matches the total given here, and warn the user if they dont.

Definition at line 434 of file inc/libofx.h.

Data Fields

OFX mandatory elements
The OFX spec defines the following elements as mandatory. The associated variables should all contain valid data but you should not trust the servers. Check if the associated *_valid is true before using them.

char currency [OFX_CURRENCY_LENGTH]
int currency_valid
char account_id [OFX_ACCOUNT_ID_LENGTH]
OfxAccountDataaccount_ptr
int account_id_valid
double ledger_balance
int ledger_balance_valid
time_t ledger_balance_date
int ledger_balance_date_valid
OFX optional elements
The OFX spec defines the following elements as optional. If the associated *_valid is true, the corresponding element is present and the associated variable contains valid data.

double available_balance
int available_balance_valid
time_t available_balance_date
int available_balance_date_valid
time_t date_start
int date_start_valid
time_t date_end
int date_end_valid
char marketing_info [OFX_MARKETING_INFO_LENGTH]
int marketing_info_valid
OFX mandatory elements
The OFX spec defines the following elements as mandatory. The associated variables should all contain valid data but you should not trust the servers. Check if the associated *_valid is true before using them.

OfxAccountDataaccount_ptr


Field Documentation

char OfxStatementData::account_id
 

Use this for matching this statement with the relevant account in your application

Definition at line 445 of file libofx-0.6.5/inc/libofx.h.

Referenced by ofx_proc_statement_cb().

struct OfxAccountData* OfxStatementData::account_ptr
 

Pointer to the full account structure, see OfxAccountData

Definition at line 447 of file libofx-0.6.5/inc/libofx.h.

struct OfxAccountData* OfxStatementData::account_ptr
 

Pointer to the full account structure, see OfxAccountData

Definition at line 447 of file inc/libofx.h.

Referenced by ofx_proc_statement_cb().

double OfxStatementData::available_balance
 

Amount of money available from the account. Could be the credit left for a credit card, or amount that can be withdrawn using INTERAC)

Definition at line 462 of file libofx-0.6.5/inc/libofx.h.

Referenced by ofx_proc_statement_cb().

int OfxStatementData::available_balance_date_valid
 

Time of the available_balance snapshot

Definition at line 467 of file libofx-0.6.5/inc/libofx.h.

Referenced by ofx_proc_statement_cb().

char OfxStatementData::currency
 

The currency is a string in ISO-4217 format

Definition at line 443 of file libofx-0.6.5/inc/libofx.h.

Referenced by OfxStatementContainer::add_attribute(), and ofx_proc_statement_cb().

time_t OfxStatementData::date_end
 

The end time of this statement.

If provided, the user can use this date as the start date of his next statement request. He is then assured not to miss any transactions.

Definition at line 478 of file libofx-0.6.5/inc/libofx.h.

Referenced by OfxStatementContainer::add_attribute(), and ofx_proc_statement_cb().

time_t OfxStatementData::date_start
 

The start time of this statement.

All the transactions between date_start and date_end should have been provided

Definition at line 472 of file libofx-0.6.5/inc/libofx.h.

Referenced by OfxStatementContainer::add_attribute(), and ofx_proc_statement_cb().

double OfxStatementData::ledger_balance
 

The actual balance, according to the FI. The user should be warned of any discrepency between this and the balance in the application

Definition at line 452 of file libofx-0.6.5/inc/libofx.h.

Referenced by ofx_proc_statement_cb().

time_t OfxStatementData::ledger_balance_date
 

Time of the ledger_balance snapshot

Definition at line 454 of file libofx-0.6.5/inc/libofx.h.

Referenced by ofx_proc_statement_cb().

char OfxStatementData::marketing_info
 

marketing_info could be special offers or messages from the bank, or just about anything else

Definition at line 482 of file libofx-0.6.5/inc/libofx.h.

Referenced by OfxStatementContainer::add_attribute(), and ofx_proc_statement_cb().


The documentation for this struct was generated from the following files:
Generated on Fri Sep 12 00:35:47 2003 for LibOFX by doxygen 1.3.3