@tradecafe/offer-service-sdk 0.0.54 → 0.0.56
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 +2 -0
- package/api/matchedOffersApi.ts +138 -0
- package/dist/api/matchedOffersApi.d.ts +18 -0
- package/dist/api/matchedOffersApi.js +198 -66
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkChangeIncotermDto.d.ts +16 -0
- package/dist/model/bulkChangeIncotermDto.js +31 -0
- package/dist/model/bulkChangeIncotermDto.js.map +1 -0
- package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.d.ts +15 -0
- package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.js +26 -0
- package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.js.map +1 -0
- package/dist/model/models.d.ts +2 -0
- package/dist/model/models.js +6 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkChangeIncotermDto.ts +43 -0
- package/model/bulkDeleteBuyerSpecialInstructionsDto.ts +37 -0
- package/model/models.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -14,9 +14,11 @@ model/associatedCostDto.ts
|
|
|
14
14
|
model/bulkAddRelistingDto.ts
|
|
15
15
|
model/bulkAddTertiaryCostsDto.ts
|
|
16
16
|
model/bulkChangeFreightRatesDto.ts
|
|
17
|
+
model/bulkChangeIncotermDto.ts
|
|
17
18
|
model/bulkChangeSellPriceItemDto.ts
|
|
18
19
|
model/bulkChangeSellPricesDto.ts
|
|
19
20
|
model/bulkChangeSellingTraderDto.ts
|
|
21
|
+
model/bulkDeleteBuyerSpecialInstructionsDto.ts
|
|
20
22
|
model/bulkUpdateBuyerSpecialInstructionsDto.ts
|
|
21
23
|
model/bulkUpdateDeliveryDatesDto.ts
|
|
22
24
|
model/bulkUpdateDocsCountryDto.ts
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -17,8 +17,10 @@ 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 { BulkChangeIncotermDto } from '../model/bulkChangeIncotermDto';
|
|
20
21
|
import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
|
|
21
22
|
import { BulkChangeSellingTraderDto } from '../model/bulkChangeSellingTraderDto';
|
|
23
|
+
import { BulkDeleteBuyerSpecialInstructionsDto } from '../model/bulkDeleteBuyerSpecialInstructionsDto';
|
|
22
24
|
import { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
|
|
23
25
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
24
26
|
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
@@ -394,6 +396,74 @@ export class MatchedOffersApi {
|
|
|
394
396
|
});
|
|
395
397
|
});
|
|
396
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @summary Changes the incoterm on multiple matched offers in a single operation
|
|
402
|
+
* @param account
|
|
403
|
+
* @param bulkChangeIncotermDto
|
|
404
|
+
*/
|
|
405
|
+
public async matchedOffersControllerBulkchangeincoterm (account: string, bulkChangeIncotermDto: BulkChangeIncotermDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
406
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/incoterm'
|
|
407
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
408
|
+
let localVarQueryParameters: any = {};
|
|
409
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
410
|
+
let localVarFormParams: any = {};
|
|
411
|
+
|
|
412
|
+
// verify required parameter 'account' is not null or undefined
|
|
413
|
+
if (account === null || account === undefined) {
|
|
414
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangeincoterm.');
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// verify required parameter 'bulkChangeIncotermDto' is not null or undefined
|
|
418
|
+
if (bulkChangeIncotermDto === null || bulkChangeIncotermDto === undefined) {
|
|
419
|
+
throw new Error('Required parameter bulkChangeIncotermDto was null or undefined when calling matchedOffersControllerBulkchangeincoterm.');
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
423
|
+
|
|
424
|
+
let localVarUseFormData = false;
|
|
425
|
+
|
|
426
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
427
|
+
method: 'PUT',
|
|
428
|
+
qs: localVarQueryParameters,
|
|
429
|
+
headers: localVarHeaderParams,
|
|
430
|
+
uri: localVarPath,
|
|
431
|
+
useQuerystring: this._useQuerystring,
|
|
432
|
+
json: true,
|
|
433
|
+
body: ObjectSerializer.serialize(bulkChangeIncotermDto, "BulkChangeIncotermDto")
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
let authenticationPromise = Promise.resolve();
|
|
437
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
438
|
+
|
|
439
|
+
let interceptorPromise = authenticationPromise;
|
|
440
|
+
for (const interceptor of this.interceptors) {
|
|
441
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
return interceptorPromise.then(() => {
|
|
445
|
+
if (Object.keys(localVarFormParams).length) {
|
|
446
|
+
if (localVarUseFormData) {
|
|
447
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
448
|
+
} else {
|
|
449
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
453
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
454
|
+
if (error) {
|
|
455
|
+
reject(error);
|
|
456
|
+
} else {
|
|
457
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
458
|
+
resolve({ response: response, body: body });
|
|
459
|
+
} else {
|
|
460
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
}
|
|
397
467
|
/**
|
|
398
468
|
*
|
|
399
469
|
* @summary Changes the selling trader on multiple matched offers in a single operation
|
|
@@ -530,6 +600,74 @@ export class MatchedOffersApi {
|
|
|
530
600
|
});
|
|
531
601
|
});
|
|
532
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @summary Deletes buyer special instructions on multiple matched offers in a single operation
|
|
606
|
+
* @param account
|
|
607
|
+
* @param bulkDeleteBuyerSpecialInstructionsDto
|
|
608
|
+
*/
|
|
609
|
+
public async matchedOffersControllerBulkdeletebuyerspecialinstructions (account: string, bulkDeleteBuyerSpecialInstructionsDto: BulkDeleteBuyerSpecialInstructionsDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
610
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
611
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
612
|
+
let localVarQueryParameters: any = {};
|
|
613
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
614
|
+
let localVarFormParams: any = {};
|
|
615
|
+
|
|
616
|
+
// verify required parameter 'account' is not null or undefined
|
|
617
|
+
if (account === null || account === undefined) {
|
|
618
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// verify required parameter 'bulkDeleteBuyerSpecialInstructionsDto' is not null or undefined
|
|
622
|
+
if (bulkDeleteBuyerSpecialInstructionsDto === null || bulkDeleteBuyerSpecialInstructionsDto === undefined) {
|
|
623
|
+
throw new Error('Required parameter bulkDeleteBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
627
|
+
|
|
628
|
+
let localVarUseFormData = false;
|
|
629
|
+
|
|
630
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
631
|
+
method: 'DELETE',
|
|
632
|
+
qs: localVarQueryParameters,
|
|
633
|
+
headers: localVarHeaderParams,
|
|
634
|
+
uri: localVarPath,
|
|
635
|
+
useQuerystring: this._useQuerystring,
|
|
636
|
+
json: true,
|
|
637
|
+
body: ObjectSerializer.serialize(bulkDeleteBuyerSpecialInstructionsDto, "BulkDeleteBuyerSpecialInstructionsDto")
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
let authenticationPromise = Promise.resolve();
|
|
641
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
642
|
+
|
|
643
|
+
let interceptorPromise = authenticationPromise;
|
|
644
|
+
for (const interceptor of this.interceptors) {
|
|
645
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
return interceptorPromise.then(() => {
|
|
649
|
+
if (Object.keys(localVarFormParams).length) {
|
|
650
|
+
if (localVarUseFormData) {
|
|
651
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
652
|
+
} else {
|
|
653
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
657
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
658
|
+
if (error) {
|
|
659
|
+
reject(error);
|
|
660
|
+
} else {
|
|
661
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
662
|
+
resolve({ response: response, body: body });
|
|
663
|
+
} else {
|
|
664
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
}
|
|
533
671
|
/**
|
|
534
672
|
*
|
|
535
673
|
* @summary Sets buyer special instructions on multiple matched offers in a single operation
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
import http from 'http';
|
|
3
3
|
import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
|
|
4
4
|
import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
|
|
5
|
+
import { BulkChangeIncotermDto } from '../model/bulkChangeIncotermDto';
|
|
5
6
|
import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
|
|
6
7
|
import { BulkChangeSellingTraderDto } from '../model/bulkChangeSellingTraderDto';
|
|
8
|
+
import { BulkDeleteBuyerSpecialInstructionsDto } from '../model/bulkDeleteBuyerSpecialInstructionsDto';
|
|
7
9
|
import { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
|
|
8
10
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
9
11
|
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
@@ -61,6 +63,14 @@ export declare class MatchedOffersApi {
|
|
|
61
63
|
response: http.IncomingMessage;
|
|
62
64
|
body?: any;
|
|
63
65
|
}>;
|
|
66
|
+
matchedOffersControllerBulkchangeincoterm(account: string, bulkChangeIncotermDto: BulkChangeIncotermDto, options?: {
|
|
67
|
+
headers: {
|
|
68
|
+
[name: string]: string;
|
|
69
|
+
};
|
|
70
|
+
}): Promise<{
|
|
71
|
+
response: http.IncomingMessage;
|
|
72
|
+
body?: any;
|
|
73
|
+
}>;
|
|
64
74
|
matchedOffersControllerBulkchangesellingtrader(account: string, bulkChangeSellingTraderDto: BulkChangeSellingTraderDto, options?: {
|
|
65
75
|
headers: {
|
|
66
76
|
[name: string]: string;
|
|
@@ -77,6 +87,14 @@ export declare class MatchedOffersApi {
|
|
|
77
87
|
response: http.IncomingMessage;
|
|
78
88
|
body?: any;
|
|
79
89
|
}>;
|
|
90
|
+
matchedOffersControllerBulkdeletebuyerspecialinstructions(account: string, bulkDeleteBuyerSpecialInstructionsDto: BulkDeleteBuyerSpecialInstructionsDto, options?: {
|
|
91
|
+
headers: {
|
|
92
|
+
[name: string]: string;
|
|
93
|
+
};
|
|
94
|
+
}): Promise<{
|
|
95
|
+
response: http.IncomingMessage;
|
|
96
|
+
body?: any;
|
|
97
|
+
}>;
|
|
80
98
|
matchedOffersControllerBulkupdatebuyerspecialinstructions(account: string, bulkUpdateBuyerSpecialInstructionsDto: BulkUpdateBuyerSpecialInstructionsDto, options?: {
|
|
81
99
|
headers: {
|
|
82
100
|
[name: string]: string;
|