@orderingstack/ordering-types 0.1.2 → 0.1.6

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.
@@ -270,9 +270,9 @@ export interface TaxSummary {
270
270
  brutto: number;
271
271
  }
272
272
  /**
273
- * IOrderExtra interface
273
+ * OrderExtra interface
274
274
  *
275
- * @interface IOrderExtra
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;
@@ -306,23 +307,23 @@ export interface OrderLog {
306
307
  lines?: string[];
307
308
  }
308
309
  export interface OrderLine {
309
- id: string;
310
- creator?: string;
311
- created: string;
312
- updated: string;
313
- source: string;
314
- quantity: number;
315
- price: number;
316
- productId: string;
317
- product: OrderProduct;
318
- productConfig: ProductConfig;
319
- bom: Object;
320
- status: OrderLineStatus;
310
+ bom?: Object;
321
311
  comments?: OrderComment[];
312
+ created: string;
313
+ creator?: string;
322
314
  discounts?: Discount[];
323
315
  extra: Extra;
324
316
  hash: string;
325
- total: number;
317
+ id: string;
318
+ price: string;
319
+ product: OrderProduct;
320
+ productConfig: ProductConfig;
321
+ productId: string;
322
+ quantity: number;
323
+ source: string;
324
+ status: OrderLineStatus;
325
+ total: string;
326
+ updated: string;
326
327
  }
327
328
  export interface SlipEntry {
328
329
  item: 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
+ }
@@ -270,9 +270,9 @@ export interface TaxSummary {
270
270
  brutto: number;
271
271
  }
272
272
  /**
273
- * IOrderExtra interface
273
+ * OrderExtra interface
274
274
  *
275
- * @interface IOrderExtra
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;
@@ -306,23 +307,23 @@ export interface OrderLog {
306
307
  lines?: string[];
307
308
  }
308
309
  export interface OrderLine {
309
- id: string;
310
- creator?: string;
311
- created: string;
312
- updated: string;
313
- source: string;
314
- quantity: number;
315
- price: number;
316
- productId: string;
317
- product: OrderProduct;
318
- productConfig: ProductConfig;
319
- bom: Object;
320
- status: OrderLineStatus;
310
+ bom?: Object;
321
311
  comments?: OrderComment[];
312
+ created: string;
313
+ creator?: string;
322
314
  discounts?: Discount[];
323
315
  extra: Extra;
324
316
  hash: string;
325
- total: number;
317
+ id: string;
318
+ price: string;
319
+ product: OrderProduct;
320
+ productConfig: ProductConfig;
321
+ productId: string;
322
+ quantity: number;
323
+ source: string;
324
+ status: OrderLineStatus;
325
+ total: string;
326
+ updated: string;
326
327
  }
327
328
  export interface SlipEntry {
328
329
  item: 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "0.1.2",
3
+ "version": "0.1.6",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",