@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.
- package/build/cjs/index.js +5 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs +5 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +5 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.js +5 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +31 -1
- package/build/internal/cjs/index.typings.js +5 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.mjs +5 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +31 -1
- package/build/internal/es/index.typings.mjs +5 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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)
|
|
@@ -1487,6 +1487,7 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1487
1487
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
1488
1488
|
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
1489
1489
|
ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
|
|
1490
|
+
ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
|
|
1490
1491
|
return ChannelType2;
|
|
1491
1492
|
})(ChannelType || {});
|
|
1492
1493
|
var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
|
|
@@ -2166,7 +2167,8 @@ async function createOrder2(_id, options) {
|
|
|
2166
2167
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2167
2168
|
id: _id,
|
|
2168
2169
|
savePaymentMethod: options?.savePaymentMethod,
|
|
2169
|
-
delayCapture: options?.delayCapture
|
|
2170
|
+
delayCapture: options?.delayCapture,
|
|
2171
|
+
inAppPurchase: options?.inAppPurchase
|
|
2170
2172
|
});
|
|
2171
2173
|
const reqOpts = createOrder(payload);
|
|
2172
2174
|
sideEffects?.onSiteCall?.();
|
|
@@ -2182,7 +2184,8 @@ async function createOrder2(_id, options) {
|
|
|
2182
2184
|
explicitPathsToArguments: {
|
|
2183
2185
|
id: "$[0]",
|
|
2184
2186
|
savePaymentMethod: "$[1].savePaymentMethod",
|
|
2185
|
-
delayCapture: "$[1].delayCapture"
|
|
2187
|
+
delayCapture: "$[1].delayCapture",
|
|
2188
|
+
inAppPurchase: "$[1].inAppPurchase"
|
|
2186
2189
|
},
|
|
2187
2190
|
singleArgumentUnchanged: false
|
|
2188
2191
|
},
|