@wix/auto_sdk_ecom_checkout 1.0.147 → 1.0.148

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.
@@ -2077,7 +2077,13 @@ declare enum ChannelType {
2077
2077
  /** PayPal Agentic Checkout sales channel. */
2078
2078
  PAYPAL_AGENTIC_CHECKOUT = "PAYPAL_AGENTIC_CHECKOUT",
2079
2079
  /** Stripe Agentic Checkout sales channel. */
2080
- STRIPE_AGENTIC_CHECKOUT = "STRIPE_AGENTIC_CHECKOUT"
2080
+ STRIPE_AGENTIC_CHECKOUT = "STRIPE_AGENTIC_CHECKOUT",
2081
+ /**
2082
+ * Wix Invoices platform app
2083
+ * @documentationMaturity preview
2084
+ * @internal
2085
+ */
2086
+ WIX_INVOICES_PLATFORM = "WIX_INVOICES_PLATFORM"
2081
2087
  }
2082
2088
  /** @enumType */
2083
2089
  type ChannelTypeWithLiterals = ChannelType | 'UNSPECIFIED' | 'WEB' | 'POS' | 'EBAY' | 'AMAZON' | 'OTHER_PLATFORM' | 'WIX_APP_STORE' | 'WIX_INVOICES' | 'BACKOFFICE_MERCHANT' | 'WISH' | 'CLASS_PASS' | 'GLOBAL_E' | 'FACEBOOK' | 'ETSY' | 'TIKTOK' | 'FAIRE_COM' | 'PAYPAL_AGENTIC_CHECKOUT' | 'STRIPE_AGENTIC_CHECKOUT';
@@ -3013,6 +3019,18 @@ interface CreateOrderRequest {
3013
3019
  savePaymentMethod?: boolean;
3014
3020
  /** Whether to authorize the payment and delay the capture. */
3015
3021
  delayCapture?: boolean;
3022
+ /**
3023
+ * Whether the order is being placed from within a native mobile app
3024
+ * (iOS or Android) where the buyer paid via the platform's in-app
3025
+ * purchase system.
3026
+ * When true and the order contains subscription items,
3027
+ * Wix does not collect recurring renewal charges — the mobile platform's
3028
+ * in-app purchase system handles all subsequent renewal billing.
3029
+ *
3030
+ * Default: `false`
3031
+ * @internal
3032
+ */
3033
+ inAppPurchase?: boolean;
3016
3034
  }
3017
3035
  interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
3018
3036
  /**
@@ -4384,6 +4402,18 @@ interface CreateOrderOptions {
4384
4402
  savePaymentMethod?: boolean;
4385
4403
  /** Whether to authorize the payment and delay the capture. */
4386
4404
  delayCapture?: boolean;
4405
+ /**
4406
+ * Whether the order is being placed from within a native mobile app
4407
+ * (iOS or Android) where the buyer paid via the platform's in-app
4408
+ * purchase system.
4409
+ * When true and the order contains subscription items,
4410
+ * Wix does not collect recurring renewal charges — the mobile platform's
4411
+ * in-app purchase system handles all subsequent renewal billing.
4412
+ *
4413
+ * Default: `false`
4414
+ * @internal
4415
+ */
4416
+ inAppPurchase?: boolean;
4387
4417
  }
4388
4418
  /**
4389
4419
  * Deprecated (use createOrder instead)
@@ -1554,6 +1554,7 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
1554
1554
  ChannelType2["FAIRE_COM"] = "FAIRE_COM";
1555
1555
  ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
1556
1556
  ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
1557
+ ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
1557
1558
  return ChannelType2;
1558
1559
  })(ChannelType || {});
1559
1560
  var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
@@ -2233,7 +2234,8 @@ async function createOrder2(_id, options) {
2233
2234
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2234
2235
  id: _id,
2235
2236
  savePaymentMethod: options?.savePaymentMethod,
2236
- delayCapture: options?.delayCapture
2237
+ delayCapture: options?.delayCapture,
2238
+ inAppPurchase: options?.inAppPurchase
2237
2239
  });
2238
2240
  const reqOpts = createOrder(payload);
2239
2241
  sideEffects?.onSiteCall?.();
@@ -2249,7 +2251,8 @@ async function createOrder2(_id, options) {
2249
2251
  explicitPathsToArguments: {
2250
2252
  id: "$[0]",
2251
2253
  savePaymentMethod: "$[1].savePaymentMethod",
2252
- delayCapture: "$[1].delayCapture"
2254
+ delayCapture: "$[1].delayCapture",
2255
+ inAppPurchase: "$[1].inAppPurchase"
2253
2256
  },
2254
2257
  singleArgumentUnchanged: false
2255
2258
  },