node-atol-wrapper 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Название
4
4
  =========
5
- Node.js обертка для драйвера торгового оборудования (ДТО) версии [10.9.5.0](http://fs.atol.ru/_layouts/15/atol.templates/Handlers/FileHandler.ashx?guid=9c00e55f-7cfe-4918-8702-8df7e5fca2ca&webUrl=) от компании [АТОЛ](https://www.atol.ru/)
5
+ Node.js обертка для драйвера торгового оборудования (ДТО) версии `10.10.6.0` от компании [АТОЛ](https://www.atol.ru/)
6
6
 
7
7
  [ Источник ](https://forum.atol.ru/lofiversion/index.php/t34345.html)
8
8
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-atol-wrapper",
3
3
  "description": "Node ATOL DTO 10 wrapper",
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "main": "bindings.js",
6
6
  "types": "bindings.d.ts",
7
7
  "scripts": {
@@ -42,4 +42,4 @@
42
42
  "url": "git://github.com/farafonov-alexey/node-atol-wrapper.git"
43
43
  },
44
44
  "license": "MIT"
45
- }
45
+ }
package/src/libfptr10.h CHANGED
@@ -314,6 +314,14 @@ enum libfptr_error
314
314
  LIBFPTR_ERROR_OVERLAY_DATA_OVERFLOW,
315
315
  LIBFPTR_ERROR_INVALID_MODULE_ADDRESS,
316
316
  LIBFPTR_ERROR_ECR_MODEL_NOT_SUPPORTED,
317
+ LIBFPTR_ERROR_PAID_NOT_REQUIRED,
318
+ LIBFPTR_ERROR_NON_PRINTABLE_CHAR,
319
+ LIBFPTR_ERROR_INVALID_USER_TAG,
320
+ LIBFPTR_ERROR_COMMODITIES_TABLE_ITERATION_STOPPED,
321
+ LIBFPTR_ERROR_COMMODITIES_TABLE_INVALID_CSV_FORMAT,
322
+ LIBFPTR_ERROR_MINIPOS_NO_FILE_ON_USB_STORE,
323
+ LIBFPTR_ERROR_MINIPOS_NO_AGENT_FISCAL_PROPERTY,
324
+ LIBFPTR_ERROR_NO_CONNECTION_WITH_PRINT_SERVICE,
317
325
 
318
326
  LIBFPTR_ERROR_BASE_MARKING = 400,
319
327
  LIBFPTR_ERROR_MARKING_CODE_VALIDATION_IN_PROGRESS,
@@ -718,7 +726,7 @@ enum libfptr_param
718
726
  LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT,
719
727
  LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION,
720
728
  LIBFPTR_PARAM_FN_CONTAINS_KEYS_UPDATER_SERVER_URI,
721
- LIBFPTR_PARAM_MARKING_CODE_CLEAR,
729
+ LIBFPTR_PARAM_CLEAR_MARKING_TABLE,
722
730
  LIBFPTR_PARAM_MODULE_ADDRESS,
723
731
  LIBFPTR_PARAM_SEGMENT_ADDRESS,
724
732
  LIBFPTR_PARAM_LAST_SUCCESSFUL_OKP,
@@ -732,6 +740,41 @@ enum libfptr_param
732
740
  LIBFPTR_PARAM_PRINT_UPDATE_FNM_KEYS_REPORT,
733
741
  LIBFPTR_PARAM_FN_KEYS_UPDATER_SERVER_URI,
734
742
  LIBFPTR_PARAM_DOCUMENT_ELECTRONICALLY,
743
+ LIBFPTR_PARAM_FORMAT_TEXT,
744
+ LIBFPTR_PARAM_RECEIPT_SIZE,
745
+ LIBFPTR_PARAM_MARK_SIZE,
746
+ LIBFPTR_PARAM_MCU_TEMPERATURE,
747
+ LIBFPTR_PARAM_DATA_FOR_SEND_IS_EMPTY,
748
+ LIBFPTR_PARAM_AVAILABLE_CLOSING,
749
+ LIBFPTR_PARAM_AVAILABLE_CANCELLATION,
750
+ LIBFPTR_PARAM_AVAILABLE_POSITION_ADDING,
751
+ LIBFPTR_PARAM_AVAILABLE_PAYMENT,
752
+ LIBFPTR_PARAM_AVAILABLE_TOTAL,
753
+ LIBFPTR_PARAM_AVAILABLE_ATTRIBUTES_ADDING,
754
+ LIBFPTR_PARAM_OPERATOR_REGISTERED,
755
+ LIBFPTR_PARAM_DEVICE_PLATFORM_VERSION,
756
+ LIBFPTR_PARAM_GUID,
757
+ LIBFPTR_PARAM_PATTERN_REGISTERS,
758
+ LIBFPTR_PARAM_PATTERN_TAGS,
759
+ LIBFPTR_PARAM_PATTERN_SETTINGS,
760
+ LIBFPTR_PARAM_VENDING,
761
+ LIBFPTR_PARAM_CATERING,
762
+ LIBFPTR_PARAM_WHOLESALE,
763
+ LIBFPTR_PARAM_REGISTRATION_POSITION_FORM,
764
+ LIBFPTR_PARAM_MERGE_POSITIONS,
765
+ LIBFPTR_PARAM_DATAFLASH_JEDEC_ID,
766
+ LIBFPTR_PARAM_DATAFLASH_NAME,
767
+ LIBFPTR_PARAM_DATAFLASH_SIZE,
768
+ LIBFPTR_PARAM_FRAM_EEPROM_NAME,
769
+ LIBFPTR_PARAM_FRAM_EEPROM_SIZE,
770
+ LIBFPTR_PARAM_MARKING_NOT_FORM_REQUEST,
771
+ LIBFPTR_PARAM_PRINT_ENTITY_TYPE,
772
+ LIBFPTR_PARAM_RECEIPT_TAPE_PATH_LENGTH,
773
+
774
+ // certification
775
+ LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME,
776
+ LIBFPTR_PARAM_LAST_ATTEMPTION_FNM_UPDATE_KEYS_DATE_TIME,
777
+ LIBFPTR_PARAM_COUNT_ATTEMPTION_FNM_UPDATE_KEYS,
735
778
 
736
779
  LIBFPTR_PARAM_LAST
737
780
  };
@@ -752,6 +795,7 @@ enum libfptr_model
752
795
  LIBFPTR_MODEL_ATOL_50F = 80,
753
796
  LIBFPTR_MODEL_ATOL_52F = 64,
754
797
  LIBFPTR_MODEL_ATOL_55F = 62,
798
+ LIBFPTR_MODEL_ATOL_55v2F = 66,
755
799
  LIBFPTR_MODEL_ATOL_60F = 75,
756
800
  LIBFPTR_MODEL_ATOL_77F = 69,
757
801
  LIBFPTR_MODEL_ATOL_90F = 72,
@@ -764,6 +808,12 @@ enum libfptr_model
764
808
  LIBFPTR_MODEL_KAZNACHEY_FA = 76,
765
809
  LIBFPTR_MODEL_ATOL_1F = 93,
766
810
  LIBFPTR_MODEL_ATOL_22v2F = 95,
811
+ LIBFPTR_MODEL_ATOL_42FA = 70,
812
+ LIBFPTR_MODEL_ALLIANCE_20F = 50,
813
+ LIBFPTR_MODEL_ATOL_STB_6F = 94,
814
+ LIBFPTR_MODEL_ATOL_35F = 97,
815
+ // certification
816
+ LIBFPTR_MODEL_ATOL_27_FP7_F = 99,
767
817
  };
768
818
 
769
819
  #define LIBFPTR_SETTING_LIBRARY_PATH L"LibraryPath"
@@ -822,6 +872,20 @@ enum libfptr_model
822
872
 
823
873
  #define LIBFPTR_SETTING_SILENT_REBOOT L"SilentReboot"
824
874
 
875
+ #define LIBFPTR_SETTING_GUI_PARAMETERS L"GuiParametersMapping"
876
+
877
+ #define LIBFPTR_SETTING_GUI_PATTERN_REG L"PatternParameters"
878
+
879
+ #define LIBFPTR_SETTING_AUTO_TIME_SYNC L"AutoTimeSync"
880
+
881
+ #define LIBFPTR_SETTING_AUTO_TIME_SYNC_TIME L"AutoTimeSyncTime"
882
+
883
+ #define LIBFPTR_SETTING_LOG_PATHS L"LogPaths"
884
+
885
+ #define LIBFPTR_SETTING_MERGE_RECEIPT_ITEMS L"MergeReceiptItems"
886
+
887
+ #define LIBFPTR_SETTING_LICENSE L"Licenses"
888
+
825
889
  enum libfptr_port
826
890
  {
827
891
  LIBFPTR_PORT_COM = 0,
@@ -1028,6 +1092,10 @@ enum libfptr_tax_type
1028
1092
  LIBFPTR_TAX_VAT20,
1029
1093
  LIBFPTR_TAX_VAT120,
1030
1094
  LIBFPTR_TAX_INVALID,
1095
+ LIBFPTR_TAX_VAT5,
1096
+ LIBFPTR_TAX_VAT105,
1097
+ LIBFPTR_TAX_VAT7,
1098
+ LIBFPTR_TAX_VAT107
1031
1099
  };
1032
1100
 
1033
1101
  enum libfptr_external_device_type
@@ -1093,6 +1161,12 @@ enum libfptr_kkt_data_type
1093
1161
  LIBFPTR_DT_MCU_INFO,
1094
1162
  LIBFPTR_DT_MODULE_ADDRESS,
1095
1163
  LIBFPTR_DT_CACHE_REQUISITES,
1164
+ LIBFPTR_DT_DEPARTMENT_SUM,
1165
+ LIBFPTR_DT_MCU_TEMPERATURE,
1166
+ LIBFPTR_DT_AVAILABLE_OPERATIONS,
1167
+ LIBFPTR_DT_PATTERN_PARAMETERS,
1168
+ LIBFPTR_DT_RECEIPT_TAPE_PATH_LENGTH,
1169
+ LIBFPTR_DT_LAST_DATA_TYPE
1096
1170
  };
1097
1171
 
1098
1172
  enum libfptr_fn_data_type
@@ -1119,7 +1193,11 @@ enum libfptr_fn_data_type
1119
1193
  LIBFPTR_FNDT_ISM_ERRORS,
1120
1194
  LIBFPTR_FNDT_ISM_EXCHANGE_STATUS,
1121
1195
  LIBFPTR_FNDT_MARKING_MODE_STATUS,
1122
- LIBFPTR_FNDT_CHECK_MARK_TIME
1196
+ LIBFPTR_FNDT_CHECK_MARK_TIME,
1197
+ LIBFPTR_FNDT_RECEIPT_SIZE,
1198
+
1199
+ // certification
1200
+ LIBFPTR_FNDT_FNM_KEYS_UPDATE_DATE_TIME
1123
1201
  };
1124
1202
 
1125
1203
  enum libfptr_ffd_version
@@ -1462,7 +1540,8 @@ enum libfptr_mark_checking_type_in_cash
1462
1540
  LIBFPTR_MCT_AUTONOMOUS = 0,
1463
1541
  LIBFPTR_MCT_WAIT_FOR_RESULT,
1464
1542
  LIBFPTR_MCT_RESULT_NOT_WAIT,
1465
- LIBFPTR_MCT_QUERY_NOT_SEND
1543
+ LIBFPTR_MCT_QUERY_NOT_SEND,
1544
+ LIBFPTR_MCT_QUERY_NOT_FORM
1466
1545
  };
1467
1546
 
1468
1547
  enum libfptr_mark_checking_stage_in_cash
@@ -1484,6 +1563,57 @@ enum libfptr_silent_reboot
1484
1563
  LIBFPTR_SILENT_REBOOT_BEFORE_SESSION_OPEN
1485
1564
  };
1486
1565
 
1566
+ enum libfptr_platform_version
1567
+ {
1568
+ LIBFPTR_PLATFORM_UNKNOWN = 0,
1569
+ LIBFPTR_PLATFORM_25 = 25,
1570
+ LIBFPTR_PLATFORM_50 = 50,
1571
+ };
1572
+
1573
+ enum libfptr_registration_position_form
1574
+ {
1575
+ LIBFPTR_RPF_ELECTRONIC_AND_PRINT = 0,
1576
+ LIBFPTR_RPF_ONLY_ELECTRONIC,
1577
+ LIBFPTR_RPF_ONLY_PRINT,
1578
+ };
1579
+
1580
+ enum libfptr_merge_receipt_items
1581
+ {
1582
+ LIBFPTR_MERGE_RECEIPT_NO = 0,
1583
+ LIBFPTR_MERGE_RECEIPT_ALL,
1584
+ LIBFPTR_MERGE_RECEIPT_MARK_ONLY,
1585
+ };
1586
+
1587
+ enum libfptr_license
1588
+ {
1589
+ LIBFPTR_LIC_BASE_FISCAL = 1,
1590
+ LIBFPTR_LIC_WRITE_FW,
1591
+ LIBFPTR_LIC_TAX_20,
1592
+ LIBFPTR_LIC_FFD_1_1,
1593
+ LIBFPTR_LIC_MARK_CODE,
1594
+ LIBFPTR_LIC_EXT_FUNC,
1595
+ LIBFPTR_LIC_TEMPLATE,
1596
+ LIBFPTR_LIC_PRINT_BMP,
1597
+ LIBFPTR_LIC_DISABLE_PF,
1598
+ LIBFPTR_LIC_FFD_1_2,
1599
+ LIBFPTR_LIC_FR_WORK,
1600
+ LIBFPTR_LIC_WEB,
1601
+ LIBFPTR_LIC_FFD_1_1_2,
1602
+ LIBFPTR_LIC_TEST_LAB,
1603
+ LIBFPTR_LIC_WEB_REQ,
1604
+ LIBFPTR_LIC_RELESE,
1605
+ LIBFPTR_LIC_EXT_PRINT,
1606
+ LIBFPTR_LIC_OSU,
1607
+ LIBFPTR_LIC_EXT_FISCAL,
1608
+ };
1609
+
1610
+ enum libfptr_print_entity_type
1611
+ {
1612
+ LIBFPTR_PET_STRINGS = 0,
1613
+ LIBFPTR_PET_PICTURES,
1614
+ LIBFPTR_PET_FISCAL_DOCUMENT,
1615
+ };
1616
+
1487
1617
  #define LIBFPTR_UC_OTHERS 4294967295
1488
1618
 
1489
1619
 
@@ -1498,6 +1628,9 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_create_with_id(libfptr_handle *ha
1498
1628
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_set_settings(libfptr_handle handle,
1499
1629
  const wchar_t *settings);
1500
1630
 
1631
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_validate_merge_position_support(libfptr_handle handle,
1632
+ wchar_t *value, int size);
1633
+
1501
1634
  DTOX_SHARED_EXPORT void DTOX_SHARED_CCA libfptr_destroy(libfptr_handle *handle);
1502
1635
 
1503
1636
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_settings(libfptr_handle handle, wchar_t *value,
@@ -1649,7 +1782,6 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cash_income(libfptr_handle handle
1649
1782
 
1650
1783
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cash_outcome(libfptr_handle handle);
1651
1784
 
1652
-
1653
1785
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_open_receipt(libfptr_handle handle);
1654
1786
 
1655
1787
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cancel_receipt(libfptr_handle handle);
@@ -1869,6 +2001,16 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_last_document_journal(libfptr
1869
2001
 
1870
2002
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_change_label(libfptr_handle handle, const wchar_t *label);
1871
2003
 
2004
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_is_param_available(libfptr_handle handle, int param_id);
2005
+
2006
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_error_recommendation(libfptr_handle handle, wchar_t *value, int size);
2007
+
2008
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_find_document_in_journal(libfptr_handle handle);
2009
+
2010
+ // certification
2011
+
2012
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_run_fn_command(libfptr_handle handle);
2013
+
1872
2014
  #ifdef __cplusplus
1873
2015
  }
1874
2016
  #endif
Binary file
Binary file
Binary file
Binary file
@@ -316,6 +316,13 @@ enum libfptr_error
316
316
  LIBFPTR_ERROR_ECR_MODEL_NOT_SUPPORTED,
317
317
  LIBFPTR_ERROR_PAID_NOT_REQUIRED,
318
318
  LIBFPTR_ERROR_NON_PRINTABLE_CHAR,
319
+ LIBFPTR_ERROR_INVALID_USER_TAG,
320
+ LIBFPTR_ERROR_COMMODITIES_TABLE_ITERATION_STOPPED,
321
+ LIBFPTR_ERROR_COMMODITIES_TABLE_INVALID_CSV_FORMAT,
322
+ LIBFPTR_ERROR_MINIPOS_NO_FILE_ON_USB_STORE,
323
+ LIBFPTR_ERROR_MINIPOS_NO_AGENT_FISCAL_PROPERTY,
324
+ LIBFPTR_ERROR_NO_CONNECTION_WITH_PRINT_SERVICE,
325
+ LIBFPTR_ERROR_UNIVERSAL_COUNTERS_ARE_DISABLED,
319
326
 
320
327
  LIBFPTR_ERROR_BASE_MARKING = 400,
321
328
  LIBFPTR_ERROR_MARKING_CODE_VALIDATION_IN_PROGRESS,
@@ -720,7 +727,7 @@ enum libfptr_param
720
727
  LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT,
721
728
  LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION,
722
729
  LIBFPTR_PARAM_FN_CONTAINS_KEYS_UPDATER_SERVER_URI,
723
- LIBFPTR_PARAM_MARKING_CODE_CLEAR,
730
+ LIBFPTR_PARAM_CLEAR_MARKING_TABLE,
724
731
  LIBFPTR_PARAM_MODULE_ADDRESS,
725
732
  LIBFPTR_PARAM_SEGMENT_ADDRESS,
726
733
  LIBFPTR_PARAM_LAST_SUCCESSFUL_OKP,
@@ -745,8 +752,34 @@ enum libfptr_param
745
752
  LIBFPTR_PARAM_AVAILABLE_PAYMENT,
746
753
  LIBFPTR_PARAM_AVAILABLE_TOTAL,
747
754
  LIBFPTR_PARAM_AVAILABLE_ATTRIBUTES_ADDING,
748
- LIBFPTR_PARAM_OPERATOR_REGISTERED,
755
+ LIBFPTR_PARAM_OPERATOR_REGISTERED,
749
756
  LIBFPTR_PARAM_DEVICE_PLATFORM_VERSION,
757
+ LIBFPTR_PARAM_GUID,
758
+ LIBFPTR_PARAM_PATTERN_REGISTERS,
759
+ LIBFPTR_PARAM_PATTERN_TAGS,
760
+ LIBFPTR_PARAM_PATTERN_SETTINGS,
761
+ LIBFPTR_PARAM_VENDING,
762
+ LIBFPTR_PARAM_CATERING,
763
+ LIBFPTR_PARAM_WHOLESALE,
764
+ LIBFPTR_PARAM_REGISTRATION_POSITION_FORM,
765
+ LIBFPTR_PARAM_MERGE_POSITIONS,
766
+ LIBFPTR_PARAM_DATAFLASH_JEDEC_ID,
767
+ LIBFPTR_PARAM_DATAFLASH_NAME,
768
+ LIBFPTR_PARAM_DATAFLASH_SIZE,
769
+ LIBFPTR_PARAM_FRAM_EEPROM_NAME,
770
+ LIBFPTR_PARAM_FRAM_EEPROM_SIZE,
771
+ LIBFPTR_PARAM_MARKING_NOT_FORM_REQUEST,
772
+ LIBFPTR_PARAM_PRINT_ENTITY_TYPE,
773
+ LIBFPTR_PARAM_RECEIPT_TAPE_PATH_LENGTH,
774
+ LIBFPTR_PARAM_LICENSE_INDEX,
775
+ LIBFPTR_PARAM_IS_LICENSE_VALID,
776
+ LIBFPTR_PARAM_RECEIPT_PERCENTAGE_SIZE,
777
+
778
+ // certification
779
+ LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME,
780
+ LIBFPTR_PARAM_LAST_ATTEMPTION_FNM_UPDATE_KEYS_DATE_TIME,
781
+ LIBFPTR_PARAM_COUNT_ATTEMPTION_FNM_UPDATE_KEYS,
782
+
750
783
  LIBFPTR_PARAM_LAST
751
784
  };
752
785
 
@@ -766,6 +799,7 @@ enum libfptr_model
766
799
  LIBFPTR_MODEL_ATOL_50F = 80,
767
800
  LIBFPTR_MODEL_ATOL_52F = 64,
768
801
  LIBFPTR_MODEL_ATOL_55F = 62,
802
+ LIBFPTR_MODEL_ATOL_55v2F = 66,
769
803
  LIBFPTR_MODEL_ATOL_60F = 75,
770
804
  LIBFPTR_MODEL_ATOL_77F = 69,
771
805
  LIBFPTR_MODEL_ATOL_90F = 72,
@@ -779,6 +813,11 @@ enum libfptr_model
779
813
  LIBFPTR_MODEL_ATOL_1F = 93,
780
814
  LIBFPTR_MODEL_ATOL_22v2F = 95,
781
815
  LIBFPTR_MODEL_ATOL_42FA = 70,
816
+ LIBFPTR_MODEL_ALLIANCE_20F = 50,
817
+ LIBFPTR_MODEL_ATOL_STB_6F = 94,
818
+ LIBFPTR_MODEL_ATOL_35F = 97,
819
+ // certification
820
+ LIBFPTR_MODEL_ATOL_27_FP7_F = 99,
782
821
  };
783
822
 
784
823
  #define LIBFPTR_SETTING_LIBRARY_PATH L"LibraryPath"
@@ -837,6 +876,20 @@ enum libfptr_model
837
876
 
838
877
  #define LIBFPTR_SETTING_SILENT_REBOOT L"SilentReboot"
839
878
 
879
+ #define LIBFPTR_SETTING_GUI_PARAMETERS L"GuiParametersMapping"
880
+
881
+ #define LIBFPTR_SETTING_GUI_PATTERN_REG L"PatternParameters"
882
+
883
+ #define LIBFPTR_SETTING_AUTO_TIME_SYNC L"AutoTimeSync"
884
+
885
+ #define LIBFPTR_SETTING_AUTO_TIME_SYNC_TIME L"AutoTimeSyncTime"
886
+
887
+ #define LIBFPTR_SETTING_LOG_PATHS L"LogPaths"
888
+
889
+ #define LIBFPTR_SETTING_MERGE_RECEIPT_ITEMS L"MergeReceiptItems"
890
+
891
+ #define LIBFPTR_SETTING_LICENSE L"Licenses"
892
+
840
893
  enum libfptr_port
841
894
  {
842
895
  LIBFPTR_PORT_COM = 0,
@@ -1042,6 +1095,10 @@ enum libfptr_tax_type
1042
1095
  LIBFPTR_TAX_NO,
1043
1096
  LIBFPTR_TAX_VAT20,
1044
1097
  LIBFPTR_TAX_VAT120,
1098
+ LIBFPTR_TAX_VAT5,
1099
+ LIBFPTR_TAX_VAT7,
1100
+ LIBFPTR_TAX_VAT105,
1101
+ LIBFPTR_TAX_VAT107,
1045
1102
  LIBFPTR_TAX_INVALID,
1046
1103
  };
1047
1104
 
@@ -1111,6 +1168,9 @@ enum libfptr_kkt_data_type
1111
1168
  LIBFPTR_DT_DEPARTMENT_SUM,
1112
1169
  LIBFPTR_DT_MCU_TEMPERATURE,
1113
1170
  LIBFPTR_DT_AVAILABLE_OPERATIONS,
1171
+ LIBFPTR_DT_PATTERN_PARAMETERS,
1172
+ LIBFPTR_DT_RECEIPT_TAPE_PATH_LENGTH,
1173
+ LIBFPTR_DT_LAST_DATA_TYPE
1114
1174
  };
1115
1175
 
1116
1176
  enum libfptr_fn_data_type
@@ -1138,7 +1198,11 @@ enum libfptr_fn_data_type
1138
1198
  LIBFPTR_FNDT_ISM_EXCHANGE_STATUS,
1139
1199
  LIBFPTR_FNDT_MARKING_MODE_STATUS,
1140
1200
  LIBFPTR_FNDT_CHECK_MARK_TIME,
1141
- LIBFPTR_FNDT_RECEIPT_SIZE
1201
+ LIBFPTR_FNDT_RECEIPT_SIZE,
1202
+ LIBFPTR_FNDT_NOTIFICATION_STATUS,
1203
+
1204
+ // certification
1205
+ LIBFPTR_FNDT_FNM_KEYS_UPDATE_DATE_TIME
1142
1206
  };
1143
1207
 
1144
1208
  enum libfptr_ffd_version
@@ -1481,7 +1545,8 @@ enum libfptr_mark_checking_type_in_cash
1481
1545
  LIBFPTR_MCT_AUTONOMOUS = 0,
1482
1546
  LIBFPTR_MCT_WAIT_FOR_RESULT,
1483
1547
  LIBFPTR_MCT_RESULT_NOT_WAIT,
1484
- LIBFPTR_MCT_QUERY_NOT_SEND
1548
+ LIBFPTR_MCT_QUERY_NOT_SEND,
1549
+ LIBFPTR_MCT_QUERY_NOT_FORM
1485
1550
  };
1486
1551
 
1487
1552
  enum libfptr_mark_checking_stage_in_cash
@@ -1510,6 +1575,50 @@ enum libfptr_platform_version
1510
1575
  LIBFPTR_PLATFORM_50 = 50,
1511
1576
  };
1512
1577
 
1578
+ enum libfptr_registration_position_form
1579
+ {
1580
+ LIBFPTR_RPF_ELECTRONIC_AND_PRINT = 0,
1581
+ LIBFPTR_RPF_ONLY_ELECTRONIC,
1582
+ LIBFPTR_RPF_ONLY_PRINT,
1583
+ };
1584
+
1585
+ enum libfptr_merge_receipt_items
1586
+ {
1587
+ LIBFPTR_MERGE_RECEIPT_NO = 0,
1588
+ LIBFPTR_MERGE_RECEIPT_ALL,
1589
+ LIBFPTR_MERGE_RECEIPT_MARK_ONLY,
1590
+ };
1591
+
1592
+ enum libfptr_license
1593
+ {
1594
+ LIBFPTR_LIC_BASE_FISCAL = 1,
1595
+ LIBFPTR_LIC_WRITE_FW,
1596
+ LIBFPTR_LIC_TAX_20,
1597
+ LIBFPTR_LIC_FFD_1_1,
1598
+ LIBFPTR_LIC_MARK_CODE,
1599
+ LIBFPTR_LIC_EXT_FUNC,
1600
+ LIBFPTR_LIC_TEMPLATE,
1601
+ LIBFPTR_LIC_PRINT_BMP,
1602
+ LIBFPTR_LIC_DISABLE_PF,
1603
+ LIBFPTR_LIC_FFD_1_2,
1604
+ LIBFPTR_LIC_FR_WORK,
1605
+ LIBFPTR_LIC_WEB,
1606
+ LIBFPTR_LIC_FFD_1_1_2,
1607
+ LIBFPTR_LIC_TEST_LAB,
1608
+ LIBFPTR_LIC_WEB_REQ,
1609
+ LIBFPTR_LIC_RELESE,
1610
+ LIBFPTR_LIC_EXT_PRINT,
1611
+ LIBFPTR_LIC_OSU,
1612
+ LIBFPTR_LIC_EXT_FISCAL,
1613
+ };
1614
+
1615
+ enum libfptr_print_entity_type
1616
+ {
1617
+ LIBFPTR_PET_STRINGS = 0,
1618
+ LIBFPTR_PET_PICTURES,
1619
+ LIBFPTR_PET_FISCAL_DOCUMENT,
1620
+ };
1621
+
1513
1622
  #define LIBFPTR_UC_OTHERS 4294967295
1514
1623
 
1515
1624
 
@@ -1524,6 +1633,9 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_create_with_id(libfptr_handle *ha
1524
1633
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_set_settings(libfptr_handle handle,
1525
1634
  const wchar_t *settings);
1526
1635
 
1636
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_validate_merge_position_support(libfptr_handle handle,
1637
+ wchar_t *value, int size);
1638
+
1527
1639
  DTOX_SHARED_EXPORT void DTOX_SHARED_CCA libfptr_destroy(libfptr_handle *handle);
1528
1640
 
1529
1641
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_settings(libfptr_handle handle, wchar_t *value,
@@ -1675,7 +1787,6 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cash_income(libfptr_handle handle
1675
1787
 
1676
1788
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cash_outcome(libfptr_handle handle);
1677
1789
 
1678
-
1679
1790
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_open_receipt(libfptr_handle handle);
1680
1791
 
1681
1792
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_cancel_receipt(libfptr_handle handle);
@@ -1895,6 +2006,16 @@ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_get_last_document_journal(libfptr
1895
2006
 
1896
2007
  DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_change_label(libfptr_handle handle, const wchar_t *label);
1897
2008
 
2009
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_is_param_available(libfptr_handle handle, int param_id);
2010
+
2011
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_error_recommendation(libfptr_handle handle, wchar_t *value, int size);
2012
+
2013
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_find_document_in_journal(libfptr_handle handle);
2014
+
2015
+ // certification
2016
+
2017
+ DTOX_SHARED_EXPORT int DTOX_SHARED_CCA libfptr_run_fn_command(libfptr_handle handle);
2018
+
1898
2019
  #ifdef __cplusplus
1899
2020
  }
1900
2021
  #endif
@@ -31,6 +31,10 @@
31
31
  #define LIBFPTR_SETTING_VALIDATE_MARK_WITH_FNM_ONLY @"ValidateMarksWithFnmOnly"
32
32
  #define LIBFPTR_SETTING_AUTO_MEASUREMENT_UNIT @"AutoMeasurementUnit"
33
33
  #define LIBFPTR_SETTING_SILENT_REBOOT @"SilentReboot"
34
+ #define LIBFPTR_SETTING_LOG_PATHS @"LogPaths"
35
+ #define LIBFPTR_SETTING_AUTO_TIME_SYNC @"AutoTimeSync"
36
+ #define LIBFPTR_SETTING_AUTO_TIME_SYNC_TIME @"AutoTimeSyncTime"
37
+ #define LIBFPTR_SETTING_MERGE_RECEIPT_ITEMS @"MergeReceiptItems"
34
38
  #define LIBFPTR_MODEL_UNKNOWN 0
35
39
  #define LIBFPTR_MODEL_ATOL_25F 57
36
40
  #define LIBFPTR_MODEL_ATOL_30F 61
@@ -57,7 +61,12 @@
57
61
  #define LIBFPTR_MODEL_ATOL_AUTO 500
58
62
  #define LIBFPTR_MODEL_ATOL_47FA 48
59
63
  #define LIBFPTR_MODEL_ATOL_PT_5F 89
64
+ #define LIBFPTR_MODEL_ATOL_27_FP7_F 99
60
65
  #define LIBFPTR_MODEL_ATOL_42FA 70
66
+ #define LIBFPTR_MODEL_ALLIANCE_20F 50
67
+ #define LIBFPTR_MODEL_ATOL_55V2F 66
68
+ #define LIBFPTR_MODEL_ATOL_STB_6F 92
69
+ #define LIBFPTR_MODEL_ATOL_35F 97
61
70
  #define LIBFPTR_PORT_BR_1200 1200
62
71
  #define LIBFPTR_PORT_BR_2400 2400
63
72
  #define LIBFPTR_PORT_BR_4800 4800
@@ -525,7 +534,7 @@ enum libfptr_param
525
534
  LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_RESULT = 65886,
526
535
  LIBFPTR_PARAM_MARKING_CODE_ONLINE_VALIDATION_ERROR_DESCRIPTION = 65887,
527
536
  LIBFPTR_PARAM_FN_CONTAINS_KEYS_UPDATER_SERVER_URI = 65888,
528
- LIBFPTR_PARAM_MARKING_CODE_CLEAR = 65889,
537
+ LIBFPTR_PARAM_CLEAR_MARKING_TABLE = 65889,
529
538
  LIBFPTR_PARAM_MODULE_ADDRESS = 65890,
530
539
  LIBFPTR_PARAM_SEGMENT_ADDRESS = 65891,
531
540
  LIBFPTR_PARAM_LAST_SUCCESSFUL_OKP = 65892,
@@ -552,6 +561,29 @@ enum libfptr_param
552
561
  LIBFPTR_PARAM_AVAILABLE_ATTRIBUTES_ADDING = 65913,
553
562
  LIBFPTR_PARAM_OPERATOR_REGISTERED = 65914,
554
563
  LIBFPTR_PARAM_DEVICE_PLATFORM_VERSION = 65915,
564
+ LIBFPTR_PARAM_GUID = 65916,
565
+ LIBFPTR_PARAM_PATTERN_REGISTERS = 65917,
566
+ LIBFPTR_PARAM_PATTERN_TAGS = 65918,
567
+ LIBFPTR_PARAM_PATTERN_SETTINGS = 65919,
568
+ LIBFPTR_PARAM_VENDING = 65920,
569
+ LIBFPTR_PARAM_CATERING = 65921,
570
+ LIBFPTR_PARAM_WHOLESALE = 65922,
571
+ LIBFPTR_PARAM_REGISTRATION_POSITION_FORM = 65923,
572
+ LIBFPTR_PARAM_MERGE_POSITIONS = 65924,
573
+ LIBFPTR_PARAM_DATAFLASH_JEDEC_ID = 65925,
574
+ LIBFPTR_PARAM_DATAFLASH_NAME = 65926,
575
+ LIBFPTR_PARAM_DATAFLASH_SIZE = 65927,
576
+ LIBFPTR_PARAM_FRAM_EEPROM_NAME = 65928,
577
+ LIBFPTR_PARAM_FRAM_EEPROM_SIZE = 65929,
578
+ LIBFPTR_PARAM_MARKING_NOT_FORM_REQUEST = 65930,
579
+ LIBFPTR_PARAM_PRINT_ENTITY_TYPE = 65931,
580
+ LIBFPTR_PARAM_RECEIPT_TAPE_PATH_LENGTH = 65932,
581
+ LIBFPTR_PARAM_LICENSE_INDEX = 65933,
582
+ LIBFPTR_PARAM_IS_LICENSE_VALID = 65934,
583
+ LIBFPTR_PARAM_RECEIPT_PERCENTAGE_SIZE = 65935,
584
+ LIBFPTR_PARAM_LAST_SUCCESS_FNM_UPDATE_KEYS_DATE_TIME = 65936,
585
+ LIBFPTR_PARAM_LAST_ATTEMPTION_FNM_UPDATE_KEYS_DATE_TIME = 65937,
586
+ LIBFPTR_PARAM_COUNT_ATTEMPTION_FNM_UPDATE_KEYS = 65938,
555
587
  };
556
588
 
557
589
  enum libfptr_error
@@ -828,6 +860,13 @@ enum libfptr_error
828
860
  LIBFPTR_ERROR_ECR_MODEL_NOT_SUPPORTED = 269,
829
861
  LIBFPTR_ERROR_PAID_NOT_REQUIRED = 270,
830
862
  LIBFPTR_ERROR_NON_PRINTABLE_CHAR = 271,
863
+ LIBFPTR_ERROR_INVALID_USER_TAG = 272,
864
+ LIBFPTR_ERROR_COMMODITIES_TABLE_ITERATION_STOPPED = 273,
865
+ LIBFPTR_ERROR_COMMODITIES_TABLE_INVALID_CSV_FORMAT = 274,
866
+ LIBFPTR_ERROR_MINIPOS_NO_FILE_ON_USB_STORE = 275,
867
+ LIBFPTR_ERROR_MINIPOS_NO_AGENT_FISCAL_PROPERTY = 276,
868
+ LIBFPTR_ERROR_NO_CONNECTION_WITH_PRINT_SERVICE = 277,
869
+ LIBFPTR_ERROR_UNIVERSAL_COUNTERS_ARE_DISABLED = 278,
831
870
  };
832
871
 
833
872
  enum libfptr_marking_error
@@ -1039,7 +1078,11 @@ enum libfptr_tax_type
1039
1078
  LIBFPTR_TAX_NO = 6,
1040
1079
  LIBFPTR_TAX_VAT20 = 7,
1041
1080
  LIBFPTR_TAX_VAT120 = 8,
1042
- LIBFPTR_TAX_INVALID = 9,
1081
+ LIBFPTR_TAX_VAT5 = 9,
1082
+ LIBFPTR_TAX_VAT7 = 10,
1083
+ LIBFPTR_TAX_VAT105 = 11,
1084
+ LIBFPTR_TAX_VAT107 = 12,
1085
+ LIBFPTR_TAX_INVALID = 13,
1043
1086
  };
1044
1087
 
1045
1088
  enum libfptr_external_device_type
@@ -1108,6 +1151,8 @@ enum libfptr_kkt_data_type
1108
1151
  LIBFPTR_DT_DEPARTMENT_SUM = 53,
1109
1152
  LIBFPTR_DT_MCU_TEMPERATURE = 54,
1110
1153
  LIBFPTR_DT_AVAILABLE_OPERATIONS = 55,
1154
+ LIBFPTR_DT_PATTERN_PARAMETERS = 56,
1155
+ LIBFPTR_DT_RECEIPT_TAPE_PATH_LENGTH = 57,
1111
1156
  };
1112
1157
 
1113
1158
  enum libfptr_fn_data_type
@@ -1136,6 +1181,8 @@ enum libfptr_fn_data_type
1136
1181
  LIBFPTR_FNDT_MARKING_MODE_STATUS = 21,
1137
1182
  LIBFPTR_FNDT_CHECK_MARK_TIME = 22,
1138
1183
  LIBFPTR_FNDT_RECEIPT_SIZE = 23,
1184
+ LIBFPTR_FNDT_NOTIFICATION_STATUS = 24,
1185
+ LIBFPTR_FNDT_FNM_KEYS_UPDATE_DATE_TIME = 25,
1139
1186
  };
1140
1187
 
1141
1188
  enum libfptr_unit_type
@@ -1364,6 +1411,7 @@ enum libfptr_mark_checking_type_in_cash
1364
1411
  LIBFPTR_MCT_WAIT_FOR_RESULT = 1,
1365
1412
  LIBFPTR_MCT_RESULT_NOT_WAIT = 2,
1366
1413
  LIBFPTR_MCT_QUERY_NOT_SEND = 3,
1414
+ LIBFPTR_MCT_QUERY_NOT_FORM = 4,
1367
1415
  };
1368
1416
 
1369
1417
  enum libfptr_mark_checking_stage_in_cash
@@ -1385,6 +1433,50 @@ enum libfptr_silent_reboot
1385
1433
  LIBFPTR_SILENT_REBOOT_BEFORE_SESSION_OPEN = 2,
1386
1434
  };
1387
1435
 
1436
+ enum libfptr_merge_receipt_items
1437
+ {
1438
+ LIBFPTR_MERGE_RECEIPT_NO = 0,
1439
+ LIBFPTR_MERGE_RECEIPT_ALL = 1,
1440
+ LIBFPTR_MERGE_RECEIPT_MARK_ONLY = 2,
1441
+ };
1442
+
1443
+ enum libfptr_registration_position_form
1444
+ {
1445
+ LIBFPTR_RPF_ELECTRONIC_AND_PRINT = 0,
1446
+ LIBFPTR_RPF_ONLY_ELECTRONIC = 1,
1447
+ LIBFPTR_RPF_ONLY_PRINT = 2,
1448
+ };
1449
+
1450
+ enum libfptr_print_entity_type
1451
+ {
1452
+ LIBFPTR_PET_STRINGS = 0,
1453
+ LIBFPTR_PET_PICTURES = 1,
1454
+ LIBFPTR_PET_FISCAL_DOCUMENT = 2,
1455
+ };
1456
+
1457
+ enum libfptr_license
1458
+ {
1459
+ LIBFPTR_LIC_BASE_FISCAL = 0,
1460
+ LIBFPTR_LIC_WRITE_FW = 1,
1461
+ LIBFPTR_LIC_TAX_20 = 2,
1462
+ LIBFPTR_LIC_FFD_1_1 = 3,
1463
+ LIBFPTR_LIC_MARK_CODE = 4,
1464
+ LIBFPTR_LIC_EXT_FUNC = 5,
1465
+ LIBFPTR_LIC_TEMPLATE = 6,
1466
+ LIBFPTR_LIC_PRINT_BMP = 7,
1467
+ LIBFPTR_LIC_DISABLE_PF = 8,
1468
+ LIBFPTR_LIC_FFD_1_2 = 9,
1469
+ LIBFPTR_LIC_FR_WORK = 10,
1470
+ LIBFPTR_LIC_WEB = 11,
1471
+ LIBFPTR_LIC_FFD_1_1_2 = 12,
1472
+ LIBFPTR_LIC_TEST_LAB = 13,
1473
+ LIBFPTR_LIC_WEB_REQ = 14,
1474
+ LIBFPTR_LIC_RELESE = 15,
1475
+ LIBFPTR_LIC_EXT_PRINT = 16,
1476
+ LIBFPTR_LIC_OSU = 17,
1477
+ LIBFPTR_LIC_EXT_FISCAL = 18,
1478
+ };
1479
+
1388
1480
  enum libfptr_rpc_server_error
1389
1481
  {
1390
1482
  LIBFPTR_ERROR_BASE_RPC = 600,
@@ -1403,11 +1495,13 @@ __attribute__((visibility("default")))
1403
1495
  - (id) initWithID: (NSString *) id;
1404
1496
  - (void) dealloc;
1405
1497
  - (NSString *) version;
1498
+ - (NSString *) wrapperVersion;
1406
1499
  - (int) logWrite: (NSString *)tag level: (int)level message: (NSString *)message;
1407
1500
  - (int) changeLabel: (NSString *)label;
1408
1501
  - (bool) isOpened;
1409
1502
  - (int) errorCode;
1410
1503
  - (NSString *) errorDescription;
1504
+ - (NSString *) errorRecommendation;
1411
1505
  - (void) resetError;
1412
1506
  - (int) setSettings: (NSString *)settings;
1413
1507
  - (NSString *) getSettings;
@@ -1437,6 +1531,7 @@ __attribute__((visibility("default")))
1437
1531
  - (NSData *) getParamByteArray: (int)param;
1438
1532
  - (NSDate *) getParamDateTime: (int)param;
1439
1533
  - (NSString *) getParamString: (int)param;
1534
+ - (bool) isParamAvailable: (int)param;
1440
1535
  - (int) applySingleSettings;
1441
1536
  - (int) open;
1442
1537
  - (int) close;
@@ -1556,5 +1651,7 @@ __attribute__((visibility("default")))
1556
1651
  - (int) getMarkingServerStatus;
1557
1652
  - (int) isDriverLocked;
1558
1653
  - (int) getLastDocumentJournal;
1654
+ - (int) findDocumentInJournal;
1655
+ - (int) runFnCommand;
1559
1656
 
1560
1657
  @end
@@ -24,10 +24,10 @@
24
24
  <string>FMWK</string>
25
25
 
26
26
  <key>CFBundleVersion</key>
27
- <string>10.9.5.0</string>
27
+ <string>10.10.6.0</string>
28
28
 
29
29
  <key>CFBundleShortVersionString</key>
30
- <string>10.9.5</string>
30
+ <string>10.10.6</string>
31
31
 
32
32
  <key>CSResourcesFileMapped</key>
33
33
  <true/>
Binary file
Binary file
Binary file
Binary file