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...
 
ta_e_result_code_t ta_print_data_get_receipt_merchant_suppression (ta_object_t print_data, ta_e_boolean_t *receipt_merchant_suppression)
 Flag to suppress the printing of Merchant Receipts. More...
 
ta_e_result_code_t ta_print_data_get_receipt_cardholder_suppression (ta_object_t print_data, ta_e_boolean_t *receipt_cardholder_suppression)
 Flag to suppress the printing of Cardholder Receipts. More...
 

Function Documentation

◆ ta_print_data_get_receipt_cardholder_suppression()

ta_e_result_code_t ta_print_data_get_receipt_cardholder_suppression ( ta_object_t  print_data,
ta_e_boolean_t receipt_cardholder_suppression 
)

Flag to suppress the printing of Cardholder Receipts.

true: ECR shall NOT print Cardholder Receipt false: ECR shall print Cardholder Receipt

Parameters
[in]print_dataObject instance of type print_data.
[out]receipt_cardholder_suppressionPointer to variable to write value to.
Return values
ta_c_rc_okValue written to receipt_cardholder_suppression.
ta_c_rc_invalid_argumentprint_data is ta_object_invalid.
ta_c_rc_invalid_argumentprint_data is not of type print_data.

◆ 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_object_invalid.
ta_c_rc_invalid_argumentprint_data is not of type print_data.
ta_c_rc_invalid_argumentitems is null-pointer.

◆ ta_print_data_get_receipt_merchant_suppression()

ta_e_result_code_t ta_print_data_get_receipt_merchant_suppression ( ta_object_t  print_data,
ta_e_boolean_t receipt_merchant_suppression 
)

Flag to suppress the printing of Merchant Receipts.

true: ECR shall NOT print Merchant Receipt false: ECR shall print Merchant Receipt

Parameters
[in]print_dataObject instance of type print_data.
[out]receipt_merchant_suppressionPointer to variable to write value to.
Return values
ta_c_rc_okValue written to receipt_merchant_suppression.
ta_c_rc_invalid_argumentprint_data is ta_object_invalid.
ta_c_rc_invalid_argumentprint_data is not of type print_data.

◆ 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_object_invalid.
ta_c_rc_invalid_argumentprint_data is not of type print_data.
ta_c_rc_invalid_argumentreceipts is null-pointer.