@tradecafe/offer-service-sdk 0.0.52 → 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 +3 -0
- package/api/matchedOffersApi.ts +138 -0
- package/dist/api/matchedOffersApi.d.ts +18 -0
- package/dist/api/matchedOffersApi.js +189 -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/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 +3 -0
- package/dist/model/models.js +9 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkChangeSellPriceItemDto.ts +62 -0
- package/model/bulkChangeSellPricesDto.ts +50 -0
- package/model/bulkUpdateBuyerSpecialInstructionsDto.ts +61 -0
- package/model/models.ts +9 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -14,6 +14,9 @@ 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
|
|
18
21
|
model/bulkUpdateDocsCountryDto.ts
|
|
19
22
|
model/bulkUpdateMatchedDeliveryDatesDto.ts
|
package/api/matchedOffersApi.ts
CHANGED
|
@@ -17,6 +17,8 @@ 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';
|
|
21
23
|
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
22
24
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
@@ -391,6 +393,142 @@ export class MatchedOffersApi {
|
|
|
391
393
|
});
|
|
392
394
|
});
|
|
393
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
|
+
}
|
|
394
532
|
/**
|
|
395
533
|
*
|
|
396
534
|
* @summary Updates delivery dates on multiple matched offers in a single operation
|
|
@@ -2,6 +2,8 @@
|
|
|
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';
|
|
6
8
|
import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
|
|
7
9
|
import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
|
|
@@ -58,6 +60,22 @@ export declare class MatchedOffersApi {
|
|
|
58
60
|
response: http.IncomingMessage;
|
|
59
61
|
body?: any;
|
|
60
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
|
+
}>;
|
|
61
79
|
matchedOffersControllerBulkupdatedeliverydates(account: string, bulkUpdateDeliveryDatesDto: BulkUpdateDeliveryDatesDto, options?: {
|
|
62
80
|
headers: {
|
|
63
81
|
[name: string]: string;
|