wsp-contracts 1.0.22 → 1.0.23

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.
@@ -76,6 +76,9 @@ export interface PurchaseDTO {
76
76
  appliedDiscounts?: number;
77
77
  rounding?: number;
78
78
  total?: number;
79
+ overpaidAmount?: number;
80
+ refundedAmount?: number;
81
+ refundedItems?: LineItemDTO[];
79
82
  createdAt?: string;
80
83
  updatedAt?: string;
81
84
  deletedAt?: string;
@@ -105,3 +108,24 @@ export interface PurchaseRefundDTO {
105
108
  purchase: PurchaseRefundInfoDTO;
106
109
  payments: PurchasePaymentDTO[];
107
110
  }
111
+ export interface RefundDTO {
112
+ uuid: string;
113
+ tenantUuid: string;
114
+ purchaseUuid: string;
115
+ checkoutUuid: string;
116
+ shiftUuid: string;
117
+ sellerUuid: string;
118
+ sellerName: string;
119
+ buyerName: string;
120
+ purchaseCode: string;
121
+ status: string;
122
+ items: LineItemDTO[];
123
+ refundedItems: LineItemDTO[];
124
+ amount: number;
125
+ finishDate: string;
126
+ createdAt: string;
127
+ }
128
+ export interface BuffetOperationDTO {
129
+ type: 'PURCHASE' | 'REFUND';
130
+ data: PurchaseDTO | RefundDTO;
131
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wsp-contracts",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "DTOs y event-schemas compartidos entre microservicios de WonaSports. Solo tipos (declarations).",
5
5
  "license": "MIT",
6
6
  "files": [