TIM SDK
TIM API C
trx_detail.h File Reference

Description

Contains transaction details for counters.

Object type trx_detail.

Functions

ta_e_result_code_t ta_trx_detail_get_dcc_flag (ta_object_t trx_detail, ta_e_boolean_t *dcc_flag)
 Specifies is a transaction is a DCC transaction or not. More...
 
ta_e_result_code_t ta_trx_detail_get_transaction_type (ta_object_t trx_detail, ta_e_transaction_type_t *transaction_type)
 Transaction type this details affect. More...
 
ta_e_result_code_t ta_trx_detail_get_count (ta_object_t trx_detail, int *count)
 Number of transactions covered by the sum. More...
 
ta_e_result_code_t ta_trx_detail_get_amount_sum (ta_object_t trx_detail, ta_object_t *amount_sum)
 Total of amount. More...
 

Function Documentation

◆ ta_trx_detail_get_amount_sum()

ta_e_result_code_t ta_trx_detail_get_amount_sum ( ta_object_t  trx_detail,
ta_object_t amount_sum 
)

Total of amount.

Parameters
[in]trx_detailObject instance of type trx_detail.
[out]amount_sumPointer to variable to write object instance to. Object instance is of type amount and is not retained. Object instance is ta_invalid_object if value is not set in trx_detail.
Return values
ta_c_rc_okObject instance written to amount_sum.
ta_c_rc_invalid_argumenttrx_detail is ta_invalid_object.
ta_c_rc_invalid_argumenttrx_detail is not of type trx_detail.
ta_c_rc_invalid_argumentamount_sum is null-pointer.

◆ ta_trx_detail_get_count()

ta_e_result_code_t ta_trx_detail_get_count ( ta_object_t  trx_detail,
int *  count 
)

Number of transactions covered by the sum.

Parameters
[in]trx_detailObject instance of type trx_detail.
[out]countPointer to variable to write value to.
Return values
ta_c_rc_okObject instance written to count.
ta_c_rc_invalid_argumenttrx_detail is ta_invalid_object.
ta_c_rc_invalid_argumenttrx_detail is not of type trx_detail.
ta_c_rc_invalid_argumentcount is null-pointer.

◆ ta_trx_detail_get_dcc_flag()

ta_e_result_code_t ta_trx_detail_get_dcc_flag ( ta_object_t  trx_detail,
ta_e_boolean_t dcc_flag 
)

Specifies is a transaction is a DCC transaction or not.

Parameters
[in]trx_detailObject instance of type trx_detail.
[out]dcc_flagPointer to variable to write value to.
Return values
ta_c_rc_okObject instance written to dcc_flag.
ta_c_rc_invalid_argumenttrx_detail is ta_invalid_object.
ta_c_rc_invalid_argumenttrx_detail is not of type trx_detail.
ta_c_rc_invalid_argumentdcc_flag is null-pointer.

◆ ta_trx_detail_get_transaction_type()

ta_e_result_code_t ta_trx_detail_get_transaction_type ( ta_object_t  trx_detail,
ta_e_transaction_type_t transaction_type 
)

Transaction type this details affect.

Parameters
[in]trx_detailObject instance of type trx_detail.
[out]transaction_typePointer to variable to write value to.
Return values
ta_c_rc_okObject instance written to transaction_type.
ta_c_rc_invalid_argumenttrx_detail is ta_invalid_object.
ta_c_rc_invalid_argumenttrx_detail is not of type trx_detail.
ta_c_rc_invalid_argumenttransaction_type is null-pointer.