@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
@@ -13,18 +13,18 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ForeorderWarningToJSON = exports.ForeorderWarningFromJSONTyped = exports.ForeorderWarningFromJSON = exports.instanceOfForeorderWarning = exports.ForeorderWarningCauseEnum = void 0;
16
+ exports.OrderWarningToJSON = exports.OrderWarningFromJSONTyped = exports.OrderWarningFromJSON = exports.instanceOfOrderWarning = exports.OrderWarningCauseEnum = void 0;
17
17
  /**
18
18
  * @export
19
19
  */
20
- exports.ForeorderWarningCauseEnum = {
20
+ exports.OrderWarningCauseEnum = {
21
21
  MINIMUM_PRICE: 'MINIMUM_PRICE',
22
22
  FORBIDDEN_SELLER: 'FORBIDDEN_SELLER'
23
23
  };
24
24
  /**
25
- * Check if a given object implements the ForeorderWarning interface.
25
+ * Check if a given object implements the OrderWarning interface.
26
26
  */
27
- function instanceOfForeorderWarning(value) {
27
+ function instanceOfOrderWarning(value) {
28
28
  if (!('type' in value) || value['type'] === undefined)
29
29
  return false;
30
30
  if (!('sellerNickname' in value) || value['sellerNickname'] === undefined)
@@ -33,12 +33,12 @@ function instanceOfForeorderWarning(value) {
33
33
  return false;
34
34
  return true;
35
35
  }
36
- exports.instanceOfForeorderWarning = instanceOfForeorderWarning;
37
- function ForeorderWarningFromJSON(json) {
38
- return ForeorderWarningFromJSONTyped(json, false);
36
+ exports.instanceOfOrderWarning = instanceOfOrderWarning;
37
+ function OrderWarningFromJSON(json) {
38
+ return OrderWarningFromJSONTyped(json, false);
39
39
  }
40
- exports.ForeorderWarningFromJSON = ForeorderWarningFromJSON;
41
- function ForeorderWarningFromJSONTyped(json, ignoreDiscriminator) {
40
+ exports.OrderWarningFromJSON = OrderWarningFromJSON;
41
+ function OrderWarningFromJSONTyped(json, ignoreDiscriminator) {
42
42
  if (json == null) {
43
43
  return json;
44
44
  }
@@ -48,8 +48,8 @@ function ForeorderWarningFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'cause': json['cause'],
49
49
  };
50
50
  }
51
- exports.ForeorderWarningFromJSONTyped = ForeorderWarningFromJSONTyped;
52
- function ForeorderWarningToJSON(value) {
51
+ exports.OrderWarningFromJSONTyped = OrderWarningFromJSONTyped;
52
+ function OrderWarningToJSON(value) {
53
53
  if (value == null) {
54
54
  return value;
55
55
  }
@@ -59,4 +59,4 @@ function ForeorderWarningToJSON(value) {
59
59
  'cause': value['cause'],
60
60
  };
61
61
  }
62
- exports.ForeorderWarningToJSON = ForeorderWarningToJSON;
62
+ exports.OrderWarningToJSON = OrderWarningToJSON;
@@ -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.
@@ -22,11 +22,11 @@ export interface ShoppedOffer {
22
22
  */
23
23
  offerReference: string;
24
24
  /**
25
- * Identifier of picked distribution range
25
+ * Identifier of picked distributed range
26
26
  * @type {number}
27
27
  * @memberof ShoppedOffer
28
28
  */
29
- distributionRangeId?: number;
29
+ distributedRangeId?: number;
30
30
  /**
31
31
  * Quantity to add in the cart
32
32
  * @type {number}
@@ -35,7 +35,7 @@ function ShoppedOfferFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'offerReference': json['offerReference'],
38
- 'distributionRangeId': json['distributionRangeId'],
38
+ 'distributedRangeId': json['distributedRangeId'],
39
39
  'quantity': json['quantity'],
40
40
  };
41
41
  }
@@ -46,7 +46,7 @@ function ShoppedOfferToJSON(value) {
46
46
  }
47
47
  return {
48
48
  'offerReference': value['offerReference'],
49
- 'distributionRangeId': value['distributionRangeId'],
49
+ 'distributedRangeId': value['distributedRangeId'],
50
50
  'quantity': value['quantity'],
51
51
  };
52
52
  }
@@ -1,32 +1,25 @@
1
1
  export * from './Address';
2
2
  export * from './Anomalies';
3
3
  export * from './AnomaliesUpdateParameters';
4
- export * from './AnyForeorderCreationParameters';
5
- export * from './AnyForeorderWarning';
6
- export * from './AnyOrderCreationParameters';
7
- export * from './AnySource';
4
+ export * from './AnyMetaOrderWarning';
8
5
  export * from './Barcodes';
9
- export * from './CartForeorderCreationParameters';
10
- export * from './CartSource';
11
- export * from './CloneOrderCreationParameters';
12
- export * from './Foreorder';
13
- export * from './ForeorderCreationParameters';
14
- export * from './ForeorderItemWarning';
15
- export * from './ForeorderOrderCreationParameters';
16
- export * from './ForeorderWarning';
17
- export * from './ForeorderWarningBase';
18
- export * from './ForeorderWithWarnings';
19
6
  export * from './FreeCarriageCoupon';
20
7
  export * from './FreeCarriageCouponCreationParameters';
21
8
  export * from './FreeCarriageCouponOwnerLink';
22
9
  export * from './HttpLink';
10
+ export * from './MetaOrder';
11
+ export * from './MetaOrderCreationParameters';
12
+ export * from './MetaOrderCreationSubCartParameters';
13
+ export * from './MetaOrderPrices';
14
+ export * from './MetaOrderWarning';
15
+ export * from './MetaOrderWithWarnings';
23
16
  export * from './Order';
24
17
  export * from './OrderAddedItem';
25
- export * from './OrderCreationParameters';
26
18
  export * from './OrderItem';
27
19
  export * from './OrderItemPrices';
28
20
  export * from './OrderItemRefundedCreationParameters';
29
21
  export * from './OrderItemUpdateParameters';
22
+ export * from './OrderItemWarning';
30
23
  export * from './OrderItemsOperation';
31
24
  export * from './OrderJournal';
32
25
  export * from './OrderPrices';
@@ -34,13 +27,13 @@ export * from './OrderRefundedItem';
34
27
  export * from './OrderRefundedItemUpdateParameters';
35
28
  export * from './OrderRemovedItem';
36
29
  export * from './OrderRemovedItemUpdateParameters';
37
- export * from './OrderSource';
38
30
  export * from './OrderStatus';
39
31
  export * from './OrderStatusReason';
40
32
  export * from './OrderStorageType';
41
33
  export * from './OrderThreads';
42
34
  export * from './OrderType';
43
35
  export * from './OrderUpdateParameters';
36
+ export * from './OrderWarning';
44
37
  export * from './PaginatedFreeCarriageCoupons';
45
38
  export * from './PaginatedObject';
46
39
  export * from './PaginatedOrders';
@@ -52,7 +45,6 @@ export * from './ReservationUpdateParameters';
52
45
  export * from './RestError';
53
46
  export * from './SaleOfferLink';
54
47
  export * from './ShoppedOffer';
55
- export * from './Source';
56
48
  export * from './ThreadLink';
57
49
  export * from './UpdateOrderStatusParameters';
58
50
  export * from './UserLink';
@@ -19,32 +19,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./Address"), exports);
20
20
  __exportStar(require("./Anomalies"), exports);
21
21
  __exportStar(require("./AnomaliesUpdateParameters"), exports);
22
- __exportStar(require("./AnyForeorderCreationParameters"), exports);
23
- __exportStar(require("./AnyForeorderWarning"), exports);
24
- __exportStar(require("./AnyOrderCreationParameters"), exports);
25
- __exportStar(require("./AnySource"), exports);
22
+ __exportStar(require("./AnyMetaOrderWarning"), exports);
26
23
  __exportStar(require("./Barcodes"), exports);
27
- __exportStar(require("./CartForeorderCreationParameters"), exports);
28
- __exportStar(require("./CartSource"), exports);
29
- __exportStar(require("./CloneOrderCreationParameters"), exports);
30
- __exportStar(require("./Foreorder"), exports);
31
- __exportStar(require("./ForeorderCreationParameters"), exports);
32
- __exportStar(require("./ForeorderItemWarning"), exports);
33
- __exportStar(require("./ForeorderOrderCreationParameters"), exports);
34
- __exportStar(require("./ForeorderWarning"), exports);
35
- __exportStar(require("./ForeorderWarningBase"), exports);
36
- __exportStar(require("./ForeorderWithWarnings"), exports);
37
24
  __exportStar(require("./FreeCarriageCoupon"), exports);
38
25
  __exportStar(require("./FreeCarriageCouponCreationParameters"), exports);
39
26
  __exportStar(require("./FreeCarriageCouponOwnerLink"), exports);
40
27
  __exportStar(require("./HttpLink"), exports);
28
+ __exportStar(require("./MetaOrder"), exports);
29
+ __exportStar(require("./MetaOrderCreationParameters"), exports);
30
+ __exportStar(require("./MetaOrderCreationSubCartParameters"), exports);
31
+ __exportStar(require("./MetaOrderPrices"), exports);
32
+ __exportStar(require("./MetaOrderWarning"), exports);
33
+ __exportStar(require("./MetaOrderWithWarnings"), exports);
41
34
  __exportStar(require("./Order"), exports);
42
35
  __exportStar(require("./OrderAddedItem"), exports);
43
- __exportStar(require("./OrderCreationParameters"), exports);
44
36
  __exportStar(require("./OrderItem"), exports);
45
37
  __exportStar(require("./OrderItemPrices"), exports);
46
38
  __exportStar(require("./OrderItemRefundedCreationParameters"), exports);
47
39
  __exportStar(require("./OrderItemUpdateParameters"), exports);
40
+ __exportStar(require("./OrderItemWarning"), exports);
48
41
  __exportStar(require("./OrderItemsOperation"), exports);
49
42
  __exportStar(require("./OrderJournal"), exports);
50
43
  __exportStar(require("./OrderPrices"), exports);
@@ -52,13 +45,13 @@ __exportStar(require("./OrderRefundedItem"), exports);
52
45
  __exportStar(require("./OrderRefundedItemUpdateParameters"), exports);
53
46
  __exportStar(require("./OrderRemovedItem"), exports);
54
47
  __exportStar(require("./OrderRemovedItemUpdateParameters"), exports);
55
- __exportStar(require("./OrderSource"), exports);
56
48
  __exportStar(require("./OrderStatus"), exports);
57
49
  __exportStar(require("./OrderStatusReason"), exports);
58
50
  __exportStar(require("./OrderStorageType"), exports);
59
51
  __exportStar(require("./OrderThreads"), exports);
60
52
  __exportStar(require("./OrderType"), exports);
61
53
  __exportStar(require("./OrderUpdateParameters"), exports);
54
+ __exportStar(require("./OrderWarning"), exports);
62
55
  __exportStar(require("./PaginatedFreeCarriageCoupons"), exports);
63
56
  __exportStar(require("./PaginatedObject"), exports);
64
57
  __exportStar(require("./PaginatedOrders"), exports);
@@ -70,7 +63,6 @@ __exportStar(require("./ReservationUpdateParameters"), exports);
70
63
  __exportStar(require("./RestError"), exports);
71
64
  __exportStar(require("./SaleOfferLink"), exports);
72
65
  __exportStar(require("./ShoppedOffer"), exports);
73
- __exportStar(require("./Source"), exports);
74
66
  __exportStar(require("./ThreadLink"), exports);
75
67
  __exportStar(require("./UpdateOrderStatusParameters"), exports);
76
68
  __exportStar(require("./UserLink"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "3.1.7-LDS-5578-api-distinct-status-code-accodi.23847291272",
3
+ "version": "3.1.7-develop.23855465779",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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.
@@ -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.