@tradecafe/offer-service-sdk 0.0.56 → 0.0.58

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.
@@ -13,6 +13,7 @@ model/addMatchedDeliveryDateDto.ts
13
13
  model/associatedCostDto.ts
14
14
  model/bulkAddRelistingDto.ts
15
15
  model/bulkAddTertiaryCostsDto.ts
16
+ model/bulkChangeDestinationLocationDto.ts
16
17
  model/bulkChangeFreightRatesDto.ts
17
18
  model/bulkChangeIncotermDto.ts
18
19
  model/bulkChangeSellPriceItemDto.ts
@@ -16,6 +16,7 @@ import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
18
  import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
19
+ import { BulkChangeDestinationLocationDto } from '../model/bulkChangeDestinationLocationDto';
19
20
  import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
20
21
  import { BulkChangeIncotermDto } from '../model/bulkChangeIncotermDto';
21
22
  import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
@@ -328,6 +329,74 @@ export class MatchedOffersApi {
328
329
  });
329
330
  });
330
331
  }
332
+ /**
333
+ *
334
+ * @summary Changes the destination location on multiple matched offers in a single operation
335
+ * @param account
336
+ * @param bulkChangeDestinationLocationDto
337
+ */
338
+ public async matchedOffersControllerBulkchangedestinationlocation (account: string, bulkChangeDestinationLocationDto: BulkChangeDestinationLocationDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
339
+ const localVarPath = this.basePath + '/matched-offers/{account}/bulk/destination-location'
340
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
341
+ let localVarQueryParameters: any = {};
342
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
343
+ let localVarFormParams: any = {};
344
+
345
+ // verify required parameter 'account' is not null or undefined
346
+ if (account === null || account === undefined) {
347
+ throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangedestinationlocation.');
348
+ }
349
+
350
+ // verify required parameter 'bulkChangeDestinationLocationDto' is not null or undefined
351
+ if (bulkChangeDestinationLocationDto === null || bulkChangeDestinationLocationDto === undefined) {
352
+ throw new Error('Required parameter bulkChangeDestinationLocationDto was null or undefined when calling matchedOffersControllerBulkchangedestinationlocation.');
353
+ }
354
+
355
+ (<any>Object).assign(localVarHeaderParams, options.headers);
356
+
357
+ let localVarUseFormData = false;
358
+
359
+ let localVarRequestOptions: localVarRequest.Options = {
360
+ method: 'PUT',
361
+ qs: localVarQueryParameters,
362
+ headers: localVarHeaderParams,
363
+ uri: localVarPath,
364
+ useQuerystring: this._useQuerystring,
365
+ json: true,
366
+ body: ObjectSerializer.serialize(bulkChangeDestinationLocationDto, "BulkChangeDestinationLocationDto")
367
+ };
368
+
369
+ let authenticationPromise = Promise.resolve();
370
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
371
+
372
+ let interceptorPromise = authenticationPromise;
373
+ for (const interceptor of this.interceptors) {
374
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
375
+ }
376
+
377
+ return interceptorPromise.then(() => {
378
+ if (Object.keys(localVarFormParams).length) {
379
+ if (localVarUseFormData) {
380
+ (<any>localVarRequestOptions).formData = localVarFormParams;
381
+ } else {
382
+ localVarRequestOptions.form = localVarFormParams;
383
+ }
384
+ }
385
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
386
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
387
+ if (error) {
388
+ reject(error);
389
+ } else {
390
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
391
+ resolve({ response: response, body: body });
392
+ } else {
393
+ reject(new HttpError(response, body, response.statusCode));
394
+ }
395
+ }
396
+ });
397
+ });
398
+ });
399
+ }
331
400
  /**
332
401
  *
333
402
  * @summary Changes freight rates for multiple matched offers in a single operation
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import http from 'http';
3
3
  import { BulkAddTertiaryCostsDto } from '../model/bulkAddTertiaryCostsDto';
4
+ import { BulkChangeDestinationLocationDto } from '../model/bulkChangeDestinationLocationDto';
4
5
  import { BulkChangeFreightRatesDto } from '../model/bulkChangeFreightRatesDto';
5
6
  import { BulkChangeIncotermDto } from '../model/bulkChangeIncotermDto';
6
7
  import { BulkChangeSellPricesDto } from '../model/bulkChangeSellPricesDto';
@@ -55,6 +56,14 @@ export declare class MatchedOffersApi {
55
56
  response: http.IncomingMessage;
56
57
  body?: any;
57
58
  }>;
59
+ matchedOffersControllerBulkchangedestinationlocation(account: string, bulkChangeDestinationLocationDto: BulkChangeDestinationLocationDto, options?: {
60
+ headers: {
61
+ [name: string]: string;
62
+ };
63
+ }): Promise<{
64
+ response: http.IncomingMessage;
65
+ body?: any;
66
+ }>;
58
67
  matchedOffersControllerBulkchangefreightrates(account: string, bulkChangeFreightRatesDto: BulkChangeFreightRatesDto, options?: {
59
68
  headers: {
60
69
  [name: string]: string;