wsp-contracts 1.0.0 → 1.0.1

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.
@@ -0,0 +1,77 @@
1
+ import { RatesDTO } from "../rates/DTOs";
2
+ export interface PriceDTO {
3
+ currency: string;
4
+ amount: number;
5
+ }
6
+ export interface PurchaseTenantDTO {
7
+ uuid: string;
8
+ name: string;
9
+ rates: RatesDTO;
10
+ checkoutUuid: string;
11
+ openShiftUuid: string;
12
+ closeShiftUuid: string;
13
+ [key: string]: unknown;
14
+ }
15
+ export interface PurchaseBuyerDTO {
16
+ uuid: string;
17
+ fullName: string;
18
+ document?: string;
19
+ cellphone?: string;
20
+ reference?: string;
21
+ [key: string]: unknown;
22
+ }
23
+ export interface PurchaseSellerDTO {
24
+ uuid: string;
25
+ name: string;
26
+ [key: string]: unknown;
27
+ }
28
+ export interface PurchaseItemDiscountDTO {
29
+ code: string;
30
+ amount: number;
31
+ criteria: string;
32
+ comments?: string;
33
+ [key: string]: unknown;
34
+ }
35
+ export interface PurchaseItemDTO {
36
+ sku: string;
37
+ code: string;
38
+ name: string;
39
+ description: string;
40
+ qty: number;
41
+ originalPrice: PriceDTO;
42
+ price: PriceDTO;
43
+ discount: PurchaseItemDiscountDTO[];
44
+ total: number;
45
+ totalWithoutGenericDiscount: number;
46
+ exchangeRates?: RatesDTO;
47
+ [key: string]: unknown;
48
+ }
49
+ export interface PurchaseDiscountDTO {
50
+ code: string;
51
+ criteria: string;
52
+ amount: number;
53
+ comments: string;
54
+ [key: string]: unknown;
55
+ }
56
+ export interface PurchaseDTO {
57
+ uuid: string;
58
+ code: string;
59
+ concept: string;
60
+ origin: string;
61
+ status: string;
62
+ startedDate: string;
63
+ cancelledDate: string;
64
+ lastPaymentDate: string;
65
+ finishDate: string;
66
+ tenant: PurchaseTenantDTO;
67
+ seller: PurchaseSellerDTO;
68
+ buyer: PurchaseBuyerDTO;
69
+ items: PurchaseItemDTO[];
70
+ discounts: PurchaseDiscountDTO[];
71
+ reference: string;
72
+ comments: string;
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ deletedAt: string;
76
+ [key: string]: unknown;
77
+ }
@@ -1 +1 @@
1
- export * from './PurchaseDto';
1
+ export * from './DTOs';
@@ -1 +1 @@
1
- export * from './RatesDTO';
1
+ export * from './DTOs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wsp-contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "DTOs y event-schemas compartidos entre microservicios de WonaSports. Solo tipos (declarations).",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- export interface PurchaseDto {
2
- uuid: string;
3
- }
File without changes