@lcdp/api-react-rest-client 2.5.5-develop.6782143851 → 2.5.5-develop.6787497078

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.
@@ -22,12 +22,12 @@ export interface DeleteTagRequest {
22
22
  */
23
23
  export declare class ManageLexiconApi extends BaseAPI {
24
24
  /**
25
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
25
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
26
26
  * Create a new tag
27
27
  */
28
28
  createTagRaw(requestParameters: CreateTagRequest): Promise<ApiResponse<Tag | BlobWithMeta>>;
29
29
  /**
30
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
30
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
31
31
  * Create a new tag
32
32
  */
33
33
  createTag(requestParameters: CreateTagRequest): Promise<Tag | BlobWithMeta>;
@@ -76,7 +76,7 @@ var ManageLexiconApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
79
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
80
80
  * Create a new tag
81
81
  */
82
82
  ManageLexiconApi.prototype.createTagRaw = function (requestParameters) {
@@ -135,7 +135,7 @@ var ManageLexiconApi = /** @class */ (function (_super) {
135
135
  });
136
136
  };
137
137
  /**
138
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
138
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
139
139
  * Create a new tag
140
140
  */
141
141
  ManageLexiconApi.prototype.createTag = function (requestParameters) {
@@ -118,12 +118,12 @@ export declare class ManageOrderApi extends BaseAPI {
118
118
  */
119
119
  updateOrderAnomalies(requestParameters: UpdateOrderAnomaliesRequest): Promise<void>;
120
120
  /**
121
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
121
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
122
122
  * Update order reservations
123
123
  */
124
124
  updateOrderReservationRaw(requestParameters: UpdateOrderReservationRequest): Promise<ApiResponse<Reservation | BlobWithMeta>>;
125
125
  /**
126
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
126
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
127
127
  * Update order reservations
128
128
  */
129
129
  updateOrderReservation(requestParameters: UpdateOrderReservationRequest): Promise<Reservation | BlobWithMeta>;
@@ -562,7 +562,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
562
562
  });
563
563
  };
564
564
  /**
565
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
565
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
566
566
  * Update order reservations
567
567
  */
568
568
  ManageOrderApi.prototype.updateOrderReservationRaw = function (requestParameters) {
@@ -627,7 +627,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
627
627
  });
628
628
  };
629
629
  /**
630
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
630
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
631
631
  * Update order reservations
632
632
  */
633
633
  ManageOrderApi.prototype.updateOrderReservation = function (requestParameters) {
@@ -65,10 +65,12 @@ export declare class SearchOrderApi extends BaseAPI {
65
65
  */
66
66
  getOrderDeliveryVoucher(requestParameters: GetOrderDeliveryVoucherRequest): Promise<BlobWithMeta>;
67
67
  /**
68
+ * Preconditions : - You are administrator, BUYER or SELLER
68
69
  * Get reservations for an order
69
70
  */
70
71
  getOrderReservationsRaw(requestParameters: GetOrderReservationsRequest): Promise<ApiResponse<Array<Reservation> | BlobWithMeta>>;
71
72
  /**
73
+ * Preconditions : - You are administrator, BUYER or SELLER
72
74
  * Get reservations for an order
73
75
  */
74
76
  getOrderReservations(requestParameters: GetOrderReservationsRequest): Promise<Array<Reservation> | BlobWithMeta>;
@@ -224,6 +224,7 @@ var SearchOrderApi = /** @class */ (function (_super) {
224
224
  });
225
225
  };
226
226
  /**
227
+ * Preconditions : - You are administrator, BUYER or SELLER
227
228
  * Get reservations for an order
228
229
  */
229
230
  SearchOrderApi.prototype.getOrderReservationsRaw = function (requestParameters) {
@@ -280,6 +281,7 @@ var SearchOrderApi = /** @class */ (function (_super) {
280
281
  });
281
282
  };
282
283
  /**
284
+ * Preconditions : - You are administrator, BUYER or SELLER
283
285
  * Get reservations for an order
284
286
  */
285
287
  SearchOrderApi.prototype.getOrderReservations = function (requestParameters) {
@@ -35,6 +35,12 @@ export interface Reservation {
35
35
  * @memberof Reservation
36
36
  */
37
37
  saleOffer?: SaleOfferLink;
38
+ /**
39
+ * True if the associated sale offer have a limited stock. False if not. Important note : You can not release claimed items for a non limited-stock sale offer.
40
+ * @type {boolean}
41
+ * @memberof Reservation
42
+ */
43
+ limitedStock?: boolean;
38
44
  /**
39
45
  * Total number of item linked to this order (claimed + released)
40
46
  * @type {number}
@@ -29,6 +29,7 @@ function ReservationFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
30
30
  'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
31
31
  'saleOffer': !(0, runtime_1.exists)(json, 'saleOffer') ? undefined : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
32
+ 'limitedStock': !(0, runtime_1.exists)(json, 'limitedStock') ? undefined : json['limitedStock'],
32
33
  'total': !(0, runtime_1.exists)(json, 'total') ? undefined : json['total'],
33
34
  'claimed': !(0, runtime_1.exists)(json, 'claimed') ? undefined : json['claimed'],
34
35
  'released': !(0, runtime_1.exists)(json, 'released') ? undefined : json['released'],
@@ -46,6 +47,7 @@ function ReservationToJSON(value) {
46
47
  'id': value.id,
47
48
  'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
48
49
  'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
50
+ 'limitedStock': value.limitedStock,
49
51
  'total': value.total,
50
52
  'claimed': value.claimed,
51
53
  'released': value.released,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.5.5-develop.6782143851",
3
+ "version": "2.5.5-develop.6787497078",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },