TIM SDK
TIM API C
total.h File Reference

Description

Contains information about the total for one currency.

Object type total.

Functions

ta_e_result_code_t ta_total_get_count (ta_object_t total, int *count)
 Number of transactions. More...
 
ta_e_result_code_t ta_total_get_amount_sum (ta_object_t total, ta_object_t *amount_sum)
 Total amount per currency. More...
 
ta_e_result_code_t ta_total_get_trx_details (ta_object_t total, ta_object_t *trx_details)
 List of transaction details. More...
 

Function Documentation

◆ ta_total_get_amount_sum()

ta_e_result_code_t ta_total_get_amount_sum ( ta_object_t  total,
ta_object_t amount_sum 
)

Total amount per currency.

Parameters
[in]totalObject instance of type total.
[out]amount_sumPointer to variable to write object instance to. Object instance is of type amount and is not retained.
Return values
ta_c_rc_okObject instance written to amount_sum.
ta_c_rc_invalid_argumenttotal is ta_invalid_object.
ta_c_rc_invalid_argumenttotal is not of type total.
ta_c_rc_invalid_argumentamount_sum is null-pointer.

◆ ta_total_get_count()

ta_e_result_code_t ta_total_get_count ( ta_object_t  total,
int *  count 
)

Number of transactions.

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

◆ ta_total_get_trx_details()

ta_e_result_code_t ta_total_get_trx_details ( ta_object_t  total,
ta_object_t trx_details 
)

List of transaction details.

Parameters
[in]totalObject instance of type total.
[out]trx_detailsPointer to variable to write object instance to. Object instance is of type list and is not retained. The list contains elements of type trx_detail.
Return values
ta_c_rc_okObject instance written to trx_details.
ta_c_rc_invalid_argumenttotal is ta_invalid_object.
ta_c_rc_invalid_argumenttotal is not of type total.
ta_c_rc_invalid_argumenttrx_details is null-pointer.