@orderingstack/ordering-types 0.1.2 → 0.1.5
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/dist/cjs/index.d.ts +35 -2
- package/dist/esm/index.d.ts +35 -2
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -270,9 +270,9 @@ export interface TaxSummary {
|
|
|
270
270
|
brutto: number;
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
*
|
|
273
|
+
* OrderExtra interface
|
|
274
274
|
*
|
|
275
|
-
* @interface
|
|
275
|
+
* @interface OrderExtra
|
|
276
276
|
* @manual-verify {string} order needs manual verification
|
|
277
277
|
* @x-collect-time {string} estimated pickup time from aggregator
|
|
278
278
|
* @courier-name {string} courier name from aggregator
|
|
@@ -297,6 +297,7 @@ export interface OrderExtra {
|
|
|
297
297
|
allergies?: string;
|
|
298
298
|
"x-agg-id"?: string;
|
|
299
299
|
"support-order-id"?: string;
|
|
300
|
+
'x-pos-id'?: string;
|
|
300
301
|
}
|
|
301
302
|
export interface OrderLog {
|
|
302
303
|
timestamp?: string;
|
|
@@ -429,3 +430,35 @@ export interface VenueConfig {
|
|
|
429
430
|
timeZone: string;
|
|
430
431
|
warehouse: string;
|
|
431
432
|
}
|
|
433
|
+
export interface IFiscalEntry {
|
|
434
|
+
discount: string;
|
|
435
|
+
item: string;
|
|
436
|
+
price: string;
|
|
437
|
+
qty: string;
|
|
438
|
+
total: string;
|
|
439
|
+
vat: string;
|
|
440
|
+
}
|
|
441
|
+
export interface IFiscalData {
|
|
442
|
+
amount: string;
|
|
443
|
+
entries: IFiscalEntry[];
|
|
444
|
+
payments: Partial<Record<OrderPaymentType, string>>;
|
|
445
|
+
timestamp: string;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* @interface IFiscalizeData
|
|
449
|
+
* @timestamp {string} IsoString
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
452
|
+
export interface IFiscalizeData {
|
|
453
|
+
timestamp: string;
|
|
454
|
+
slip: string;
|
|
455
|
+
printer: string;
|
|
456
|
+
venue: string;
|
|
457
|
+
amount: number;
|
|
458
|
+
extra: {
|
|
459
|
+
FiscalReceiptId: string;
|
|
460
|
+
FiscalDateTime: string;
|
|
461
|
+
FiscalDeviceMemoryNo: string;
|
|
462
|
+
USN: string;
|
|
463
|
+
};
|
|
464
|
+
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -270,9 +270,9 @@ export interface TaxSummary {
|
|
|
270
270
|
brutto: number;
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
|
-
*
|
|
273
|
+
* OrderExtra interface
|
|
274
274
|
*
|
|
275
|
-
* @interface
|
|
275
|
+
* @interface OrderExtra
|
|
276
276
|
* @manual-verify {string} order needs manual verification
|
|
277
277
|
* @x-collect-time {string} estimated pickup time from aggregator
|
|
278
278
|
* @courier-name {string} courier name from aggregator
|
|
@@ -297,6 +297,7 @@ export interface OrderExtra {
|
|
|
297
297
|
allergies?: string;
|
|
298
298
|
"x-agg-id"?: string;
|
|
299
299
|
"support-order-id"?: string;
|
|
300
|
+
'x-pos-id'?: string;
|
|
300
301
|
}
|
|
301
302
|
export interface OrderLog {
|
|
302
303
|
timestamp?: string;
|
|
@@ -429,3 +430,35 @@ export interface VenueConfig {
|
|
|
429
430
|
timeZone: string;
|
|
430
431
|
warehouse: string;
|
|
431
432
|
}
|
|
433
|
+
export interface IFiscalEntry {
|
|
434
|
+
discount: string;
|
|
435
|
+
item: string;
|
|
436
|
+
price: string;
|
|
437
|
+
qty: string;
|
|
438
|
+
total: string;
|
|
439
|
+
vat: string;
|
|
440
|
+
}
|
|
441
|
+
export interface IFiscalData {
|
|
442
|
+
amount: string;
|
|
443
|
+
entries: IFiscalEntry[];
|
|
444
|
+
payments: Partial<Record<OrderPaymentType, string>>;
|
|
445
|
+
timestamp: string;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* @interface IFiscalizeData
|
|
449
|
+
* @timestamp {string} IsoString
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
452
|
+
export interface IFiscalizeData {
|
|
453
|
+
timestamp: string;
|
|
454
|
+
slip: string;
|
|
455
|
+
printer: string;
|
|
456
|
+
venue: string;
|
|
457
|
+
amount: number;
|
|
458
|
+
extra: {
|
|
459
|
+
FiscalReceiptId: string;
|
|
460
|
+
FiscalDateTime: string;
|
|
461
|
+
FiscalDeviceMemoryNo: string;
|
|
462
|
+
USN: string;
|
|
463
|
+
};
|
|
464
|
+
}
|