@tradecafe/offer-service-sdk 0.0.52 → 0.0.54
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 +4 -0
- package/api/matchedOffersApi.ts +207 -0
- package/dist/api/matchedOffersApi.d.ts +27 -0
- package/dist/api/matchedOffersApi.js +255 -57
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkChangeSellPriceItemDto.d.ts +20 -0
- package/dist/model/bulkChangeSellPriceItemDto.js +46 -0
- package/dist/model/bulkChangeSellPriceItemDto.js.map +1 -0
- package/dist/model/bulkChangeSellPricesDto.d.ts +18 -0
- package/dist/model/bulkChangeSellPricesDto.js +36 -0
- package/dist/model/bulkChangeSellPricesDto.js.map +1 -0
- package/dist/model/bulkChangeSellingTraderDto.d.ts +16 -0
- package/dist/model/bulkChangeSellingTraderDto.js +31 -0
- package/dist/model/bulkChangeSellingTraderDto.js.map +1 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.d.ts +19 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js +46 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js.map +1 -0
- package/dist/model/models.d.ts +4 -0
- package/dist/model/models.js +12 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkChangeSellPriceItemDto.ts +62 -0
- package/model/bulkChangeSellPricesDto.ts +50 -0
- package/model/bulkChangeSellingTraderDto.ts +43 -0
- package/model/bulkUpdateBuyerSpecialInstructionsDto.ts +61 -0
- package/model/models.ts +12 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -14,6 +14,10 @@ model/associatedCostDto.ts
|
|
|
14
14
|
model/bulkAddRelistingDto.ts
|
|
15
15
|
model/bulkAddTertiaryCostsDto.ts
|
|
16
16
|
model/bulkChangeFreightRatesDto.ts
|
|
17
|
+
model/bulkChangeSellPriceItemDto.ts
|
|
18
|
+
model/bulkChangeSellPricesDto.ts
|
|
19
|
+
model/bulkChangeSellingTraderDto.ts
|
|
20
|
+
model/bulkUpdateBuyerSpecialInstructionsDto.ts
|
|
17
21
|
model/bulkUpdateDeliveryDatesDto.ts
|
|
18
22
|
model/bulkUpdateDocsCountryDto.ts
|
|
19
23
|
model/bulkUpdateMatchedDeliveryDatesDto.ts
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -17,6 +17,9 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
19
19
|
import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
|
|
20
|
+
import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
|
|
21
|
+
import { BulkChangeSellingTraderDto } from '../model/bulkChangeSellingTraderDto';
|
|
22
|
+
import { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
|
|
20
23
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
21
24
|
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
22
25
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
@@ -391,6 +394,210 @@ export class MatchedOffersApi {
|
|
|
391
394
|
});
|
|
392
395
|
});
|
|
393
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @summary Changes the selling trader on multiple matched offers in a single operation
|
|
400
|
+
* @param account
|
|
401
|
+
* @param bulkChangeSellingTraderDto
|
|
402
|
+
*/
|
|
403
|
+
public async matchedOffersControllerBulkchangesellingtrader (account: string, bulkChangeSellingTraderDto: BulkChangeSellingTraderDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
404
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/selling-trader'
|
|
405
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
406
|
+
let localVarQueryParameters: any = {};
|
|
407
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
408
|
+
let localVarFormParams: any = {};
|
|
409
|
+
|
|
410
|
+
// verify required parameter 'account' is not null or undefined
|
|
411
|
+
if (account === null || account === undefined) {
|
|
412
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// verify required parameter 'bulkChangeSellingTraderDto' is not null or undefined
|
|
416
|
+
if (bulkChangeSellingTraderDto === null || bulkChangeSellingTraderDto === undefined) {
|
|
417
|
+
throw new Error('Required parameter bulkChangeSellingTraderDto was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
421
|
+
|
|
422
|
+
let localVarUseFormData = false;
|
|
423
|
+
|
|
424
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
425
|
+
method: 'PUT',
|
|
426
|
+
qs: localVarQueryParameters,
|
|
427
|
+
headers: localVarHeaderParams,
|
|
428
|
+
uri: localVarPath,
|
|
429
|
+
useQuerystring: this._useQuerystring,
|
|
430
|
+
json: true,
|
|
431
|
+
body: ObjectSerializer.serialize(bulkChangeSellingTraderDto, "BulkChangeSellingTraderDto")
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
let authenticationPromise = Promise.resolve();
|
|
435
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
436
|
+
|
|
437
|
+
let interceptorPromise = authenticationPromise;
|
|
438
|
+
for (const interceptor of this.interceptors) {
|
|
439
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
return interceptorPromise.then(() => {
|
|
443
|
+
if (Object.keys(localVarFormParams).length) {
|
|
444
|
+
if (localVarUseFormData) {
|
|
445
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
446
|
+
} else {
|
|
447
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
451
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
452
|
+
if (error) {
|
|
453
|
+
reject(error);
|
|
454
|
+
} else {
|
|
455
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
456
|
+
resolve({ response: response, body: body });
|
|
457
|
+
} else {
|
|
458
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @summary Changes the buyer (sell) price for the matched offers of a single supplier offer in one operation
|
|
468
|
+
* @param account
|
|
469
|
+
* @param bulkChangeSellPricesDto
|
|
470
|
+
*/
|
|
471
|
+
public async matchedOffersControllerBulkchangesellprices (account: string, bulkChangeSellPricesDto: BulkChangeSellPricesDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
472
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/sell-prices'
|
|
473
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
474
|
+
let localVarQueryParameters: any = {};
|
|
475
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
476
|
+
let localVarFormParams: any = {};
|
|
477
|
+
|
|
478
|
+
// verify required parameter 'account' is not null or undefined
|
|
479
|
+
if (account === null || account === undefined) {
|
|
480
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// verify required parameter 'bulkChangeSellPricesDto' is not null or undefined
|
|
484
|
+
if (bulkChangeSellPricesDto === null || bulkChangeSellPricesDto === undefined) {
|
|
485
|
+
throw new Error('Required parameter bulkChangeSellPricesDto was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
489
|
+
|
|
490
|
+
let localVarUseFormData = false;
|
|
491
|
+
|
|
492
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
493
|
+
method: 'PUT',
|
|
494
|
+
qs: localVarQueryParameters,
|
|
495
|
+
headers: localVarHeaderParams,
|
|
496
|
+
uri: localVarPath,
|
|
497
|
+
useQuerystring: this._useQuerystring,
|
|
498
|
+
json: true,
|
|
499
|
+
body: ObjectSerializer.serialize(bulkChangeSellPricesDto, "BulkChangeSellPricesDto")
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
let authenticationPromise = Promise.resolve();
|
|
503
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
504
|
+
|
|
505
|
+
let interceptorPromise = authenticationPromise;
|
|
506
|
+
for (const interceptor of this.interceptors) {
|
|
507
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
return interceptorPromise.then(() => {
|
|
511
|
+
if (Object.keys(localVarFormParams).length) {
|
|
512
|
+
if (localVarUseFormData) {
|
|
513
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
514
|
+
} else {
|
|
515
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
519
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
520
|
+
if (error) {
|
|
521
|
+
reject(error);
|
|
522
|
+
} else {
|
|
523
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
524
|
+
resolve({ response: response, body: body });
|
|
525
|
+
} else {
|
|
526
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @summary Sets buyer special instructions on multiple matched offers in a single operation
|
|
536
|
+
* @param account
|
|
537
|
+
* @param bulkUpdateBuyerSpecialInstructionsDto
|
|
538
|
+
*/
|
|
539
|
+
public async matchedOffersControllerBulkupdatebuyerspecialinstructions (account: string, bulkUpdateBuyerSpecialInstructionsDto: BulkUpdateBuyerSpecialInstructionsDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
540
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
541
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
542
|
+
let localVarQueryParameters: any = {};
|
|
543
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
544
|
+
let localVarFormParams: any = {};
|
|
545
|
+
|
|
546
|
+
// verify required parameter 'account' is not null or undefined
|
|
547
|
+
if (account === null || account === undefined) {
|
|
548
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// verify required parameter 'bulkUpdateBuyerSpecialInstructionsDto' is not null or undefined
|
|
552
|
+
if (bulkUpdateBuyerSpecialInstructionsDto === null || bulkUpdateBuyerSpecialInstructionsDto === undefined) {
|
|
553
|
+
throw new Error('Required parameter bulkUpdateBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
557
|
+
|
|
558
|
+
let localVarUseFormData = false;
|
|
559
|
+
|
|
560
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
561
|
+
method: 'PUT',
|
|
562
|
+
qs: localVarQueryParameters,
|
|
563
|
+
headers: localVarHeaderParams,
|
|
564
|
+
uri: localVarPath,
|
|
565
|
+
useQuerystring: this._useQuerystring,
|
|
566
|
+
json: true,
|
|
567
|
+
body: ObjectSerializer.serialize(bulkUpdateBuyerSpecialInstructionsDto, "BulkUpdateBuyerSpecialInstructionsDto")
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
let authenticationPromise = Promise.resolve();
|
|
571
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
572
|
+
|
|
573
|
+
let interceptorPromise = authenticationPromise;
|
|
574
|
+
for (const interceptor of this.interceptors) {
|
|
575
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
return interceptorPromise.then(() => {
|
|
579
|
+
if (Object.keys(localVarFormParams).length) {
|
|
580
|
+
if (localVarUseFormData) {
|
|
581
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
582
|
+
} else {
|
|
583
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
587
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
588
|
+
if (error) {
|
|
589
|
+
reject(error);
|
|
590
|
+
} else {
|
|
591
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
592
|
+
resolve({ response: response, body: body });
|
|
593
|
+
} else {
|
|
594
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
});
|
|
599
|
+
});
|
|
600
|
+
}
|
|
394
601
|
/**
|
|
395
602
|
*
|
|
396
603
|
* @summary Updates delivery dates on multiple matched offers in a single operation
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import http from 'http';
|
|
3
3
|
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
4
4
|
import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
|
|
5
|
+
import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
|
|
6
|
+
import { BulkChangeSellingTraderDto } from '../model/bulkChangeSellingTraderDto';
|
|
7
|
+
import { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
|
|
5
8
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
6
9
|
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
7
10
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
@@ -58,6 +61,30 @@ export declare class MatchedOffersApi {
|
|
|
58
61
|
response: http.IncomingMessage;
|
|
59
62
|
body?: any;
|
|
60
63
|
}>;
|
|
64
|
+
matchedOffersControllerBulkchangesellingtrader(account: string, bulkChangeSellingTraderDto: BulkChangeSellingTraderDto, options?: {
|
|
65
|
+
headers: {
|
|
66
|
+
[name: string]: string;
|
|
67
|
+
};
|
|
68
|
+
}): Promise<{
|
|
69
|
+
response: http.IncomingMessage;
|
|
70
|
+
body?: any;
|
|
71
|
+
}>;
|
|
72
|
+
matchedOffersControllerBulkchangesellprices(account: string, bulkChangeSellPricesDto: BulkChangeSellPricesDto, options?: {
|
|
73
|
+
headers: {
|
|
74
|
+
[name: string]: string;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<{
|
|
77
|
+
response: http.IncomingMessage;
|
|
78
|
+
body?: any;
|
|
79
|
+
}>;
|
|
80
|
+
matchedOffersControllerBulkupdatebuyerspecialinstructions(account: string, bulkUpdateBuyerSpecialInstructionsDto: BulkUpdateBuyerSpecialInstructionsDto, options?: {
|
|
81
|
+
headers: {
|
|
82
|
+
[name: string]: string;
|
|
83
|
+
};
|
|
84
|
+
}): Promise<{
|
|
85
|
+
response: http.IncomingMessage;
|
|
86
|
+
body?: any;
|
|
87
|
+
}>;
|
|
61
88
|
matchedOffersControllerBulkupdatedeliverydates(account: string, bulkUpdateDeliveryDatesDto: BulkUpdateDeliveryDatesDto, options?: {
|
|
62
89
|
headers: {
|
|
63
90
|
[name: string]: string;
|