wsp-contracts 1.0.1 → 1.0.3
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/purchase/DTOs.d.ts +29 -30
- package/package.json +1 -1
package/dist/purchase/DTOs.d.ts
CHANGED
|
@@ -3,46 +3,46 @@ export interface PriceDTO {
|
|
|
3
3
|
currency: string;
|
|
4
4
|
amount: number;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface TenantSnapshotDTO {
|
|
7
7
|
uuid: string;
|
|
8
8
|
name: string;
|
|
9
9
|
rates: RatesDTO;
|
|
10
10
|
checkoutUuid: string;
|
|
11
11
|
openShiftUuid: string;
|
|
12
|
-
closeShiftUuid
|
|
12
|
+
closeShiftUuid?: string;
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
16
|
-
uuid
|
|
17
|
-
fullName
|
|
15
|
+
export interface BuyerSnapshotDTO {
|
|
16
|
+
uuid?: string;
|
|
17
|
+
fullName?: string;
|
|
18
18
|
document?: string;
|
|
19
19
|
cellphone?: string;
|
|
20
20
|
reference?: string;
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface SellerSnapshotDTO {
|
|
24
24
|
uuid: string;
|
|
25
25
|
name: string;
|
|
26
26
|
[key: string]: unknown;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface LineItemDiscountDTO {
|
|
29
29
|
code: string;
|
|
30
30
|
amount: number;
|
|
31
31
|
criteria: string;
|
|
32
32
|
comments?: string;
|
|
33
33
|
[key: string]: unknown;
|
|
34
34
|
}
|
|
35
|
-
export interface
|
|
35
|
+
export interface LineItemDTO {
|
|
36
36
|
sku: string;
|
|
37
37
|
code: string;
|
|
38
38
|
name: string;
|
|
39
|
-
description
|
|
39
|
+
description?: string;
|
|
40
40
|
qty: number;
|
|
41
41
|
originalPrice: PriceDTO;
|
|
42
42
|
price: PriceDTO;
|
|
43
|
-
discount:
|
|
44
|
-
total
|
|
45
|
-
totalWithoutGenericDiscount
|
|
43
|
+
discount: LineItemDiscountDTO[];
|
|
44
|
+
total?: number;
|
|
45
|
+
totalWithoutGenericDiscount?: number;
|
|
46
46
|
exchangeRates?: RatesDTO;
|
|
47
47
|
[key: string]: unknown;
|
|
48
48
|
}
|
|
@@ -50,28 +50,27 @@ export interface PurchaseDiscountDTO {
|
|
|
50
50
|
code: string;
|
|
51
51
|
criteria: string;
|
|
52
52
|
amount: number;
|
|
53
|
-
comments
|
|
53
|
+
comments?: string;
|
|
54
54
|
[key: string]: unknown;
|
|
55
55
|
}
|
|
56
56
|
export interface PurchaseDTO {
|
|
57
|
-
uuid
|
|
57
|
+
uuid?: string;
|
|
58
58
|
code: string;
|
|
59
|
-
concept
|
|
59
|
+
concept?: string;
|
|
60
60
|
origin: string;
|
|
61
|
-
status
|
|
62
|
-
startedDate
|
|
63
|
-
cancelledDate
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
deletedAt: string;
|
|
61
|
+
status?: string;
|
|
62
|
+
startedDate?: string;
|
|
63
|
+
cancelledDate?: string;
|
|
64
|
+
finishDate?: string;
|
|
65
|
+
tenant: TenantSnapshotDTO;
|
|
66
|
+
seller: SellerSnapshotDTO;
|
|
67
|
+
buyer: BuyerSnapshotDTO;
|
|
68
|
+
items: LineItemDTO[];
|
|
69
|
+
discounts?: PurchaseDiscountDTO[];
|
|
70
|
+
reference?: string;
|
|
71
|
+
comments?: string;
|
|
72
|
+
createdAt?: string;
|
|
73
|
+
updatedAt?: string;
|
|
74
|
+
deletedAt?: string;
|
|
76
75
|
[key: string]: unknown;
|
|
77
76
|
}
|