shopoflex-types 1.0.200 → 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 CHANGED
@@ -63,7 +63,24 @@ export interface Address {
63
63
  details: string;
64
64
  }
65
65
  export interface PaymentMethod {
66
- type: "cash" | "card_terminal" | "knet" | "bank_transfer" | "wallet" | "external_link" | "crypto" | "whish" | "paypal" | "gift_card" | "stc_pay" | "benefit" | "apple_pay" | "google_pay" | "online_card";
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";
@@ -439,6 +456,9 @@ export interface IPrintStyleSettings {
439
456
  fontSize?: 'small' | 'medium' | 'large';
440
457
  showLogo?: boolean;
441
458
  showBusinessName?: boolean;
459
+ showDescription?: boolean;
460
+ showBranchName?: boolean;
461
+ branchNamePosition?: 'top' | 'bottom';
442
462
  showAddress?: boolean;
443
463
  addressPosition?: 'header' | 'footer';
444
464
  showPhone?: boolean;
@@ -451,7 +471,7 @@ export interface IPrintStyleSettings {
451
471
  footerMessage?: string;
452
472
  headerMessage?: string;
453
473
  showQRCode?: boolean;
454
- qrSource?: 'menu' | 'website' | 'custom';
474
+ qrSource?: 'menu' | 'website' | 'custom' | 'payment_link';
455
475
  customQrUrl?: string;
456
476
  qrLabel?: string;
457
477
  }
@@ -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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.200",
3
+ "version": "1.0.202",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",