@vita-mojo/types 1.0.9-VMOS-9481-e1fc624-389-rc.0 → 1.0.9-VMOS-9481-3fb5aaf-397-rc.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vita-mojo/types",
3
- "version": "1.0.9-VMOS-9481-e1fc624-389-rc.0",
3
+ "version": "1.0.9-VMOS-9481-3fb5aaf-397-rc.0",
4
4
  "peerDependencies": {
5
5
  "tslib": "2.4.1"
6
6
  },
@@ -57,6 +57,7 @@ export interface Item {
57
57
  bundleVATOverwriteEatin?: number;
58
58
  refundTaxAmount?: number;
59
59
  refundUUID?: string;
60
+ salesTax?: number;
60
61
  /**
61
62
  * total price for item, calculated on frontend
62
63
  * @example:
@@ -3,4 +3,6 @@ export interface OrderStoreSettings {
3
3
  isPaidOrdersStraightToProduction: boolean;
4
4
  'preorder.delivery.fee': string;
5
5
  'preorder.delivery.fee.vatRate': number;
6
+ salesTaxRate: string;
7
+ 'preorder.delivery.polygons': string;
6
8
  }
@@ -9,6 +9,7 @@ import { Payment } from './payment';
9
9
  import { PrintLog } from './print-log';
10
10
  import { Promotion } from './promotion';
11
11
  import { OrderSettings } from './settings';
12
+ import { StoreDeliveryArea } from './storeDeliveryAreas';
12
13
  import * as Subway from './subway';
13
14
  import { TenantSettings } from './tenant-settings';
14
15
  import { Timeslot } from './timeslot';
@@ -72,4 +73,5 @@ export interface Order {
72
73
  externalValidationData?: Subway.Validation;
73
74
  orderNumber?: string;
74
75
  fiscalization?: Fiscalization;
76
+ storeDeliveryAreas?: Array<StoreDeliveryArea>;
75
77
  }
@@ -0,0 +1,16 @@
1
+ type DeliveryFee = {
2
+ fee: number;
3
+ amount: [number, number] | [number, undefined];
4
+ };
5
+ export type StoreDeliveryArea = {
6
+ name: string;
7
+ uuid: string;
8
+ deliveryFees: DeliveryFee[];
9
+ positioningData: {
10
+ path: {
11
+ lat: number;
12
+ lng: number;
13
+ }[];
14
+ };
15
+ };
16
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=storeDeliveryAreas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeDeliveryAreas.js","sourceRoot":"","sources":["../../../../../packages/types/src/order/storeDeliveryAreas.ts"],"names":[],"mappings":""}
@@ -7,6 +7,8 @@ export interface UserAddress {
7
7
  phoneNumber: string;
8
8
  postCode?: string;
9
9
  town?: string;
10
+ latitude?: string;
11
+ longitude?: string;
10
12
  }
11
13
  export interface UserRole {
12
14
  description: string;