TIM SDK
TIM API C
currency_item.h File Reference

Description

Contains information about a currency supported by a brand.

Object type currency_item.

Functions

ta_e_result_code_t ta_currency_item_get_currency (ta_object_t currency_item, ta_e_currency_t *currency)
 Supported or used currency. More...
 
ta_e_result_code_t ta_currency_item_get_currency_type (ta_object_t currency_item, ta_e_currency_type_t *currency_type)
 Type of currency. More...
 

Function Documentation

◆ ta_currency_item_get_currency()

ta_e_result_code_t ta_currency_item_get_currency ( ta_object_t  currency_item,
ta_e_currency_t currency 
)

Supported or used currency.

Parameters
[in]currency_itemObject instance of type currency_item.
[out]currencyPointer to variable to write value to.
Return values
ta_c_rc_okObject instance written to currency.
ta_c_rc_invalid_argumentcurrency_item is ta_object_invalid.
ta_c_rc_invalid_argumentcurrency_item is not of type currency_item.
ta_c_rc_invalid_argumentcurrency is null-pointer.

◆ ta_currency_item_get_currency_type()

ta_e_result_code_t ta_currency_item_get_currency_type ( ta_object_t  currency_item,
ta_e_currency_type_t currency_type 
)

Type of currency.

Parameters
[in]currency_itemObject instance of type currency_item.
[out]currency_typePointer to variable to write value to.
Return values
ta_c_rc_okObject instance written to currency_type.
ta_c_rc_invalid_argumentcurrency_item is ta_object_invalid.
ta_c_rc_invalid_argumentcurrency_item is not of type currency_item.
ta_c_rc_invalid_argumentcurrency_type is null-pointer.