@wix/auto_sdk_ecom_checkout 1.0.145 → 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.
@@ -3081,6 +3081,18 @@ interface CreateOrderAndChargeRequest {
3081
3081
  savePaymentMethod?: boolean;
3082
3082
  /** Whether to authorize the payment and delay the capture. */
3083
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;
3084
3096
  }
3085
3097
  interface CreateOrderAndChargeResponse extends CreateOrderAndChargeResponseIdOneOf {
3086
3098
  /**
@@ -4386,6 +4398,18 @@ interface CreateOrderAndChargeOptions {
4386
4398
  savePaymentMethod?: boolean;
4387
4399
  /** Whether to authorize the payment and delay the capture. */
4388
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;
4389
4413
  }
4390
4414
  /**
4391
4415
  * Marks a checkout as completed and redirects to a specified URL.
@@ -2265,7 +2265,8 @@ async function createOrderAndCharge2(_id, options) {
2265
2265
  id: _id,
2266
2266
  paymentToken: options?.paymentToken,
2267
2267
  savePaymentMethod: options?.savePaymentMethod,
2268
- delayCapture: options?.delayCapture
2268
+ delayCapture: options?.delayCapture,
2269
+ inAppPurchase: options?.inAppPurchase
2269
2270
  });
2270
2271
  const reqOpts = createOrderAndCharge(payload);
2271
2272
  sideEffects?.onSiteCall?.();
@@ -2282,7 +2283,8 @@ async function createOrderAndCharge2(_id, options) {
2282
2283
  id: "$[0]",
2283
2284
  paymentToken: "$[1].paymentToken",
2284
2285
  savePaymentMethod: "$[1].savePaymentMethod",
2285
- delayCapture: "$[1].delayCapture"
2286
+ delayCapture: "$[1].delayCapture",
2287
+ inAppPurchase: "$[1].inAppPurchase"
2286
2288
  },
2287
2289
  singleArgumentUnchanged: false
2288
2290
  },