@nicefer/types 1.0.92 → 1.0.94
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 +3 -0
- package/dist/types/orders.d.ts +31 -0
- package/dist/types/products.d.ts +1 -0
- package/package.json +1 -1
package/dist/orders.js
CHANGED
package/dist/types/orders.d.ts
CHANGED
|
@@ -61,3 +61,34 @@ 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
|
+
}
|
package/dist/types/products.d.ts
CHANGED