@lcdp/api-react-rest-client 3.1.7-LDS-5578-api-distinct-status-code-accodi.23847291272 → 3.1.7-develop.23855465779

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 (188) 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 +3 -3
  26. package/magic-cart/src/models/ExpressOrder.js +3 -3
  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/OrderItemPrices.d.ts +3 -3
  60. package/order/src/models/{ForeorderItemWarning.d.ts → OrderItemWarning.d.ts} +18 -23
  61. package/order/src/models/{ForeorderItemWarning.js → OrderItemWarning.js} +15 -18
  62. package/order/src/models/OrderWarning.d.ts +51 -0
  63. package/order/src/models/{ForeorderWarning.js → OrderWarning.js} +12 -12
  64. package/order/src/models/RestError.d.ts +5 -3
  65. package/order/src/models/RestError.js +5 -3
  66. package/order/src/models/ShoppedOffer.d.ts +2 -2
  67. package/order/src/models/ShoppedOffer.js +2 -2
  68. package/order/src/models/index.d.ts +9 -17
  69. package/order/src/models/index.js +9 -17
  70. package/package.json +1 -1
  71. package/product/src/models/RestError.d.ts +5 -3
  72. package/product/src/models/RestError.js +5 -3
  73. package/pub/src/models/RestError.d.ts +5 -3
  74. package/pub/src/models/RestError.js +5 -3
  75. package/rfx/src/models/RestError.d.ts +5 -3
  76. package/rfx/src/models/RestError.js +5 -3
  77. package/sale-offer/src/models/RestError.d.ts +5 -3
  78. package/sale-offer/src/models/RestError.js +5 -3
  79. package/servant/src/models/RestError.d.ts +5 -3
  80. package/servant/src/models/RestError.js +5 -3
  81. package/shipment/src/models/RestError.d.ts +5 -3
  82. package/shipment/src/models/RestError.js +5 -3
  83. package/shopping-cart/src/apis/ManageCartApi.d.ts +24 -35
  84. package/shopping-cart/src/apis/ManageCartApi.js +120 -57
  85. package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +107 -0
  86. package/shopping-cart/src/apis/ManageCartSubCartApi.js +556 -0
  87. package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +151 -0
  88. package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +879 -0
  89. package/shopping-cart/src/apis/index.d.ts +2 -3
  90. package/shopping-cart/src/apis/index.js +2 -3
  91. package/shopping-cart/src/models/Cart.d.ts +4 -61
  92. package/shopping-cart/src/models/Cart.js +2 -47
  93. package/shopping-cart/src/models/CartSubCart.d.ts +76 -0
  94. package/shopping-cart/src/models/CartSubCart.js +78 -0
  95. package/shopping-cart/src/models/{CartLine.d.ts → CartSubCartLine.d.ts} +13 -13
  96. package/shopping-cart/src/models/{CartLine.js → CartSubCartLine.js} +11 -11
  97. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +37 -0
  98. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +49 -0
  99. package/shopping-cart/src/models/{CartTransport.d.ts → CartSubCartTransport.d.ts} +12 -12
  100. package/shopping-cart/src/models/{CartTransport.js → CartSubCartTransport.js} +11 -11
  101. package/shopping-cart/src/models/RestError.d.ts +5 -3
  102. package/shopping-cart/src/models/RestError.js +5 -3
  103. package/shopping-cart/src/models/ShoppedOffer.d.ts +2 -2
  104. package/shopping-cart/src/models/ShoppedOffer.js +2 -2
  105. package/shopping-cart/src/models/index.d.ts +4 -12
  106. package/shopping-cart/src/models/index.js +4 -12
  107. package/smuggler/src/models/RestError.d.ts +5 -3
  108. package/smuggler/src/models/RestError.js +5 -3
  109. package/statistic/src/models/RestError.d.ts +5 -3
  110. package/statistic/src/models/RestError.js +5 -3
  111. package/third-party/src/models/RestError.d.ts +5 -3
  112. package/third-party/src/models/RestError.js +5 -3
  113. package/ubo/src/models/RestError.d.ts +5 -3
  114. package/ubo/src/models/RestError.js +5 -3
  115. package/user/src/models/RestError.d.ts +5 -3
  116. package/user/src/models/RestError.js +5 -3
  117. package/wish/src/models/RestError.d.ts +5 -3
  118. package/wish/src/models/RestError.js +5 -3
  119. package/auth/src/models/AnonymousUser.d.ts +0 -43
  120. package/auth/src/models/AnonymousUser.js +0 -55
  121. package/auth/src/models/AnyUser.d.ts +0 -26
  122. package/auth/src/models/AnyUser.js +0 -50
  123. package/auth/src/models/IdentifiedUser.d.ts +0 -37
  124. package/auth/src/models/IdentifiedUser.js +0 -51
  125. package/auth/src/models/User.d.ts +0 -31
  126. package/auth/src/models/User.js +0 -47
  127. package/magic-cart/src/models/ShoppedOffer.d.ts +0 -43
  128. package/magic-cart/src/models/ShoppedOffer.js +0 -53
  129. package/order/src/apis/ManageForeorderApi.d.ts +0 -31
  130. package/order/src/apis/ManageForeorderApi.js +0 -163
  131. package/order/src/apis/SearchForeorderItemApi.d.ts +0 -44
  132. package/order/src/apis/SearchForeorderItemApi.js +0 -175
  133. package/order/src/models/AnyForeorderCreationParameters.d.ts +0 -23
  134. package/order/src/models/AnyForeorderCreationParameters.js +0 -45
  135. package/order/src/models/AnyForeorderWarning.d.ts +0 -26
  136. package/order/src/models/AnyForeorderWarning.js +0 -50
  137. package/order/src/models/AnyOrderCreationParameters.d.ts +0 -26
  138. package/order/src/models/AnyOrderCreationParameters.js +0 -50
  139. package/order/src/models/AnySource.d.ts +0 -26
  140. package/order/src/models/AnySource.js +0 -50
  141. package/order/src/models/CartForeorderCreationParameters.d.ts +0 -37
  142. package/order/src/models/CartForeorderCreationParameters.js +0 -51
  143. package/order/src/models/CartSource.d.ts +0 -37
  144. package/order/src/models/CartSource.js +0 -49
  145. package/order/src/models/CloneOrderCreationParameters.d.ts +0 -37
  146. package/order/src/models/CloneOrderCreationParameters.js +0 -51
  147. package/order/src/models/Foreorder.d.ts +0 -155
  148. package/order/src/models/Foreorder.js +0 -128
  149. package/order/src/models/ForeorderCreationParameters.d.ts +0 -31
  150. package/order/src/models/ForeorderCreationParameters.js +0 -47
  151. package/order/src/models/ForeorderOrderCreationParameters.d.ts +0 -37
  152. package/order/src/models/ForeorderOrderCreationParameters.js +0 -51
  153. package/order/src/models/ForeorderWarning.d.ts +0 -51
  154. package/order/src/models/ForeorderWarningBase.d.ts +0 -37
  155. package/order/src/models/ForeorderWarningBase.js +0 -51
  156. package/order/src/models/ForeorderWithWarnings.d.ts +0 -39
  157. package/order/src/models/ForeorderWithWarnings.js +0 -53
  158. package/order/src/models/OrderCreationParameters.d.ts +0 -31
  159. package/order/src/models/OrderCreationParameters.js +0 -47
  160. package/order/src/models/OrderSource.d.ts +0 -37
  161. package/order/src/models/OrderSource.js +0 -49
  162. package/order/src/models/Source.d.ts +0 -31
  163. package/order/src/models/Source.js +0 -45
  164. package/shopping-cart/src/apis/ManageCartLineApi.d.ts +0 -45
  165. package/shopping-cart/src/apis/ManageCartLineApi.js +0 -238
  166. package/shopping-cart/src/apis/SearchCartApi.d.ts +0 -59
  167. package/shopping-cart/src/apis/SearchCartApi.js +0 -267
  168. package/shopping-cart/src/apis/SearchCartLineApi.d.ts +0 -41
  169. package/shopping-cart/src/models/CartCreationParameters.d.ts +0 -44
  170. package/shopping-cart/src/models/CartCreationParameters.js +0 -56
  171. package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +0 -37
  172. package/shopping-cart/src/models/CartLineUpdateParameters.js +0 -49
  173. package/shopping-cart/src/models/CartLineWithWarnings.d.ts +0 -39
  174. package/shopping-cart/src/models/CartLineWithWarnings.js +0 -49
  175. package/shopping-cart/src/models/CartSummary.d.ts +0 -31
  176. package/shopping-cart/src/models/CartSummary.js +0 -47
  177. package/shopping-cart/src/models/CartUpdateParameters.d.ts +0 -31
  178. package/shopping-cart/src/models/CartUpdateParameters.js +0 -45
  179. package/shopping-cart/src/models/CartWarning.d.ts +0 -70
  180. package/shopping-cart/src/models/CartWarning.js +0 -67
  181. package/shopping-cart/src/models/CartsWithWarnings.d.ts +0 -39
  182. package/shopping-cart/src/models/CartsWithWarnings.js +0 -49
  183. package/shopping-cart/src/models/OwnerLink.d.ts +0 -43
  184. package/shopping-cart/src/models/OwnerLink.js +0 -53
  185. package/shopping-cart/src/models/PaginatedCarts.d.ts +0 -46
  186. package/shopping-cart/src/models/PaginatedCarts.js +0 -58
  187. package/shopping-cart/src/models/PagingMetadata.d.ts +0 -49
  188. package/shopping-cart/src/models/PagingMetadata.js +0 -55
@@ -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.
@@ -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.
@@ -0,0 +1,45 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP orders
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { MetaOrderCreationParameters, MetaOrderWithWarnings } from '../models/index';
14
+ export interface CreateMetaOrderRequest {
15
+ metaOrderCreationParameters: MetaOrderCreationParameters;
16
+ }
17
+ export interface SetMetaOrderValidatedRequest {
18
+ metaOrderId: number;
19
+ body: boolean;
20
+ }
21
+ /**
22
+ *
23
+ */
24
+ export declare class ManageMetaOrderApi extends runtime.BaseAPI {
25
+ /**
26
+ * Create a new meta-order. A meta-order represent a group of orders created at the same time.
27
+ * Create a new meta-order
28
+ */
29
+ createMetaOrderRaw(requestParameters: CreateMetaOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MetaOrderWithWarnings | runtime.BlobWithMeta>>;
30
+ /**
31
+ * Create a new meta-order. A meta-order represent a group of orders created at the same time.
32
+ * Create a new meta-order
33
+ */
34
+ createMetaOrder(requestParameters: CreateMetaOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MetaOrderWithWarnings | runtime.BlobWithMeta>;
35
+ /**
36
+ * Set the validated flag for meta-order identified by metaOrderId. # You can not : - Set flag with value true if already true - Set flag with value false if already true Preconditions for TRUE : - Buyer have accepted the CGV
37
+ * Set meta-order validated flag
38
+ */
39
+ setMetaOrderValidatedRaw(requestParameters: SetMetaOrderValidatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
40
+ /**
41
+ * Set the validated flag for meta-order identified by metaOrderId. # You can not : - Set flag with value true if already true - Set flag with value false if already true Preconditions for TRUE : - Buyer have accepted the CGV
42
+ * Set meta-order validated flag
43
+ */
44
+ setMetaOrderValidated(requestParameters: SetMetaOrderValidatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
45
+ }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * lcdp-monolith-service
6
- * This is the REST API of LCDP products
6
+ * This is the REST API of LCDP orders
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  * Contact: contact@lecomptoirdespharmacies.fr
@@ -64,34 +64,33 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.SearchCartLineApi = void 0;
67
+ exports.ManageMetaOrderApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var index_1 = require("../models/index");
70
70
  /**
71
71
  *
72
72
  */
73
- var SearchCartLineApi = /** @class */ (function (_super) {
74
- __extends(SearchCartLineApi, _super);
75
- function SearchCartLineApi() {
73
+ var ManageMetaOrderApi = /** @class */ (function (_super) {
74
+ __extends(ManageMetaOrderApi, _super);
75
+ function ManageMetaOrderApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Get a cart line
79
+ * Create a new meta-order. A meta-order represent a group of orders created at the same time.
80
+ * Create a new meta-order
80
81
  */
81
- SearchCartLineApi.prototype.getCartLineRaw = function (requestParameters, initOverrides) {
82
+ ManageMetaOrderApi.prototype.createMetaOrderRaw = function (requestParameters, initOverrides) {
82
83
  return __awaiter(this, void 0, void 0, function () {
83
84
  var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
84
85
  return __generator(this, function (_c) {
85
86
  switch (_c.label) {
86
87
  case 0:
87
- if (requestParameters['cartId'] == null) {
88
- throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling getCartLine().');
89
- }
90
- if (requestParameters['lineId'] == null) {
91
- throw new runtime.RequiredError('lineId', 'Required parameter "lineId" was null or undefined when calling getCartLine().');
88
+ if (requestParameters['metaOrderCreationParameters'] == null) {
89
+ throw new runtime.RequiredError('metaOrderCreationParameters', 'Required parameter "metaOrderCreationParameters" was null or undefined when calling createMetaOrder().');
92
90
  }
93
91
  queryParameters = {};
94
92
  headerParameters = {};
93
+ headerParameters['Content-Type'] = 'application/json';
95
94
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
96
95
  _a = headerParameters;
97
96
  _b = "x-api-key";
@@ -112,16 +111,17 @@ var SearchCartLineApi = /** @class */ (function (_super) {
112
111
  case 4:
113
112
  _c.trys.push([4, 6, , 7]);
114
113
  return [4 /*yield*/, this.request({
115
- path: "/carts/{cartId}/lines/{lineId}".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))).replace("{".concat("lineId", "}"), encodeURIComponent(String(requestParameters['lineId']))),
116
- method: 'GET',
114
+ path: "/meta-orders",
115
+ method: 'POST',
117
116
  headers: headerParameters,
118
117
  query: queryParameters,
118
+ body: (0, index_1.MetaOrderCreationParametersToJSON)(requestParameters['metaOrderCreationParameters']),
119
119
  }, initOverrides)];
120
120
  case 5:
121
121
  response = _c.sent();
122
122
  contentType = response.headers.get("content-type");
123
123
  if (contentType && contentType.indexOf("application/json") !== -1) {
124
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CartLineFromJSON)(jsonValue); })];
124
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MetaOrderWithWarningsFromJSON)(jsonValue); })];
125
125
  }
126
126
  else if (contentType && contentType.indexOf("text/plain") !== -1) {
127
127
  return [2 /*return*/, new runtime.TextApiResponse(response)];
@@ -141,14 +141,15 @@ var SearchCartLineApi = /** @class */ (function (_super) {
141
141
  });
142
142
  };
143
143
  /**
144
- * Get a cart line
144
+ * Create a new meta-order. A meta-order represent a group of orders created at the same time.
145
+ * Create a new meta-order
145
146
  */
146
- SearchCartLineApi.prototype.getCartLine = function (requestParameters, initOverrides) {
147
+ ManageMetaOrderApi.prototype.createMetaOrder = function (requestParameters, initOverrides) {
147
148
  return __awaiter(this, void 0, void 0, function () {
148
149
  var response;
149
150
  return __generator(this, function (_a) {
150
151
  switch (_a.label) {
151
- case 0: return [4 /*yield*/, this.getCartLineRaw(requestParameters, initOverrides)];
152
+ case 0: return [4 /*yield*/, this.createMetaOrderRaw(requestParameters, initOverrides)];
152
153
  case 1:
153
154
  response = _a.sent();
154
155
  return [4 /*yield*/, response.value()];
@@ -158,19 +159,24 @@ var SearchCartLineApi = /** @class */ (function (_super) {
158
159
  });
159
160
  };
160
161
  /**
161
- * Get all cart lines
162
+ * Set the validated flag for meta-order identified by metaOrderId. # You can not : - Set flag with value true if already true - Set flag with value false if already true Preconditions for TRUE : - Buyer have accepted the CGV
163
+ * Set meta-order validated flag
162
164
  */
163
- SearchCartLineApi.prototype.getCartLinesRaw = function (requestParameters, initOverrides) {
165
+ ManageMetaOrderApi.prototype.setMetaOrderValidatedRaw = function (requestParameters, initOverrides) {
164
166
  return __awaiter(this, void 0, void 0, function () {
165
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
167
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
166
168
  return __generator(this, function (_c) {
167
169
  switch (_c.label) {
168
170
  case 0:
169
- if (requestParameters['cartId'] == null) {
170
- throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling getCartLines().');
171
+ if (requestParameters['metaOrderId'] == null) {
172
+ throw new runtime.RequiredError('metaOrderId', 'Required parameter "metaOrderId" was null or undefined when calling setMetaOrderValidated().');
173
+ }
174
+ if (requestParameters['body'] == null) {
175
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling setMetaOrderValidated().');
171
176
  }
172
177
  queryParameters = {};
173
178
  headerParameters = {};
179
+ headerParameters['Content-Type'] = 'application/json';
174
180
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
175
181
  _a = headerParameters;
176
182
  _b = "x-api-key";
@@ -191,25 +197,15 @@ var SearchCartLineApi = /** @class */ (function (_super) {
191
197
  case 4:
192
198
  _c.trys.push([4, 6, , 7]);
193
199
  return [4 /*yield*/, this.request({
194
- path: "/carts/{cartId}/lines".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))),
195
- method: 'GET',
200
+ path: "/meta-orders/{metaOrderId}/validated".replace("{".concat("metaOrderId", "}"), encodeURIComponent(String(requestParameters['metaOrderId']))),
201
+ method: 'PUT',
196
202
  headers: headerParameters,
197
203
  query: queryParameters,
204
+ body: requestParameters['body'],
198
205
  }, initOverrides)];
199
206
  case 5:
200
207
  response = _c.sent();
201
- contentType = response.headers.get("content-type");
202
- if (contentType && contentType.indexOf("application/json") !== -1) {
203
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.CartLineFromJSON); })];
204
- }
205
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
206
- return [2 /*return*/, new runtime.TextApiResponse(response)];
207
- }
208
- else {
209
- // TODO : Better handling of others application types
210
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
211
- }
212
- return [3 /*break*/, 7];
208
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
213
209
  case 6:
214
210
  response_2 = _c.sent();
215
211
  console.debug(response_2);
@@ -220,22 +216,21 @@ var SearchCartLineApi = /** @class */ (function (_super) {
220
216
  });
221
217
  };
222
218
  /**
223
- * Get all cart lines
219
+ * Set the validated flag for meta-order identified by metaOrderId. # You can not : - Set flag with value true if already true - Set flag with value false if already true Preconditions for TRUE : - Buyer have accepted the CGV
220
+ * Set meta-order validated flag
224
221
  */
225
- SearchCartLineApi.prototype.getCartLines = function (requestParameters, initOverrides) {
222
+ ManageMetaOrderApi.prototype.setMetaOrderValidated = function (requestParameters, initOverrides) {
226
223
  return __awaiter(this, void 0, void 0, function () {
227
- var response;
228
224
  return __generator(this, function (_a) {
229
225
  switch (_a.label) {
230
- case 0: return [4 /*yield*/, this.getCartLinesRaw(requestParameters, initOverrides)];
226
+ case 0: return [4 /*yield*/, this.setMetaOrderValidatedRaw(requestParameters, initOverrides)];
231
227
  case 1:
232
- response = _a.sent();
233
- return [4 /*yield*/, response.value()];
234
- case 2: return [2 /*return*/, _a.sent()];
228
+ _a.sent();
229
+ return [2 /*return*/];
235
230
  }
236
231
  });
237
232
  });
238
233
  };
239
- return SearchCartLineApi;
234
+ return ManageMetaOrderApi;
240
235
  }(runtime.BaseAPI));
241
- exports.SearchCartLineApi = SearchCartLineApi;
236
+ exports.ManageMetaOrderApi = ManageMetaOrderApi;
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AnomaliesUpdateParameters, AnyOrderCreationParameters, Order, OrderUpdateParameters, Reservation, ReservationUpdateParameters } from '../models/index';
13
+ import type { AnomaliesUpdateParameters, Order, OrderUpdateParameters, Reservation, ReservationUpdateParameters } from '../models/index';
14
14
  export interface CreateOrderRequest {
15
- anyOrderCreationParameters: AnyOrderCreationParameters;
15
+ from: string;
16
16
  }
17
17
  export interface SetOrderAcceptedRequest {
18
18
  orderReference: string;
@@ -50,15 +50,15 @@ export interface UpdateOrderReservationRequest {
50
50
  */
51
51
  export declare class ManageOrderApi extends runtime.BaseAPI {
52
52
  /**
53
- * Create orders from a given source. Notes : - foreorder : - \"Source\" field of \"foreorder\" will pass through - order : - Will clone existing orders - Only usable by ADMINISTRATOR
54
- * Create orders
53
+ * Create a new order. *IMPORTANT NOTE : As for the moment, this route can only create order from another one (clone). In order to create new order from shopping cart, please use \"meta-order\" creation.
54
+ * Create a new order
55
55
  */
56
- createOrderRaw(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Order> | runtime.BlobWithMeta>>;
56
+ createOrderRaw(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Order | runtime.BlobWithMeta>>;
57
57
  /**
58
- * Create orders from a given source. Notes : - foreorder : - \"Source\" field of \"foreorder\" will pass through - order : - Will clone existing orders - Only usable by ADMINISTRATOR
59
- * Create orders
58
+ * Create a new order. *IMPORTANT NOTE : As for the moment, this route can only create order from another one (clone). In order to create new order from shopping cart, please use \"meta-order\" creation.
59
+ * Create a new order
60
60
  */
61
- createOrder(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Order> | runtime.BlobWithMeta>;
61
+ createOrder(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order | runtime.BlobWithMeta>;
62
62
  /**
63
63
  * Set the accepted flag for order identified by OrderId. # Preconditions : ## Common - \'paused\' property is false - \'accepted\' property is false (Limitation that may be removed in the future) - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ## As seller - Status in (WAITING_FOR_SELLER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY) ## As buyer - Status in (WAITING_FOR_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) ## As admin - No additional
64
64
  * Set order accepted flag
@@ -76,8 +76,8 @@ var ManageOrderApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Create orders from a given source. Notes : - foreorder : - \"Source\" field of \"foreorder\" will pass through - order : - Will clone existing orders - Only usable by ADMINISTRATOR
80
- * Create orders
79
+ * Create a new order. *IMPORTANT NOTE : As for the moment, this route can only create order from another one (clone). In order to create new order from shopping cart, please use \"meta-order\" creation.
80
+ * Create a new order
81
81
  */
82
82
  ManageOrderApi.prototype.createOrderRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
@@ -85,12 +85,14 @@ var ManageOrderApi = /** @class */ (function (_super) {
85
85
  return __generator(this, function (_c) {
86
86
  switch (_c.label) {
87
87
  case 0:
88
- if (requestParameters['anyOrderCreationParameters'] == null) {
89
- throw new runtime.RequiredError('anyOrderCreationParameters', 'Required parameter "anyOrderCreationParameters" was null or undefined when calling createOrder().');
88
+ if (requestParameters['from'] == null) {
89
+ throw new runtime.RequiredError('from', 'Required parameter "from" was null or undefined when calling createOrder().');
90
90
  }
91
91
  queryParameters = {};
92
+ if (requestParameters['from'] != null) {
93
+ queryParameters['from'] = requestParameters['from'];
94
+ }
92
95
  headerParameters = {};
93
- headerParameters['Content-Type'] = 'application/json';
94
96
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
95
97
  _a = headerParameters;
96
98
  _b = "x-api-key";
@@ -115,13 +117,12 @@ var ManageOrderApi = /** @class */ (function (_super) {
115
117
  method: 'POST',
116
118
  headers: headerParameters,
117
119
  query: queryParameters,
118
- body: (0, index_1.AnyOrderCreationParametersToJSON)(requestParameters['anyOrderCreationParameters']),
119
120
  }, initOverrides)];
120
121
  case 5:
121
122
  response = _c.sent();
122
123
  contentType = response.headers.get("content-type");
123
124
  if (contentType && contentType.indexOf("application/json") !== -1) {
124
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.OrderFromJSON); })];
125
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderFromJSON)(jsonValue); })];
125
126
  }
126
127
  else if (contentType && contentType.indexOf("text/plain") !== -1) {
127
128
  return [2 /*return*/, new runtime.TextApiResponse(response)];
@@ -141,8 +142,8 @@ var ManageOrderApi = /** @class */ (function (_super) {
141
142
  });
142
143
  };
143
144
  /**
144
- * Create orders from a given source. Notes : - foreorder : - \"Source\" field of \"foreorder\" will pass through - order : - Will clone existing orders - Only usable by ADMINISTRATOR
145
- * Create orders
145
+ * Create a new order. *IMPORTANT NOTE : As for the moment, this route can only create order from another one (clone). In order to create new order from shopping cart, please use \"meta-order\" creation.
146
+ * Create a new order
146
147
  */
147
148
  ManageOrderApi.prototype.createOrder = function (requestParameters, initOverrides) {
148
149
  return __awaiter(this, void 0, void 0, function () {
@@ -1,8 +1,7 @@
1
- export * from './ManageForeorderApi';
2
1
  export * from './ManageFreeCarriageCouponApi';
2
+ export * from './ManageMetaOrderApi';
3
3
  export * from './ManageOrderApi';
4
4
  export * from './ManageOrderItemApi';
5
- export * from './SearchForeorderItemApi';
6
5
  export * from './SearchFreeCarriageCouponApi';
7
6
  export * from './SearchOrderApi';
8
7
  export * from './SearchOrderItemApi';
@@ -16,11 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
- __exportStar(require("./ManageForeorderApi"), exports);
20
19
  __exportStar(require("./ManageFreeCarriageCouponApi"), exports);
20
+ __exportStar(require("./ManageMetaOrderApi"), exports);
21
21
  __exportStar(require("./ManageOrderApi"), exports);
22
22
  __exportStar(require("./ManageOrderItemApi"), exports);
23
- __exportStar(require("./SearchForeorderItemApi"), exports);
24
23
  __exportStar(require("./SearchFreeCarriageCouponApi"), exports);
25
24
  __exportStar(require("./SearchOrderApi"), exports);
26
25
  __exportStar(require("./SearchOrderItemApi"), exports);
@@ -0,0 +1,26 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP orders
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OrderItemWarning } from './OrderItemWarning';
13
+ import type { OrderWarning } from './OrderWarning';
14
+ /**
15
+ * @type AnyMetaOrderWarning
16
+ *
17
+ * @export
18
+ */
19
+ export declare type AnyMetaOrderWarning = {
20
+ type: 'ORDER';
21
+ } & OrderWarning | {
22
+ type: 'ORDER_ITEM';
23
+ } & OrderItemWarning;
24
+ export declare function AnyMetaOrderWarningFromJSON(json: any): AnyMetaOrderWarning;
25
+ export declare function AnyMetaOrderWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyMetaOrderWarning;
26
+ export declare function AnyMetaOrderWarningToJSON(value?: AnyMetaOrderWarning | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP orders
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AnyMetaOrderWarningToJSON = exports.AnyMetaOrderWarningFromJSONTyped = exports.AnyMetaOrderWarningFromJSON = void 0;
17
+ var OrderItemWarning_1 = require("./OrderItemWarning");
18
+ var OrderWarning_1 = require("./OrderWarning");
19
+ function AnyMetaOrderWarningFromJSON(json) {
20
+ return AnyMetaOrderWarningFromJSONTyped(json, false);
21
+ }
22
+ exports.AnyMetaOrderWarningFromJSON = AnyMetaOrderWarningFromJSON;
23
+ function AnyMetaOrderWarningFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ switch (json['type']) {
28
+ case 'ORDER':
29
+ return Object.assign({}, (0, OrderWarning_1.OrderWarningFromJSONTyped)(json, true), { type: 'ORDER' });
30
+ case 'ORDER_ITEM':
31
+ return Object.assign({}, (0, OrderItemWarning_1.OrderItemWarningFromJSONTyped)(json, true), { type: 'ORDER_ITEM' });
32
+ default:
33
+ throw new Error("No variant of AnyMetaOrderWarning exists with 'type=".concat(json['type'], "'"));
34
+ }
35
+ }
36
+ exports.AnyMetaOrderWarningFromJSONTyped = AnyMetaOrderWarningFromJSONTyped;
37
+ function AnyMetaOrderWarningToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ switch (value['type']) {
42
+ case 'ORDER':
43
+ return (0, OrderWarning_1.OrderWarningToJSON)(value);
44
+ case 'ORDER_ITEM':
45
+ return (0, OrderItemWarning_1.OrderItemWarningToJSON)(value);
46
+ default:
47
+ throw new Error("No variant of AnyMetaOrderWarning exists with 'type=".concat(value['type'], "'"));
48
+ }
49
+ }
50
+ exports.AnyMetaOrderWarningToJSON = AnyMetaOrderWarningToJSON;