@wix/auto_sdk_ecom_checkout 1.0.38 → 1.0.39

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.mjs CHANGED
@@ -2553,6 +2553,79 @@ var onCheckoutCreated = EventDefinition(
2553
2553
  ])
2554
2554
  )
2555
2555
  )();
2556
+ var onCheckoutDeleted = EventDefinition(
2557
+ "wix.ecom.v1.checkout_deleted",
2558
+ true,
2559
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
2560
+ transformPaths3(event, [
2561
+ {
2562
+ transformFn: transformRESTTimestampToSDKTimestamp2,
2563
+ paths: [
2564
+ { path: "undefined.createdDate" },
2565
+ { path: "undefined.updatedDate" },
2566
+ {
2567
+ path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
2568
+ },
2569
+ { path: "undefined.lineItems.serviceProperties.scheduledDate" },
2570
+ {
2571
+ path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
2572
+ },
2573
+ {
2574
+ path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
2575
+ },
2576
+ {
2577
+ path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
2578
+ },
2579
+ {
2580
+ path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
2581
+ },
2582
+ {
2583
+ path: "undefined.membershipOptions.eligibleMemberships.expirationDate"
2584
+ },
2585
+ {
2586
+ path: "undefined.membershipOptions.invalidMemberships.membership.expirationDate"
2587
+ },
2588
+ { path: "undefined.subscriptionCharges.charges.cycleBillingDate" },
2589
+ { path: "metadata.eventTime" }
2590
+ ]
2591
+ },
2592
+ {
2593
+ transformFn: transformRESTPageURLV2ToSDKPageURLV22,
2594
+ paths: [{ path: "undefined.lineItems.url" }]
2595
+ },
2596
+ {
2597
+ transformFn: transformRESTImageToSDKImage2,
2598
+ paths: [
2599
+ { path: "undefined.lineItems.media" },
2600
+ { path: "undefined.lineItems.catalogOverrideFields.image" }
2601
+ ]
2602
+ },
2603
+ {
2604
+ transformFn: transformRESTFloatToSDKFloat2,
2605
+ paths: [
2606
+ { path: "undefined.lineItems.physicalProperties.weight" },
2607
+ {
2608
+ path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
2609
+ },
2610
+ { path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
2611
+ ]
2612
+ },
2613
+ {
2614
+ transformFn: transformRESTAddressToSDKAddress2,
2615
+ paths: [
2616
+ { path: "undefined.billingInfo.address" },
2617
+ { path: "undefined.shippingInfo.shippingDestination.address" },
2618
+ {
2619
+ path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
2620
+ },
2621
+ {
2622
+ path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
2623
+ }
2624
+ ]
2625
+ }
2626
+ ])
2627
+ )
2628
+ )();
2556
2629
  var onCheckoutUpdated = EventDefinition(
2557
2630
  "wix.ecom.v1.checkout_updated",
2558
2631
  true,
@@ -2651,6 +2724,7 @@ var updateLineItemsQuantity4 = /* @__PURE__ */ createRESTModule(updateLineItemsQ
2651
2724
  var getCheckoutPaymentSettings4 = /* @__PURE__ */ createRESTModule(getCheckoutPaymentSettings3);
2652
2725
  var onCheckoutCompleted2 = createEventModule(onCheckoutCompleted);
2653
2726
  var onCheckoutCreated2 = createEventModule(onCheckoutCreated);
2727
+ var onCheckoutDeleted2 = createEventModule(onCheckoutDeleted);
2654
2728
  var onCheckoutUpdated2 = createEventModule(onCheckoutUpdated);
2655
2729
  export {
2656
2730
  AdditionalFeeSource,
@@ -2697,6 +2771,7 @@ export {
2697
2771
  markCheckoutAsCompletedAndRedirectToUrl4 as markCheckoutAsCompletedAndRedirectToUrl,
2698
2772
  onCheckoutCompleted2 as onCheckoutCompleted,
2699
2773
  onCheckoutCreated2 as onCheckoutCreated,
2774
+ onCheckoutDeleted2 as onCheckoutDeleted,
2700
2775
  onCheckoutUpdated2 as onCheckoutUpdated,
2701
2776
  removeCoupon4 as removeCoupon,
2702
2777
  removeGiftCard4 as removeGiftCard,