|
TIM SDK
TIM API C
|
|
Final amount.
Object type amount_final.
Functions | |
| ta_e_result_code_t | ta_amount_final_get_value (ta_object_t amount_final, int64_t *value) |
| Amount in minor units. More... | |
| ta_e_result_code_t | ta_amount_final_get_decimal_value (ta_object_t amount_final, double *value) |
| Amount in major units as double precision floating point value. More... | |
| ta_e_result_code_t | ta_amount_final_get_currency (ta_object_t amount_final, ta_e_currency_t *currency) |
| Currency. More... | |
| ta_e_result_code_t | ta_amount_final_get_exponent (ta_object_t amount_final, int *exponent) |
| Exponent. More... | |
| ta_e_result_code_t | ta_amount_final_get_adjustment_result (ta_object_t amount_final, ta_e_adjustment_result_t *adjustment_result) |
| Adjustment result. More... | |
| ta_e_result_code_t ta_amount_final_get_adjustment_result | ( | ta_object_t | amount_final, |
| ta_e_adjustment_result_t * | adjustment_result | ||
| ) |
Adjustment result.
| [in] | amount_final | Object instance of type amount_final. |
| [out] | adjustment_result | Pointer to variable to write value to. |
| ta_c_rc_ok | Value written to currency. |
| ta_c_rc_invalid_argument | amount_final is ta_invalid_object. |
| ta_c_rc_invalid_argument | amount_final is not of type amount_final. |
| ta_c_rc_invalid_argument | adjustment_result is null-pointer. |
| ta_e_result_code_t ta_amount_final_get_currency | ( | ta_object_t | amount_final, |
| ta_e_currency_t * | currency | ||
| ) |
Currency.
| [in] | amount_final | Object instance of type amount_final. |
| [out] | currency | Pointer to variable to write currency to. |
| ta_c_rc_ok | Value written to currency. |
| ta_c_rc_invalid_argument | amount_final is ta_invalid_object. |
| ta_c_rc_invalid_argument | amount_final is not of type amount_final. |
| ta_c_rc_invalid_argument | currency is null-pointer. |
| ta_e_result_code_t ta_amount_final_get_decimal_value | ( | ta_object_t | amount_final, |
| double * | value | ||
| ) |
Amount in major units as double precision floating point value.
| [in] | amount_final | Object instance of type amount_final. |
| [out] | value | Pointer to variable to write value to. |
| ta_c_rc_ok | Value written to value. |
| ta_c_rc_invalid_argument | amount_final is ta_invalid_object. |
| ta_c_rc_invalid_argument | amount_final is not of type amount_final. |
| ta_c_rc_invalid_argument | value is null-pointer. |
| ta_e_result_code_t ta_amount_final_get_exponent | ( | ta_object_t | amount_final, |
| int * | exponent | ||
| ) |
Exponent.
| [in] | amount_final | Object instance of type amount_final. |
| [out] | exponent | Pointer to variable to write exponent to. |
| ta_c_rc_ok | Value written to exponent. |
| ta_c_rc_invalid_argument | amount_final is ta_invalid_object. |
| ta_c_rc_invalid_argument | amount_final is not of type amount_final. |
| ta_c_rc_invalid_argument | exponent is null-pointer. |
| ta_e_result_code_t ta_amount_final_get_value | ( | ta_object_t | amount_final, |
| int64_t * | value | ||
| ) |
Amount in minor units.
| [in] | amount_final | Object instance of type amount_final. |
| [out] | value | Pointer to variable to write value to. Use ta_amount_final_get_exponent to get the used exponent. This can be a different exponent than the one defined by the used currency. |
| ta_c_rc_ok | Value written to value. |
| ta_c_rc_invalid_argument | amount_final is ta_invalid_object. |
| ta_c_rc_invalid_argument | amount_final is not of type amount_final. |
| ta_c_rc_invalid_argument | value is null-pointer. |