@djust-b2b/djust-front-sdk 1.15.1 → 1.16.0

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.
@@ -3,381 +3,317 @@ import { CreateCartParameters, DeleteCartsResponse, DeleteCartParameters, GetCar
3
3
  * CART ENDPOINT
4
4
  */
5
5
  /**
6
- * APICODE(cART135)
7
- * Deletes all carts associated with the user.
6
+ * 🛒 Deletes all carts associated with the user.
8
7
  *
9
8
  * This function sends a request to delete all carts of the logged-in user.
10
9
  *
11
- * @returns {Promise<DeleteCartsResponse>} - An array of objects containing details about the deleted carts.
10
+ * 🛠 **Endpoint**: `DELETE /v2/shop/carts [cART135]`
12
11
  *
13
- * @example
14
- * #### input
15
- * ```typescript
12
+ * 📤 **Returns**:
13
+ * A `Promise` resolving to an array of `DeleteCartsResponse` objects, containing the details of the deleted carts.
14
+ *
15
+ * 🛠 **Example usage**:
16
+ * ```ts
16
17
  * const deletedCarts = await deleteCarts();
17
18
  * ```
18
- * #### output
19
- * ```json
20
- * [
21
- * {
22
- * "id": "cart1",
23
- * "detail": "Deleted successfully"
24
- * },
25
- * {
26
- * "id": "cart2",
27
- * "detail": "Deleted successfully"
28
- * }
29
- * ]
30
- * ```
19
+ *
20
+ * @returns {Promise<DeleteCartsResponse>} - An array of objects containing the details of the deleted carts.
31
21
  */
32
22
  export declare function deleteCarts(): Promise<DeleteCartsResponse>;
33
23
  /**
34
- * APICODE(cART550)
35
- * Retrieves all active carts of the logged-in user.
24
+ * 🛒 Retrieves all active carts of the logged-in user.
36
25
  *
37
26
  * This function allows fetching the list of active carts based on the provided parameters.
38
27
  *
39
- * @param {GetCartsParameters} params - The parameters for retrieving the carts, including:
40
- * #### currency - `string` | <strong style={{ color: 'red' }}>required</strong>
28
+ * 🛠 **Endpoint**: `GET /v2/shop/carts [cART550]`
41
29
  *
42
- * The currency in which to display the carts.
43
- * #### pageable - `object` | <strong style={{ color: 'red' }}>required</strong>
30
+ * | Parameter | Type | Required | Description |
31
+ * |------------------|----------------------|------------|------------------------------------------------------------|
32
+ * | `currency` | `string` | ✅ | The currency in which to display the carts. |
33
+ * | `pageable` | `object` | ✅ | The pagination parameters. |
34
+ * | `status` | `string[]` | ❌ | The status of the carts to retrieve. |
35
+ * | `type` | `string[]` | ❌ | The type of carts to retrieve. |
44
36
  *
45
- * The pagination parameters.
46
- * #### status - `string[]` | <strong style={{ color: 'red' }}>required</strong>
37
+ * 📤 **Returns**:
38
+ * A `Promise` resolving to a `GetCartsResponse` object, containing the list of carts and pagination information.
47
39
  *
48
- * The status of the carts to retrieve.
49
- * #### type - `string[]` | <strong style={{ color: 'red' }}>required</strong>
40
+ * 🛠 **Example usage**:
41
+ * ```ts
42
+ * const carts = await getCarts({ currency: 'USD', pageable: { page: 1, size: 10 } });
43
+ * ```
50
44
  *
51
- * The type of carts to retrieve.
45
+ * @param {GetCartsParameters} params - The parameters for retrieving the carts, including:
46
+ * - `currency` - The currency in which to display the carts.
47
+ * - `pageable` - The pagination parameters.
48
+ * - `status` - The status of the carts to retrieve.
49
+ * - `type` - The type of carts to retrieve.
52
50
  *
53
51
  * @returns {Promise<GetCartsResponse>} - An object containing the list of carts and pagination information.
54
- *
55
- * @example
56
- * #### input
57
- * ```typescript
58
- * const carts = await getCarts({ currency: 'USD', pageable: { page: 1, size: 10 } });
59
- * ```
60
- * #### output
61
- * ```json
62
- * {
63
- * carts: [
64
- * {
65
- * id: 'cart1',
66
- * name: 'My Cart'
67
- * },
68
- * {
69
- * id: 'cart2',
70
- * name: 'Another Cart'
71
- * }
72
- * ],
73
- * page: 1,
74
- * size: 10,
75
- * totalElement: 2
76
- * }
77
- * ```
78
52
  */
79
53
  export declare function getCarts(params: GetCartsParameters): Promise<GetCartsResponse>;
80
54
  /**
81
- * APICODE(cART100)
82
- * Creates a new cart.
55
+ * 🛒 Creates a new cart.
83
56
  *
84
57
  * This function sends a request to create a new cart with the specified name.
85
58
  *
86
- * @param {CreateCartParameters} params - The parameters for creating the cart, including:
87
- * #### name - `string` | <strong style={{ color: 'red' }}>required</strong>
59
+ * 🛠 **Endpoint**: `POST /v2/shop/carts [cART100]`
88
60
  *
89
- * The name of the cart to create.
61
+ * | Parameter | Type | Required | Description |
62
+ * |------------|----------|------------|---------------------------------|
63
+ * | `name` | `string` | ✅ | The name of the cart to create. |
90
64
  *
91
- * @returns {Promise<GetCartResponse>} - A promise that resolves when the cart is created.
65
+ * 📤 **Returns**:
66
+ * A `Promise` resolving to a `GetCartResponse` object, confirming the creation of the cart.
92
67
  *
93
- * @example
94
- * #### input
95
- * ```typescript
68
+ * 🛠 **Example usage**:
69
+ * ```ts
96
70
  * await createCart({ name: 'New Cart' });
97
71
  * ```
98
- * #### output
99
- * ```json
100
- * {
101
- * "message": "Cart created successfully"
102
- * }
103
- * ```
72
+ *
73
+ * @param {CreateCartParameters} params - The parameters for creating the cart:
74
+ * - `name` - The name of the cart to create.
75
+ *
76
+ * @returns {Promise<GetCartResponse>} - A promise that resolves when the cart is created.
104
77
  */
105
78
  export declare function createCart(params: CreateCartParameters): Promise<GetCartResponse>;
106
79
  /**
107
- * APICODE(cART300)
108
- * Deletes a specific cart.
80
+ * 🗑️ Deletes a specific cart.
109
81
  *
110
82
  * This function sends a request to delete the cart identified by its ID.
111
83
  *
112
- * @param {DeleteCartParameters} params - The parameters to identify the cart to delete, including:
113
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
84
+ * 🛠 **Endpoint**: `DELETE /v2/shop/carts/{cartId} [cART300]`
114
85
  *
115
- * The ID of the cart to delete.
86
+ * | Parameter | Type | Required | Description |
87
+ * |------------|----------|------------|----------------------------------|
88
+ * | `cartId` | `string` | ✅ | The ID of the cart to delete. |
116
89
  *
117
- * @returns {Promise<void>} - A promise that resolves when the cart is deleted.
90
+ * 📤 **Returns**:
91
+ * A `Promise<void>` that resolves when the cart is successfully deleted.
118
92
  *
119
- * @example
120
- * #### input
121
- * ```typescript
93
+ * 🛠 **Example usage**:
94
+ * ```ts
122
95
  * await deleteCart({ cartId: 'cart1' });
123
96
  * ```
124
- * #### output
125
- * ```json
126
- * {
127
- * "message": "Cart deleted successfully"
128
- * }
129
- * ```
97
+ *
98
+ * @param {DeleteCartParameters} params - The parameters to identify the cart to delete:
99
+ * - `cartId` - The ID of the cart to delete.
100
+ *
101
+ * @returns {Promise<void>} - A promise that resolves when the cart is deleted.
130
102
  */
131
103
  export declare function deleteCart(params: DeleteCartParameters): Promise<void>;
132
104
  /**
133
- * APICODE(cART500)
134
- * Retrieves the details of a specific cart.
105
+ * 🛒 Retrieves the details of a specific cart.
135
106
  *
136
107
  * This function allows fetching the information of a cart based on its ID.
137
108
  *
138
- * @param {GetCartParameters} params - The parameters for identifying the cart, including:
139
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
140
- *
141
- * The ID of the cart to retrieve.
142
- * #### currency - `string` | <strong style={{ color: 'red' }}>required</strong>
143
- *
144
- * The currency in which to display the cart.
145
- * #### nbFirstLines - `number[]`
109
+ * 🛠 **Endpoint**: `GET /v2/shop/carts/{cartId} [cART500]`
146
110
  *
147
- * The number of lines to retrieve.
111
+ * | Parameter | Type | Required | Description |
112
+ * |-----------------|-----------|------------|-------------------------------------------------|
113
+ * | `cartId` | `string` | ✅ | The ID of the cart to retrieve. |
114
+ * | `currency` | `string` | ✅ | The currency in which to display the cart. |
115
+ * | `nbFirstLines` | `number[]`| ❌ | The number of lines to retrieve. |
148
116
  *
149
- * @returns {Promise<GetCartResponse>} - An object containing the details of the cart.
117
+ * 📤 **Returns**:
118
+ * A `Promise<GetCartResponse>` containing the details of the requested cart.
150
119
  *
151
- * @example
152
- * #### input
153
- * ```typescript
120
+ * 🛠 **Example usage**:
121
+ * ```ts
154
122
  * const cartDetails = await getCart({ cartId: 'cart1', currency: 'USD' });
155
123
  * ```
156
- * #### output
157
- * ```json
158
- * {
159
- * "id": "cart1",
160
- * "name": "My Cart",
161
- * "totalPrice": 100,
162
- * "lines": [
163
- * {
164
- * "productName": "Product A",
165
- * "quantity": 2
166
- * }
167
- * ]
168
- * }
169
- * ```
124
+ *
125
+ * @param {GetCartParameters} params - The parameters for identifying the cart:
126
+ * - `cartId` - The ID of the cart to retrieve.
127
+ * - `currency` - The currency in which to display the cart.
128
+ * - `nbFirstLines` - (Optional) The number of lines to retrieve.
129
+ *
130
+ * @returns {Promise<GetCartResponse>} - A promise resolving to the cart details.
170
131
  */
171
132
  export declare function getCart(params: GetCartParameters): Promise<GetCartResponse>;
172
133
  /**
173
- * APICODE(cART200)
174
- * Updates an existing cart.
134
+ * ✏️ Updates an existing cart.
175
135
  *
176
136
  * This function sends a request to update the name of a cart identified by its ID.
177
137
  *
178
- * @param {UpdateCartParameters} params - The parameters for updating the cart, including:
179
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
138
+ * 🛠 **Endpoint**: `PUT /v2/shop/carts/{cartId} [cART200]`
180
139
  *
181
- * The ID of the cart to update.
182
- * #### name - `string` | <strong style={{ color: 'red' }}>required</strong>
140
+ * | Parameter | Type | Required | Description |
141
+ * |------------|----------|------------|---------------------------------------|
142
+ * | `cartId` | `string` | ✅ | The ID of the cart to update. |
143
+ * | `name` | `string` | ✅ | The new name of the cart. |
183
144
  *
184
- * The new name of the cart.
145
+ * 📤 **Returns**:
146
+ * A `Promise<void>` that resolves when the cart is successfully updated.
185
147
  *
186
- * @returns {Promise<void>} - A promise that resolves when the cart is updated.
187
- *
188
- * @example
189
- * #### input
190
- * ```typescript
148
+ * 🛠 **Example usage**:
149
+ * ```ts
191
150
  * await updateCart({ cartId: 'cart1', name: 'Updated Cart Name' });
192
151
  * ```
193
- * #### output
194
- * ```json
195
- * {
196
- * "message": "Cart updated successfully"
197
- * }
198
- * ```
152
+ *
153
+ * @param {UpdateCartParameters} params - The parameters for updating the cart:
154
+ * - `cartId` - The ID of the cart to update.
155
+ * - `name` - The new name of the cart.
156
+ *
157
+ * @returns {Promise<void>} - A promise that resolves when the update is successful.
199
158
  */
200
159
  export declare function updateCart(params: UpdateCartParameters): Promise<void>;
201
160
  /**
202
- * APICODE(cART101)
203
- * Initializes orders from a cart.
161
+ * 🛒 Initializes orders from a cart.
204
162
  *
205
163
  * This function sends a request to initialize an order from a specified cart.
206
164
  *
207
- * @param {InitializeOrdersFromCartParameters} params - The parameters for initializing orders, including:
208
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
165
+ * 🛠 **Endpoint**: `POST /v2/shop/carts/{cartId}/initialize-orders [cART101]`
209
166
  *
210
- * The ID of the cart from which to initialize the order.
167
+ * | Parameter | Type | Required | Description |
168
+ * |------------|----------|------------|------------------------------------------|
169
+ * | `cartId` | `string` | ✅ | The ID of the cart to initialize orders. |
211
170
  *
212
- * @returns {Promise<string>} - The business ID of the commercial order if the initialization succeeds.
171
+ * 📤 **Returns**:
172
+ * A `Promise<string>` containing the business ID of the created order.
213
173
  *
214
- * @example
215
- * #### input
216
- * ```typescript
174
+ * 🛠 **Example usage**:
175
+ * ```ts
217
176
  * const orderId = await initializeOrdersFromCart({ cartId: 'cart1' });
218
177
  * ```
219
- * #### output
220
- * ```json
221
- * {
222
- * "orderId": "order123"
223
- * }
224
- * ```
178
+ *
179
+ * @param {InitializeOrdersFromCartParameters} params - Parameters for initializing orders:
180
+ * - `cartId` - The ID of the cart to initialize orders from.
181
+ *
182
+ * @returns {Promise<string>} - The business ID of the created order.
225
183
  */
226
184
  export declare function initializeOrdersFromCart(params: InitializeOrdersFromCartParameters): Promise<string>;
227
185
  /**
228
- * CARTLINES ENDPOINT
229
- */
230
- /**
231
- * APICODE(cART350)
232
- * Deletes lines from a cart.
186
+ * 🗑️ Deletes lines from a cart.
233
187
  *
234
188
  * This function sends a request to delete specific lines from a cart.
235
189
  *
236
- * @param {DeleteCartLinesParameters} params - The parameters for deleting lines from the cart, including:
237
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
190
+ * 🛠 **Endpoint**: `DELETE /v2/shop/carts/{cartId}/lines [cART350]`
238
191
  *
239
- * The ID of the cart.
240
- * #### `lineIdsToDelete` - `string[]` | <strong style={{ color: 'red' }}>required</strong>
192
+ * | Parameter | Type | Required | Description |
193
+ * |--------------------|------------|------------|--------------------------------------|
194
+ * | `cartId` | `string` | ✅ | The ID of the cart. |
195
+ * | `lineIdsToDelete` | `string[]` | ✅ | The IDs of the lines to delete. |
241
196
  *
242
- * The IDs of the lines to delete.
197
+ * 📤 **Returns**:
198
+ * A `Promise<DeleteCartLinesResponse>` containing details about the deleted lines.
243
199
  *
244
- * @returns {Promise<DeleteCartLinesResponse>} - An object containing information about the deleted lines.
245
- *
246
- * @example
247
- * #### input
248
- * ```typescript
249
- * const response = await deleteCartLines({ cartId: 'cart1', lineIdsToDelete: ['line1', 'line2'] });
250
- * ```
251
- * #### output
252
- * ```json
253
- * {
254
- * "singleWarningReportDto": []
255
- * }
200
+ * 🛠 **Example usage**:
201
+ * ```ts
202
+ * const response = await deleteCartLines({
203
+ * cartId: 'cart1',
204
+ * lineIdsToDelete: ['line1', 'line2']
205
+ * });
256
206
  * ```
207
+ *
208
+ * @param {DeleteCartLinesParameters} params - Parameters for deleting cart lines:
209
+ * - `cartId` - The ID of the cart.
210
+ * - `lineIdsToDelete` - The IDs of the lines to delete.
211
+ *
212
+ * @returns {Promise<DeleteCartLinesResponse>} - Response with details about the deleted lines.
257
213
  */
258
214
  export declare function deleteCartLines(params: DeleteCartLinesParameters): Promise<DeleteCartLinesResponse>;
259
215
  /**
260
- * APICODE(cART551)
261
- * Fetches the lines of a shopping cart based on the provided parameters.
216
+ * 📋 Fetches the lines of a shopping cart.
262
217
  *
263
218
  * This function retrieves detailed information about the items (lines) in a shopping cart.
264
219
  * It supports filtering by supplier, product variant, or offer price and handles pagination.
265
220
  *
266
- * @param {GetCartLinesParameters} params - The parameters for retrieving cart lines, including:
267
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
268
- *
269
- * The ID of the cart.
270
- * #### currency - `string` | <strong style={{ color: 'red' }}>required</strong>
271
- *
272
- * The currency in which prices should be returned (e.g., "USD").
273
- * #### pageable - `object` | <strong style={{ color: 'red' }}>required</strong>
274
- *
275
- * Pagination details, such as page number and size.
276
- * #### supplierId - `string[]`
221
+ * 🛠 **Endpoint**: `GET /v2/shop/carts/{cartId}/lines [cART551]`
277
222
  *
278
- * Filter by a specific supplier's ID.
279
- * #### productVariantId - `string[]`
223
+ * | Parameter | Type | Required | Description |
224
+ * |---------------------|------------|------------|------------------------------------------|
225
+ * | `cartId` | `string` | ✅ | The ID of the cart. |
226
+ * | `currency` | `string` | ✅ | The currency in which prices are shown. |
227
+ * | `pageable` | `object` | ✅ | Pagination details (page number, size). |
228
+ * | `supplierId` | `string[]` | ❌ | Filter by specific supplier IDs. |
229
+ * | `productVariantId` | `string[]` | ❌ | Filter by specific product variants. |
230
+ * | `offerPriceId` | `string[]` | ❌ | Filter by specific offer price IDs. |
280
231
  *
281
- * Filter by a specific product variant's ID.
282
- * #### offerPriceId - `string[]`
232
+ * 📤 **Returns**:
233
+ * A `Promise<GetCartLinesResponse>` containing the lines of the cart.
283
234
  *
284
- * Filter by a specific offer price ID.
285
- *
286
- * @returns {Promise<GetCartLinesResponse>} - A promise resolving to the response containing cart lines information.
287
- *
288
- * @example
289
- * #### input
290
- * ```typescript
235
+ * 🛠 **Example usage**:
236
+ * ```ts
291
237
  * const cartLines = await getCartLines({
292
238
  * cartId: 'cart1',
293
239
  * currency: 'USD',
294
240
  * pageable: { page: 1, size: 10 },
295
- * supplierId: ['supplier1'],
296
- * productVariantId: ['variant1'],
297
- * offerPriceId: ['offer1']
241
+ * supplierId: ['supplier1']
298
242
  * });
299
243
  * ```
300
- * #### output
301
- * ```json
302
- * {
303
- * "lines": [
304
- * {
305
- * "productName": "Product A",
306
- * "quantity": 2,
307
- * "price": 20
308
- * }
309
- * ],
310
- * "totalItems": 1,
311
- * "totalPages": 1
312
- * }
313
- * ```
244
+ *
245
+ * @param {GetCartLinesParameters} params - Parameters for fetching cart lines:
246
+ * - `cartId` - The ID of the cart.
247
+ * - `currency` - The currency for prices.
248
+ * - `pageable` - Pagination details.
249
+ * - `supplierId` (optional) - Supplier IDs for filtering.
250
+ * - `productVariantId` (optional) - Product variant IDs for filtering.
251
+ * - `offerPriceId` (optional) - Offer price IDs for filtering.
252
+ *
253
+ * @returns {Promise<GetCartLinesResponse>} - Response containing cart lines information.
314
254
  */
315
255
  export declare function getCartLines(params: GetCartLinesParameters): Promise<GetCartLinesResponse>;
316
256
  /**
317
- * APICODE(cART150)
318
- * Updates the lines of a cart.
319
- *
320
- * This function sends a request to update the lines of a specified cart.
257
+ * ✏️ Updates the lines of a cart.
321
258
  *
322
- * @param {UpdateCartLinesParameters} params - The parameters for updating the cart lines, including:
323
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
259
+ * This function sends a request to update specific lines of a shopping cart.
324
260
  *
325
- * The ID of the cart.
326
- * #### `linesToUpdate` - `object[]` | <strong style={{ color: 'red' }}>required</strong>
261
+ * 🛠 **Endpoint**: `PUT /v2/shop/carts/{cartId}/lines [cART150]`
327
262
  *
328
- * The lines to update with their details.
263
+ * | Parameter | Type | Required | Description |
264
+ * |-------------------|------------|------------|----------------------------------------|
265
+ * | `cartId` | `string` | ✅ | The ID of the cart. |
266
+ * | `linesToUpdate` | `object[]` | ✅ | Details of the lines to update. |
329
267
  *
330
- * @returns {Promise<UpdateCartLinesResponse>} - An object containing information about the updated lines.
268
+ * 📤 **Returns**:
269
+ * A `Promise<UpdateCartLinesResponse>` containing the updated lines' information.
331
270
  *
332
- * @example
333
- * #### input
334
- * ```typescript
271
+ * 🛠 **Example usage**:
272
+ * ```ts
335
273
  * const response = await updateCartLines({
336
274
  * cartId: 'cart1',
337
275
  * linesToUpdate: [
338
276
  * { offerPriceId: 'line1', quantity: 3, updateAction: 'update' }
339
- * ],
277
+ * ]
340
278
  * });
341
279
  * ```
342
- * #### output
343
- * ```json
344
- * {
345
- * "singleWarningReportDto": []
346
- * }
347
- * ```
280
+ *
281
+ * @param {UpdateCartLinesParameters} params - Parameters for updating cart lines:
282
+ * - `cartId` - The ID of the cart.
283
+ * - `linesToUpdate` - Details of the lines to update.
284
+ *
285
+ * @returns {Promise<UpdateCartLinesResponse>} - Response with details about the updated lines.
348
286
  */
349
287
  export declare function updateCartLines(params: UpdateCartLinesParameters): Promise<UpdateCartLinesResponse>;
350
288
  /**
351
- * APICODE(cART151)
352
- * Updates the lines of a cart by variant.
289
+ * ✏️ Updates the lines of a cart by variant.
353
290
  *
354
- * This function sends a request to update the lines of a cart based on the product variant.
291
+ * This function sends a request to update cart lines based on product variants.
355
292
  *
356
- * @param {UpdateCartLinesByVariantParameters} params - The parameters for updating the cart lines by variant, including:
357
- * #### cartId - `string` | <strong style={{ color: 'red' }}>required</strong>
293
+ * 🛠 **Endpoint**: `PUT /v2/shop/carts/{cartId}/lines-by-variant [cART151]`
358
294
  *
359
- * The ID of the cart.
360
- * #### linesToUpdate - `object[]` | <strong style={{ color: 'red' }}>required</strong>
295
+ * | Parameter | Type | Required | Description |
296
+ * |-------------------|------------|------------|----------------------------------------|
297
+ * | `cartId` | `string` | ✅ | The ID of the cart. |
298
+ * | `linesToUpdate` | `object[]` | ✅ | Details of the lines to update. |
361
299
  *
362
- * The lines to update with their details.
300
+ * 📤 **Returns**:
301
+ * A `Promise<UpdateCartLinesByVariantResponse>` containing the updated lines' information.
363
302
  *
364
- * @returns {Promise<UpdateCartLinesByVariantResponse>} - An object containing information about the updated lines by variant.
365
- *
366
- * @example
367
- * #### input
368
- * ```typescript
303
+ * 🛠 **Example usage**:
304
+ * ```ts
369
305
  * const response = await updateCartLinesByVariant({
370
306
  * cartId: 'cart1',
371
307
  * linesToUpdate: [
372
308
  * { offerPriceId: 'variant1', quantity: 2, updateAction: 'update' }
373
- * ],
309
+ * ]
374
310
  * });
375
311
  * ```
376
- * #### output
377
- * ```json
378
- * {
379
- * "singleWarningReportDto": []
380
- * }
381
- * ```
312
+ *
313
+ * @param {UpdateCartLinesByVariantParameters} params - Parameters for updating cart lines by variant:
314
+ * - `cartId` - The ID of the cart.
315
+ * - `linesToUpdate` - Details of the lines to update.
316
+ *
317
+ * @returns {Promise<UpdateCartLinesByVariantResponse>} - Response with details about the updated lines by variant.
382
318
  */
383
319
  export declare function updateCartLinesByVariant(params: UpdateCartLinesByVariantParameters): Promise<UpdateCartLinesByVariantResponse>;