@teemill/platform 0.5.0 → 0.7.0

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.
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.5.0
8
+ * The version of the OpenAPI document: 0.7.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -101,6 +101,138 @@ const OrdersApiAxiosParamCreator = function (configuration) {
101
101
  options: localVarRequestOptions,
102
102
  };
103
103
  }),
104
+ /**
105
+ * Get a fulfillment for a platform by a given fulfillment ID.
106
+ * @summary Get fulfillment
107
+ * @param {string} project Project unique identifier
108
+ * @param {string} platformId The platform identifier
109
+ * @param {string} fulfillmentId The fulfillment identifier
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ getFulfillment: (project_1, platformId_1, fulfillmentId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, options = {}) {
114
+ // verify required parameter 'project' is not null or undefined
115
+ (0, common_1.assertParamExists)('getFulfillment', 'project', project);
116
+ // verify required parameter 'platformId' is not null or undefined
117
+ (0, common_1.assertParamExists)('getFulfillment', 'platformId', platformId);
118
+ // verify required parameter 'fulfillmentId' is not null or undefined
119
+ (0, common_1.assertParamExists)('getFulfillment', 'fulfillmentId', fulfillmentId);
120
+ const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
121
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
122
+ .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
125
+ let baseOptions;
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
130
+ const localVarHeaderParameter = {};
131
+ const localVarQueryParameter = {};
132
+ // authentication session-oauth required
133
+ // oauth required
134
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
135
+ // authentication api-key required
136
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
137
+ if (project !== undefined) {
138
+ localVarQueryParameter['project'] = project;
139
+ }
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ return {
144
+ url: (0, common_1.toPathString)(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ };
147
+ }),
148
+ /**
149
+ * Get an order for a platform by a given order ID.
150
+ * @summary Get order
151
+ * @param {string} project Project unique identifier
152
+ * @param {string} platformId The platform identifier
153
+ * @param {string} orderId The order identifier
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ getOrder: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
158
+ // verify required parameter 'project' is not null or undefined
159
+ (0, common_1.assertParamExists)('getOrder', 'project', project);
160
+ // verify required parameter 'platformId' is not null or undefined
161
+ (0, common_1.assertParamExists)('getOrder', 'platformId', platformId);
162
+ // verify required parameter 'orderId' is not null or undefined
163
+ (0, common_1.assertParamExists)('getOrder', 'orderId', orderId);
164
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
165
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
166
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
+ let baseOptions;
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ }
173
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
174
+ const localVarHeaderParameter = {};
175
+ const localVarQueryParameter = {};
176
+ // authentication session-oauth required
177
+ // oauth required
178
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
179
+ // authentication api-key required
180
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
181
+ if (project !== undefined) {
182
+ localVarQueryParameter['project'] = project;
183
+ }
184
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
187
+ return {
188
+ url: (0, common_1.toPathString)(localVarUrlObj),
189
+ options: localVarRequestOptions,
190
+ };
191
+ }),
192
+ /**
193
+ * List available fulfillers for a given fulfillment
194
+ * @summary List available fulfillers
195
+ * @param {string} project Project unique identifier
196
+ * @param {string} platformId The platform identifier
197
+ * @param {string} fulfillmentId The fulfillment identifier
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ listAvailableFulfillers: (project_1, platformId_1, fulfillmentId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, options = {}) {
202
+ // verify required parameter 'project' is not null or undefined
203
+ (0, common_1.assertParamExists)('listAvailableFulfillers', 'project', project);
204
+ // verify required parameter 'platformId' is not null or undefined
205
+ (0, common_1.assertParamExists)('listAvailableFulfillers', 'platformId', platformId);
206
+ // verify required parameter 'fulfillmentId' is not null or undefined
207
+ (0, common_1.assertParamExists)('listAvailableFulfillers', 'fulfillmentId', fulfillmentId);
208
+ const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers`
209
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
210
+ .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ if (configuration) {
215
+ baseOptions = configuration.baseOptions;
216
+ }
217
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
218
+ const localVarHeaderParameter = {};
219
+ const localVarQueryParameter = {};
220
+ // authentication session-oauth required
221
+ // oauth required
222
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
223
+ // authentication api-key required
224
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
225
+ if (project !== undefined) {
226
+ localVarQueryParameter['project'] = project;
227
+ }
228
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
231
+ return {
232
+ url: (0, common_1.toPathString)(localVarUrlObj),
233
+ options: localVarRequestOptions,
234
+ };
235
+ }),
104
236
  /**
105
237
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
106
238
  * @summary List orders
@@ -165,6 +297,55 @@ const OrdersApiAxiosParamCreator = function (configuration) {
165
297
  options: localVarRequestOptions,
166
298
  };
167
299
  }),
300
+ /**
301
+ * Update a fulfillment that belongs to an order placed through the platform
302
+ * @summary Update fulfillment
303
+ * @param {string} project Project unique identifier
304
+ * @param {string} platformId The platform identifier
305
+ * @param {string} fulfillmentId The fulfillment identifier
306
+ * @param {UpdateFulfillmentRequest} updateFulfillmentRequest
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ updateFulfillment: (project_1, platformId_1, fulfillmentId_1, updateFulfillmentRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, updateFulfillmentRequest_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, updateFulfillmentRequest, options = {}) {
311
+ // verify required parameter 'project' is not null or undefined
312
+ (0, common_1.assertParamExists)('updateFulfillment', 'project', project);
313
+ // verify required parameter 'platformId' is not null or undefined
314
+ (0, common_1.assertParamExists)('updateFulfillment', 'platformId', platformId);
315
+ // verify required parameter 'fulfillmentId' is not null or undefined
316
+ (0, common_1.assertParamExists)('updateFulfillment', 'fulfillmentId', fulfillmentId);
317
+ // verify required parameter 'updateFulfillmentRequest' is not null or undefined
318
+ (0, common_1.assertParamExists)('updateFulfillment', 'updateFulfillmentRequest', updateFulfillmentRequest);
319
+ const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
320
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
321
+ .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
323
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
324
+ let baseOptions;
325
+ if (configuration) {
326
+ baseOptions = configuration.baseOptions;
327
+ }
328
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
329
+ const localVarHeaderParameter = {};
330
+ const localVarQueryParameter = {};
331
+ // authentication session-oauth required
332
+ // oauth required
333
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
334
+ // authentication api-key required
335
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
336
+ if (project !== undefined) {
337
+ localVarQueryParameter['project'] = project;
338
+ }
339
+ localVarHeaderParameter['Content-Type'] = 'application/json';
340
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
342
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
343
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFulfillmentRequest, localVarRequestOptions, configuration);
344
+ return {
345
+ url: (0, common_1.toPathString)(localVarUrlObj),
346
+ options: localVarRequestOptions,
347
+ };
348
+ }),
168
349
  };
169
350
  };
170
351
  exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
@@ -194,6 +375,60 @@ const OrdersApiFp = function (configuration) {
194
375
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
195
376
  });
196
377
  },
378
+ /**
379
+ * Get a fulfillment for a platform by a given fulfillment ID.
380
+ * @summary Get fulfillment
381
+ * @param {string} project Project unique identifier
382
+ * @param {string} platformId The platform identifier
383
+ * @param {string} fulfillmentId The fulfillment identifier
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ getFulfillment(project, platformId, fulfillmentId, options) {
388
+ return __awaiter(this, void 0, void 0, function* () {
389
+ var _a, _b, _c;
390
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFulfillment(project, platformId, fulfillmentId, options);
391
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
392
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
393
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
394
+ });
395
+ },
396
+ /**
397
+ * Get an order for a platform by a given order ID.
398
+ * @summary Get order
399
+ * @param {string} project Project unique identifier
400
+ * @param {string} platformId The platform identifier
401
+ * @param {string} orderId The order identifier
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ getOrder(project, platformId, orderId, options) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ var _a, _b, _c;
408
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(project, platformId, orderId, options);
409
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
410
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
411
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
412
+ });
413
+ },
414
+ /**
415
+ * List available fulfillers for a given fulfillment
416
+ * @summary List available fulfillers
417
+ * @param {string} project Project unique identifier
418
+ * @param {string} platformId The platform identifier
419
+ * @param {string} fulfillmentId The fulfillment identifier
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ listAvailableFulfillers(project, platformId, fulfillmentId, options) {
424
+ return __awaiter(this, void 0, void 0, function* () {
425
+ var _a, _b, _c;
426
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableFulfillers(project, platformId, fulfillmentId, options);
427
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
428
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.listAvailableFulfillers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
429
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
430
+ });
431
+ },
197
432
  /**
198
433
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
199
434
  * @summary List orders
@@ -216,6 +451,25 @@ const OrdersApiFp = function (configuration) {
216
451
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
452
  });
218
453
  },
454
+ /**
455
+ * Update a fulfillment that belongs to an order placed through the platform
456
+ * @summary Update fulfillment
457
+ * @param {string} project Project unique identifier
458
+ * @param {string} platformId The platform identifier
459
+ * @param {string} fulfillmentId The fulfillment identifier
460
+ * @param {UpdateFulfillmentRequest} updateFulfillmentRequest
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options) {
465
+ return __awaiter(this, void 0, void 0, function* () {
466
+ var _a, _b, _c;
467
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options);
468
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
469
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.updateFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
470
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
471
+ });
472
+ },
219
473
  };
220
474
  };
221
475
  exports.OrdersApiFp = OrdersApiFp;
@@ -236,6 +490,36 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
236
490
  exportOrders(requestParameters, options) {
237
491
  return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
238
492
  },
493
+ /**
494
+ * Get a fulfillment for a platform by a given fulfillment ID.
495
+ * @summary Get fulfillment
496
+ * @param {OrdersApiGetFulfillmentRequest} requestParameters Request parameters.
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ getFulfillment(requestParameters, options) {
501
+ return localVarFp.getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
502
+ },
503
+ /**
504
+ * Get an order for a platform by a given order ID.
505
+ * @summary Get order
506
+ * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ getOrder(requestParameters, options) {
511
+ return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
512
+ },
513
+ /**
514
+ * List available fulfillers for a given fulfillment
515
+ * @summary List available fulfillers
516
+ * @param {OrdersApiListAvailableFulfillersRequest} requestParameters Request parameters.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ */
520
+ listAvailableFulfillers(requestParameters, options) {
521
+ return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
522
+ },
239
523
  /**
240
524
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
241
525
  * @summary List orders
@@ -246,6 +530,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
246
530
  listOrders(requestParameters, options) {
247
531
  return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
248
532
  },
533
+ /**
534
+ * Update a fulfillment that belongs to an order placed through the platform
535
+ * @summary Update fulfillment
536
+ * @param {OrdersApiUpdateFulfillmentRequest} requestParameters Request parameters.
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ updateFulfillment(requestParameters, options) {
541
+ return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
542
+ },
249
543
  };
250
544
  };
251
545
  exports.OrdersApiFactory = OrdersApiFactory;
@@ -267,6 +561,39 @@ class OrdersApi extends base_1.BaseAPI {
267
561
  exportOrders(requestParameters, options) {
268
562
  return (0, exports.OrdersApiFp)(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
269
563
  }
564
+ /**
565
+ * Get a fulfillment for a platform by a given fulfillment ID.
566
+ * @summary Get fulfillment
567
+ * @param {OrdersApiGetFulfillmentRequest} requestParameters Request parameters.
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ * @memberof OrdersApi
571
+ */
572
+ getFulfillment(requestParameters, options) {
573
+ return (0, exports.OrdersApiFp)(this.configuration).getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
574
+ }
575
+ /**
576
+ * Get an order for a platform by a given order ID.
577
+ * @summary Get order
578
+ * @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ * @memberof OrdersApi
582
+ */
583
+ getOrder(requestParameters, options) {
584
+ return (0, exports.OrdersApiFp)(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
585
+ }
586
+ /**
587
+ * List available fulfillers for a given fulfillment
588
+ * @summary List available fulfillers
589
+ * @param {OrdersApiListAvailableFulfillersRequest} requestParameters Request parameters.
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ * @memberof OrdersApi
593
+ */
594
+ listAvailableFulfillers(requestParameters, options) {
595
+ return (0, exports.OrdersApiFp)(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
596
+ }
270
597
  /**
271
598
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
272
599
  * @summary List orders
@@ -278,6 +605,17 @@ class OrdersApi extends base_1.BaseAPI {
278
605
  listOrders(requestParameters, options) {
279
606
  return (0, exports.OrdersApiFp)(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
280
607
  }
608
+ /**
609
+ * Update a fulfillment that belongs to an order placed through the platform
610
+ * @summary Update fulfillment
611
+ * @param {OrdersApiUpdateFulfillmentRequest} requestParameters Request parameters.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ * @memberof OrdersApi
615
+ */
616
+ updateFulfillment(requestParameters, options) {
617
+ return (0, exports.OrdersApiFp)(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
618
+ }
281
619
  }
282
620
  exports.OrdersApi = OrdersApi;
283
621
  /**
@@ -340,6 +678,94 @@ const PlatformApiAxiosParamCreator = function (configuration) {
340
678
  options: localVarRequestOptions,
341
679
  };
342
680
  }),
681
+ /**
682
+ * Get a fulfillment for a platform by a given fulfillment ID.
683
+ * @summary Get fulfillment
684
+ * @param {string} project Project unique identifier
685
+ * @param {string} platformId The platform identifier
686
+ * @param {string} fulfillmentId The fulfillment identifier
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ getFulfillment: (project_1, platformId_1, fulfillmentId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, options = {}) {
691
+ // verify required parameter 'project' is not null or undefined
692
+ (0, common_1.assertParamExists)('getFulfillment', 'project', project);
693
+ // verify required parameter 'platformId' is not null or undefined
694
+ (0, common_1.assertParamExists)('getFulfillment', 'platformId', platformId);
695
+ // verify required parameter 'fulfillmentId' is not null or undefined
696
+ (0, common_1.assertParamExists)('getFulfillment', 'fulfillmentId', fulfillmentId);
697
+ const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
698
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
699
+ .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
701
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
702
+ let baseOptions;
703
+ if (configuration) {
704
+ baseOptions = configuration.baseOptions;
705
+ }
706
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
707
+ const localVarHeaderParameter = {};
708
+ const localVarQueryParameter = {};
709
+ // authentication session-oauth required
710
+ // oauth required
711
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
712
+ // authentication api-key required
713
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
714
+ if (project !== undefined) {
715
+ localVarQueryParameter['project'] = project;
716
+ }
717
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
718
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
719
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
720
+ return {
721
+ url: (0, common_1.toPathString)(localVarUrlObj),
722
+ options: localVarRequestOptions,
723
+ };
724
+ }),
725
+ /**
726
+ * Get an order for a platform by a given order ID.
727
+ * @summary Get order
728
+ * @param {string} project Project unique identifier
729
+ * @param {string} platformId The platform identifier
730
+ * @param {string} orderId The order identifier
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ getOrder: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
735
+ // verify required parameter 'project' is not null or undefined
736
+ (0, common_1.assertParamExists)('getOrder', 'project', project);
737
+ // verify required parameter 'platformId' is not null or undefined
738
+ (0, common_1.assertParamExists)('getOrder', 'platformId', platformId);
739
+ // verify required parameter 'orderId' is not null or undefined
740
+ (0, common_1.assertParamExists)('getOrder', 'orderId', orderId);
741
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
742
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
743
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
745
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
746
+ let baseOptions;
747
+ if (configuration) {
748
+ baseOptions = configuration.baseOptions;
749
+ }
750
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
751
+ const localVarHeaderParameter = {};
752
+ const localVarQueryParameter = {};
753
+ // authentication session-oauth required
754
+ // oauth required
755
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
756
+ // authentication api-key required
757
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
758
+ if (project !== undefined) {
759
+ localVarQueryParameter['project'] = project;
760
+ }
761
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
762
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
763
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
764
+ return {
765
+ url: (0, common_1.toPathString)(localVarUrlObj),
766
+ options: localVarRequestOptions,
767
+ };
768
+ }),
343
769
  /**
344
770
  *
345
771
  * @summary Get platform details
@@ -376,6 +802,50 @@ const PlatformApiAxiosParamCreator = function (configuration) {
376
802
  options: localVarRequestOptions,
377
803
  };
378
804
  }),
805
+ /**
806
+ * List available fulfillers for a given fulfillment
807
+ * @summary List available fulfillers
808
+ * @param {string} project Project unique identifier
809
+ * @param {string} platformId The platform identifier
810
+ * @param {string} fulfillmentId The fulfillment identifier
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ listAvailableFulfillers: (project_1, platformId_1, fulfillmentId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, options = {}) {
815
+ // verify required parameter 'project' is not null or undefined
816
+ (0, common_1.assertParamExists)('listAvailableFulfillers', 'project', project);
817
+ // verify required parameter 'platformId' is not null or undefined
818
+ (0, common_1.assertParamExists)('listAvailableFulfillers', 'platformId', platformId);
819
+ // verify required parameter 'fulfillmentId' is not null or undefined
820
+ (0, common_1.assertParamExists)('listAvailableFulfillers', 'fulfillmentId', fulfillmentId);
821
+ const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}/available-fulfillers`
822
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
823
+ .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
824
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
825
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
826
+ let baseOptions;
827
+ if (configuration) {
828
+ baseOptions = configuration.baseOptions;
829
+ }
830
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
831
+ const localVarHeaderParameter = {};
832
+ const localVarQueryParameter = {};
833
+ // authentication session-oauth required
834
+ // oauth required
835
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
836
+ // authentication api-key required
837
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
838
+ if (project !== undefined) {
839
+ localVarQueryParameter['project'] = project;
840
+ }
841
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
843
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
844
+ return {
845
+ url: (0, common_1.toPathString)(localVarUrlObj),
846
+ options: localVarRequestOptions,
847
+ };
848
+ }),
379
849
  /**
380
850
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
381
851
  * @summary List orders
@@ -440,6 +910,55 @@ const PlatformApiAxiosParamCreator = function (configuration) {
440
910
  options: localVarRequestOptions,
441
911
  };
442
912
  }),
913
+ /**
914
+ * Update a fulfillment that belongs to an order placed through the platform
915
+ * @summary Update fulfillment
916
+ * @param {string} project Project unique identifier
917
+ * @param {string} platformId The platform identifier
918
+ * @param {string} fulfillmentId The fulfillment identifier
919
+ * @param {UpdateFulfillmentRequest} updateFulfillmentRequest
920
+ * @param {*} [options] Override http request option.
921
+ * @throws {RequiredError}
922
+ */
923
+ updateFulfillment: (project_1, platformId_1, fulfillmentId_1, updateFulfillmentRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, updateFulfillmentRequest_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, updateFulfillmentRequest, options = {}) {
924
+ // verify required parameter 'project' is not null or undefined
925
+ (0, common_1.assertParamExists)('updateFulfillment', 'project', project);
926
+ // verify required parameter 'platformId' is not null or undefined
927
+ (0, common_1.assertParamExists)('updateFulfillment', 'platformId', platformId);
928
+ // verify required parameter 'fulfillmentId' is not null or undefined
929
+ (0, common_1.assertParamExists)('updateFulfillment', 'fulfillmentId', fulfillmentId);
930
+ // verify required parameter 'updateFulfillmentRequest' is not null or undefined
931
+ (0, common_1.assertParamExists)('updateFulfillment', 'updateFulfillmentRequest', updateFulfillmentRequest);
932
+ const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
933
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
934
+ .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
936
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
937
+ let baseOptions;
938
+ if (configuration) {
939
+ baseOptions = configuration.baseOptions;
940
+ }
941
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
942
+ const localVarHeaderParameter = {};
943
+ const localVarQueryParameter = {};
944
+ // authentication session-oauth required
945
+ // oauth required
946
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
947
+ // authentication api-key required
948
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
949
+ if (project !== undefined) {
950
+ localVarQueryParameter['project'] = project;
951
+ }
952
+ localVarHeaderParameter['Content-Type'] = 'application/json';
953
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
955
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
956
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFulfillmentRequest, localVarRequestOptions, configuration);
957
+ return {
958
+ url: (0, common_1.toPathString)(localVarUrlObj),
959
+ options: localVarRequestOptions,
960
+ };
961
+ }),
443
962
  /**
444
963
  *
445
964
  * @summary Update platform
@@ -510,6 +1029,42 @@ const PlatformApiFp = function (configuration) {
510
1029
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
511
1030
  });
512
1031
  },
1032
+ /**
1033
+ * Get a fulfillment for a platform by a given fulfillment ID.
1034
+ * @summary Get fulfillment
1035
+ * @param {string} project Project unique identifier
1036
+ * @param {string} platformId The platform identifier
1037
+ * @param {string} fulfillmentId The fulfillment identifier
1038
+ * @param {*} [options] Override http request option.
1039
+ * @throws {RequiredError}
1040
+ */
1041
+ getFulfillment(project, platformId, fulfillmentId, options) {
1042
+ return __awaiter(this, void 0, void 0, function* () {
1043
+ var _a, _b, _c;
1044
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFulfillment(project, platformId, fulfillmentId, options);
1045
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1046
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1047
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1048
+ });
1049
+ },
1050
+ /**
1051
+ * Get an order for a platform by a given order ID.
1052
+ * @summary Get order
1053
+ * @param {string} project Project unique identifier
1054
+ * @param {string} platformId The platform identifier
1055
+ * @param {string} orderId The order identifier
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ */
1059
+ getOrder(project, platformId, orderId, options) {
1060
+ return __awaiter(this, void 0, void 0, function* () {
1061
+ var _a, _b, _c;
1062
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(project, platformId, orderId, options);
1063
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1064
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1065
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1066
+ });
1067
+ },
513
1068
  /**
514
1069
  *
515
1070
  * @summary Get platform details
@@ -526,6 +1081,24 @@ const PlatformApiFp = function (configuration) {
526
1081
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
527
1082
  });
528
1083
  },
1084
+ /**
1085
+ * List available fulfillers for a given fulfillment
1086
+ * @summary List available fulfillers
1087
+ * @param {string} project Project unique identifier
1088
+ * @param {string} platformId The platform identifier
1089
+ * @param {string} fulfillmentId The fulfillment identifier
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ listAvailableFulfillers(project, platformId, fulfillmentId, options) {
1094
+ return __awaiter(this, void 0, void 0, function* () {
1095
+ var _a, _b, _c;
1096
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableFulfillers(project, platformId, fulfillmentId, options);
1097
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1098
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listAvailableFulfillers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1099
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1100
+ });
1101
+ },
529
1102
  /**
530
1103
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
531
1104
  * @summary List orders
@@ -548,6 +1121,25 @@ const PlatformApiFp = function (configuration) {
548
1121
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
549
1122
  });
550
1123
  },
1124
+ /**
1125
+ * Update a fulfillment that belongs to an order placed through the platform
1126
+ * @summary Update fulfillment
1127
+ * @param {string} project Project unique identifier
1128
+ * @param {string} platformId The platform identifier
1129
+ * @param {string} fulfillmentId The fulfillment identifier
1130
+ * @param {UpdateFulfillmentRequest} updateFulfillmentRequest
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ */
1134
+ updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options) {
1135
+ return __awaiter(this, void 0, void 0, function* () {
1136
+ var _a, _b, _c;
1137
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFulfillment(project, platformId, fulfillmentId, updateFulfillmentRequest, options);
1138
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1139
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updateFulfillment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1140
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1141
+ });
1142
+ },
551
1143
  /**
552
1144
  *
553
1145
  * @summary Update platform
@@ -585,6 +1177,26 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
585
1177
  exportOrders(requestParameters, options) {
586
1178
  return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
587
1179
  },
1180
+ /**
1181
+ * Get a fulfillment for a platform by a given fulfillment ID.
1182
+ * @summary Get fulfillment
1183
+ * @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
1184
+ * @param {*} [options] Override http request option.
1185
+ * @throws {RequiredError}
1186
+ */
1187
+ getFulfillment(requestParameters, options) {
1188
+ return localVarFp.getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
1189
+ },
1190
+ /**
1191
+ * Get an order for a platform by a given order ID.
1192
+ * @summary Get order
1193
+ * @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
1194
+ * @param {*} [options] Override http request option.
1195
+ * @throws {RequiredError}
1196
+ */
1197
+ getOrder(requestParameters, options) {
1198
+ return localVarFp.getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
1199
+ },
588
1200
  /**
589
1201
  *
590
1202
  * @summary Get platform details
@@ -595,6 +1207,16 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
595
1207
  getPlatform(requestParameters, options) {
596
1208
  return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
597
1209
  },
1210
+ /**
1211
+ * List available fulfillers for a given fulfillment
1212
+ * @summary List available fulfillers
1213
+ * @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
1214
+ * @param {*} [options] Override http request option.
1215
+ * @throws {RequiredError}
1216
+ */
1217
+ listAvailableFulfillers(requestParameters, options) {
1218
+ return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
1219
+ },
598
1220
  /**
599
1221
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
600
1222
  * @summary List orders
@@ -605,6 +1227,16 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
605
1227
  listOrders(requestParameters, options) {
606
1228
  return localVarFp.listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
607
1229
  },
1230
+ /**
1231
+ * Update a fulfillment that belongs to an order placed through the platform
1232
+ * @summary Update fulfillment
1233
+ * @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
1234
+ * @param {*} [options] Override http request option.
1235
+ * @throws {RequiredError}
1236
+ */
1237
+ updateFulfillment(requestParameters, options) {
1238
+ return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
1239
+ },
608
1240
  /**
609
1241
  *
610
1242
  * @summary Update platform
@@ -636,6 +1268,28 @@ class PlatformApi extends base_1.BaseAPI {
636
1268
  exportOrders(requestParameters, options) {
637
1269
  return (0, exports.PlatformApiFp)(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
638
1270
  }
1271
+ /**
1272
+ * Get a fulfillment for a platform by a given fulfillment ID.
1273
+ * @summary Get fulfillment
1274
+ * @param {PlatformApiGetFulfillmentRequest} requestParameters Request parameters.
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ * @memberof PlatformApi
1278
+ */
1279
+ getFulfillment(requestParameters, options) {
1280
+ return (0, exports.PlatformApiFp)(this.configuration).getFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
1281
+ }
1282
+ /**
1283
+ * Get an order for a platform by a given order ID.
1284
+ * @summary Get order
1285
+ * @param {PlatformApiGetOrderRequest} requestParameters Request parameters.
1286
+ * @param {*} [options] Override http request option.
1287
+ * @throws {RequiredError}
1288
+ * @memberof PlatformApi
1289
+ */
1290
+ getOrder(requestParameters, options) {
1291
+ return (0, exports.PlatformApiFp)(this.configuration).getOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1292
+ }
639
1293
  /**
640
1294
  *
641
1295
  * @summary Get platform details
@@ -647,6 +1301,17 @@ class PlatformApi extends base_1.BaseAPI {
647
1301
  getPlatform(requestParameters, options) {
648
1302
  return (0, exports.PlatformApiFp)(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
649
1303
  }
1304
+ /**
1305
+ * List available fulfillers for a given fulfillment
1306
+ * @summary List available fulfillers
1307
+ * @param {PlatformApiListAvailableFulfillersRequest} requestParameters Request parameters.
1308
+ * @param {*} [options] Override http request option.
1309
+ * @throws {RequiredError}
1310
+ * @memberof PlatformApi
1311
+ */
1312
+ listAvailableFulfillers(requestParameters, options) {
1313
+ return (0, exports.PlatformApiFp)(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
1314
+ }
650
1315
  /**
651
1316
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
652
1317
  * @summary List orders
@@ -658,6 +1323,17 @@ class PlatformApi extends base_1.BaseAPI {
658
1323
  listOrders(requestParameters, options) {
659
1324
  return (0, exports.PlatformApiFp)(this.configuration).listOrders(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
660
1325
  }
1326
+ /**
1327
+ * Update a fulfillment that belongs to an order placed through the platform
1328
+ * @summary Update fulfillment
1329
+ * @param {PlatformApiUpdateFulfillmentRequest} requestParameters Request parameters.
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ * @memberof PlatformApi
1333
+ */
1334
+ updateFulfillment(requestParameters, options) {
1335
+ return (0, exports.PlatformApiFp)(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
1336
+ }
661
1337
  /**
662
1338
  *
663
1339
  * @summary Update platform