TIM SDK
TIM API C
|
|
Item quantity.
Object type item_quantity.
Functions | |
ta_e_result_code_t | ta_item_quantity_create (ta_object_t *item_quantity) |
Create object of type item_quantity. More... | |
ta_e_result_code_t | ta_item_quantity_get_quantity (ta_object_t item_quantity, int *quantity) |
Quantity of the product. More... | |
ta_e_result_code_t | ta_item_quantity_set_quantity (ta_object_t item_quantity, int quantity) |
Set quantity of the product. More... | |
ta_e_result_code_t | ta_item_quantity_get_exponent (ta_object_t item_quantity, int *exponent) |
Exponent of quantity of the product. More... | |
ta_e_result_code_t | ta_item_quantity_set_exponent (ta_object_t item_quantity, int exponent) |
Set exponent of quantity of the product. More... | |
ta_e_result_code_t | ta_item_quantity_get_quantity_type (ta_object_t item_quantity, ta_object_t *type) |
Type of quantity of the product. More... | |
ta_e_result_code_t | ta_item_quantity_set_type (ta_object_t item_quantity, ta_object_t type) |
Set type of quantity of the product. More... | |
ta_e_result_code_t ta_item_quantity_create | ( | ta_object_t * | item_quantity | ) |
Create object of type item_quantity.
[out] | item_quantity | Pointer to variable to write created object instance to. Created object instance is retained. |
ta_c_rc_ok | Object instance has been created and written to item. |
ta_c_rc_invalid_argument | item_quantity is null-pointer. |
ta_c_rc_out_of_memory | Failed allocating memory. |
ta_e_result_code_t ta_item_quantity_get_exponent | ( | ta_object_t | item_quantity, |
int * | exponent | ||
) |
Exponent of quantity of the product.
[in] | item_quantity | Object instance of type item_quantity. |
[out] | exponent | Pointer to variable to write value to. |
ta_c_rc_ok | Object instance written to exponent. |
ta_c_rc_invalid_argument | item_quantity is ta_invalid_object. |
ta_c_rc_invalid_argument | item_quantity is not of type item_quantity. |
ta_c_rc_invalid_argument | exponent is null-pointer. |
ta_e_result_code_t ta_item_quantity_get_quantity | ( | ta_object_t | item_quantity, |
int * | quantity | ||
) |
Quantity of the product.
[in] | item_quantity | Object instance of type item_quantity. |
[out] | quantity | Pointer to variable to write value to. |
ta_c_rc_ok | Object instance written to quantity. |
ta_c_rc_invalid_argument | item_quantity is ta_invalid_object. |
ta_c_rc_invalid_argument | item_quantity is not of type item_quantity. |
ta_c_rc_invalid_argument | quantity is null-pointer. |
ta_e_result_code_t ta_item_quantity_get_quantity_type | ( | ta_object_t | item_quantity, |
ta_object_t * | type | ||
) |
Type of quantity of the product.
[in] | item_quantity | Object instance of type item_quantity. |
[out] | type | Pointer to variable to write object instance to. Object instance is of type string and is not retained. |
ta_c_rc_ok | Object instance written to type. |
ta_c_rc_invalid_argument | item_quantity is ta_invalid_object. |
ta_c_rc_invalid_argument | item_quantity is not of type item_quantity. |
ta_c_rc_invalid_argument | type is null-pointer. |
ta_e_result_code_t ta_item_quantity_set_exponent | ( | ta_object_t | item_quantity, |
int | exponent | ||
) |
Set exponent of quantity of the product.
[in] | item_quantity | Object instance of type item_quantity. |
[in] | exponent | Exponent to set. |
ta_c_rc_ok | Object instance assigned to item. |
ta_c_rc_invalid_argument | item_quantity is ta_invalid_object. |
ta_c_rc_invalid_argument | item_quantity is not of type item_quantity. |
ta_e_result_code_t ta_item_quantity_set_quantity | ( | ta_object_t | item_quantity, |
int | quantity | ||
) |
Set quantity of the product.
[in] | item_quantity | Object instance of type item_quantity. |
[in] | quantity | Quantity to set. |
ta_c_rc_ok | Object instance assigned to item. |
ta_c_rc_invalid_argument | item_quantity is ta_invalid_object. |
ta_c_rc_invalid_argument | item_quantity is not of type item_quantity. |
ta_e_result_code_t ta_item_quantity_set_type | ( | ta_object_t | item_quantity, |
ta_object_t | type | ||
) |
Set type of quantity of the product.
[in] | item_quantity | Object instance of type item_quantity. |
[in] | type | Object instance to set. Object instance can be ta_invalid_object to clear the value in item. If object instance is not ta_invalid_object is has to be of type string. |
ta_c_rc_ok | Object instance assigned to item. |
ta_c_rc_invalid_argument | item is ta_invalid_object. |
ta_c_rc_invalid_argument | item is not of type item_quantity. |
ta_c_rc_invalid_argument | type is not ta_invalid_object and is not of type string. |