@wix/auto_sdk_ecom_cart-v-2 1.0.67 → 1.0.68
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 +2 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +39 -69
- package/build/cjs/index.typings.js +2 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +39 -59
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +2 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +39 -69
- package/build/es/index.typings.mjs +2 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +39 -59
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +2 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +39 -69
- package/build/internal/cjs/index.typings.js +2 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +39 -59
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +2 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +39 -69
- package/build/internal/es/index.typings.mjs +2 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +39 -59
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -2581,55 +2581,6 @@ interface CalculateCurrentCartRequest {
|
|
|
2581
2581
|
* Default: `false`
|
|
2582
2582
|
*/
|
|
2583
2583
|
refreshCart?: boolean;
|
|
2584
|
-
/**
|
|
2585
|
-
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2586
|
-
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
2587
|
-
*/
|
|
2588
|
-
validationsConfig?: ValidationsConfigWithLiterals;
|
|
2589
|
-
/**
|
|
2590
|
-
* Optional custom configuration for the calculation.
|
|
2591
|
-
* If not provided, all price components are calculated by default.
|
|
2592
|
-
*/
|
|
2593
|
-
customCalculationConfig?: CalculationConfig;
|
|
2594
|
-
}
|
|
2595
|
-
declare enum ValidationsConfig {
|
|
2596
|
-
UNKNOWN_VALIDATIONS_CONFIG = "UNKNOWN_VALIDATIONS_CONFIG",
|
|
2597
|
-
/** No business validations are performed. */
|
|
2598
|
-
SKIP_VALIDATIONS = "SKIP_VALIDATIONS",
|
|
2599
|
-
/** Perform cart-level business validations as defined by the service plugin implementer. */
|
|
2600
|
-
PRE_CHECKOUT_VALIDATIONS = "PRE_CHECKOUT_VALIDATIONS",
|
|
2601
|
-
/** Perform checkout-specific business validations as defined by the service plugin implementer. */
|
|
2602
|
-
CHECKOUT_VALIDATIONS = "CHECKOUT_VALIDATIONS"
|
|
2603
|
-
}
|
|
2604
|
-
/** @enumType */
|
|
2605
|
-
type ValidationsConfigWithLiterals = ValidationsConfig | 'UNKNOWN_VALIDATIONS_CONFIG' | 'SKIP_VALIDATIONS' | 'PRE_CHECKOUT_VALIDATIONS' | 'CHECKOUT_VALIDATIONS';
|
|
2606
|
-
interface CalculationConfig {
|
|
2607
|
-
/**
|
|
2608
|
-
* Whether to calculate delivery costs.
|
|
2609
|
-
* Default: false
|
|
2610
|
-
*/
|
|
2611
|
-
calculateDelivery?: boolean;
|
|
2612
|
-
/**
|
|
2613
|
-
* Whether to calculate any additional fees.
|
|
2614
|
-
* Default: false
|
|
2615
|
-
*/
|
|
2616
|
-
calculateAdditionalFees?: boolean;
|
|
2617
|
-
/**
|
|
2618
|
-
* Whether to include tax calculation.
|
|
2619
|
-
* Default: false
|
|
2620
|
-
*/
|
|
2621
|
-
calculateTax?: boolean;
|
|
2622
|
-
/**
|
|
2623
|
-
* Whether to calculate the effect of gift card balances on the cart total.
|
|
2624
|
-
* Gift cards are not redeemed - only reflected for estimation purposes.
|
|
2625
|
-
* Default: false
|
|
2626
|
-
*/
|
|
2627
|
-
calculateGiftCards?: boolean;
|
|
2628
|
-
/**
|
|
2629
|
-
* Whether to calculate order-level discounts.
|
|
2630
|
-
* TODO: Currently i's ignored and always treated as true.
|
|
2631
|
-
*/
|
|
2632
|
-
calculateOrderDiscounts?: boolean;
|
|
2633
2584
|
}
|
|
2634
2585
|
interface CalculateCurrentCartResponse {
|
|
2635
2586
|
/** The Cart that was calculated. */
|
|
@@ -2676,6 +2627,17 @@ interface EstimateCurrentCartRequest {
|
|
|
2676
2627
|
*/
|
|
2677
2628
|
calculateGiftCards?: boolean;
|
|
2678
2629
|
}
|
|
2630
|
+
declare enum ValidationsConfig {
|
|
2631
|
+
UNKNOWN_VALIDATIONS_CONFIG = "UNKNOWN_VALIDATIONS_CONFIG",
|
|
2632
|
+
/** No business validations are performed. */
|
|
2633
|
+
SKIP_VALIDATIONS = "SKIP_VALIDATIONS",
|
|
2634
|
+
/** Perform cart-level business validations as defined by the service plugin implementer. */
|
|
2635
|
+
PRE_CHECKOUT_VALIDATIONS = "PRE_CHECKOUT_VALIDATIONS",
|
|
2636
|
+
/** Perform checkout-specific business validations as defined by the service plugin implementer. */
|
|
2637
|
+
CHECKOUT_VALIDATIONS = "CHECKOUT_VALIDATIONS"
|
|
2638
|
+
}
|
|
2639
|
+
/** @enumType */
|
|
2640
|
+
type ValidationsConfigWithLiterals = ValidationsConfig | 'UNKNOWN_VALIDATIONS_CONFIG' | 'SKIP_VALIDATIONS' | 'PRE_CHECKOUT_VALIDATIONS' | 'CHECKOUT_VALIDATIONS';
|
|
2679
2641
|
interface EstimateCurrentCartResponse {
|
|
2680
2642
|
/** The Cart that was calculated. */
|
|
2681
2643
|
cart?: Cart;
|
|
@@ -3152,16 +3114,6 @@ interface CalculateCartRequest {
|
|
|
3152
3114
|
* Default: `false`
|
|
3153
3115
|
*/
|
|
3154
3116
|
refreshCart?: boolean;
|
|
3155
|
-
/**
|
|
3156
|
-
* Specifies the level of **business validation** to perform during cart calculation,
|
|
3157
|
-
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
3158
|
-
*/
|
|
3159
|
-
validationsConfig?: ValidationsConfigWithLiterals;
|
|
3160
|
-
/**
|
|
3161
|
-
* Optional custom configuration for the calculation.
|
|
3162
|
-
* If not provided, all price components are calculated by default.
|
|
3163
|
-
*/
|
|
3164
|
-
customCalculationConfig?: CalculationConfig;
|
|
3165
3117
|
}
|
|
3166
3118
|
interface CalculateCartResponse {
|
|
3167
3119
|
/** The Cart that was calculated. */
|
|
@@ -3193,6 +3145,34 @@ interface CalculateCartForV1Request {
|
|
|
3193
3145
|
/** Calculations overrides for backward compatibility with V1. */
|
|
3194
3146
|
calculationOverrides?: CalculationOverrides;
|
|
3195
3147
|
}
|
|
3148
|
+
interface CalculationConfig {
|
|
3149
|
+
/**
|
|
3150
|
+
* Whether to calculate delivery costs.
|
|
3151
|
+
* Default: false
|
|
3152
|
+
*/
|
|
3153
|
+
calculateDelivery?: boolean;
|
|
3154
|
+
/**
|
|
3155
|
+
* Whether to calculate any additional fees.
|
|
3156
|
+
* Default: false
|
|
3157
|
+
*/
|
|
3158
|
+
calculateAdditionalFees?: boolean;
|
|
3159
|
+
/**
|
|
3160
|
+
* Whether to include tax calculation.
|
|
3161
|
+
* Default: false
|
|
3162
|
+
*/
|
|
3163
|
+
calculateTax?: boolean;
|
|
3164
|
+
/**
|
|
3165
|
+
* Whether to calculate the effect of gift card balances on the cart total.
|
|
3166
|
+
* Gift cards are not redeemed - only reflected for estimation purposes.
|
|
3167
|
+
* Default: false
|
|
3168
|
+
*/
|
|
3169
|
+
calculateGiftCards?: boolean;
|
|
3170
|
+
/**
|
|
3171
|
+
* Whether to calculate order-level discounts.
|
|
3172
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
3173
|
+
*/
|
|
3174
|
+
calculateOrderDiscounts?: boolean;
|
|
3175
|
+
}
|
|
3196
3176
|
interface Stage extends StageStagesOneOf {
|
|
3197
3177
|
/** Supported values: */
|
|
3198
3178
|
checkoutStage?: CheckoutStageWithLiterals;
|