@tradecafe/offer-service-sdk 0.0.47 → 0.0.48
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/.openapi-generator/FILES +5 -0
- package/api/matchedOffersApi.ts +145 -0
- package/dist/api/matchedOffersApi.d.ts +18 -0
- package/dist/api/matchedOffersApi.js +187 -51
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -0
- package/dist/model/bulkAddTertiaryCostsDto.js +26 -0
- package/dist/model/bulkAddTertiaryCostsDto.js.map +1 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js +31 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js.map +1 -0
- package/dist/model/costAmountDto.d.ts +14 -0
- package/dist/model/costAmountDto.js +21 -0
- package/dist/model/costAmountDto.js.map +1 -0
- package/dist/model/costDto.d.ts +21 -0
- package/dist/model/costDto.js +51 -0
- package/dist/model/costDto.js.map +1 -0
- package/dist/model/costDtoSource.d.ts +14 -0
- package/dist/model/costDtoSource.js +21 -0
- package/dist/model/costDtoSource.js.map +1 -0
- package/dist/model/models.d.ts +5 -0
- package/dist/model/models.js +15 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkAddTertiaryCostsDto.ts +44 -0
- package/model/bulkUpdateDeliveryDatesDto.ts +52 -0
- package/model/costAmountDto.ts +34 -0
- package/model/costDto.ts +86 -0
- package/model/costDtoSource.ts +38 -0
- package/model/models.ts +15 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -11,6 +11,11 @@ git_push.sh
|
|
|
11
11
|
model/addFutureBidDto.ts
|
|
12
12
|
model/addMatchedDeliveryDateDto.ts
|
|
13
13
|
model/bulkAddRelistingDto.ts
|
|
14
|
+
model/bulkAddTertiaryCostsDto.ts
|
|
15
|
+
model/bulkUpdateDeliveryDatesDto.ts
|
|
16
|
+
model/costAmountDto.ts
|
|
17
|
+
model/costDto.ts
|
|
18
|
+
model/costDtoSource.ts
|
|
14
19
|
model/createAutomatedOfferDto.ts
|
|
15
20
|
model/createMatchedOfferDto.ts
|
|
16
21
|
model/createMatchedOfferDtoAttributes.ts
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -15,6 +15,8 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
19
|
+
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
18
20
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
19
21
|
import { PinActionDto } from '../model/pinActionDto';
|
|
20
22
|
|
|
@@ -244,6 +246,149 @@ export class MatchedOffersApi {
|
|
|
244
246
|
});
|
|
245
247
|
});
|
|
246
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @summary Adds tertiary costs to multiple matched offers in a single operation
|
|
252
|
+
* @param account
|
|
253
|
+
* @param userId
|
|
254
|
+
* @param bulkAddTertiaryCostsDto
|
|
255
|
+
*/
|
|
256
|
+
public async matchedOffersControllerBulkaddtertiarycosts (account: string, userId: string, bulkAddTertiaryCostsDto: BulkAddTertiaryCostsDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
257
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/tertiary-costs/{userId}'
|
|
258
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)))
|
|
259
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
260
|
+
let localVarQueryParameters: any = {};
|
|
261
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
262
|
+
let localVarFormParams: any = {};
|
|
263
|
+
|
|
264
|
+
// verify required parameter 'account' is not null or undefined
|
|
265
|
+
if (account === null || account === undefined) {
|
|
266
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// verify required parameter 'userId' is not null or undefined
|
|
270
|
+
if (userId === null || userId === undefined) {
|
|
271
|
+
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// verify required parameter 'bulkAddTertiaryCostsDto' is not null or undefined
|
|
275
|
+
if (bulkAddTertiaryCostsDto === null || bulkAddTertiaryCostsDto === undefined) {
|
|
276
|
+
throw new Error('Required parameter bulkAddTertiaryCostsDto was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
280
|
+
|
|
281
|
+
let localVarUseFormData = false;
|
|
282
|
+
|
|
283
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
284
|
+
method: 'PUT',
|
|
285
|
+
qs: localVarQueryParameters,
|
|
286
|
+
headers: localVarHeaderParams,
|
|
287
|
+
uri: localVarPath,
|
|
288
|
+
useQuerystring: this._useQuerystring,
|
|
289
|
+
json: true,
|
|
290
|
+
body: ObjectSerializer.serialize(bulkAddTertiaryCostsDto, "BulkAddTertiaryCostsDto")
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
let authenticationPromise = Promise.resolve();
|
|
294
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
295
|
+
|
|
296
|
+
let interceptorPromise = authenticationPromise;
|
|
297
|
+
for (const interceptor of this.interceptors) {
|
|
298
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
return interceptorPromise.then(() => {
|
|
302
|
+
if (Object.keys(localVarFormParams).length) {
|
|
303
|
+
if (localVarUseFormData) {
|
|
304
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
305
|
+
} else {
|
|
306
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
310
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
311
|
+
if (error) {
|
|
312
|
+
reject(error);
|
|
313
|
+
} else {
|
|
314
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
315
|
+
resolve({ response: response, body: body });
|
|
316
|
+
} else {
|
|
317
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @summary Updates delivery dates on multiple matched offers in a single operation
|
|
327
|
+
* @param account
|
|
328
|
+
* @param bulkUpdateDeliveryDatesDto
|
|
329
|
+
*/
|
|
330
|
+
public async matchedOffersControllerBulkupdatedeliverydates (account: string, bulkUpdateDeliveryDatesDto: BulkUpdateDeliveryDatesDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
331
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/delivery-dates'
|
|
332
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
333
|
+
let localVarQueryParameters: any = {};
|
|
334
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
335
|
+
let localVarFormParams: any = {};
|
|
336
|
+
|
|
337
|
+
// verify required parameter 'account' is not null or undefined
|
|
338
|
+
if (account === null || account === undefined) {
|
|
339
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// verify required parameter 'bulkUpdateDeliveryDatesDto' is not null or undefined
|
|
343
|
+
if (bulkUpdateDeliveryDatesDto === null || bulkUpdateDeliveryDatesDto === undefined) {
|
|
344
|
+
throw new Error('Required parameter bulkUpdateDeliveryDatesDto was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
348
|
+
|
|
349
|
+
let localVarUseFormData = false;
|
|
350
|
+
|
|
351
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
352
|
+
method: 'PUT',
|
|
353
|
+
qs: localVarQueryParameters,
|
|
354
|
+
headers: localVarHeaderParams,
|
|
355
|
+
uri: localVarPath,
|
|
356
|
+
useQuerystring: this._useQuerystring,
|
|
357
|
+
json: true,
|
|
358
|
+
body: ObjectSerializer.serialize(bulkUpdateDeliveryDatesDto, "BulkUpdateDeliveryDatesDto")
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
let authenticationPromise = Promise.resolve();
|
|
362
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
363
|
+
|
|
364
|
+
let interceptorPromise = authenticationPromise;
|
|
365
|
+
for (const interceptor of this.interceptors) {
|
|
366
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
return interceptorPromise.then(() => {
|
|
370
|
+
if (Object.keys(localVarFormParams).length) {
|
|
371
|
+
if (localVarUseFormData) {
|
|
372
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
373
|
+
} else {
|
|
374
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
378
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
379
|
+
if (error) {
|
|
380
|
+
reject(error);
|
|
381
|
+
} else {
|
|
382
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
383
|
+
resolve({ response: response, body: body });
|
|
384
|
+
} else {
|
|
385
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
}
|
|
247
392
|
/**
|
|
248
393
|
*
|
|
249
394
|
* @summary Counts supplier offers by their status, providing a detailed breakdown.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import http from 'http';
|
|
3
|
+
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
4
|
+
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
3
5
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
4
6
|
import { PinActionDto } from '../model/pinActionDto';
|
|
5
7
|
import { Authentication, Interceptor } from '../model/models';
|
|
@@ -38,6 +40,22 @@ export declare class MatchedOffersApi {
|
|
|
38
40
|
response: http.IncomingMessage;
|
|
39
41
|
body?: any;
|
|
40
42
|
}>;
|
|
43
|
+
matchedOffersControllerBulkaddtertiarycosts(account: string, userId: string, bulkAddTertiaryCostsDto: BulkAddTertiaryCostsDto, options?: {
|
|
44
|
+
headers: {
|
|
45
|
+
[name: string]: string;
|
|
46
|
+
};
|
|
47
|
+
}): Promise<{
|
|
48
|
+
response: http.IncomingMessage;
|
|
49
|
+
body?: any;
|
|
50
|
+
}>;
|
|
51
|
+
matchedOffersControllerBulkupdatedeliverydates(account: string, bulkUpdateDeliveryDatesDto: BulkUpdateDeliveryDatesDto, options?: {
|
|
52
|
+
headers: {
|
|
53
|
+
[name: string]: string;
|
|
54
|
+
};
|
|
55
|
+
}): Promise<{
|
|
56
|
+
response: http.IncomingMessage;
|
|
57
|
+
body?: any;
|
|
58
|
+
}>;
|
|
41
59
|
matchedOffersControllerCountsbystatus(account: string, options?: {
|
|
42
60
|
headers: {
|
|
43
61
|
[name: string]: string;
|