@revenexx/sdk 0.0.4 → 0.0.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.
Files changed (90) hide show
  1. package/dist/cjs/sdk.js +7445 -1584
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +7422 -1585
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +7445 -1584
  6. package/package.json +1 -1
  7. package/src/client.ts +1 -1
  8. package/src/enums/address-type.ts +4 -0
  9. package/src/enums/cart-export-format.ts +4 -0
  10. package/src/enums/cart-io-apply-mode.ts +5 -0
  11. package/src/enums/cart-io-direction.ts +4 -0
  12. package/src/enums/cart-io-entity.ts +4 -0
  13. package/src/enums/cart-io-format.ts +4 -0
  14. package/src/enums/cart-item-type.ts +5 -0
  15. package/src/enums/channel-status.ts +4 -0
  16. package/src/enums/channel-type.ts +7 -0
  17. package/src/enums/contact-role.ts +6 -0
  18. package/src/enums/contact-status.ts +5 -0
  19. package/src/enums/location-type.ts +6 -0
  20. package/src/enums/market-status.ts +4 -0
  21. package/src/enums/order-comment-visibility.ts +4 -0
  22. package/src/enums/order-item-type.ts +5 -0
  23. package/src/enums/order-payment-status.ts +9 -0
  24. package/src/enums/organization-status.ts +4 -0
  25. package/src/enums/page-status.ts +5 -0
  26. package/src/enums/payment-fee-type.ts +5 -0
  27. package/src/enums/payment-method-kind.ts +4 -0
  28. package/src/enums/price-entry-type.ts +4 -0
  29. package/src/enums/price-list-status.ts +4 -0
  30. package/src/enums/shipping-method-matrix-basis.ts +6 -0
  31. package/src/enums/shipping-method-pricing-type.ts +5 -0
  32. package/src/index.ts +24 -0
  33. package/src/models.ts +4303 -941
  34. package/src/services/apps.ts +154 -154
  35. package/src/services/avatars.ts +57 -57
  36. package/src/services/carts.ts +739 -104
  37. package/src/services/channels.ts +147 -19
  38. package/src/services/customers.ts +801 -69
  39. package/src/services/greetings.ts +18 -18
  40. package/src/services/inventories.ts +620 -65
  41. package/src/services/locale.ts +16 -16
  42. package/src/services/markets.ts +373 -75
  43. package/src/services/messaging.ts +273 -273
  44. package/src/services/orders.ts +692 -137
  45. package/src/services/pages.ts +377 -157
  46. package/src/services/payments.ts +591 -64
  47. package/src/services/prices.ts +524 -59
  48. package/src/services/products.ts +1836 -272
  49. package/src/services/search.ts +24 -24
  50. package/src/services/shipping.ts +444 -59
  51. package/src/services/sites.ts +116 -116
  52. package/src/services/storage.ts +72 -72
  53. package/src/services/tokens.ts +14 -14
  54. package/types/enums/address-type.d.ts +4 -0
  55. package/types/enums/cart-export-format.d.ts +4 -0
  56. package/types/enums/cart-io-apply-mode.d.ts +5 -0
  57. package/types/enums/cart-io-direction.d.ts +4 -0
  58. package/types/enums/cart-io-entity.d.ts +4 -0
  59. package/types/enums/cart-io-format.d.ts +4 -0
  60. package/types/enums/cart-item-type.d.ts +5 -0
  61. package/types/enums/channel-status.d.ts +4 -0
  62. package/types/enums/channel-type.d.ts +7 -0
  63. package/types/enums/contact-role.d.ts +6 -0
  64. package/types/enums/contact-status.d.ts +5 -0
  65. package/types/enums/location-type.d.ts +6 -0
  66. package/types/enums/market-status.d.ts +4 -0
  67. package/types/enums/order-comment-visibility.d.ts +4 -0
  68. package/types/enums/order-item-type.d.ts +5 -0
  69. package/types/enums/order-payment-status.d.ts +9 -0
  70. package/types/enums/organization-status.d.ts +4 -0
  71. package/types/enums/page-status.d.ts +5 -0
  72. package/types/enums/payment-fee-type.d.ts +5 -0
  73. package/types/enums/payment-method-kind.d.ts +4 -0
  74. package/types/enums/price-entry-type.d.ts +4 -0
  75. package/types/enums/price-list-status.d.ts +4 -0
  76. package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
  77. package/types/enums/shipping-method-pricing-type.d.ts +5 -0
  78. package/types/index.d.ts +24 -0
  79. package/types/models.d.ts +4214 -970
  80. package/types/services/carts.d.ts +271 -12
  81. package/types/services/channels.d.ts +54 -2
  82. package/types/services/customers.d.ts +295 -12
  83. package/types/services/inventories.d.ts +225 -11
  84. package/types/services/markets.d.ts +123 -6
  85. package/types/services/orders.d.ts +238 -16
  86. package/types/services/pages.d.ts +95 -6
  87. package/types/services/payments.d.ts +221 -7
  88. package/types/services/prices.d.ts +198 -6
  89. package/types/services/products.d.ts +646 -32
  90. package/types/services/shipping.d.ts +165 -6
@@ -1,5 +1,11 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
+ import { CartIoDirection } from '../enums/cart-io-direction';
4
+ import { CartIoApplyMode } from '../enums/cart-io-apply-mode';
5
+ import { CartIoEntity } from '../enums/cart-io-entity';
6
+ import { CartIoFormat } from '../enums/cart-io-format';
7
+ import { CartItemType } from '../enums/cart-item-type';
8
+ import { CartExportFormat } from '../enums/cart-export-format';
3
9
  export declare class Carts {
4
10
  client: Client;
5
11
  constructor(client: Client);
@@ -11,22 +17,100 @@ export declare class Carts {
11
17
  cartsList(): Promise<{}>;
12
18
  /**
13
19
  *
20
+ * @param {string} params.channelId -
21
+ * @param {string} params.contactId - Owning customer contact.
22
+ * @param {string} params.currency - ISO 4217 code (default EUR).
23
+ * @param {boolean} params.isCurrent - Make this THE current cart of its owner.
24
+ * @param {string} params.marketId -
25
+ * @param {object} params.metadata - Free-form metadata.
26
+ * @param {string} params.name - Display name (default 'Cart').
27
+ * @param {string} params.sessionKey - Owning guest session.
14
28
  * @throws {RevenexxException}
15
29
  * @returns {Promise<Models.Cart>}
16
30
  */
17
- cartsCreate(): Promise<Models.Cart>;
31
+ cartsCreate(params?: {
32
+ channelId?: string;
33
+ contactId?: string;
34
+ currency?: string;
35
+ isCurrent?: boolean;
36
+ marketId?: string;
37
+ metadata?: object;
38
+ name?: string;
39
+ sessionKey?: string;
40
+ }): Promise<Models.Cart>;
41
+ /**
42
+ *
43
+ * @param {string} channelId -
44
+ * @param {string} contactId - Owning customer contact.
45
+ * @param {string} currency - ISO 4217 code (default EUR).
46
+ * @param {boolean} isCurrent - Make this THE current cart of its owner.
47
+ * @param {string} marketId -
48
+ * @param {object} metadata - Free-form metadata.
49
+ * @param {string} name - Display name (default 'Cart').
50
+ * @param {string} sessionKey - Owning guest session.
51
+ * @throws {RevenexxException}
52
+ * @returns {Promise<Models.Cart>}
53
+ * @deprecated Use the object parameter style method for a better developer experience.
54
+ */
55
+ cartsCreate(channelId?: string, contactId?: string, currency?: string, isCurrent?: boolean, marketId?: string, metadata?: object, name?: string, sessionKey?: string): Promise<Models.Cart>;
56
+ /**
57
+ *
58
+ * @param {string} params.contactId - Contact taking ownership.
59
+ * @param {string} params.sessionKey - Guest session whose active carts are handed over.
60
+ * @param {string} params.targetCartId - Merge the session carts into this cart instead of adopting them.
61
+ * @throws {RevenexxException}
62
+ * @returns {Promise<{}>}
63
+ */
64
+ cartsClaim(params: {
65
+ contactId: string;
66
+ sessionKey: string;
67
+ targetCartId?: string;
68
+ }): Promise<{}>;
18
69
  /**
19
70
  *
71
+ * @param {string} contactId - Contact taking ownership.
72
+ * @param {string} sessionKey - Guest session whose active carts are handed over.
73
+ * @param {string} targetCartId - Merge the session carts into this cart instead of adopting them.
20
74
  * @throws {RevenexxException}
21
75
  * @returns {Promise<{}>}
76
+ * @deprecated Use the object parameter style method for a better developer experience.
22
77
  */
23
- cartsClaim(): Promise<{}>;
78
+ cartsClaim(contactId: string, sessionKey: string, targetCartId?: string): Promise<{}>;
24
79
  /**
25
80
  *
81
+ * @param {string} params.contactId - Owner of a newly created cart.
82
+ * @param {string} params.csv - Raw CSV content (alternative to payload for csv profiles).
83
+ * @param {string} params.name - Name for a newly created cart.
84
+ * @param {object} params.payload - The import payload: '{cart, items}' object, or a raw JSON/CSV string in the profile's format.
85
+ * @param {string} params.profileId - Import profile to run; ad-hoc import when omitted.
86
+ * @param {string} params.sessionKey - Guest owner of a newly created cart.
87
+ * @param {string} params.targetCartId - Existing active cart to import into.
26
88
  * @throws {RevenexxException}
27
89
  * @returns {Promise<{}>}
28
90
  */
29
- cartsImport(): Promise<{}>;
91
+ cartsImport(params?: {
92
+ contactId?: string;
93
+ csv?: string;
94
+ name?: string;
95
+ payload?: object;
96
+ profileId?: string;
97
+ sessionKey?: string;
98
+ targetCartId?: string;
99
+ }): Promise<{}>;
100
+ /**
101
+ *
102
+ * @param {string} contactId - Owner of a newly created cart.
103
+ * @param {string} csv - Raw CSV content (alternative to payload for csv profiles).
104
+ * @param {string} name - Name for a newly created cart.
105
+ * @param {object} payload - The import payload: '{cart, items}' object, or a raw JSON/CSV string in the profile's format.
106
+ * @param {string} profileId - Import profile to run; ad-hoc import when omitted.
107
+ * @param {string} sessionKey - Guest owner of a newly created cart.
108
+ * @param {string} targetCartId - Existing active cart to import into.
109
+ * @throws {RevenexxException}
110
+ * @returns {Promise<{}>}
111
+ * @deprecated Use the object parameter style method for a better developer experience.
112
+ */
113
+ cartsImport(contactId?: string, csv?: string, name?: string, payload?: object, profileId?: string, sessionKey?: string, targetCartId?: string): Promise<{}>;
30
114
  /**
31
115
  *
32
116
  * @throws {RevenexxException}
@@ -35,10 +119,42 @@ export declare class Carts {
35
119
  cartsIoProfilesList(): Promise<{}>;
36
120
  /**
37
121
  *
122
+ * @param {CartIoDirection} params.direction -
123
+ * @param {string} params.name -
124
+ * @param {CartIoApplyMode} params.applyMode - Default 'insert'.
125
+ * @param {CartIoEntity} params.entity - Default 'carts'.
126
+ * @param {CartIoFormat} params.format - Default 'json'.
127
+ * @param {boolean} params.isTemplate -
128
+ * @param {object} params.mapping - Column mapping (Baseline-IO-compatible).
129
+ * @param {object} params.options -
38
130
  * @throws {RevenexxException}
39
131
  * @returns {Promise<Models.IoProfile>}
40
132
  */
41
- cartsIoProfilesCreate(): Promise<Models.IoProfile>;
133
+ cartsIoProfilesCreate(params: {
134
+ direction: CartIoDirection;
135
+ name: string;
136
+ applyMode?: CartIoApplyMode;
137
+ entity?: CartIoEntity;
138
+ format?: CartIoFormat;
139
+ isTemplate?: boolean;
140
+ mapping?: object;
141
+ options?: object;
142
+ }): Promise<Models.IoProfile>;
143
+ /**
144
+ *
145
+ * @param {CartIoDirection} direction -
146
+ * @param {string} name -
147
+ * @param {CartIoApplyMode} applyMode - Default 'insert'.
148
+ * @param {CartIoEntity} entity - Default 'carts'.
149
+ * @param {CartIoFormat} format - Default 'json'.
150
+ * @param {boolean} isTemplate -
151
+ * @param {object} mapping - Column mapping (Baseline-IO-compatible).
152
+ * @param {object} options -
153
+ * @throws {RevenexxException}
154
+ * @returns {Promise<Models.IoProfile>}
155
+ * @deprecated Use the object parameter style method for a better developer experience.
156
+ */
157
+ cartsIoProfilesCreate(direction: CartIoDirection, name: string, applyMode?: CartIoApplyMode, entity?: CartIoEntity, format?: CartIoFormat, isTemplate?: boolean, mapping?: object, options?: object): Promise<Models.IoProfile>;
42
158
  /**
43
159
  *
44
160
  * @throws {RevenexxException}
@@ -82,26 +198,64 @@ export declare class Carts {
82
198
  /**
83
199
  *
84
200
  * @param {string} params.id -
201
+ * @param {CartIoApplyMode} params.applyMode - Default 'insert'.
202
+ * @param {CartIoDirection} params.direction -
203
+ * @param {CartIoEntity} params.entity - Default 'carts'.
204
+ * @param {CartIoFormat} params.format - Default 'json'.
205
+ * @param {boolean} params.isTemplate -
206
+ * @param {object} params.mapping - Column mapping (Baseline-IO-compatible).
207
+ * @param {string} params.name -
208
+ * @param {object} params.options -
85
209
  * @throws {RevenexxException}
86
210
  * @returns {Promise<Models.IoProfile>}
87
211
  */
88
212
  cartsIoProfilesUpdate(params: {
89
213
  id: string;
214
+ applyMode?: CartIoApplyMode;
215
+ direction?: CartIoDirection;
216
+ entity?: CartIoEntity;
217
+ format?: CartIoFormat;
218
+ isTemplate?: boolean;
219
+ mapping?: object;
220
+ name?: string;
221
+ options?: object;
90
222
  }): Promise<Models.IoProfile>;
91
223
  /**
92
224
  *
93
225
  * @param {string} id -
226
+ * @param {CartIoApplyMode} applyMode - Default 'insert'.
227
+ * @param {CartIoDirection} direction -
228
+ * @param {CartIoEntity} entity - Default 'carts'.
229
+ * @param {CartIoFormat} format - Default 'json'.
230
+ * @param {boolean} isTemplate -
231
+ * @param {object} mapping - Column mapping (Baseline-IO-compatible).
232
+ * @param {string} name -
233
+ * @param {object} options -
94
234
  * @throws {RevenexxException}
95
235
  * @returns {Promise<Models.IoProfile>}
96
236
  * @deprecated Use the object parameter style method for a better developer experience.
97
237
  */
98
- cartsIoProfilesUpdate(id: string): Promise<Models.IoProfile>;
238
+ cartsIoProfilesUpdate(id: string, applyMode?: CartIoApplyMode, direction?: CartIoDirection, entity?: CartIoEntity, format?: CartIoFormat, isTemplate?: boolean, mapping?: object, name?: string, options?: object): Promise<Models.IoProfile>;
239
+ /**
240
+ *
241
+ * @param {string} params.sourceCartId - Cart whose lines move into the target (becomes status merged).
242
+ * @param {string} params.targetCartId - Receiving cart (must be active).
243
+ * @throws {RevenexxException}
244
+ * @returns {Promise<{}>}
245
+ */
246
+ cartsMerge(params: {
247
+ sourceCartId: string;
248
+ targetCartId: string;
249
+ }): Promise<{}>;
99
250
  /**
100
251
  *
252
+ * @param {string} sourceCartId - Cart whose lines move into the target (becomes status merged).
253
+ * @param {string} targetCartId - Receiving cart (must be active).
101
254
  * @throws {RevenexxException}
102
255
  * @returns {Promise<{}>}
256
+ * @deprecated Use the object parameter style method for a better developer experience.
103
257
  */
104
- cartsMerge(): Promise<{}>;
258
+ cartsMerge(sourceCartId: string, targetCartId: string): Promise<{}>;
105
259
  /**
106
260
  *
107
261
  * @param {string} params.cartId -
@@ -122,37 +276,79 @@ export declare class Carts {
122
276
  /**
123
277
  *
124
278
  * @param {string} params.cartId -
279
+ * @param {object} params.configuration - Free-form configuration — configured lines never merge.
280
+ * @param {string} params.currency - Defaults to the cart's currency.
281
+ * @param {object} params.metadata - Free-form metadata.
282
+ * @param {string} params.name - Falls back to 'sku' when omitted.
283
+ * @param {number} params.position -
284
+ * @param {string} params.productId -
285
+ * @param {number} params.quantity - Default 1.
286
+ * @param {string} params.sku -
287
+ * @param {object} params.snapshot - Loose product snapshot at add-time (price, name, image, …).
288
+ * @param {number} params.taxRate -
289
+ * @param {CartItemType} params.type - Line type (default 'product'). Plain product lines merge by product+price; configurations always stand alone.
290
+ * @param {string} params.unit -
291
+ * @param {number} params.unitPrice - Per-unit net price — line_total is always derived.
125
292
  * @throws {RevenexxException}
126
293
  * @returns {Promise<Models.CartItem>}
127
294
  */
128
295
  cartsItemsCreate(params: {
129
296
  cartId: string;
297
+ configuration?: object;
298
+ currency?: string;
299
+ metadata?: object;
300
+ name?: string;
301
+ position?: number;
302
+ productId?: string;
303
+ quantity?: number;
304
+ sku?: string;
305
+ snapshot?: object;
306
+ taxRate?: number;
307
+ type?: CartItemType;
308
+ unit?: string;
309
+ unitPrice?: number;
130
310
  }): Promise<Models.CartItem>;
131
311
  /**
132
312
  *
133
313
  * @param {string} cartId -
314
+ * @param {object} configuration - Free-form configuration — configured lines never merge.
315
+ * @param {string} currency - Defaults to the cart's currency.
316
+ * @param {object} metadata - Free-form metadata.
317
+ * @param {string} name - Falls back to 'sku' when omitted.
318
+ * @param {number} position -
319
+ * @param {string} productId -
320
+ * @param {number} quantity - Default 1.
321
+ * @param {string} sku -
322
+ * @param {object} snapshot - Loose product snapshot at add-time (price, name, image, …).
323
+ * @param {number} taxRate -
324
+ * @param {CartItemType} type - Line type (default 'product'). Plain product lines merge by product+price; configurations always stand alone.
325
+ * @param {string} unit -
326
+ * @param {number} unitPrice - Per-unit net price — line_total is always derived.
134
327
  * @throws {RevenexxException}
135
328
  * @returns {Promise<Models.CartItem>}
136
329
  * @deprecated Use the object parameter style method for a better developer experience.
137
330
  */
138
- cartsItemsCreate(cartId: string): Promise<Models.CartItem>;
331
+ cartsItemsCreate(cartId: string, configuration?: object, currency?: string, metadata?: object, name?: string, position?: number, productId?: string, quantity?: number, sku?: string, snapshot?: object, taxRate?: number, type?: CartItemType, unit?: string, unitPrice?: number): Promise<Models.CartItem>;
139
332
  /**
140
333
  *
141
334
  * @param {string} params.cartId -
335
+ * @param {Models.CartItemCreateRequest[]} params.items - The complete new item set (set semantics).
142
336
  * @throws {RevenexxException}
143
337
  * @returns {Promise<{}>}
144
338
  */
145
339
  cartsItemsReplace(params: {
146
340
  cartId: string;
341
+ items: Models.CartItemCreateRequest[];
147
342
  }): Promise<{}>;
148
343
  /**
149
344
  *
150
345
  * @param {string} cartId -
346
+ * @param {Models.CartItemCreateRequest[]} items - The complete new item set (set semantics).
151
347
  * @throws {RevenexxException}
152
348
  * @returns {Promise<{}>}
153
349
  * @deprecated Use the object parameter style method for a better developer experience.
154
350
  */
155
- cartsItemsReplace(cartId: string): Promise<{}>;
351
+ cartsItemsReplace(cartId: string, items: Models.CartItemCreateRequest[]): Promise<{}>;
156
352
  /**
157
353
  *
158
354
  * @param {string} params.cartId -
@@ -197,22 +393,61 @@ export declare class Carts {
197
393
  *
198
394
  * @param {string} params.cartId -
199
395
  * @param {string} params.id -
396
+ * @param {object} params.configuration - Free-form configuration — configured lines never merge.
397
+ * @param {string} params.currency - Defaults to the cart's currency.
398
+ * @param {object} params.metadata - Free-form metadata.
399
+ * @param {string} params.name - Falls back to 'sku' when omitted.
400
+ * @param {number} params.position -
401
+ * @param {string} params.productId -
402
+ * @param {number} params.quantity - Default 1.
403
+ * @param {string} params.sku -
404
+ * @param {object} params.snapshot - Loose product snapshot at add-time (price, name, image, …).
405
+ * @param {number} params.taxRate -
406
+ * @param {CartItemType} params.type - Line type (default 'product'). Plain product lines merge by product+price; configurations always stand alone.
407
+ * @param {string} params.unit -
408
+ * @param {number} params.unitPrice - Per-unit net price — line_total is always derived.
200
409
  * @throws {RevenexxException}
201
410
  * @returns {Promise<Models.CartItem>}
202
411
  */
203
412
  cartsItemsUpdate(params: {
204
413
  cartId: string;
205
414
  id: string;
415
+ configuration?: object;
416
+ currency?: string;
417
+ metadata?: object;
418
+ name?: string;
419
+ position?: number;
420
+ productId?: string;
421
+ quantity?: number;
422
+ sku?: string;
423
+ snapshot?: object;
424
+ taxRate?: number;
425
+ type?: CartItemType;
426
+ unit?: string;
427
+ unitPrice?: number;
206
428
  }): Promise<Models.CartItem>;
207
429
  /**
208
430
  *
209
431
  * @param {string} cartId -
210
432
  * @param {string} id -
433
+ * @param {object} configuration - Free-form configuration — configured lines never merge.
434
+ * @param {string} currency - Defaults to the cart's currency.
435
+ * @param {object} metadata - Free-form metadata.
436
+ * @param {string} name - Falls back to 'sku' when omitted.
437
+ * @param {number} position -
438
+ * @param {string} productId -
439
+ * @param {number} quantity - Default 1.
440
+ * @param {string} sku -
441
+ * @param {object} snapshot - Loose product snapshot at add-time (price, name, image, …).
442
+ * @param {number} taxRate -
443
+ * @param {CartItemType} type - Line type (default 'product'). Plain product lines merge by product+price; configurations always stand alone.
444
+ * @param {string} unit -
445
+ * @param {number} unitPrice - Per-unit net price — line_total is always derived.
211
446
  * @throws {RevenexxException}
212
447
  * @returns {Promise<Models.CartItem>}
213
448
  * @deprecated Use the object parameter style method for a better developer experience.
214
449
  */
215
- cartsItemsUpdate(cartId: string, id: string): Promise<Models.CartItem>;
450
+ cartsItemsUpdate(cartId: string, id: string, configuration?: object, currency?: string, metadata?: object, name?: string, position?: number, productId?: string, quantity?: number, sku?: string, snapshot?: object, taxRate?: number, type?: CartItemType, unit?: string, unitPrice?: number): Promise<Models.CartItem>;
216
451
  /**
217
452
  *
218
453
  * @param {string} params.id -
@@ -250,20 +485,35 @@ export declare class Carts {
250
485
  /**
251
486
  *
252
487
  * @param {string} params.id -
488
+ * @param {string} params.channelId -
489
+ * @param {string} params.currency - ISO 4217 code.
490
+ * @param {string} params.marketId -
491
+ * @param {object} params.metadata - Free-form metadata.
492
+ * @param {string} params.name -
253
493
  * @throws {RevenexxException}
254
494
  * @returns {Promise<Models.Cart>}
255
495
  */
256
496
  cartsUpdate(params: {
257
497
  id: string;
498
+ channelId?: string;
499
+ currency?: string;
500
+ marketId?: string;
501
+ metadata?: object;
502
+ name?: string;
258
503
  }): Promise<Models.Cart>;
259
504
  /**
260
505
  *
261
506
  * @param {string} id -
507
+ * @param {string} channelId -
508
+ * @param {string} currency - ISO 4217 code.
509
+ * @param {string} marketId -
510
+ * @param {object} metadata - Free-form metadata.
511
+ * @param {string} name -
262
512
  * @throws {RevenexxException}
263
513
  * @returns {Promise<Models.Cart>}
264
514
  * @deprecated Use the object parameter style method for a better developer experience.
265
515
  */
266
- cartsUpdate(id: string): Promise<Models.Cart>;
516
+ cartsUpdate(id: string, channelId?: string, currency?: string, marketId?: string, metadata?: object, name?: string): Promise<Models.Cart>;
267
517
  /**
268
518
  *
269
519
  * @param {string} params.id -
@@ -301,37 +551,46 @@ export declare class Carts {
301
551
  /**
302
552
  *
303
553
  * @param {string} params.id -
554
+ * @param {CartExportFormat} params.format - Ad-hoc export format (only without profile_id).
555
+ * @param {string} params.profileId - Export profile to run; ad-hoc JSON/CSV export when omitted.
304
556
  * @throws {RevenexxException}
305
557
  * @returns {Promise<{}>}
306
558
  */
307
559
  cartsExport(params: {
308
560
  id: string;
561
+ format?: CartExportFormat;
562
+ profileId?: string;
309
563
  }): Promise<{}>;
310
564
  /**
311
565
  *
312
566
  * @param {string} id -
567
+ * @param {CartExportFormat} format - Ad-hoc export format (only without profile_id).
568
+ * @param {string} profileId - Export profile to run; ad-hoc JSON/CSV export when omitted.
313
569
  * @throws {RevenexxException}
314
570
  * @returns {Promise<{}>}
315
571
  * @deprecated Use the object parameter style method for a better developer experience.
316
572
  */
317
- cartsExport(id: string): Promise<{}>;
573
+ cartsExport(id: string, format?: CartExportFormat, profileId?: string): Promise<{}>;
318
574
  /**
319
575
  *
320
576
  * @param {string} params.id -
577
+ * @param {string} params.orderRef - External order reference from order management.
321
578
  * @throws {RevenexxException}
322
579
  * @returns {Promise<Models.Cart>}
323
580
  */
324
581
  cartsOrder(params: {
325
582
  id: string;
583
+ orderRef?: string;
326
584
  }): Promise<Models.Cart>;
327
585
  /**
328
586
  *
329
587
  * @param {string} id -
588
+ * @param {string} orderRef - External order reference from order management.
330
589
  * @throws {RevenexxException}
331
590
  * @returns {Promise<Models.Cart>}
332
591
  * @deprecated Use the object parameter style method for a better developer experience.
333
592
  */
334
- cartsOrder(id: string): Promise<Models.Cart>;
593
+ cartsOrder(id: string, orderRef?: string): Promise<Models.Cart>;
335
594
  /**
336
595
  *
337
596
  * @param {string} params.id -
@@ -1,5 +1,7 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
+ import { ChannelStatus } from '../enums/channel-status';
4
+ import { ChannelType } from '../enums/channel-type';
3
5
  export declare class Channels {
4
6
  client: Client;
5
7
  constructor(client: Client);
@@ -11,10 +13,39 @@ export declare class Channels {
11
13
  channelsList(): Promise<{}>;
12
14
  /**
13
15
  *
16
+ * @param {string} params.code - Stable channel code, unique per tenant (e.g. shop, punchout-acme).
17
+ * @param {string} params.name - Display name.
18
+ * @param {boolean} params.isDefault - Mark as the default channel (default false).
19
+ * @param {object} params.labels - Localized display names keyed by locale.
20
+ * @param {number} params.position - Sort position (default 0).
21
+ * @param {ChannelStatus} params.status - Lifecycle status (default 'active').
22
+ * @param {ChannelType} params.type - Where business happens (default 'storefront').
14
23
  * @throws {RevenexxException}
15
24
  * @returns {Promise<Models.Channel>}
16
25
  */
17
- channelsCreate(): Promise<Models.Channel>;
26
+ channelsCreate(params: {
27
+ code: string;
28
+ name: string;
29
+ isDefault?: boolean;
30
+ labels?: object;
31
+ position?: number;
32
+ status?: ChannelStatus;
33
+ type?: ChannelType;
34
+ }): Promise<Models.Channel>;
35
+ /**
36
+ *
37
+ * @param {string} code - Stable channel code, unique per tenant (e.g. shop, punchout-acme).
38
+ * @param {string} name - Display name.
39
+ * @param {boolean} isDefault - Mark as the default channel (default false).
40
+ * @param {object} labels - Localized display names keyed by locale.
41
+ * @param {number} position - Sort position (default 0).
42
+ * @param {ChannelStatus} status - Lifecycle status (default 'active').
43
+ * @param {ChannelType} type - Where business happens (default 'storefront').
44
+ * @throws {RevenexxException}
45
+ * @returns {Promise<Models.Channel>}
46
+ * @deprecated Use the object parameter style method for a better developer experience.
47
+ */
48
+ channelsCreate(code: string, name: string, isDefault?: boolean, labels?: object, position?: number, status?: ChannelStatus, type?: ChannelType): Promise<Models.Channel>;
18
49
  /**
19
50
  *
20
51
  * @throws {RevenexxException}
@@ -58,18 +89,39 @@ export declare class Channels {
58
89
  /**
59
90
  *
60
91
  * @param {string} params.id -
92
+ * @param {string} params.code - Stable channel code, unique per tenant (e.g. shop, punchout-acme).
93
+ * @param {boolean} params.isDefault - Mark as the default channel (default false).
94
+ * @param {object} params.labels - Localized display names keyed by locale.
95
+ * @param {string} params.name - Display name.
96
+ * @param {number} params.position - Sort position (default 0).
97
+ * @param {ChannelStatus} params.status - Lifecycle status (default 'active').
98
+ * @param {ChannelType} params.type - Where business happens (default 'storefront').
61
99
  * @throws {RevenexxException}
62
100
  * @returns {Promise<Models.Channel>}
63
101
  */
64
102
  channelsUpdate(params: {
65
103
  id: string;
104
+ code?: string;
105
+ isDefault?: boolean;
106
+ labels?: object;
107
+ name?: string;
108
+ position?: number;
109
+ status?: ChannelStatus;
110
+ type?: ChannelType;
66
111
  }): Promise<Models.Channel>;
67
112
  /**
68
113
  *
69
114
  * @param {string} id -
115
+ * @param {string} code - Stable channel code, unique per tenant (e.g. shop, punchout-acme).
116
+ * @param {boolean} isDefault - Mark as the default channel (default false).
117
+ * @param {object} labels - Localized display names keyed by locale.
118
+ * @param {string} name - Display name.
119
+ * @param {number} position - Sort position (default 0).
120
+ * @param {ChannelStatus} status - Lifecycle status (default 'active').
121
+ * @param {ChannelType} type - Where business happens (default 'storefront').
70
122
  * @throws {RevenexxException}
71
123
  * @returns {Promise<Models.Channel>}
72
124
  * @deprecated Use the object parameter style method for a better developer experience.
73
125
  */
74
- channelsUpdate(id: string): Promise<Models.Channel>;
126
+ channelsUpdate(id: string, code?: string, isDefault?: boolean, labels?: object, name?: string, position?: number, status?: ChannelStatus, type?: ChannelType): Promise<Models.Channel>;
75
127
  }