webc-miam 9.1.4 → 9.1.5
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/interfaces/mealz-interface.ts +14 -1
- package/main-es2015.js +1 -1
- package/main-es5.js +1 -1
- package/package.json +1 -1
- package/webc-miam-de.js +1 -1
- package/webc-miam-en.js +1 -1
- package/webc-miam-es.js +1 -1
- package/webc-miam-fr.js +1 -1
- package/webc-miam-it.js +1 -1
- package/webc-miam-nl.js +1 -1
- package/webc-miam-pt.js +1 -1
- package/webc-miam-ro.js +1 -1
|
@@ -78,10 +78,23 @@ export interface MealzInterface {
|
|
|
78
78
|
/**
|
|
79
79
|
* The callback parameter is called when Mealz's basket changes to update the user's cart accordingly
|
|
80
80
|
*
|
|
81
|
-
* @param pushProductsToCart a method that updates the user's cart with the
|
|
81
|
+
* @param pushProductsToCart a method that updates the user's cart with the products passed in parameter, by adding
|
|
82
82
|
* products if their quantity is positive, and removing them if their quantity is negative
|
|
83
83
|
*/
|
|
84
84
|
definePushProductsToCart: (pushProductsToCart: (products: ComparableProduct[]) => void) => void;
|
|
85
|
+
/**
|
|
86
|
+
* The callback parameter is called when Mealz's basket adds new products to update the user's cart accordingly
|
|
87
|
+
*
|
|
88
|
+
* @param pushProductsToCart a method that adds the products passed in parameter to the user's cart
|
|
89
|
+
*/
|
|
90
|
+
defineAddProductsToCart: (addProductsToCart: (products: ComparableProduct[]) => void) => void;
|
|
91
|
+
/**
|
|
92
|
+
* The callback parameter is called when Mealz's basket removes some products to update the user's cart accordingly
|
|
93
|
+
*
|
|
94
|
+
* @param pushProductsToCart a method that removes the products passed in parameter from the user's cart (the quantity attribute of
|
|
95
|
+
* each product is a negative number to indicate that it is the quantity to remove)
|
|
96
|
+
*/
|
|
97
|
+
defineRemoveProductsFromCart: (removeProductsFromCart: (products: ComparableProduct[]) => void) => void;
|
|
85
98
|
/**
|
|
86
99
|
* The callback parameter is called when Mealz's basket changes to update the user's cart accordingly
|
|
87
100
|
*
|