shopoflex-types 1.0.201 → 1.0.202
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 +19 -2
- package/dist/productCart.d.ts +1 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,24 @@ export interface Address {
|
|
|
63
63
|
details: string;
|
|
64
64
|
}
|
|
65
65
|
export interface PaymentMethod {
|
|
66
|
-
type:
|
|
66
|
+
type: string;
|
|
67
|
+
}
|
|
68
|
+
export interface PaymentMethodInfo {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
type: 'standalone' | 'gateway_required';
|
|
74
|
+
mode: 'online' | 'offline' | 'hybrid';
|
|
75
|
+
channels: ('pos' | 'online')[];
|
|
76
|
+
isActive: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface VendorPaymentMethodConfig {
|
|
79
|
+
methodId: string;
|
|
80
|
+
isActive: boolean;
|
|
81
|
+
channels: ('pos' | 'online')[];
|
|
82
|
+
settings?: Record<string, any>;
|
|
83
|
+
methodInfo?: Pick<PaymentMethodInfo, 'name' | 'description' | 'icon' | 'type' | 'mode'>;
|
|
67
84
|
}
|
|
68
85
|
export interface OrderStatus {
|
|
69
86
|
status: "pending" | "cancelled" | "rejected" | "refunded" | "preparing" | "delivering" | "completed" | "awaiting_payment";
|
|
@@ -454,7 +471,7 @@ export interface IPrintStyleSettings {
|
|
|
454
471
|
footerMessage?: string;
|
|
455
472
|
headerMessage?: string;
|
|
456
473
|
showQRCode?: boolean;
|
|
457
|
-
qrSource?: 'menu' | 'website' | 'custom';
|
|
474
|
+
qrSource?: 'menu' | 'website' | 'custom' | 'payment_link';
|
|
458
475
|
customQrUrl?: string;
|
|
459
476
|
qrLabel?: string;
|
|
460
477
|
}
|
package/dist/productCart.d.ts
CHANGED
|
@@ -238,6 +238,7 @@ export interface OrderType {
|
|
|
238
238
|
printed?: boolean;
|
|
239
239
|
notes?: string;
|
|
240
240
|
refunded?: boolean;
|
|
241
|
+
generatePaymentLink?: boolean;
|
|
241
242
|
addTimelineEntry?(action: string, userId?: mongoose.Types.ObjectId | string): this;
|
|
242
243
|
getWhoDidAction?(action: string): any;
|
|
243
244
|
getUserTimeline?(userId: mongoose.Types.ObjectId | string): any[];
|