@reservation-studio/electron-types 0.0.28 → 0.0.29
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
|
@@ -198,6 +198,14 @@ export interface ApiInterface {
|
|
|
198
198
|
* @throws {Error} If the device with the specified deviceId is not found.
|
|
199
199
|
*/
|
|
200
200
|
setDateTime(dateTime: Date, deviceId: string): Promise<boolean>;
|
|
201
|
+
/**
|
|
202
|
+
* Gets the date and time from a fiscal device.
|
|
203
|
+
*
|
|
204
|
+
* @param {string} deviceId - Device identifier from list/scan.
|
|
205
|
+
* @return {Promise<Date>} A promise that resolves to the device date/time.
|
|
206
|
+
* @throws {Error} If the device with the specified deviceId is not found.
|
|
207
|
+
*/
|
|
208
|
+
getDateTime(deviceId: string): Promise<Date>;
|
|
201
209
|
/**
|
|
202
210
|
* Prints a duplicate of the last receipt using a fiscal device.
|
|
203
211
|
*
|
|
@@ -15,6 +15,7 @@ export interface DeviceCapabilities {
|
|
|
15
15
|
withdrawMoney: boolean;
|
|
16
16
|
getCashAmount: boolean;
|
|
17
17
|
setDateTime: boolean;
|
|
18
|
+
getDateTime: boolean;
|
|
18
19
|
getLastFiscalRecord: boolean;
|
|
19
20
|
getStatus: boolean;
|
|
20
21
|
};
|
|
@@ -54,7 +55,7 @@ export interface FiscalReceipt {
|
|
|
54
55
|
/**
|
|
55
56
|
* The unique sale number
|
|
56
57
|
*/
|
|
57
|
-
uniqueSaleNumber
|
|
58
|
+
uniqueSaleNumber: string;
|
|
58
59
|
/**
|
|
59
60
|
* The items in the receipt
|
|
60
61
|
*/
|