feeef 0.6.3 → 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.
package/build/index.js CHANGED
@@ -3058,7 +3058,8 @@ var generatePublicStoreIntegrations = (integrations) => {
3058
3058
  webhooks,
3059
3059
  ai,
3060
3060
  security,
3061
- customFields
3061
+ customFields,
3062
+ payment
3062
3063
  } = integrations;
3063
3064
  return {
3064
3065
  metaPixel: generatePublicStoreIntegrationMetaPixel(metaPixel) || null,
@@ -3070,7 +3071,8 @@ var generatePublicStoreIntegrations = (integrations) => {
3070
3071
  orderdz: generatePublicStoreIntegrationOrderdz(orderdz) || null,
3071
3072
  webhooks: generatePublicStoreIntegrationWebhooks(webhooks) || null,
3072
3073
  security: generatePublicStoreIntegrationSecurity(security) || null,
3073
- customFields: generatePublicStoreIntegrationCustomFields(customFields) || null
3074
+ customFields: generatePublicStoreIntegrationCustomFields(customFields) || null,
3075
+ payment: generatePublicStoreIntegrationPayment(payment) || null
3074
3076
  };
3075
3077
  };
3076
3078
  var generatePublicStoreIntegrationCustomFields = (customFields) => {
@@ -3170,6 +3172,19 @@ var generatePublicStoreIntegrationSecurity = (security) => {
3170
3172
  active: security.active
3171
3173
  };
3172
3174
  };
3175
+ var generatePublicStoreIntegrationPayment = (payment) => {
3176
+ if (!payment) return null;
3177
+ return {
3178
+ active: payment.active,
3179
+ methods: payment.methods.map((method) => ({
3180
+ id: method.id,
3181
+ name: method.name,
3182
+ active: method.active
3183
+ // API keys, client secrets, etc. are intentionally excluded
3184
+ })),
3185
+ defaultMethod: payment.defaultMethod
3186
+ };
3187
+ };
3173
3188
  var StoreMemberRole = /* @__PURE__ */ ((StoreMemberRole2) => {
3174
3189
  StoreMemberRole2["editor"] = "editor";
3175
3190
  StoreMemberRole2["viewer"] = "viewer";
@@ -3205,12 +3220,13 @@ var StoreSubscriptionType = /* @__PURE__ */ ((StoreSubscriptionType2) => {
3205
3220
  // src/core/entities/product.ts
3206
3221
  function generatePublicIntegrationsData(data) {
3207
3222
  if (!data) return data;
3208
- const { metaPixelData, tiktokPixelData, googleAnalyticsData, googleTagsData } = data;
3223
+ const { metaPixelData, tiktokPixelData, googleAnalyticsData, googleTagsData, paymentMethodData } = data;
3209
3224
  return {
3210
3225
  metaPixelData: generatePublicIntegrationsDataMetaPixel(metaPixelData),
3211
3226
  tiktokPixelData: generatePublicIntegrationsDataTiktokPixel(tiktokPixelData),
3212
3227
  googleAnalyticsData: generatePublicIntegrationsDataGoogleAnalytics(googleAnalyticsData),
3213
- googleTagsData: generatePublicIntegrationsDataGoogleTag(googleTagsData)
3228
+ googleTagsData: generatePublicIntegrationsDataGoogleTag(googleTagsData),
3229
+ paymentMethodData: generatePublicIntegrationsDataPaymentMethod(paymentMethodData)
3214
3230
  };
3215
3231
  }
3216
3232
  function generatePublicIntegrationsDataMetaPixel(data) {
@@ -3265,6 +3281,13 @@ var TiktokPixelEvent = /* @__PURE__ */ ((TiktokPixelEvent2) => {
3265
3281
  TiktokPixelEvent2["purchase"] = "Purchase";
3266
3282
  return TiktokPixelEvent2;
3267
3283
  })(TiktokPixelEvent || {});
3284
+ function generatePublicIntegrationsDataPaymentMethod(data) {
3285
+ if (!data) return data;
3286
+ return {
3287
+ methodId: data.methodId,
3288
+ enabled: data.enabled
3289
+ };
3290
+ }
3268
3291
  var ProductStatus = /* @__PURE__ */ ((ProductStatus2) => {
3269
3292
  ProductStatus2["draft"] = "draft";
3270
3293
  ProductStatus2["published"] = "published";
@@ -3463,6 +3486,7 @@ export {
3463
3486
  generatePublicIntegrationsDataGoogleSheets,
3464
3487
  generatePublicIntegrationsDataGoogleTag,
3465
3488
  generatePublicIntegrationsDataMetaPixel,
3489
+ generatePublicIntegrationsDataPaymentMethod,
3466
3490
  generatePublicIntegrationsDataTiktokPixel,
3467
3491
  generatePublicStoreIntegrationAi,
3468
3492
  generatePublicStoreIntegrationCustomFields,
@@ -3471,6 +3495,7 @@ export {
3471
3495
  generatePublicStoreIntegrationGoogleTags,
3472
3496
  generatePublicStoreIntegrationMetaPixel,
3473
3497
  generatePublicStoreIntegrationOrderdz,
3498
+ generatePublicStoreIntegrationPayment,
3474
3499
  generatePublicStoreIntegrationSecurity,
3475
3500
  generatePublicStoreIntegrationTiktokPixel,
3476
3501
  generatePublicStoreIntegrationWebhooks,