@nicefer/types 1.0.93 → 1.0.95

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/orders.js CHANGED
@@ -3,3 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  ;
4
4
  ;
5
5
  ;
6
+ ;
7
+ ;
8
+ ;
@@ -61,3 +61,40 @@ export interface OrderInDB {
61
61
  notes?: string;
62
62
  }
63
63
  export type OrderErrorCodes = 'ERR_CREATE_ORDER' | 'ERR_ORDER_INFO' | 'ERR_CHANGE_ORDER_STATUS';
64
+ /**
65
+ * Interfaz para comunicación con la API
66
+ */
67
+ export interface ConfirmOrderPayload {
68
+ orderReadyToPay: OrderReady;
69
+ paymentMethod: OrderInDB['paymentMethod'];
70
+ shippingMethod: OrderInDB['shippingMethod'];
71
+ deliveryAddress: OrderInDB['deliveryAddress'];
72
+ gift?: {
73
+ fullname: string;
74
+ msg?: string | null | undefined;
75
+ };
76
+ }
77
+ /**
78
+ * Orden lista para que el usuario decida pagar
79
+ */
80
+ export interface OrderReady {
81
+ warehouseId: string;
82
+ products: ProductWithVariantInBag[];
83
+ paymentMethod?: OrderInDB['paymentMethod'];
84
+ shippingMethod?: DeliveryMethod;
85
+ deliveryAddress?: UserAddressInDB;
86
+ gift?: {
87
+ fullname: string;
88
+ msg?: string | null | undefined;
89
+ };
90
+ subtotalPrice: number;
91
+ shippingPrice: number;
92
+ subtotalWithDiscount: number;
93
+ totalPrice: number;
94
+ }
95
+ /**
96
+ * Ordenes listas para que el usuario decida pagar
97
+ */
98
+ export interface OrdersReady {
99
+ [warehouseId: string]: OrderReady;
100
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicefer/types",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "Tipos compartidos para Nicefer",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",