feeef 0.6.4 → 0.6.5
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.
|
@@ -52,6 +52,7 @@ export interface OrderEntity {
|
|
|
52
52
|
confirmerId: string | null;
|
|
53
53
|
customFields?: Record<string, any> | null;
|
|
54
54
|
metadata: OrderMetadata;
|
|
55
|
+
claims?: Record<string, any> | null;
|
|
55
56
|
status: OrderStatus;
|
|
56
57
|
paymentStatus: PaymentStatus;
|
|
57
58
|
deliveryStatus: DeliveryStatus;
|
|
@@ -54,6 +54,7 @@ export interface IntegrationsData {
|
|
|
54
54
|
googleAnalyticsData?: GoogleAnalyticsData | null;
|
|
55
55
|
googleTagsData?: GoogleTagData | null;
|
|
56
56
|
googleSheetsData?: GoogleSheetsData | null;
|
|
57
|
+
paymentMethodData?: PaymentMethodData | null;
|
|
57
58
|
}
|
|
58
59
|
export declare enum MetaPixelEvent {
|
|
59
60
|
none = "none",
|
|
@@ -113,6 +114,21 @@ export interface PublicGoogleTagData {
|
|
|
113
114
|
}
|
|
114
115
|
export interface PublicGoogleSheetsData {
|
|
115
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Payment method data for product-level override
|
|
119
|
+
*/
|
|
120
|
+
export interface PaymentMethodData {
|
|
121
|
+
methodId?: string;
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Public payment method data (same structure, no sensitive data)
|
|
126
|
+
*/
|
|
127
|
+
export interface PublicPaymentMethodData {
|
|
128
|
+
methodId?: string;
|
|
129
|
+
enabled: boolean;
|
|
130
|
+
}
|
|
131
|
+
export declare function generatePublicIntegrationsDataPaymentMethod(data: PaymentMethodData | null | undefined): PublicPaymentMethodData | null | undefined;
|
|
116
132
|
export interface ProductAddon {
|
|
117
133
|
photoUrl?: string;
|
|
118
134
|
title: string;
|
|
@@ -76,6 +76,12 @@ export declare const generatePublicStoreIntegrationWebhooks: (webhooks: Webhooks
|
|
|
76
76
|
* Only exposes non-sensitive information, keeping backend protection details private for security.
|
|
77
77
|
*/
|
|
78
78
|
export declare const generatePublicStoreIntegrationSecurity: (security: SecurityIntegration | null | undefined) => PublicSecurityIntegration | null | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Generates public payment integration data from private integration data.
|
|
81
|
+
* Only exposes non-sensitive information (method IDs, names, active status).
|
|
82
|
+
* Sensitive data like API keys, client secrets are NOT exposed.
|
|
83
|
+
*/
|
|
84
|
+
export declare const generatePublicStoreIntegrationPayment: (payment: PaymentIntegration | null | undefined) => PublicPaymentIntegration | null | undefined;
|
|
79
85
|
/**
|
|
80
86
|
* Public interface for OrderDZ integration.
|
|
81
87
|
* Contains only non-sensitive information that can be safely exposed to clients.
|
|
@@ -150,6 +156,22 @@ export interface PublicCustomFieldsIntegration {
|
|
|
150
156
|
fields: PublicCustomField[];
|
|
151
157
|
active: boolean;
|
|
152
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Public payment method (no sensitive data like API keys)
|
|
161
|
+
*/
|
|
162
|
+
export interface PublicPaymentMethod {
|
|
163
|
+
id: string;
|
|
164
|
+
name: string;
|
|
165
|
+
active: boolean;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Public payment integration (exposes only non-sensitive information)
|
|
169
|
+
*/
|
|
170
|
+
export interface PublicPaymentIntegration {
|
|
171
|
+
active: boolean;
|
|
172
|
+
methods: PublicPaymentMethod[];
|
|
173
|
+
defaultMethod?: string;
|
|
174
|
+
}
|
|
153
175
|
export interface PublicStoreIntegrations {
|
|
154
176
|
metaPixel: PublicMetaPixelIntegration | null;
|
|
155
177
|
tiktokPixel: PublicTiktokPixelIntegration | null;
|
|
@@ -161,6 +183,7 @@ export interface PublicStoreIntegrations {
|
|
|
161
183
|
webhooks: PublicWebhooksIntegration | null;
|
|
162
184
|
security: PublicSecurityIntegration | null;
|
|
163
185
|
customFields: PublicCustomFieldsIntegration | null;
|
|
186
|
+
payment: PublicPaymentIntegration | null;
|
|
164
187
|
}
|
|
165
188
|
export declare enum StoreMemberRole {
|
|
166
189
|
editor = "editor",
|
|
@@ -473,6 +496,27 @@ export interface WebhooksIntegration {
|
|
|
473
496
|
/** Additional metadata for the integration */
|
|
474
497
|
metadata: Record<string, any>;
|
|
475
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* Payment method configuration (includes sensitive data like API keys)
|
|
501
|
+
*/
|
|
502
|
+
export interface PaymentMethodConfig {
|
|
503
|
+
id: string;
|
|
504
|
+
name: string;
|
|
505
|
+
active: boolean;
|
|
506
|
+
apiKey?: string;
|
|
507
|
+
clientId?: string;
|
|
508
|
+
clientSecret?: string;
|
|
509
|
+
[key: string]: any;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Payment integration configuration
|
|
513
|
+
*/
|
|
514
|
+
export interface PaymentIntegration {
|
|
515
|
+
active: boolean;
|
|
516
|
+
methods: PaymentMethodConfig[];
|
|
517
|
+
defaultMethod?: string;
|
|
518
|
+
metadata?: Record<string, any>;
|
|
519
|
+
}
|
|
476
520
|
export interface StoreIntegrations {
|
|
477
521
|
[key: string]: any;
|
|
478
522
|
metadata?: Record<string, any>;
|
|
@@ -484,6 +528,7 @@ export interface StoreIntegrations {
|
|
|
484
528
|
ai?: AiIntegration;
|
|
485
529
|
orderdz?: OrderdzIntegration;
|
|
486
530
|
webhooks?: WebhooksIntegration;
|
|
531
|
+
payment?: PaymentIntegration;
|
|
487
532
|
sms?: any;
|
|
488
533
|
telegram?: any;
|
|
489
534
|
yalidine?: any;
|