@wix/auto_sdk_ecom_cart 1.0.0 → 1.0.1

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.
@@ -1,4 +1,4 @@
1
- import { createCart as publicCreateCart, updateCart as publicUpdateCart, getCart as publicGetCart, getCartByCheckoutId as publicGetCartByCheckoutId, addToCart as publicAddToCart, removeLineItems as publicRemoveLineItems, createCheckout as publicCreateCheckout, removeCoupon as publicRemoveCoupon, updateLineItemsQuantity as publicUpdateLineItemsQuantity, estimateTotals as publicEstimateTotals, deleteCart as publicDeleteCart, removeBusinessLocation as publicRemoveBusinessLocation } from './ecom-v1-cart-cart.public.js';
1
+ import { createCart as publicCreateCart, updateCart as publicUpdateCart, getCart as publicGetCart, addToCart as publicAddToCart, removeLineItems as publicRemoveLineItems, createCheckout as publicCreateCheckout, removeCoupon as publicRemoveCoupon, updateLineItemsQuantity as publicUpdateLineItemsQuantity, estimateTotals as publicEstimateTotals, deleteCart as publicDeleteCart } from './ecom-v1-cart-cart.public.js';
2
2
  import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
3
  import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
4
  import { onCartDeleted as publicOnCartDeleted } from './ecom-v1-cart-cart.public.js';
@@ -7,7 +7,6 @@ import { onCartCreated as publicOnCartCreated } from './ecom-v1-cart-cart.public
7
7
  export declare const createCart: MaybeContext<BuildRESTFunction<typeof publicCreateCart> & typeof publicCreateCart>;
8
8
  export declare const updateCart: MaybeContext<BuildRESTFunction<typeof publicUpdateCart> & typeof publicUpdateCart>;
9
9
  export declare const getCart: MaybeContext<BuildRESTFunction<typeof publicGetCart> & typeof publicGetCart>;
10
- export declare const getCartByCheckoutId: MaybeContext<BuildRESTFunction<typeof publicGetCartByCheckoutId> & typeof publicGetCartByCheckoutId>;
11
10
  export declare const addToCart: MaybeContext<BuildRESTFunction<typeof publicAddToCart> & typeof publicAddToCart>;
12
11
  export declare const removeLineItems: MaybeContext<BuildRESTFunction<typeof publicRemoveLineItems> & typeof publicRemoveLineItems>;
13
12
  export declare const createCheckout: MaybeContext<BuildRESTFunction<typeof publicCreateCheckout> & typeof publicCreateCheckout>;
@@ -15,7 +14,6 @@ export declare const removeCoupon: MaybeContext<BuildRESTFunction<typeof publicR
15
14
  export declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof publicUpdateLineItemsQuantity> & typeof publicUpdateLineItemsQuantity>;
16
15
  export declare const estimateTotals: MaybeContext<BuildRESTFunction<typeof publicEstimateTotals> & typeof publicEstimateTotals>;
17
16
  export declare const deleteCart: MaybeContext<BuildRESTFunction<typeof publicDeleteCart> & typeof publicDeleteCart>;
18
- export declare const removeBusinessLocation: MaybeContext<BuildRESTFunction<typeof publicRemoveBusinessLocation> & typeof publicRemoveBusinessLocation>;
19
17
  /**
20
18
  * Triggered when a cart is deleted.
21
19
  */
@@ -10,6 +10,7 @@ const ecom_v1_cart_cart_public_js_4 = require("./ecom-v1-cart-cart.public.js");
10
10
  exports.createCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.createCart);
11
11
  exports.updateCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.updateCart);
12
12
  exports.getCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.getCart);
13
+ /** @internal */
13
14
  exports.getCartByCheckoutId = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.getCartByCheckoutId);
14
15
  exports.addToCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.addToCart);
15
16
  exports.removeLineItems = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.removeLineItems);
@@ -18,6 +19,7 @@ exports.removeCoupon = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_pu
18
19
  exports.updateLineItemsQuantity = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.updateLineItemsQuantity);
19
20
  exports.estimateTotals = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.estimateTotals);
20
21
  exports.deleteCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.deleteCart);
22
+ /** @internal */
21
23
  exports.removeBusinessLocation = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.removeBusinessLocation);
22
24
  /**
23
25
  * Triggered when a cart is deleted.
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-cart-cart.context.js","sourceRoot":"","sources":["../../../src/ecom-v1-cart-cart.context.ts"],"names":[],"mappings":";;;AAAA,+EAauC;AACvC,gEAAiE;AACjE,wFAA8E;AAE9E,+EAAqF;AACrF,+EAAqF;AACrF,+EAAqF;AAExE,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,OAAO,GAEF,IAAA,+BAAgB,EAAC,qCAAa,CAAC,CAAC;AACrC,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,iDAAyB,CAAC,CAAC;AACjD,QAAA,SAAS,GAEJ,IAAA,+BAAgB,EAAC,uCAAe,CAAC,CAAC;AACvC,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,6CAAqB,CAAC,CAAC;AAC7C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,4CAAoB,CAAC,CAAC;AAC5C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,0CAAkB,CAAC,CAAC;AAC1C,QAAA,uBAAuB,GAGlB,IAAA,+BAAgB,EAAC,qDAA6B,CAAC,CAAC;AACrD,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,4CAAoB,CAAC,CAAC;AAC5C,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,sBAAsB,GAGjB,IAAA,+BAAgB,EAAC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gBAAgB,OAAA;AAChB,0HAAA,QAAQ,OAAA;AACR,yIAAA,uBAAuB,OAAA;AACvB,gIAAA,cAAc,OAAA;AACd,8HAAA,YAAY,OAAA;AACZ,4HAAA,UAAU,OAAA;AACV,6IAAA,2BAA2B,OAAA;AAC3B,0HAAA,QAAQ,OAAA;AACR,qIAAA,mBAAmB,OAAA;AACnB,0HAAA,QAAQ,OAAA;AACR,6HAAA,WAAW,OAAA;AACX,gIAAA,cAAc,OAAA;AACd,8HAAA,YAAY,OAAA;AACZ,6HAAA,WAAW,OAAA;AACX,qIAAA,mBAAmB,OAAA"}
@@ -1022,15 +1022,15 @@ export interface LineItemPricesData {
1022
1022
  totalPriceBeforeTax?: MultiCurrencyPrice;
1023
1023
  /** Tax details. */
1024
1024
  taxDetails?: ItemTaxFullDetails;
1025
- /** Total discount for all line items. */
1025
+ /** Total discount applied for the line item. */
1026
1026
  totalDiscount?: MultiCurrencyPrice;
1027
- /** Catalog price after catalog discount and automatic discounts. */
1027
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
1028
1028
  price?: MultiCurrencyPrice;
1029
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
1029
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
1030
1030
  priceBeforeDiscounts?: MultiCurrencyPrice;
1031
- /** Total price **after** catalog-defined discount and line item discounts. */
1031
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
1032
1032
  lineItemPrice?: MultiCurrencyPrice;
1033
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
1033
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
1034
1034
  fullPrice?: MultiCurrencyPrice;
1035
1035
  }
1036
1036
  export interface ItemTaxFullDetails {
@@ -964,15 +964,15 @@ export interface LineItemPricesData {
964
964
  totalPriceBeforeTax?: MultiCurrencyPrice;
965
965
  /** Tax details. */
966
966
  taxDetails?: ItemTaxFullDetails;
967
- /** Total discount for all line items. */
967
+ /** Total discount applied for the line item. */
968
968
  totalDiscount?: MultiCurrencyPrice;
969
- /** Catalog price after catalog discount and automatic discounts. */
969
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
970
970
  price?: MultiCurrencyPrice;
971
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
971
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
972
972
  priceBeforeDiscounts?: MultiCurrencyPrice;
973
- /** Total price **after** catalog-defined discount and line item discounts. */
973
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
974
974
  lineItemPrice?: MultiCurrencyPrice;
975
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
975
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
976
976
  fullPrice?: MultiCurrencyPrice;
977
977
  }
978
978
  export interface ItemTaxFullDetails {
@@ -1,4 +1,4 @@
1
- import { createCart as publicCreateCart, updateCart as publicUpdateCart, getCart as publicGetCart, getCartByCheckoutId as publicGetCartByCheckoutId, addToCart as publicAddToCart, removeLineItems as publicRemoveLineItems, createCheckout as publicCreateCheckout, removeCoupon as publicRemoveCoupon, updateLineItemsQuantity as publicUpdateLineItemsQuantity, estimateTotals as publicEstimateTotals, deleteCart as publicDeleteCart, removeBusinessLocation as publicRemoveBusinessLocation } from './ecom-v1-cart-cart.public.js';
1
+ import { createCart as publicCreateCart, updateCart as publicUpdateCart, getCart as publicGetCart, addToCart as publicAddToCart, removeLineItems as publicRemoveLineItems, createCheckout as publicCreateCheckout, removeCoupon as publicRemoveCoupon, updateLineItemsQuantity as publicUpdateLineItemsQuantity, estimateTotals as publicEstimateTotals, deleteCart as publicDeleteCart } from './ecom-v1-cart-cart.public.js';
2
2
  import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
3
  import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
4
  import { onCartDeleted as publicOnCartDeleted } from './ecom-v1-cart-cart.public.js';
@@ -7,7 +7,6 @@ import { onCartCreated as publicOnCartCreated } from './ecom-v1-cart-cart.public
7
7
  export declare const createCart: MaybeContext<BuildRESTFunction<typeof publicCreateCart> & typeof publicCreateCart>;
8
8
  export declare const updateCart: MaybeContext<BuildRESTFunction<typeof publicUpdateCart> & typeof publicUpdateCart>;
9
9
  export declare const getCart: MaybeContext<BuildRESTFunction<typeof publicGetCart> & typeof publicGetCart>;
10
- export declare const getCartByCheckoutId: MaybeContext<BuildRESTFunction<typeof publicGetCartByCheckoutId> & typeof publicGetCartByCheckoutId>;
11
10
  export declare const addToCart: MaybeContext<BuildRESTFunction<typeof publicAddToCart> & typeof publicAddToCart>;
12
11
  export declare const removeLineItems: MaybeContext<BuildRESTFunction<typeof publicRemoveLineItems> & typeof publicRemoveLineItems>;
13
12
  export declare const createCheckout: MaybeContext<BuildRESTFunction<typeof publicCreateCheckout> & typeof publicCreateCheckout>;
@@ -15,7 +14,6 @@ export declare const removeCoupon: MaybeContext<BuildRESTFunction<typeof publicR
15
14
  export declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof publicUpdateLineItemsQuantity> & typeof publicUpdateLineItemsQuantity>;
16
15
  export declare const estimateTotals: MaybeContext<BuildRESTFunction<typeof publicEstimateTotals> & typeof publicEstimateTotals>;
17
16
  export declare const deleteCart: MaybeContext<BuildRESTFunction<typeof publicDeleteCart> & typeof publicDeleteCart>;
18
- export declare const removeBusinessLocation: MaybeContext<BuildRESTFunction<typeof publicRemoveBusinessLocation> & typeof publicRemoveBusinessLocation>;
19
17
  /**
20
18
  * Triggered when a cart is deleted.
21
19
  */
@@ -7,6 +7,7 @@ import { onCartCreated as publicOnCartCreated } from './ecom-v1-cart-cart.public
7
7
  export const createCart = /*#__PURE__*/ createRESTModule(publicCreateCart);
8
8
  export const updateCart = /*#__PURE__*/ createRESTModule(publicUpdateCart);
9
9
  export const getCart = /*#__PURE__*/ createRESTModule(publicGetCart);
10
+ /** @internal */
10
11
  export const getCartByCheckoutId = /*#__PURE__*/ createRESTModule(publicGetCartByCheckoutId);
11
12
  export const addToCart = /*#__PURE__*/ createRESTModule(publicAddToCart);
12
13
  export const removeLineItems = /*#__PURE__*/ createRESTModule(publicRemoveLineItems);
@@ -15,6 +16,7 @@ export const removeCoupon = /*#__PURE__*/ createRESTModule(publicRemoveCoupon);
15
16
  export const updateLineItemsQuantity = /*#__PURE__*/ createRESTModule(publicUpdateLineItemsQuantity);
16
17
  export const estimateTotals = /*#__PURE__*/ createRESTModule(publicEstimateTotals);
17
18
  export const deleteCart = /*#__PURE__*/ createRESTModule(publicDeleteCart);
19
+ /** @internal */
18
20
  export const removeBusinessLocation = /*#__PURE__*/ createRESTModule(publicRemoveBusinessLocation);
19
21
  /**
20
22
  * Triggered when a cart is deleted.
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-cart-cart.context.js","sourceRoot":"","sources":["../../../src/ecom-v1-cart-cart.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,OAAO,IAAI,aAAa,EACxB,mBAAmB,IAAI,yBAAyB,EAChD,SAAS,IAAI,eAAe,EAC5B,eAAe,IAAI,qBAAqB,EACxC,cAAc,IAAI,oBAAoB,EACtC,YAAY,IAAI,kBAAkB,EAClC,uBAAuB,IAAI,6BAA6B,EACxD,cAAc,IAAI,oBAAoB,EACtC,UAAU,IAAI,gBAAgB,EAC9B,sBAAsB,IAAI,4BAA4B,GACvD,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,+BAA+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,mBAAmB,CAAC,CAAC;AAC3C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAE3C,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,QAAQ,EACR,mBAAmB,EACnB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,mBAAmB,GACpB,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"ecom-v1-cart-cart.context.js","sourceRoot":"","sources":["../../../src/ecom-v1-cart-cart.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,OAAO,IAAI,aAAa,EACxB,mBAAmB,IAAI,yBAAyB,EAChD,SAAS,IAAI,eAAe,EAC5B,eAAe,IAAI,qBAAqB,EACxC,cAAc,IAAI,oBAAoB,EACtC,YAAY,IAAI,kBAAkB,EAClC,uBAAuB,IAAI,6BAA6B,EACxD,cAAc,IAAI,oBAAoB,EACtC,UAAU,IAAI,gBAAgB,EAC9B,sBAAsB,IAAI,4BAA4B,GACvD,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAErF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AC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAE3C,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,QAAQ,EACR,mBAAmB,EACnB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,mBAAmB,GACpB,MAAM,kCAAkC,CAAC"}
@@ -1022,15 +1022,15 @@ export interface LineItemPricesData {
1022
1022
  totalPriceBeforeTax?: MultiCurrencyPrice;
1023
1023
  /** Tax details. */
1024
1024
  taxDetails?: ItemTaxFullDetails;
1025
- /** Total discount for all line items. */
1025
+ /** Total discount applied for the line item. */
1026
1026
  totalDiscount?: MultiCurrencyPrice;
1027
- /** Catalog price after catalog discount and automatic discounts. */
1027
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
1028
1028
  price?: MultiCurrencyPrice;
1029
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
1029
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
1030
1030
  priceBeforeDiscounts?: MultiCurrencyPrice;
1031
- /** Total price **after** catalog-defined discount and line item discounts. */
1031
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
1032
1032
  lineItemPrice?: MultiCurrencyPrice;
1033
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
1033
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
1034
1034
  fullPrice?: MultiCurrencyPrice;
1035
1035
  }
1036
1036
  export interface ItemTaxFullDetails {
@@ -964,15 +964,15 @@ export interface LineItemPricesData {
964
964
  totalPriceBeforeTax?: MultiCurrencyPrice;
965
965
  /** Tax details. */
966
966
  taxDetails?: ItemTaxFullDetails;
967
- /** Total discount for all line items. */
967
+ /** Total discount applied for the line item. */
968
968
  totalDiscount?: MultiCurrencyPrice;
969
- /** Catalog price after catalog discount and automatic discounts. */
969
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
970
970
  price?: MultiCurrencyPrice;
971
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
971
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
972
972
  priceBeforeDiscounts?: MultiCurrencyPrice;
973
- /** Total price **after** catalog-defined discount and line item discounts. */
973
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
974
974
  lineItemPrice?: MultiCurrencyPrice;
975
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
975
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
976
976
  fullPrice?: MultiCurrencyPrice;
977
977
  }
978
978
  export interface ItemTaxFullDetails {
@@ -7,6 +7,7 @@ import { onCartCreated as publicOnCartCreated } from './ecom-v1-cart-cart.public
7
7
  export declare const createCart: MaybeContext<BuildRESTFunction<typeof publicCreateCart> & typeof publicCreateCart>;
8
8
  export declare const updateCart: MaybeContext<BuildRESTFunction<typeof publicUpdateCart> & typeof publicUpdateCart>;
9
9
  export declare const getCart: MaybeContext<BuildRESTFunction<typeof publicGetCart> & typeof publicGetCart>;
10
+ /** @internal */
10
11
  export declare const getCartByCheckoutId: MaybeContext<BuildRESTFunction<typeof publicGetCartByCheckoutId> & typeof publicGetCartByCheckoutId>;
11
12
  export declare const addToCart: MaybeContext<BuildRESTFunction<typeof publicAddToCart> & typeof publicAddToCart>;
12
13
  export declare const removeLineItems: MaybeContext<BuildRESTFunction<typeof publicRemoveLineItems> & typeof publicRemoveLineItems>;
@@ -15,6 +16,7 @@ export declare const removeCoupon: MaybeContext<BuildRESTFunction<typeof publicR
15
16
  export declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof publicUpdateLineItemsQuantity> & typeof publicUpdateLineItemsQuantity>;
16
17
  export declare const estimateTotals: MaybeContext<BuildRESTFunction<typeof publicEstimateTotals> & typeof publicEstimateTotals>;
17
18
  export declare const deleteCart: MaybeContext<BuildRESTFunction<typeof publicDeleteCart> & typeof publicDeleteCart>;
19
+ /** @internal */
18
20
  export declare const removeBusinessLocation: MaybeContext<BuildRESTFunction<typeof publicRemoveBusinessLocation> & typeof publicRemoveBusinessLocation>;
19
21
  /**
20
22
  * Triggered when a cart is deleted.
@@ -10,6 +10,7 @@ const ecom_v1_cart_cart_public_js_4 = require("./ecom-v1-cart-cart.public.js");
10
10
  exports.createCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.createCart);
11
11
  exports.updateCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.updateCart);
12
12
  exports.getCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.getCart);
13
+ /** @internal */
13
14
  exports.getCartByCheckoutId = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.getCartByCheckoutId);
14
15
  exports.addToCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.addToCart);
15
16
  exports.removeLineItems = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.removeLineItems);
@@ -18,6 +19,7 @@ exports.removeCoupon = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_pu
18
19
  exports.updateLineItemsQuantity = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.updateLineItemsQuantity);
19
20
  exports.estimateTotals = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.estimateTotals);
20
21
  exports.deleteCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.deleteCart);
22
+ /** @internal */
21
23
  exports.removeBusinessLocation = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.removeBusinessLocation);
22
24
  /**
23
25
  * Triggered when a cart is deleted.
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-cart-cart.context.js","sourceRoot":"","sources":["../../../../src/ecom-v1-cart-cart.context.ts"],"names":[],"mappings":";;;AAAA,+EAauC;AACvC,gEAAiE;AACjE,wFAA8E;AAE9E,+EAAqF;AACrF,+EAAqF;AACrF,+EAAqF;AAExE,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,OAAO,GAEF,IAAA,+BAAgB,EAAC,qCAAa,CAAC,CAAC;AACrC,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,iDAAyB,CAAC,CAAC;AACjD,QAAA,SAAS,GAEJ,IAAA,+BAAgB,EAAC,uCAAe,CAAC,CAAC;AACvC,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,6CAAqB,CAAC,CAAC;AAC7C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,4CAAoB,CAAC,CAAC;AAC5C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,0CAAkB,CAAC,CAAC;AAC1C,QAAA,uBAAuB,GAGlB,IAAA,+BAAgB,EAAC,qDAA6B,CAAC,CAAC;AACrD,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,4CAAoB,CAAC,CAAC;AAC5C,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,sBAAsB,GAGjB,IAAA,+BAAgB,EAAC,oDAA4B,CAAC,CAAC;AACjE;;GAEG;AACU,QAAA,aAAa,GAEtB,IAAA,4CAAiB,EAAC,2CAAmB,CAAC,CAAC;AAC3C,MAAM;AACO,QAAA,aAAa,GAEtB,IAAA,4CAAiB,EAAC,2CAAmB,CAAC,CAAC;AAC3C;;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AQ,OAAA;AACR,qIAAA,mBAAmB,OAAA;AACnB,0HAAA,QAAQ,OAAA;AACR,6HAAA,WAAW,OAAA;AACX,gIAAA,cAAc,OAAA;AACd,8HAAA,YAAY,OAAA;AACZ,6HAAA,WAAW,OAAA;AACX,qIAAA,mBAAmB,OAAA"}
@@ -1022,15 +1022,15 @@ export interface LineItemPricesData {
1022
1022
  totalPriceBeforeTax?: MultiCurrencyPrice;
1023
1023
  /** Tax details. */
1024
1024
  taxDetails?: ItemTaxFullDetails;
1025
- /** Total discount for all line items. */
1025
+ /** Total discount applied for the line item. */
1026
1026
  totalDiscount?: MultiCurrencyPrice;
1027
- /** Catalog price after catalog discount and automatic discounts. */
1027
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
1028
1028
  price?: MultiCurrencyPrice;
1029
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
1029
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
1030
1030
  priceBeforeDiscounts?: MultiCurrencyPrice;
1031
- /** Total price **after** catalog-defined discount and line item discounts. */
1031
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
1032
1032
  lineItemPrice?: MultiCurrencyPrice;
1033
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
1033
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
1034
1034
  fullPrice?: MultiCurrencyPrice;
1035
1035
  }
1036
1036
  export interface ItemTaxFullDetails {
@@ -1098,15 +1098,15 @@ export interface LineItemPricesData {
1098
1098
  totalPriceBeforeTax?: MultiCurrencyPrice;
1099
1099
  /** Tax details. */
1100
1100
  taxDetails?: ItemTaxFullDetails;
1101
- /** Total discount for all line items. */
1101
+ /** Total discount applied for the line item. */
1102
1102
  totalDiscount?: MultiCurrencyPrice;
1103
- /** Catalog price after catalog discount and automatic discounts. */
1103
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
1104
1104
  price?: MultiCurrencyPrice;
1105
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
1105
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
1106
1106
  priceBeforeDiscounts?: MultiCurrencyPrice;
1107
- /** Total price **after** catalog-defined discount and line item discounts. */
1107
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
1108
1108
  lineItemPrice?: MultiCurrencyPrice;
1109
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
1109
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
1110
1110
  fullPrice?: MultiCurrencyPrice;
1111
1111
  }
1112
1112
  export interface ItemTaxFullDetails {
@@ -7,6 +7,7 @@ import { onCartCreated as publicOnCartCreated } from './ecom-v1-cart-cart.public
7
7
  export declare const createCart: MaybeContext<BuildRESTFunction<typeof publicCreateCart> & typeof publicCreateCart>;
8
8
  export declare const updateCart: MaybeContext<BuildRESTFunction<typeof publicUpdateCart> & typeof publicUpdateCart>;
9
9
  export declare const getCart: MaybeContext<BuildRESTFunction<typeof publicGetCart> & typeof publicGetCart>;
10
+ /** @internal */
10
11
  export declare const getCartByCheckoutId: MaybeContext<BuildRESTFunction<typeof publicGetCartByCheckoutId> & typeof publicGetCartByCheckoutId>;
11
12
  export declare const addToCart: MaybeContext<BuildRESTFunction<typeof publicAddToCart> & typeof publicAddToCart>;
12
13
  export declare const removeLineItems: MaybeContext<BuildRESTFunction<typeof publicRemoveLineItems> & typeof publicRemoveLineItems>;
@@ -15,6 +16,7 @@ export declare const removeCoupon: MaybeContext<BuildRESTFunction<typeof publicR
15
16
  export declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof publicUpdateLineItemsQuantity> & typeof publicUpdateLineItemsQuantity>;
16
17
  export declare const estimateTotals: MaybeContext<BuildRESTFunction<typeof publicEstimateTotals> & typeof publicEstimateTotals>;
17
18
  export declare const deleteCart: MaybeContext<BuildRESTFunction<typeof publicDeleteCart> & typeof publicDeleteCart>;
19
+ /** @internal */
18
20
  export declare const removeBusinessLocation: MaybeContext<BuildRESTFunction<typeof publicRemoveBusinessLocation> & typeof publicRemoveBusinessLocation>;
19
21
  /**
20
22
  * Triggered when a cart is deleted.
@@ -7,6 +7,7 @@ import { onCartCreated as publicOnCartCreated } from './ecom-v1-cart-cart.public
7
7
  export const createCart = /*#__PURE__*/ createRESTModule(publicCreateCart);
8
8
  export const updateCart = /*#__PURE__*/ createRESTModule(publicUpdateCart);
9
9
  export const getCart = /*#__PURE__*/ createRESTModule(publicGetCart);
10
+ /** @internal */
10
11
  export const getCartByCheckoutId = /*#__PURE__*/ createRESTModule(publicGetCartByCheckoutId);
11
12
  export const addToCart = /*#__PURE__*/ createRESTModule(publicAddToCart);
12
13
  export const removeLineItems = /*#__PURE__*/ createRESTModule(publicRemoveLineItems);
@@ -15,6 +16,7 @@ export const removeCoupon = /*#__PURE__*/ createRESTModule(publicRemoveCoupon);
15
16
  export const updateLineItemsQuantity = /*#__PURE__*/ createRESTModule(publicUpdateLineItemsQuantity);
16
17
  export const estimateTotals = /*#__PURE__*/ createRESTModule(publicEstimateTotals);
17
18
  export const deleteCart = /*#__PURE__*/ createRESTModule(publicDeleteCart);
19
+ /** @internal */
18
20
  export const removeBusinessLocation = /*#__PURE__*/ createRESTModule(publicRemoveBusinessLocation);
19
21
  /**
20
22
  * Triggered when a cart is deleted.
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-cart-cart.context.js","sourceRoot":"","sources":["../../../../src/ecom-v1-cart-cart.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,OAAO,IAAI,aAAa,EACxB,mBAAmB,IAAI,yBAAyB,EAChD,SAAS,IAAI,eAAe,EAC5B,eAAe,IAAI,qBAAqB,EACxC,cAAc,IAAI,oBAAoB,EACtC,YAAY,IAAI,kBAAkB,EACl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AAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,UAAU,GAEnB,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,sBAAsB,GAG/B,aAAa,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;AACjE;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAC3C,MAAM;AACN,MAAM,CAAC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAC3C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAE3C,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,QAAQ,EACR,mBAAmB,EACnB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,mBAAmB,GACpB,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"ecom-v1-cart-cart.context.js","sourceRoot":"","sources":["../../../../src/ecom-v1-cart-cart.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,OAAO,IAAI,aAAa,EACxB,mBAAmB,IAAI,yBAAyB,EAChD,SAAS,IAAI,eAAe,EAC5B,eAAe,IAAI,qBAAqB,EACxC,cAAc,IAAI,oBAAoB,EACtC,YAAY,IAAI,kBAAkB,EAClC,uBAAuB,IAAI,6BAA6B,EACxD,cAAc,IAAI,oBAAoB,EACtC,UAAU,IAAI,gBAAgB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,MAAM,UAAU,GAEnB,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AACrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAG/B,aAAa,CAAC,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;AACjE;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAC3C,MAAM;AACN,MAAM,CAAC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAC3C;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAEtB,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAE3C,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,QAAQ,EACR,mBAAmB,EACnB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,mBAAmB,GACpB,MAAM,kCAAkC,CAAC"}
@@ -1022,15 +1022,15 @@ export interface LineItemPricesData {
1022
1022
  totalPriceBeforeTax?: MultiCurrencyPrice;
1023
1023
  /** Tax details. */
1024
1024
  taxDetails?: ItemTaxFullDetails;
1025
- /** Total discount for all line items. */
1025
+ /** Total discount applied for the line item. */
1026
1026
  totalDiscount?: MultiCurrencyPrice;
1027
- /** Catalog price after catalog discount and automatic discounts. */
1027
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
1028
1028
  price?: MultiCurrencyPrice;
1029
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
1029
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
1030
1030
  priceBeforeDiscounts?: MultiCurrencyPrice;
1031
- /** Total price **after** catalog-defined discount and line item discounts. */
1031
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
1032
1032
  lineItemPrice?: MultiCurrencyPrice;
1033
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
1033
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
1034
1034
  fullPrice?: MultiCurrencyPrice;
1035
1035
  }
1036
1036
  export interface ItemTaxFullDetails {
@@ -1098,15 +1098,15 @@ export interface LineItemPricesData {
1098
1098
  totalPriceBeforeTax?: MultiCurrencyPrice;
1099
1099
  /** Tax details. */
1100
1100
  taxDetails?: ItemTaxFullDetails;
1101
- /** Total discount for all line items. */
1101
+ /** Total discount applied for the line item. */
1102
1102
  totalDiscount?: MultiCurrencyPrice;
1103
- /** Catalog price after catalog discount and automatic discounts. */
1103
+ /** Catalog price **after** catalog-defined discount and automatic discounts. */
1104
1104
  price?: MultiCurrencyPrice;
1105
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
1105
+ /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
1106
1106
  priceBeforeDiscounts?: MultiCurrencyPrice;
1107
- /** Total price **after** catalog-defined discount and line item discounts. */
1107
+ /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
1108
1108
  lineItemPrice?: MultiCurrencyPrice;
1109
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
1109
+ /** Item price **before** all discounts. Defaults to `price` when not provided. */
1110
1110
  fullPrice?: MultiCurrencyPrice;
1111
1111
  }
1112
1112
  export interface ItemTaxFullDetails {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_cart",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -48,5 +48,5 @@
48
48
  "fqdn": "wix.ecom.v1.cart"
49
49
  }
50
50
  },
51
- "falconPackageHash": "bc23ff6304d8c071d5b379cf0085a6a12bf335b86a43a7a859814739"
51
+ "falconPackageHash": "9fe2fd829143a49cfde592e45d90f1c9871af73b6e055972efbd9603"
52
52
  }