shopoflex-types 1.0.202 → 1.0.204

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.
Files changed (2) hide show
  1. package/dist/common.d.ts +15 -1
  2. package/package.json +1 -1
package/dist/common.d.ts CHANGED
@@ -65,6 +65,19 @@ export interface Address {
65
65
  export interface PaymentMethod {
66
66
  type: string;
67
67
  }
68
+ export interface PaymentMethodSettingField {
69
+ name: string;
70
+ label: string;
71
+ type: 'text' | 'password' | 'email' | 'url' | 'select';
72
+ required: boolean;
73
+ placeholder?: string;
74
+ description?: string;
75
+ options?: string[];
76
+ }
77
+ export interface PaymentMethodSettings {
78
+ requiredFields: PaymentMethodSettingField[];
79
+ documentation?: string;
80
+ }
68
81
  export interface PaymentMethodInfo {
69
82
  id: string;
70
83
  name: string;
@@ -74,13 +87,14 @@ export interface PaymentMethodInfo {
74
87
  mode: 'online' | 'offline' | 'hybrid';
75
88
  channels: ('pos' | 'online')[];
76
89
  isActive: boolean;
90
+ settings?: PaymentMethodSettings;
77
91
  }
78
92
  export interface VendorPaymentMethodConfig {
79
93
  methodId: string;
80
94
  isActive: boolean;
81
95
  channels: ('pos' | 'online')[];
82
96
  settings?: Record<string, any>;
83
- methodInfo?: Pick<PaymentMethodInfo, 'name' | 'description' | 'icon' | 'type' | 'mode'>;
97
+ methodInfo?: Pick<PaymentMethodInfo, 'name' | 'description' | 'icon' | 'type' | 'mode' | 'settings'>;
84
98
  }
85
99
  export interface OrderStatus {
86
100
  status: "pending" | "cancelled" | "rejected" | "refunded" | "preparing" | "delivering" | "completed" | "awaiting_payment";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.202",
3
+ "version": "1.0.204",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",