TIM SDK
TIM API C
print_data.h File Reference

Description

Print data.

Object type print_data.

Functions

ta_e_result_code_t ta_print_data_get_receipts (ta_object_t print_data, ta_object_t *receipts)
 Receipts to print by the ECR. More...
 
ta_e_result_code_t ta_print_data_get_receipt_items (ta_object_t print_data, ta_object_t *items)
 Receipt items for the ECR to create receipts for printing. More...
 

Function Documentation

◆ ta_print_data_get_receipt_items()

ta_e_result_code_t ta_print_data_get_receipt_items ( ta_object_t  print_data,
ta_object_t items 
)

Receipt items for the ECR to create receipts for printing.

Present if print type is FieldsOnly.

Parameters
[in]print_dataObject instance of type print_data.
[out]itemsPointer to variable to write object instance to. Object instance is of type list and is not retained. The list contains elements of type receipt_items.
Return values
ta_c_rc_okObject instance written to items.
ta_c_rc_invalid_argumentprint_data is ta_invalid_object.
ta_c_rc_invalid_argumentprint_data is not of type print_data.
ta_c_rc_invalid_argumentitems is null-pointer.

◆ ta_print_data_get_receipts()

ta_e_result_code_t ta_print_data_get_receipts ( ta_object_t  print_data,
ta_object_t receipts 
)

Receipts to print by the ECR.

Present if print type is Normal.

Parameters
[in]print_dataObject instance of type print_data.
[out]receiptsPointer to variable to write object instance to. Object instance is of type list and is not retained. The list contains elements of type receipt.
Return values
ta_c_rc_okObject instance written to receipts.
ta_c_rc_invalid_argumentprint_data is ta_invalid_object.
ta_c_rc_invalid_argumentprint_data is not of type print_data.
ta_c_rc_invalid_argumentreceipts is null-pointer.