@wix/auto_sdk_ecom_checkout 1.0.145 → 1.0.147
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 +4 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +4 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs +4 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +4 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.js +4 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +30 -0
- package/build/internal/cjs/index.typings.js +4 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.mjs +4 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +30 -0
- package/build/internal/es/index.typings.mjs +4 -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
|
/**
|
|
@@ -3081,6 +3087,18 @@ interface CreateOrderAndChargeRequest {
|
|
|
3081
3087
|
savePaymentMethod?: boolean;
|
|
3082
3088
|
/** Whether to authorize the payment and delay the capture. */
|
|
3083
3089
|
delayCapture?: boolean;
|
|
3090
|
+
/**
|
|
3091
|
+
* Whether the order is being placed from within a native mobile app
|
|
3092
|
+
* (iOS or Android) where the buyer paid via the platform's in-app
|
|
3093
|
+
* purchase system.
|
|
3094
|
+
* When true and the order contains subscription items,
|
|
3095
|
+
* Wix does not collect recurring renewal charges — the mobile platform's
|
|
3096
|
+
* in-app purchase system handles all subsequent renewal billing.
|
|
3097
|
+
*
|
|
3098
|
+
* Default: `false`
|
|
3099
|
+
* @internal
|
|
3100
|
+
*/
|
|
3101
|
+
inAppPurchase?: boolean;
|
|
3084
3102
|
}
|
|
3085
3103
|
interface CreateOrderAndChargeResponse extends CreateOrderAndChargeResponseIdOneOf {
|
|
3086
3104
|
/**
|
|
@@ -4386,6 +4404,18 @@ interface CreateOrderAndChargeOptions {
|
|
|
4386
4404
|
savePaymentMethod?: boolean;
|
|
4387
4405
|
/** Whether to authorize the payment and delay the capture. */
|
|
4388
4406
|
delayCapture?: boolean;
|
|
4407
|
+
/**
|
|
4408
|
+
* Whether the order is being placed from within a native mobile app
|
|
4409
|
+
* (iOS or Android) where the buyer paid via the platform's in-app
|
|
4410
|
+
* purchase system.
|
|
4411
|
+
* When true and the order contains subscription items,
|
|
4412
|
+
* Wix does not collect recurring renewal charges — the mobile platform's
|
|
4413
|
+
* in-app purchase system handles all subsequent renewal billing.
|
|
4414
|
+
*
|
|
4415
|
+
* Default: `false`
|
|
4416
|
+
* @internal
|
|
4417
|
+
*/
|
|
4418
|
+
inAppPurchase?: boolean;
|
|
4389
4419
|
}
|
|
4390
4420
|
/**
|
|
4391
4421
|
* 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
|
},
|