@lcdp/api-react-rest-client 3.1.8-LDS-5585-monolith-create-foreorder-sur-a.23895949813 → 3.1.8-develop.23899180021

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 (205) hide show
  1. package/auth/src/models/RestError.d.ts +5 -3
  2. package/auth/src/models/RestError.js +5 -3
  3. package/auth/src/models/index.d.ts +0 -4
  4. package/auth/src/models/index.js +0 -4
  5. package/catalog/src/models/RestError.d.ts +5 -3
  6. package/catalog/src/models/RestError.js +5 -3
  7. package/chargebee-hook/src/models/RestError.d.ts +5 -3
  8. package/chargebee-hook/src/models/RestError.js +5 -3
  9. package/configuration/src/models/RestError.d.ts +5 -3
  10. package/configuration/src/models/RestError.js +5 -3
  11. package/content/src/models/RestError.d.ts +5 -3
  12. package/content/src/models/RestError.js +5 -3
  13. package/favorite/src/models/RestError.d.ts +5 -3
  14. package/favorite/src/models/RestError.js +5 -3
  15. package/inventory/src/models/RestError.d.ts +5 -3
  16. package/inventory/src/models/RestError.js +5 -3
  17. package/invoice/src/models/RestError.d.ts +5 -3
  18. package/invoice/src/models/RestError.js +5 -3
  19. package/laboratory-store/src/models/RestError.d.ts +5 -3
  20. package/laboratory-store/src/models/RestError.js +5 -3
  21. package/lexicon/src/models/RestError.d.ts +5 -3
  22. package/lexicon/src/models/RestError.js +5 -3
  23. package/litigation/src/models/RestError.d.ts +5 -3
  24. package/litigation/src/models/RestError.js +5 -3
  25. package/magic-cart/src/models/ExpressOrder.d.ts +4 -4
  26. package/magic-cart/src/models/ExpressOrder.js +3 -7
  27. package/magic-cart/src/models/SaleOfferProposal.d.ts +51 -0
  28. package/magic-cart/src/models/SaleOfferProposal.js +61 -0
  29. package/magic-cart/src/models/SellerProposal.d.ts +45 -0
  30. package/magic-cart/src/models/SellerProposal.js +57 -0
  31. package/magic-cart/src/models/index.d.ts +2 -1
  32. package/magic-cart/src/models/index.js +2 -1
  33. package/mangopay-hook/src/models/RestError.d.ts +5 -3
  34. package/mangopay-hook/src/models/RestError.js +5 -3
  35. package/notification/src/models/RestError.d.ts +5 -3
  36. package/notification/src/models/RestError.js +5 -3
  37. package/order/src/apis/ManageMetaOrderApi.d.ts +45 -0
  38. package/{shopping-cart/src/apis/SearchCartLineApi.js → order/src/apis/ManageMetaOrderApi.js} +41 -46
  39. package/order/src/apis/ManageOrderApi.d.ts +8 -8
  40. package/order/src/apis/ManageOrderApi.js +10 -9
  41. package/order/src/apis/index.d.ts +1 -2
  42. package/order/src/apis/index.js +1 -2
  43. package/order/src/models/AnyMetaOrderWarning.d.ts +26 -0
  44. package/order/src/models/AnyMetaOrderWarning.js +50 -0
  45. package/order/src/models/MetaOrder.d.ts +64 -0
  46. package/order/src/models/MetaOrder.js +70 -0
  47. package/order/src/models/MetaOrderCreationParameters.d.ts +38 -0
  48. package/order/src/models/MetaOrderCreationParameters.js +52 -0
  49. package/order/src/models/MetaOrderCreationSubCartParameters.d.ts +31 -0
  50. package/order/src/models/MetaOrderCreationSubCartParameters.js +47 -0
  51. package/order/src/models/MetaOrderPrices.d.ts +79 -0
  52. package/order/src/models/MetaOrderPrices.js +79 -0
  53. package/order/src/models/MetaOrderWarning.d.ts +31 -0
  54. package/order/src/models/MetaOrderWarning.js +47 -0
  55. package/order/src/models/MetaOrderWithWarnings.d.ts +39 -0
  56. package/order/src/models/MetaOrderWithWarnings.js +49 -0
  57. package/order/src/models/Order.d.ts +75 -80
  58. package/order/src/models/Order.js +48 -53
  59. package/order/src/models/OrderAddedItem.d.ts +9 -9
  60. package/order/src/models/OrderAddedItem.js +0 -18
  61. package/order/src/models/OrderItem.d.ts +9 -9
  62. package/order/src/models/OrderItem.js +0 -18
  63. package/order/src/models/OrderItemPrices.d.ts +8 -8
  64. package/order/src/models/OrderItemPrices.js +0 -10
  65. package/order/src/models/{ForeorderItemWarning.d.ts → OrderItemWarning.d.ts} +18 -23
  66. package/order/src/models/{ForeorderItemWarning.js → OrderItemWarning.js} +15 -18
  67. package/order/src/models/OrderPrices.d.ts +9 -9
  68. package/order/src/models/OrderPrices.js +0 -18
  69. package/order/src/models/OrderRefundedItem.d.ts +9 -9
  70. package/order/src/models/OrderRefundedItem.js +0 -18
  71. package/order/src/models/OrderRemovedItem.d.ts +9 -9
  72. package/order/src/models/OrderRemovedItem.js +0 -18
  73. package/order/src/models/OrderWarning.d.ts +51 -0
  74. package/order/src/models/{ForeorderWarning.js → OrderWarning.js} +13 -14
  75. package/order/src/models/Reservation.d.ts +7 -7
  76. package/order/src/models/Reservation.js +0 -14
  77. package/order/src/models/RestError.d.ts +5 -3
  78. package/order/src/models/RestError.js +5 -3
  79. package/order/src/models/ShoppedOffer.d.ts +2 -2
  80. package/order/src/models/ShoppedOffer.js +2 -2
  81. package/order/src/models/index.d.ts +9 -17
  82. package/order/src/models/index.js +9 -17
  83. package/package.json +1 -1
  84. package/product/src/models/RestError.d.ts +5 -3
  85. package/product/src/models/RestError.js +5 -3
  86. package/pub/src/models/RestError.d.ts +5 -3
  87. package/pub/src/models/RestError.js +5 -3
  88. package/rfx/src/models/RestError.d.ts +5 -3
  89. package/rfx/src/models/RestError.js +5 -3
  90. package/sale-offer/src/models/RestError.d.ts +5 -3
  91. package/sale-offer/src/models/RestError.js +5 -3
  92. package/servant/src/apis/ManageTaskApi.d.ts +12 -0
  93. package/servant/src/apis/ManageTaskApi.js +68 -0
  94. package/servant/src/models/RestError.d.ts +5 -3
  95. package/servant/src/models/RestError.js +5 -3
  96. package/servant/src/models/Task.d.ts +6 -0
  97. package/servant/src/models/Task.js +4 -0
  98. package/shipment/src/models/RestError.d.ts +5 -3
  99. package/shipment/src/models/RestError.js +5 -3
  100. package/shopping-cart/src/apis/ManageCartApi.d.ts +24 -35
  101. package/shopping-cart/src/apis/ManageCartApi.js +120 -57
  102. package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +107 -0
  103. package/shopping-cart/src/apis/ManageCartSubCartApi.js +556 -0
  104. package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +151 -0
  105. package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +879 -0
  106. package/shopping-cart/src/apis/index.d.ts +2 -3
  107. package/shopping-cart/src/apis/index.js +2 -3
  108. package/shopping-cart/src/models/Cart.d.ts +4 -61
  109. package/shopping-cart/src/models/Cart.js +2 -47
  110. package/shopping-cart/src/models/CartSubCart.d.ts +76 -0
  111. package/shopping-cart/src/models/CartSubCart.js +78 -0
  112. package/shopping-cart/src/models/{CartLine.d.ts → CartSubCartLine.d.ts} +13 -13
  113. package/shopping-cart/src/models/{CartLine.js → CartSubCartLine.js} +11 -11
  114. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +37 -0
  115. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +49 -0
  116. package/shopping-cart/src/models/{CartTransport.d.ts → CartSubCartTransport.d.ts} +12 -12
  117. package/shopping-cart/src/models/{CartTransport.js → CartSubCartTransport.js} +11 -11
  118. package/shopping-cart/src/models/RestError.d.ts +5 -3
  119. package/shopping-cart/src/models/RestError.js +5 -3
  120. package/shopping-cart/src/models/ShoppedOffer.d.ts +2 -2
  121. package/shopping-cart/src/models/ShoppedOffer.js +2 -2
  122. package/shopping-cart/src/models/index.d.ts +4 -12
  123. package/shopping-cart/src/models/index.js +4 -12
  124. package/smuggler/src/models/RestError.d.ts +5 -3
  125. package/smuggler/src/models/RestError.js +5 -3
  126. package/statistic/src/models/RestError.d.ts +5 -3
  127. package/statistic/src/models/RestError.js +5 -3
  128. package/third-party/src/models/RestError.d.ts +5 -3
  129. package/third-party/src/models/RestError.js +5 -3
  130. package/ubo/src/models/RestError.d.ts +5 -3
  131. package/ubo/src/models/RestError.js +5 -3
  132. package/user/src/models/RestError.d.ts +5 -3
  133. package/user/src/models/RestError.js +5 -3
  134. package/wish/src/models/RestError.d.ts +5 -3
  135. package/wish/src/models/RestError.js +5 -3
  136. package/auth/src/models/AnonymousUser.d.ts +0 -43
  137. package/auth/src/models/AnonymousUser.js +0 -55
  138. package/auth/src/models/AnyUser.d.ts +0 -26
  139. package/auth/src/models/AnyUser.js +0 -50
  140. package/auth/src/models/IdentifiedUser.d.ts +0 -37
  141. package/auth/src/models/IdentifiedUser.js +0 -51
  142. package/auth/src/models/User.d.ts +0 -31
  143. package/auth/src/models/User.js +0 -47
  144. package/magic-cart/src/models/ShoppedOffer.d.ts +0 -43
  145. package/magic-cart/src/models/ShoppedOffer.js +0 -53
  146. package/order/src/apis/ManageForeorderApi.d.ts +0 -31
  147. package/order/src/apis/ManageForeorderApi.js +0 -163
  148. package/order/src/apis/SearchForeorderItemApi.d.ts +0 -44
  149. package/order/src/apis/SearchForeorderItemApi.js +0 -175
  150. package/order/src/models/AnyForeorderCreationParameters.d.ts +0 -23
  151. package/order/src/models/AnyForeorderCreationParameters.js +0 -45
  152. package/order/src/models/AnyForeorderWarning.d.ts +0 -26
  153. package/order/src/models/AnyForeorderWarning.js +0 -50
  154. package/order/src/models/AnyOrderCreationParameters.d.ts +0 -26
  155. package/order/src/models/AnyOrderCreationParameters.js +0 -50
  156. package/order/src/models/AnySource.d.ts +0 -26
  157. package/order/src/models/AnySource.js +0 -50
  158. package/order/src/models/CartForeorderCreationParameters.d.ts +0 -37
  159. package/order/src/models/CartForeorderCreationParameters.js +0 -51
  160. package/order/src/models/CartSource.d.ts +0 -37
  161. package/order/src/models/CartSource.js +0 -49
  162. package/order/src/models/CloneOrderCreationParameters.d.ts +0 -37
  163. package/order/src/models/CloneOrderCreationParameters.js +0 -51
  164. package/order/src/models/Foreorder.d.ts +0 -155
  165. package/order/src/models/Foreorder.js +0 -128
  166. package/order/src/models/ForeorderCreationParameters.d.ts +0 -31
  167. package/order/src/models/ForeorderCreationParameters.js +0 -47
  168. package/order/src/models/ForeorderOrderCreationParameters.d.ts +0 -37
  169. package/order/src/models/ForeorderOrderCreationParameters.js +0 -51
  170. package/order/src/models/ForeorderWarning.d.ts +0 -52
  171. package/order/src/models/ForeorderWarningBase.d.ts +0 -37
  172. package/order/src/models/ForeorderWarningBase.js +0 -51
  173. package/order/src/models/ForeorderWithWarnings.d.ts +0 -39
  174. package/order/src/models/ForeorderWithWarnings.js +0 -53
  175. package/order/src/models/OrderCreationParameters.d.ts +0 -31
  176. package/order/src/models/OrderCreationParameters.js +0 -47
  177. package/order/src/models/OrderSource.d.ts +0 -37
  178. package/order/src/models/OrderSource.js +0 -49
  179. package/order/src/models/Source.d.ts +0 -31
  180. package/order/src/models/Source.js +0 -45
  181. package/shopping-cart/src/apis/ManageCartLineApi.d.ts +0 -45
  182. package/shopping-cart/src/apis/ManageCartLineApi.js +0 -238
  183. package/shopping-cart/src/apis/SearchCartApi.d.ts +0 -59
  184. package/shopping-cart/src/apis/SearchCartApi.js +0 -267
  185. package/shopping-cart/src/apis/SearchCartLineApi.d.ts +0 -41
  186. package/shopping-cart/src/models/CartCreationParameters.d.ts +0 -44
  187. package/shopping-cart/src/models/CartCreationParameters.js +0 -56
  188. package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +0 -37
  189. package/shopping-cart/src/models/CartLineUpdateParameters.js +0 -49
  190. package/shopping-cart/src/models/CartLineWithWarnings.d.ts +0 -39
  191. package/shopping-cart/src/models/CartLineWithWarnings.js +0 -49
  192. package/shopping-cart/src/models/CartSummary.d.ts +0 -31
  193. package/shopping-cart/src/models/CartSummary.js +0 -47
  194. package/shopping-cart/src/models/CartUpdateParameters.d.ts +0 -31
  195. package/shopping-cart/src/models/CartUpdateParameters.js +0 -45
  196. package/shopping-cart/src/models/CartWarning.d.ts +0 -70
  197. package/shopping-cart/src/models/CartWarning.js +0 -67
  198. package/shopping-cart/src/models/CartsWithWarnings.d.ts +0 -39
  199. package/shopping-cart/src/models/CartsWithWarnings.js +0 -49
  200. package/shopping-cart/src/models/OwnerLink.d.ts +0 -43
  201. package/shopping-cart/src/models/OwnerLink.js +0 -53
  202. package/shopping-cart/src/models/PaginatedCarts.d.ts +0 -46
  203. package/shopping-cart/src/models/PaginatedCarts.js +0 -58
  204. package/shopping-cart/src/models/PagingMetadata.d.ts +0 -49
  205. package/shopping-cart/src/models/PagingMetadata.js +0 -55
@@ -140,6 +140,74 @@ var ManageTaskApi = /** @class */ (function (_super) {
140
140
  });
141
141
  });
142
142
  };
143
+ /**
144
+ * Mute/Unmute a task
145
+ */
146
+ ManageTaskApi.prototype.updateTaskMutedRaw = function (requestParameters, initOverrides) {
147
+ return __awaiter(this, void 0, void 0, function () {
148
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
149
+ return __generator(this, function (_c) {
150
+ switch (_c.label) {
151
+ case 0:
152
+ if (requestParameters['taskId'] == null) {
153
+ throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling updateTaskMuted().');
154
+ }
155
+ queryParameters = {};
156
+ headerParameters = {};
157
+ headerParameters['Content-Type'] = 'application/json';
158
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
159
+ _a = headerParameters;
160
+ _b = "x-api-key";
161
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
162
+ case 1:
163
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
164
+ _c.label = 2;
165
+ case 2:
166
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
167
+ token = this.configuration.accessToken;
168
+ return [4 /*yield*/, token("bearerAuth", [])];
169
+ case 3:
170
+ tokenString = _c.sent();
171
+ if (tokenString) {
172
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
173
+ }
174
+ _c.label = 4;
175
+ case 4:
176
+ _c.trys.push([4, 6, , 7]);
177
+ return [4 /*yield*/, this.request({
178
+ path: "/tasks/{taskId}/muted".replace("{".concat("taskId", "}"), encodeURIComponent(String(requestParameters['taskId']))),
179
+ method: 'PUT',
180
+ headers: headerParameters,
181
+ query: queryParameters,
182
+ body: requestParameters['body'],
183
+ }, initOverrides)];
184
+ case 5:
185
+ response = _c.sent();
186
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
187
+ case 6:
188
+ response_2 = _c.sent();
189
+ console.debug(response_2);
190
+ throw response_2;
191
+ case 7: return [2 /*return*/];
192
+ }
193
+ });
194
+ });
195
+ };
196
+ /**
197
+ * Mute/Unmute a task
198
+ */
199
+ ManageTaskApi.prototype.updateTaskMuted = function (requestParameters, initOverrides) {
200
+ return __awaiter(this, void 0, void 0, function () {
201
+ return __generator(this, function (_a) {
202
+ switch (_a.label) {
203
+ case 0: return [4 /*yield*/, this.updateTaskMutedRaw(requestParameters, initOverrides)];
204
+ case 1:
205
+ _a.sent();
206
+ return [2 /*return*/];
207
+ }
208
+ });
209
+ });
210
+ };
143
211
  return ManageTaskApi;
144
212
  }(runtime.BaseAPI));
145
213
  exports.ManageTaskApi = ManageTaskApi;
@@ -16,14 +16,14 @@
16
16
  */
17
17
  export interface RestError {
18
18
  /**
19
- * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Foreorders * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number
19
+ * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number * `CODE026` - SubCart not found in cart
20
20
  *
21
21
  * @type {string}
22
22
  * @memberof RestError
23
23
  */
24
24
  code: RestErrorCodeEnum;
25
25
  /**
26
- * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Foreorder * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE025` - Invalid International Bank Account Number
26
+ * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number * `MESSAGE026` - SubCart not found in cart
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof RestError
@@ -60,6 +60,7 @@ export declare const RestErrorCodeEnum: {
60
60
  readonly CODE023: "CODE023";
61
61
  readonly CODE024: "CODE024";
62
62
  readonly CODE025: "CODE025";
63
+ readonly CODE026: "CODE026";
63
64
  };
64
65
  export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
65
66
  /**
@@ -80,7 +81,7 @@ export declare const RestErrorMessageEnum: {
80
81
  readonly MESSAGE011: "Empty User Address";
81
82
  readonly MESSAGE012: "Empty User Legal Name";
82
83
  readonly MESSAGE013: "Invalid quantities";
83
- readonly MESSAGE014: "Invalid Foreorder";
84
+ readonly MESSAGE014: "Invalid Meta-Order";
84
85
  readonly MESSAGE015: "Can not release quantity greater than claimed";
85
86
  readonly MESSAGE016: "Can not release a negative quantity of items";
86
87
  readonly MESSAGE017: "Batch is forbidden for sale";
@@ -92,6 +93,7 @@ export declare const RestErrorMessageEnum: {
92
93
  readonly MESSAGE023: "Invalid Sca Enrollment status";
93
94
  readonly MESSAGE024: "Image missing";
94
95
  readonly MESSAGE025: "Invalid International Bank Account Number";
96
+ readonly MESSAGE026: "SubCart not found in cart";
95
97
  };
96
98
  export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
97
99
  /**
@@ -43,7 +43,8 @@ exports.RestErrorCodeEnum = {
43
43
  CODE022: 'CODE022',
44
44
  CODE023: 'CODE023',
45
45
  CODE024: 'CODE024',
46
- CODE025: 'CODE025'
46
+ CODE025: 'CODE025',
47
+ CODE026: 'CODE026'
47
48
  };
48
49
  /**
49
50
  * @export
@@ -63,7 +64,7 @@ exports.RestErrorMessageEnum = {
63
64
  MESSAGE011: 'Empty User Address',
64
65
  MESSAGE012: 'Empty User Legal Name',
65
66
  MESSAGE013: 'Invalid quantities',
66
- MESSAGE014: 'Invalid Foreorder',
67
+ MESSAGE014: 'Invalid Meta-Order',
67
68
  MESSAGE015: 'Can not release quantity greater than claimed',
68
69
  MESSAGE016: 'Can not release a negative quantity of items',
69
70
  MESSAGE017: 'Batch is forbidden for sale',
@@ -74,7 +75,8 @@ exports.RestErrorMessageEnum = {
74
75
  MESSAGE022: 'Disabled feature',
75
76
  MESSAGE023: 'Invalid Sca Enrollment status',
76
77
  MESSAGE024: 'Image missing',
77
- MESSAGE025: 'Invalid International Bank Account Number'
78
+ MESSAGE025: 'Invalid International Bank Account Number',
79
+ MESSAGE026: 'SubCart not found in cart'
78
80
  };
79
81
  /**
80
82
  * Check if a given object implements the RestError interface.
@@ -27,6 +27,12 @@ export interface Task {
27
27
  * @memberof Task
28
28
  */
29
29
  lastSuccessfulDate?: Date;
30
+ /**
31
+ * When 'true', the task will never run in periodic or manual occurence
32
+ * @type {boolean}
33
+ * @memberof Task
34
+ */
35
+ muted: boolean;
30
36
  }
31
37
  /**
32
38
  * Check if a given object implements the Task interface.
@@ -18,6 +18,8 @@ exports.TaskToJSON = exports.TaskFromJSONTyped = exports.TaskFromJSON = exports.
18
18
  * Check if a given object implements the Task interface.
19
19
  */
20
20
  function instanceOfTask(value) {
21
+ if (!('muted' in value) || value['muted'] === undefined)
22
+ return false;
21
23
  return true;
22
24
  }
23
25
  exports.instanceOfTask = instanceOfTask;
@@ -32,6 +34,7 @@ function TaskFromJSONTyped(json, ignoreDiscriminator) {
32
34
  return {
33
35
  'id': json['id'],
34
36
  'lastSuccessfulDate': (json['lastSuccessfulDate'] === null || json['lastSuccessfulDate'] === undefined) ? json['lastSuccessfulDate'] : new Date(json['lastSuccessfulDate']),
37
+ 'muted': json['muted'],
35
38
  };
36
39
  }
37
40
  exports.TaskFromJSONTyped = TaskFromJSONTyped;
@@ -42,6 +45,7 @@ function TaskToJSON(value) {
42
45
  return {
43
46
  'id': value['id'],
44
47
  'lastSuccessfulDate': (value['lastSuccessfulDate'] === null || value['lastSuccessfulDate'] === undefined) ? value['lastSuccessfulDate'] : (value['lastSuccessfulDate']).toISOString(),
48
+ 'muted': value['muted'],
45
49
  };
46
50
  }
47
51
  exports.TaskToJSON = TaskToJSON;
@@ -16,14 +16,14 @@
16
16
  */
17
17
  export interface RestError {
18
18
  /**
19
- * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Foreorders * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number
19
+ * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number * `CODE026` - SubCart not found in cart
20
20
  *
21
21
  * @type {string}
22
22
  * @memberof RestError
23
23
  */
24
24
  code: RestErrorCodeEnum;
25
25
  /**
26
- * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Foreorder * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE025` - Invalid International Bank Account Number
26
+ * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number * `MESSAGE026` - SubCart not found in cart
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof RestError
@@ -60,6 +60,7 @@ export declare const RestErrorCodeEnum: {
60
60
  readonly CODE023: "CODE023";
61
61
  readonly CODE024: "CODE024";
62
62
  readonly CODE025: "CODE025";
63
+ readonly CODE026: "CODE026";
63
64
  };
64
65
  export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
65
66
  /**
@@ -80,7 +81,7 @@ export declare const RestErrorMessageEnum: {
80
81
  readonly MESSAGE011: "Empty User Address";
81
82
  readonly MESSAGE012: "Empty User Legal Name";
82
83
  readonly MESSAGE013: "Invalid quantities";
83
- readonly MESSAGE014: "Invalid Foreorder";
84
+ readonly MESSAGE014: "Invalid Meta-Order";
84
85
  readonly MESSAGE015: "Can not release quantity greater than claimed";
85
86
  readonly MESSAGE016: "Can not release a negative quantity of items";
86
87
  readonly MESSAGE017: "Batch is forbidden for sale";
@@ -92,6 +93,7 @@ export declare const RestErrorMessageEnum: {
92
93
  readonly MESSAGE023: "Invalid Sca Enrollment status";
93
94
  readonly MESSAGE024: "Image missing";
94
95
  readonly MESSAGE025: "Invalid International Bank Account Number";
96
+ readonly MESSAGE026: "SubCart not found in cart";
95
97
  };
96
98
  export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
97
99
  /**
@@ -43,7 +43,8 @@ exports.RestErrorCodeEnum = {
43
43
  CODE022: 'CODE022',
44
44
  CODE023: 'CODE023',
45
45
  CODE024: 'CODE024',
46
- CODE025: 'CODE025'
46
+ CODE025: 'CODE025',
47
+ CODE026: 'CODE026'
47
48
  };
48
49
  /**
49
50
  * @export
@@ -63,7 +64,7 @@ exports.RestErrorMessageEnum = {
63
64
  MESSAGE011: 'Empty User Address',
64
65
  MESSAGE012: 'Empty User Legal Name',
65
66
  MESSAGE013: 'Invalid quantities',
66
- MESSAGE014: 'Invalid Foreorder',
67
+ MESSAGE014: 'Invalid Meta-Order',
67
68
  MESSAGE015: 'Can not release quantity greater than claimed',
68
69
  MESSAGE016: 'Can not release a negative quantity of items',
69
70
  MESSAGE017: 'Batch is forbidden for sale',
@@ -74,7 +75,8 @@ exports.RestErrorMessageEnum = {
74
75
  MESSAGE022: 'Disabled feature',
75
76
  MESSAGE023: 'Invalid Sca Enrollment status',
76
77
  MESSAGE024: 'Image missing',
77
- MESSAGE025: 'Invalid International Bank Account Number'
78
+ MESSAGE025: 'Invalid International Bank Account Number',
79
+ MESSAGE026: 'SubCart not found in cart'
78
80
  };
79
81
  /**
80
82
  * Check if a given object implements the RestError interface.
@@ -10,58 +10,47 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CartCreationParameters, CartUpdateParameters, CartsWithWarnings } from '../models/index';
14
- export interface CreateOrUpdateCartsRequest {
15
- cartCreationParameters: CartCreationParameters;
16
- }
17
- export interface DeleteCartRequest {
13
+ import type { Cart } from '../models/index';
14
+ export interface CreateCartRequest {
18
15
  cartId: number;
19
16
  }
20
- export interface UpdateCartsRequest {
21
- idEq: Array<number>;
22
- xChannelConflictResolution?: UpdateCartsXChannelConflictResolutionEnum;
23
- cartUpdateParameters?: CartUpdateParameters;
17
+ export interface GetCartRequest {
18
+ cartId: number;
24
19
  }
25
20
  /**
26
21
  *
27
22
  */
28
23
  export declare class ManageCartApi extends runtime.BaseAPI {
29
24
  /**
30
- * Create one or more carts for the given owner with items from shopped offers. Each cart is associated with a channel and a seller. Multiple carts may be created if the shopped offers belong to different sellers.
31
- * Create carts and add items
25
+ * Create current cart if get cart return object not found
26
+ */
27
+ createCartRaw(requestParameters: CreateCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Cart | runtime.BlobWithMeta>>;
28
+ /**
29
+ * Create current cart if get cart return object not found
32
30
  */
33
- createOrUpdateCartsRaw(requestParameters: CreateOrUpdateCartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CartsWithWarnings | runtime.BlobWithMeta>>;
31
+ createCart(requestParameters: CreateCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Cart | runtime.BlobWithMeta>;
34
32
  /**
35
- * Create one or more carts for the given owner with items from shopped offers. Each cart is associated with a channel and a seller. Multiple carts may be created if the shopped offers belong to different sellers.
36
- * Create carts and add items
33
+ * Create current cart if get cart return object not found
37
34
  */
38
- createOrUpdateCarts(requestParameters: CreateOrUpdateCartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CartsWithWarnings | runtime.BlobWithMeta>;
35
+ createCurrentCartRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Cart | runtime.BlobWithMeta>>;
39
36
  /**
40
- * Delete a cart and all its lines.
41
- * Delete a cart
37
+ * Create current cart if get cart return object not found
42
38
  */
43
- deleteCartRaw(requestParameters: DeleteCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
39
+ createCurrentCart(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Cart | runtime.BlobWithMeta>;
44
40
  /**
45
- * Delete a cart and all its lines.
46
- * Delete a cart
41
+ * Get current cart
47
42
  */
48
- deleteCart(requestParameters: DeleteCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
43
+ getCartRaw(requestParameters: GetCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Cart | runtime.BlobWithMeta>>;
49
44
  /**
50
- * Update multiple carts identified by their IDs. Currently supports channel updates with optional conflict resolution (merge or replace strategy). If no update parameters are provided, returns the carts unchanged.
51
- * Update carts
45
+ * Get current cart
52
46
  */
53
- updateCartsRaw(requestParameters: UpdateCartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CartsWithWarnings | runtime.BlobWithMeta>>;
47
+ getCart(requestParameters: GetCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Cart | runtime.BlobWithMeta>;
54
48
  /**
55
- * Update multiple carts identified by their IDs. Currently supports channel updates with optional conflict resolution (merge or replace strategy). If no update parameters are provided, returns the carts unchanged.
56
- * Update carts
49
+ * Get current cart
57
50
  */
58
- updateCarts(requestParameters: UpdateCartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CartsWithWarnings | runtime.BlobWithMeta>;
51
+ getCurrentCartRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Cart | runtime.BlobWithMeta>>;
52
+ /**
53
+ * Get current cart
54
+ */
55
+ getCurrentCart(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Cart | runtime.BlobWithMeta>;
59
56
  }
60
- /**
61
- * @export
62
- */
63
- export declare const UpdateCartsXChannelConflictResolutionEnum: {
64
- readonly MERGE: "merge";
65
- readonly REPLACE: "replace";
66
- };
67
- export declare type UpdateCartsXChannelConflictResolutionEnum = typeof UpdateCartsXChannelConflictResolutionEnum[keyof typeof UpdateCartsXChannelConflictResolutionEnum];