shopoflex-types 1.0.72 → 1.0.73
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/common.d.ts +5 -10
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -33,15 +33,6 @@ export declare enum TemplateId {
|
|
|
33
33
|
TEMPLATE_4 = "template_4",
|
|
34
34
|
TEMPLATE_5 = "template_5"
|
|
35
35
|
}
|
|
36
|
-
export declare enum OrderStatus {
|
|
37
|
-
Pending = "pending",
|
|
38
|
-
Cancelled = "cancelled",
|
|
39
|
-
Rejected = "rejected",
|
|
40
|
-
Refunded = "refunded",
|
|
41
|
-
Preparing = "preparing",
|
|
42
|
-
Delivering = "delivering",
|
|
43
|
-
Completed = "completed"
|
|
44
|
-
}
|
|
45
36
|
export interface FileType {
|
|
46
37
|
previewUrl?: string;
|
|
47
38
|
type?: string;
|
|
@@ -300,7 +291,7 @@ export interface OrderType {
|
|
|
300
291
|
cart?: Cart;
|
|
301
292
|
paymentMethod?: PaymentMethodType;
|
|
302
293
|
address?: Address;
|
|
303
|
-
status?:
|
|
294
|
+
status?: OrderStatusType;
|
|
304
295
|
paid?: boolean;
|
|
305
296
|
shipping: Shipping;
|
|
306
297
|
createdAt?: Date;
|
|
@@ -498,7 +489,11 @@ export interface NotificationType {
|
|
|
498
489
|
export interface PaymentMethod {
|
|
499
490
|
type: 'cash' | 'card' | 'knet' | 'bank_transfer' | 'wallet' | 'external_link' | 'crypto' | 'whish' | 'paypal' | 'gift_card';
|
|
500
491
|
}
|
|
492
|
+
export interface OrderStatus {
|
|
493
|
+
status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
|
|
494
|
+
}
|
|
501
495
|
export type PaymentMethodType = PaymentMethod['type'];
|
|
496
|
+
export type OrderStatusType = OrderStatus['status'];
|
|
502
497
|
export interface SelectionsState {
|
|
503
498
|
address?: Address;
|
|
504
499
|
branch?: IBranch;
|