@tradecafe/offer-service-sdk 0.0.53 → 0.0.55

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.
@@ -16,6 +16,8 @@ model/bulkAddTertiaryCostsDto.ts
16
16
  model/bulkChangeFreightRatesDto.ts
17
17
  model/bulkChangeSellPriceItemDto.ts
18
18
  model/bulkChangeSellPricesDto.ts
19
+ model/bulkChangeSellingTraderDto.ts
20
+ model/bulkDeleteBuyerSpecialInstructionsDto.ts
19
21
  model/bulkUpdateBuyerSpecialInstructionsDto.ts
20
22
  model/bulkUpdateDeliveryDatesDto.ts
21
23
  model/bulkUpdateDocsCountryDto.ts
@@ -18,6 +18,8 @@ import http from 'http';
18
18
  import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
19
19
  import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
20
20
  import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
21
+ import { BulkChangeSellingTraderDto } from '../model/bulkChangeSellingTraderDto';
22
+ import { BulkDeleteBuyerSpecialInstructionsDto } from '../model/bulkDeleteBuyerSpecialInstructionsDto';
21
23
  import { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
22
24
  import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
23
25
  import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
@@ -393,6 +395,74 @@ export class MatchedOffersApi {
393
395
  });
394
396
  });
395
397
  }
398
+ /**
399
+ *
400
+ * @summary Changes the selling trader on multiple matched offers in a single operation
401
+ * @param account
402
+ * @param bulkChangeSellingTraderDto
403
+ */
404
+ public async matchedOffersControllerBulkchangesellingtrader (account: string, bulkChangeSellingTraderDto: BulkChangeSellingTraderDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
405
+ const localVarPath = this.basePath + '/matched-offers/{account}/bulk/selling-trader'
406
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
407
+ let localVarQueryParameters: any = {};
408
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
409
+ let localVarFormParams: any = {};
410
+
411
+ // verify required parameter 'account' is not null or undefined
412
+ if (account === null || account === undefined) {
413
+ throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
414
+ }
415
+
416
+ // verify required parameter 'bulkChangeSellingTraderDto' is not null or undefined
417
+ if (bulkChangeSellingTraderDto === null || bulkChangeSellingTraderDto === undefined) {
418
+ throw new Error('Required parameter bulkChangeSellingTraderDto was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
419
+ }
420
+
421
+ (<any>Object).assign(localVarHeaderParams, options.headers);
422
+
423
+ let localVarUseFormData = false;
424
+
425
+ let localVarRequestOptions: localVarRequest.Options = {
426
+ method: 'PUT',
427
+ qs: localVarQueryParameters,
428
+ headers: localVarHeaderParams,
429
+ uri: localVarPath,
430
+ useQuerystring: this._useQuerystring,
431
+ json: true,
432
+ body: ObjectSerializer.serialize(bulkChangeSellingTraderDto, "BulkChangeSellingTraderDto")
433
+ };
434
+
435
+ let authenticationPromise = Promise.resolve();
436
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
437
+
438
+ let interceptorPromise = authenticationPromise;
439
+ for (const interceptor of this.interceptors) {
440
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
441
+ }
442
+
443
+ return interceptorPromise.then(() => {
444
+ if (Object.keys(localVarFormParams).length) {
445
+ if (localVarUseFormData) {
446
+ (<any>localVarRequestOptions).formData = localVarFormParams;
447
+ } else {
448
+ localVarRequestOptions.form = localVarFormParams;
449
+ }
450
+ }
451
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
452
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
453
+ if (error) {
454
+ reject(error);
455
+ } else {
456
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
457
+ resolve({ response: response, body: body });
458
+ } else {
459
+ reject(new HttpError(response, body, response.statusCode));
460
+ }
461
+ }
462
+ });
463
+ });
464
+ });
465
+ }
396
466
  /**
397
467
  *
398
468
  * @summary Changes the buyer (sell) price for the matched offers of a single supplier offer in one operation
@@ -461,6 +531,74 @@ export class MatchedOffersApi {
461
531
  });
462
532
  });
463
533
  }
534
+ /**
535
+ *
536
+ * @summary Deletes buyer special instructions on multiple matched offers in a single operation
537
+ * @param account
538
+ * @param bulkDeleteBuyerSpecialInstructionsDto
539
+ */
540
+ public async matchedOffersControllerBulkdeletebuyerspecialinstructions (account: string, bulkDeleteBuyerSpecialInstructionsDto: BulkDeleteBuyerSpecialInstructionsDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
541
+ const localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
542
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
543
+ let localVarQueryParameters: any = {};
544
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
545
+ let localVarFormParams: any = {};
546
+
547
+ // verify required parameter 'account' is not null or undefined
548
+ if (account === null || account === undefined) {
549
+ throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
550
+ }
551
+
552
+ // verify required parameter 'bulkDeleteBuyerSpecialInstructionsDto' is not null or undefined
553
+ if (bulkDeleteBuyerSpecialInstructionsDto === null || bulkDeleteBuyerSpecialInstructionsDto === undefined) {
554
+ throw new Error('Required parameter bulkDeleteBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
555
+ }
556
+
557
+ (<any>Object).assign(localVarHeaderParams, options.headers);
558
+
559
+ let localVarUseFormData = false;
560
+
561
+ let localVarRequestOptions: localVarRequest.Options = {
562
+ method: 'DELETE',
563
+ qs: localVarQueryParameters,
564
+ headers: localVarHeaderParams,
565
+ uri: localVarPath,
566
+ useQuerystring: this._useQuerystring,
567
+ json: true,
568
+ body: ObjectSerializer.serialize(bulkDeleteBuyerSpecialInstructionsDto, "BulkDeleteBuyerSpecialInstructionsDto")
569
+ };
570
+
571
+ let authenticationPromise = Promise.resolve();
572
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
573
+
574
+ let interceptorPromise = authenticationPromise;
575
+ for (const interceptor of this.interceptors) {
576
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
577
+ }
578
+
579
+ return interceptorPromise.then(() => {
580
+ if (Object.keys(localVarFormParams).length) {
581
+ if (localVarUseFormData) {
582
+ (<any>localVarRequestOptions).formData = localVarFormParams;
583
+ } else {
584
+ localVarRequestOptions.form = localVarFormParams;
585
+ }
586
+ }
587
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
588
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
589
+ if (error) {
590
+ reject(error);
591
+ } else {
592
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
593
+ resolve({ response: response, body: body });
594
+ } else {
595
+ reject(new HttpError(response, body, response.statusCode));
596
+ }
597
+ }
598
+ });
599
+ });
600
+ });
601
+ }
464
602
  /**
465
603
  *
466
604
  * @summary Sets buyer special instructions on multiple matched offers in a single operation
@@ -3,6 +3,8 @@ import http from 'http';
3
3
  import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
4
4
  import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
5
5
  import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
6
+ import { BulkChangeSellingTraderDto } from '../model/bulkChangeSellingTraderDto';
7
+ import { BulkDeleteBuyerSpecialInstructionsDto } from '../model/bulkDeleteBuyerSpecialInstructionsDto';
6
8
  import { BulkUpdateBuyerSpecialInstructionsDto } from '../model/bulkUpdateBuyerSpecialInstructionsDto';
7
9
  import { BulkUpdateDeliveryDatesDto } from '../model/bulkUpdateDeliveryDatesDto';
8
10
  import { BulkUpdateDocsCountryDto } from '../model/bulkUpdateDocsCountryDto';
@@ -60,6 +62,14 @@ export declare class MatchedOffersApi {
60
62
  response: http.IncomingMessage;
61
63
  body?: any;
62
64
  }>;
65
+ matchedOffersControllerBulkchangesellingtrader(account: string, bulkChangeSellingTraderDto: BulkChangeSellingTraderDto, options?: {
66
+ headers: {
67
+ [name: string]: string;
68
+ };
69
+ }): Promise<{
70
+ response: http.IncomingMessage;
71
+ body?: any;
72
+ }>;
63
73
  matchedOffersControllerBulkchangesellprices(account: string, bulkChangeSellPricesDto: BulkChangeSellPricesDto, options?: {
64
74
  headers: {
65
75
  [name: string]: string;
@@ -68,6 +78,14 @@ export declare class MatchedOffersApi {
68
78
  response: http.IncomingMessage;
69
79
  body?: any;
70
80
  }>;
81
+ matchedOffersControllerBulkdeletebuyerspecialinstructions(account: string, bulkDeleteBuyerSpecialInstructionsDto: BulkDeleteBuyerSpecialInstructionsDto, options?: {
82
+ headers: {
83
+ [name: string]: string;
84
+ };
85
+ }): Promise<{
86
+ response: http.IncomingMessage;
87
+ body?: any;
88
+ }>;
71
89
  matchedOffersControllerBulkupdatebuyerspecialinstructions(account: string, bulkUpdateBuyerSpecialInstructionsDto: BulkUpdateBuyerSpecialInstructionsDto, options?: {
72
90
  headers: {
73
91
  [name: string]: string;