@wix/auto_sdk_ecom_checkout 1.0.144 → 1.0.146

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.
@@ -2375,11 +2375,13 @@ declare enum NameInLineItem {
2375
2375
  /** @enumType */
2376
2376
  type NameInLineItemWithLiterals = NameInLineItem | 'LINE_ITEM_DEFAULT';
2377
2377
  declare enum SuggestedFix {
2378
+ /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
2379
+ UNKNOWN_SUGGESTED_FIX = "UNKNOWN_SUGGESTED_FIX",
2378
2380
  /** The line item should be removed from the cart or checkout to resolve the violation. */
2379
2381
  REMOVE_LINE_ITEM = "REMOVE_LINE_ITEM"
2380
2382
  }
2381
2383
  /** @enumType */
2382
- type SuggestedFixWithLiterals = SuggestedFix | 'REMOVE_LINE_ITEM';
2384
+ type SuggestedFixWithLiterals = SuggestedFix | 'UNKNOWN_SUGGESTED_FIX' | 'REMOVE_LINE_ITEM';
2383
2385
  /** General (other) violation. */
2384
2386
  interface Other {
2385
2387
  /** Location on a checkout or a cart page where a general (other) violation will be displayed. */
@@ -3079,6 +3081,18 @@ interface CreateOrderAndChargeRequest {
3079
3081
  savePaymentMethod?: boolean;
3080
3082
  /** Whether to authorize the payment and delay the capture. */
3081
3083
  delayCapture?: boolean;
3084
+ /**
3085
+ * Whether the order is being placed from within a native mobile app
3086
+ * (iOS or Android) where the buyer paid via the platform's in-app
3087
+ * purchase system.
3088
+ * When true and the order contains subscription items,
3089
+ * Wix does not collect recurring renewal charges — the mobile platform's
3090
+ * in-app purchase system handles all subsequent renewal billing.
3091
+ *
3092
+ * Default: `false`
3093
+ * @internal
3094
+ */
3095
+ inAppPurchase?: boolean;
3082
3096
  }
3083
3097
  interface CreateOrderAndChargeResponse extends CreateOrderAndChargeResponseIdOneOf {
3084
3098
  /**
@@ -4384,6 +4398,18 @@ interface CreateOrderAndChargeOptions {
4384
4398
  savePaymentMethod?: boolean;
4385
4399
  /** Whether to authorize the payment and delay the capture. */
4386
4400
  delayCapture?: boolean;
4401
+ /**
4402
+ * Whether the order is being placed from within a native mobile app
4403
+ * (iOS or Android) where the buyer paid via the platform's in-app
4404
+ * purchase system.
4405
+ * When true and the order contains subscription items,
4406
+ * Wix does not collect recurring renewal charges — the mobile platform's
4407
+ * in-app purchase system handles all subsequent renewal billing.
4408
+ *
4409
+ * Default: `false`
4410
+ * @internal
4411
+ */
4412
+ inAppPurchase?: boolean;
4387
4413
  }
4388
4414
  /**
4389
4415
  * Marks a checkout as completed and redirects to a specified URL.
@@ -1584,6 +1584,7 @@ var NameInLineItem = /* @__PURE__ */ ((NameInLineItem2) => {
1584
1584
  return NameInLineItem2;
1585
1585
  })(NameInLineItem || {});
1586
1586
  var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
1587
+ SuggestedFix2["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
1587
1588
  SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
1588
1589
  return SuggestedFix2;
1589
1590
  })(SuggestedFix || {});
@@ -2264,7 +2265,8 @@ async function createOrderAndCharge2(_id, options) {
2264
2265
  id: _id,
2265
2266
  paymentToken: options?.paymentToken,
2266
2267
  savePaymentMethod: options?.savePaymentMethod,
2267
- delayCapture: options?.delayCapture
2268
+ delayCapture: options?.delayCapture,
2269
+ inAppPurchase: options?.inAppPurchase
2268
2270
  });
2269
2271
  const reqOpts = createOrderAndCharge(payload);
2270
2272
  sideEffects?.onSiteCall?.();
@@ -2281,7 +2283,8 @@ async function createOrderAndCharge2(_id, options) {
2281
2283
  id: "$[0]",
2282
2284
  paymentToken: "$[1].paymentToken",
2283
2285
  savePaymentMethod: "$[1].savePaymentMethod",
2284
- delayCapture: "$[1].delayCapture"
2286
+ delayCapture: "$[1].delayCapture",
2287
+ inAppPurchase: "$[1].inAppPurchase"
2285
2288
  },
2286
2289
  singleArgumentUnchanged: false
2287
2290
  },