@wix/auto_sdk_ecom_checkout 1.0.146 → 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 +37 -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 +37 -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
|
@@ -1051,6 +1051,12 @@ interface CatalogOverrideFields {
|
|
|
1051
1051
|
* @format GUID
|
|
1052
1052
|
*/
|
|
1053
1053
|
inventoryAppId?: string | null;
|
|
1054
|
+
/**
|
|
1055
|
+
* Whether the line item quantity is fixed and can't be changed.
|
|
1056
|
+
* When not set, falls back to the value from the catalog.
|
|
1057
|
+
* @internal
|
|
1058
|
+
*/
|
|
1059
|
+
fixedQuantity?: boolean | null;
|
|
1054
1060
|
}
|
|
1055
1061
|
interface PaymentOption {
|
|
1056
1062
|
/**
|
|
@@ -2071,7 +2077,13 @@ declare enum ChannelType {
|
|
|
2071
2077
|
/** PayPal Agentic Checkout sales channel. */
|
|
2072
2078
|
PAYPAL_AGENTIC_CHECKOUT = "PAYPAL_AGENTIC_CHECKOUT",
|
|
2073
2079
|
/** Stripe Agentic Checkout sales channel. */
|
|
2074
|
-
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"
|
|
2075
2087
|
}
|
|
2076
2088
|
/** @enumType */
|
|
2077
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';
|
|
@@ -3007,6 +3019,18 @@ interface CreateOrderRequest {
|
|
|
3007
3019
|
savePaymentMethod?: boolean;
|
|
3008
3020
|
/** Whether to authorize the payment and delay the capture. */
|
|
3009
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;
|
|
3010
3034
|
}
|
|
3011
3035
|
interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
|
|
3012
3036
|
/**
|
|
@@ -4378,6 +4402,18 @@ interface CreateOrderOptions {
|
|
|
4378
4402
|
savePaymentMethod?: boolean;
|
|
4379
4403
|
/** Whether to authorize the payment and delay the capture. */
|
|
4380
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;
|
|
4381
4417
|
}
|
|
4382
4418
|
/**
|
|
4383
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
|
},
|