@tradecafe/offer-service-sdk 0.0.51 → 0.0.53
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 +252 -54
- 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/bulkUpdateBuyerSpecialInstructionsDto.d.ts +19 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js +46 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js.map +1 -0
- package/dist/model/bulkUpdateDocsCountryDto.d.ts +16 -0
- package/dist/model/bulkUpdateDocsCountryDto.js +31 -0
- package/dist/model/bulkUpdateDocsCountryDto.js.map +1 -0
- package/dist/model/createAutomatedOfferDto.d.ts +1 -0
- package/dist/model/createAutomatedOfferDto.js +5 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/createOfferDto.d.ts +1 -0
- package/dist/model/createOfferDto.js +5 -0
- package/dist/model/createOfferDto.js.map +1 -1
- package/dist/model/createOfferDtoAttributes.d.ts +2 -0
- package/dist/model/createOfferDtoAttributes.js +10 -0
- package/dist/model/createOfferDtoAttributes.js.map +1 -1
- package/dist/model/models.d.ts +4 -0
- package/dist/model/models.js +12 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/offerAttributesDto.d.ts +2 -0
- package/dist/model/offerAttributesDto.js +10 -0
- package/dist/model/offerAttributesDto.js.map +1 -1
- package/model/bulkChangeSellPriceItemDto.ts +62 -0
- package/model/bulkChangeSellPricesDto.ts +50 -0
- package/model/bulkUpdateBuyerSpecialInstructionsDto.ts +61 -0
- package/model/bulkUpdateDocsCountryDto.ts +52 -0
- package/model/createAutomatedOfferDto.ts +9 -0
- package/model/createOfferDto.ts +9 -0
- package/model/createOfferDtoAttributes.ts +18 -0
- package/model/models.ts +12 -0
- package/model/offerAttributesDto.ts +18 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -14,7 +14,11 @@ 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/bulkUpdateBuyerSpecialInstructionsDto.ts
|
|
17
20
|
model/bulkUpdateDeliveryDatesDto.ts
|
|
21
|
+
model/bulkUpdateDocsCountryDto.ts
|
|
18
22
|
model/bulkUpdateMatchedDeliveryDatesDto.ts
|
|
19
23
|
model/costAmountDto.ts
|
|
20
24
|
model/costAttributesDto.ts
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -17,7 +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 { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
|
|
21
|
+
import { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
|
|
20
22
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
23
|
+
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
21
24
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
22
25
|
import { PinActionDto } from '../model/pinActionDto';
|
|
23
26
|
|
|
@@ -390,6 +393,142 @@ export class MatchedOffersApi {
|
|
|
390
393
|
});
|
|
391
394
|
});
|
|
392
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @summary Changes the buyer (sell) price for the matched offers of a single supplier offer in one operation
|
|
399
|
+
* @param account
|
|
400
|
+
* @param bulkChangeSellPricesDto
|
|
401
|
+
*/
|
|
402
|
+
public async matchedOffersControllerBulkchangesellprices (account: string, bulkChangeSellPricesDto: BulkChangeSellPricesDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
403
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/sell-prices'
|
|
404
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
405
|
+
let localVarQueryParameters: any = {};
|
|
406
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
407
|
+
let localVarFormParams: any = {};
|
|
408
|
+
|
|
409
|
+
// verify required parameter 'account' is not null or undefined
|
|
410
|
+
if (account === null || account === undefined) {
|
|
411
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// verify required parameter 'bulkChangeSellPricesDto' is not null or undefined
|
|
415
|
+
if (bulkChangeSellPricesDto === null || bulkChangeSellPricesDto === undefined) {
|
|
416
|
+
throw new Error('Required parameter bulkChangeSellPricesDto was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
420
|
+
|
|
421
|
+
let localVarUseFormData = false;
|
|
422
|
+
|
|
423
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
424
|
+
method: 'PUT',
|
|
425
|
+
qs: localVarQueryParameters,
|
|
426
|
+
headers: localVarHeaderParams,
|
|
427
|
+
uri: localVarPath,
|
|
428
|
+
useQuerystring: this._useQuerystring,
|
|
429
|
+
json: true,
|
|
430
|
+
body: ObjectSerializer.serialize(bulkChangeSellPricesDto, "BulkChangeSellPricesDto")
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
let authenticationPromise = Promise.resolve();
|
|
434
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
435
|
+
|
|
436
|
+
let interceptorPromise = authenticationPromise;
|
|
437
|
+
for (const interceptor of this.interceptors) {
|
|
438
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
return interceptorPromise.then(() => {
|
|
442
|
+
if (Object.keys(localVarFormParams).length) {
|
|
443
|
+
if (localVarUseFormData) {
|
|
444
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
445
|
+
} else {
|
|
446
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
450
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
451
|
+
if (error) {
|
|
452
|
+
reject(error);
|
|
453
|
+
} else {
|
|
454
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
455
|
+
resolve({ response: response, body: body });
|
|
456
|
+
} else {
|
|
457
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary Sets buyer special instructions on multiple matched offers in a single operation
|
|
467
|
+
* @param account
|
|
468
|
+
* @param bulkUpdateBuyerSpecialInstructionsDto
|
|
469
|
+
*/
|
|
470
|
+
public async matchedOffersControllerBulkupdatebuyerspecialinstructions (account: string, bulkUpdateBuyerSpecialInstructionsDto: BulkUpdateBuyerSpecialInstructionsDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
471
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
472
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
473
|
+
let localVarQueryParameters: any = {};
|
|
474
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
475
|
+
let localVarFormParams: any = {};
|
|
476
|
+
|
|
477
|
+
// verify required parameter 'account' is not null or undefined
|
|
478
|
+
if (account === null || account === undefined) {
|
|
479
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// verify required parameter 'bulkUpdateBuyerSpecialInstructionsDto' is not null or undefined
|
|
483
|
+
if (bulkUpdateBuyerSpecialInstructionsDto === null || bulkUpdateBuyerSpecialInstructionsDto === undefined) {
|
|
484
|
+
throw new Error('Required parameter bulkUpdateBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
488
|
+
|
|
489
|
+
let localVarUseFormData = false;
|
|
490
|
+
|
|
491
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
492
|
+
method: 'PUT',
|
|
493
|
+
qs: localVarQueryParameters,
|
|
494
|
+
headers: localVarHeaderParams,
|
|
495
|
+
uri: localVarPath,
|
|
496
|
+
useQuerystring: this._useQuerystring,
|
|
497
|
+
json: true,
|
|
498
|
+
body: ObjectSerializer.serialize(bulkUpdateBuyerSpecialInstructionsDto, "BulkUpdateBuyerSpecialInstructionsDto")
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
let authenticationPromise = Promise.resolve();
|
|
502
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
503
|
+
|
|
504
|
+
let interceptorPromise = authenticationPromise;
|
|
505
|
+
for (const interceptor of this.interceptors) {
|
|
506
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
return interceptorPromise.then(() => {
|
|
510
|
+
if (Object.keys(localVarFormParams).length) {
|
|
511
|
+
if (localVarUseFormData) {
|
|
512
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
513
|
+
} else {
|
|
514
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
518
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
519
|
+
if (error) {
|
|
520
|
+
reject(error);
|
|
521
|
+
} else {
|
|
522
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
523
|
+
resolve({ response: response, body: body });
|
|
524
|
+
} else {
|
|
525
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
}
|
|
393
532
|
/**
|
|
394
533
|
*
|
|
395
534
|
* @summary Updates delivery dates on multiple matched offers in a single operation
|
|
@@ -458,6 +597,74 @@ export class MatchedOffersApi {
|
|
|
458
597
|
});
|
|
459
598
|
});
|
|
460
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @summary Updates docs_country on multiple matched offers in a single operation
|
|
603
|
+
* @param account
|
|
604
|
+
* @param bulkUpdateDocsCountryDto
|
|
605
|
+
*/
|
|
606
|
+
public async matchedOffersControllerBulkupdatedocscountry (account: string, bulkUpdateDocsCountryDto: BulkUpdateDocsCountryDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
607
|
+
const localVarPath = this.basePath + '/matched-offers/{account}/bulk/docs-country'
|
|
608
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
609
|
+
let localVarQueryParameters: any = {};
|
|
610
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
611
|
+
let localVarFormParams: any = {};
|
|
612
|
+
|
|
613
|
+
// verify required parameter 'account' is not null or undefined
|
|
614
|
+
if (account === null || account === undefined) {
|
|
615
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// verify required parameter 'bulkUpdateDocsCountryDto' is not null or undefined
|
|
619
|
+
if (bulkUpdateDocsCountryDto === null || bulkUpdateDocsCountryDto === undefined) {
|
|
620
|
+
throw new Error('Required parameter bulkUpdateDocsCountryDto was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
624
|
+
|
|
625
|
+
let localVarUseFormData = false;
|
|
626
|
+
|
|
627
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
628
|
+
method: 'PUT',
|
|
629
|
+
qs: localVarQueryParameters,
|
|
630
|
+
headers: localVarHeaderParams,
|
|
631
|
+
uri: localVarPath,
|
|
632
|
+
useQuerystring: this._useQuerystring,
|
|
633
|
+
json: true,
|
|
634
|
+
body: ObjectSerializer.serialize(bulkUpdateDocsCountryDto, "BulkUpdateDocsCountryDto")
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
let authenticationPromise = Promise.resolve();
|
|
638
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
639
|
+
|
|
640
|
+
let interceptorPromise = authenticationPromise;
|
|
641
|
+
for (const interceptor of this.interceptors) {
|
|
642
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
return interceptorPromise.then(() => {
|
|
646
|
+
if (Object.keys(localVarFormParams).length) {
|
|
647
|
+
if (localVarUseFormData) {
|
|
648
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
649
|
+
} else {
|
|
650
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
654
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
655
|
+
if (error) {
|
|
656
|
+
reject(error);
|
|
657
|
+
} else {
|
|
658
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
659
|
+
resolve({ response: response, body: body });
|
|
660
|
+
} else {
|
|
661
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
});
|
|
667
|
+
}
|
|
461
668
|
/**
|
|
462
669
|
*
|
|
463
670
|
* @summary Counts supplier offers by their status, providing a detailed breakdown.
|
|
@@ -2,7 +2,10 @@
|
|
|
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 { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
|
|
5
7
|
import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
|
|
8
|
+
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
6
9
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
7
10
|
import { PinActionDto } from '../model/pinActionDto';
|
|
8
11
|
import { Authentication, Interceptor } from '../model/models';
|
|
@@ -57,6 +60,22 @@ export declare class MatchedOffersApi {
|
|
|
57
60
|
response: http.IncomingMessage;
|
|
58
61
|
body?: any;
|
|
59
62
|
}>;
|
|
63
|
+
matchedOffersControllerBulkchangesellprices(account: string, bulkChangeSellPricesDto: BulkChangeSellPricesDto, options?: {
|
|
64
|
+
headers: {
|
|
65
|
+
[name: string]: string;
|
|
66
|
+
};
|
|
67
|
+
}): Promise<{
|
|
68
|
+
response: http.IncomingMessage;
|
|
69
|
+
body?: any;
|
|
70
|
+
}>;
|
|
71
|
+
matchedOffersControllerBulkupdatebuyerspecialinstructions(account: string, bulkUpdateBuyerSpecialInstructionsDto: BulkUpdateBuyerSpecialInstructionsDto, options?: {
|
|
72
|
+
headers: {
|
|
73
|
+
[name: string]: string;
|
|
74
|
+
};
|
|
75
|
+
}): Promise<{
|
|
76
|
+
response: http.IncomingMessage;
|
|
77
|
+
body?: any;
|
|
78
|
+
}>;
|
|
60
79
|
matchedOffersControllerBulkupdatedeliverydates(account: string, bulkUpdateDeliveryDatesDto: BulkUpdateDeliveryDatesDto, options?: {
|
|
61
80
|
headers: {
|
|
62
81
|
[name: string]: string;
|
|
@@ -65,6 +84,14 @@ export declare class MatchedOffersApi {
|
|
|
65
84
|
response: http.IncomingMessage;
|
|
66
85
|
body?: any;
|
|
67
86
|
}>;
|
|
87
|
+
matchedOffersControllerBulkupdatedocscountry(account: string, bulkUpdateDocsCountryDto: BulkUpdateDocsCountryDto, options?: {
|
|
88
|
+
headers: {
|
|
89
|
+
[name: string]: string;
|
|
90
|
+
};
|
|
91
|
+
}): Promise<{
|
|
92
|
+
response: http.IncomingMessage;
|
|
93
|
+
body?: any;
|
|
94
|
+
}>;
|
|
68
95
|
matchedOffersControllerCountsbystatus(account: string, options?: {
|
|
69
96
|
headers: {
|
|
70
97
|
[name: string]: string;
|