The OfxTransactionData stucture contains all available information about an actual transaction in an account.
Definition at line 398 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 | account_id [OFX_ACCOUNT_ID_LENGTH] |
OfxAccountData * | account_ptr |
int | account_id_valid |
TransactionType | transactiontype |
int | transactiontype_valid |
InvTransactionType | invtransactiontype |
int | invtransactiontype_valid |
double | units |
int | units_valid |
double | unitprice |
int | unitprice_valid |
double | amount |
int | amount_valid |
char | fi_id [256] |
int | fi_id_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. | |
char | unique_id [OFX_UNIQUE_ID_LENGTH] |
int | unique_id_valid |
char | unique_id_type [OFX_UNIQUE_ID_TYPE_LENGTH] |
int | unique_id_type_valid |
OfxSecurityData * | security_data_ptr |
int | security_data_valid |
time_t | date_posted |
int | date_posted_valid |
time_t | date_initiated |
int | date_initiated_valid |
time_t | date_funds_available |
int | date_funds_available_valid |
char | fi_id_corrected [256] |
int | fi_id_corrected_valid |
FiIdCorrectionAction | fi_id_correction_action |
int | fi_id_correction_action_valid |
char | server_transaction_id [OFX_SVRTID2_LENGTH] |
int | server_transaction_id_valid |
char | check_number [OFX_CHECK_NUMBER_LENGTH] |
int | check_number_valid |
char | reference_number [OFX_REFERENCE_NUMBER_LENGTH] |
int | reference_number_valid |
long int | standard_industrial_code |
int | standard_industrial_code_valid |
char | payee_id [OFX_SVRTID2_LENGTH] |
int | payee_id_valid |
char | name [OFX_TRANSACTION_NAME_LENGTH] |
int | name_valid |
char | memo [OFX_MEMO2_LENGTH] |
int | memo_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. | |
OfxAccountData * | account_ptr |
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. | |
OfxSecurityData * | security_data_ptr |
|
Use this for matching with the relevant account in your application Definition at line 405 of file libofx-0.8.0/inc/libofx.h. |
|
Pointer to the full account structure, see OfxAccountData Definition at line 408 of file libofx-0.8.0/inc/libofx.h. |
|
Pointer to the full account structure, see OfxAccountData Definition at line 408 of file inc/libofx.h. |
|
Total monetary amount of the transaction, signage will determine if money went in or out. amount is the total amount: -(units) * unitprice - various fees Definition at line 431 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxInvestmentTransactionContainer::add_attribute(), and OfxBankTransactionContainer::add_attribute(). |
|
The check number is most likely an integer and can probably be converted properly with atoi(). However the spec allows for up to 12 digits, so it is not garanteed to work Definition at line 491 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxBankTransactionContainer::add_attribute(). |
|
Date the funds are available (not always provided) (ex: the date you are allowed to withdraw a deposit Definition at line 470 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxTransactionContainer::add_attribute(). |
|
Date the transaction was initiated (ex: date you bought something in a store for credit card; trade date for stocks; day of record for stock split) Mandatory for investment transactions Definition at line 463 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxInvestmentTransactionContainer::add_attribute(), and OfxTransactionContainer::add_attribute(). |
|
Date the transaction took effect (ex: date it appeared on your credit card bill). Setlement date; for stock split, execution date. Mandatory for bank and credit card transactions Definition at line 456 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxInvestmentTransactionContainer::add_attribute(), and OfxTransactionContainer::add_attribute(). |
|
Generated by the financial institution (fi), unique id of the transaction, to be used to detect duplicate downloads Definition at line 436 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxTransactionContainer::add_attribute(). |
|
IMPORTANT: if fi_id_corrected is present, this transaction is meant to replace or delete the transaction with this fi_id. See OfxTransactionData::fi_id_correction_action to know what to do. Definition at line 477 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxTransactionContainer::add_attribute(). |
|
The OfxTransactionData::FiIdCorrectionAction enum contains the action to be taken Definition at line 481 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxTransactionContainer::add_attribute(). |
|
Extra information not included in name Definition at line 505 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxTransactionContainer::add_attribute(). |
|
Can be the name of the payee or the description of the transaction Definition at line 502 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxBankTransactionContainer::add_attribute(). |
|
The identifier of the payee Definition at line 500 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxBankTransactionContainer::add_attribute(). |
|
Might present in addition to or instead of a check_number. Not necessarily a number Definition at line 495 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxBankTransactionContainer::add_attribute(). |
|
A pointer to the security's data. Definition at line 454 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxTransactionContainer::gen_event(). |
|
Used for user initiated transaction such as payment or funds transfer. Can be seen as a confirmation number. Definition at line 486 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxTransactionContainer::add_attribute(). |
|
The standard industrial code can have at most 6 digits Definition at line 497 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxBankTransactionContainer::add_attribute(). |
|
Investment transaction type. You should read this if transactiontype == OFX_OTHER. See OFX spec 1.6 p.442 to 445 for details Definition at line 415 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxBankTransactionContainer::add_attribute(). |
|
The id of the security being traded. Mandatory for investment transactions Definition at line 448 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxInvestmentTransactionContainer::add_attribute(), and OfxTransactionContainer::gen_event(). |
|
Usially "CUSIP" for FIs in north america Definition at line 450 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxInvestmentTransactionContainer::add_attribute(). |
|
Value of each unit, 1.00 if the commodity is money Definition at line 428 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxInvestmentTransactionContainer::add_attribute(), and OfxBankTransactionContainer::add_attribute(). |
|
Variation of the number of units of the commodity Suppose units is -10, ave unitprice is 1. If the commodity is stock, you have 10 less stock, but 10 more dollars in you amccount (fees not considered, see amount). If commodity is money, you have 10 less dollars in your pocket, but 10 more in your account Definition at line 421 of file libofx-0.8.0/inc/libofx.h. Referenced by OfxInvestmentTransactionContainer::add_attribute(), and OfxBankTransactionContainer::add_attribute(). |