@tradecafe/offer-service-sdk 0.0.27 → 0.0.29

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.
Files changed (157) hide show
  1. package/.openapi-generator/FILES +0 -11
  2. package/api/automatedOffersApi.ts +92 -4
  3. package/api/futureBidsApi.ts +6 -1
  4. package/api/matchedOffersApi.ts +18 -3
  5. package/api/offersApi.ts +18 -3
  6. package/model/createAutomatedOfferDto.ts +18 -0
  7. package/model/createMatchedOfferDto.ts +5 -3
  8. package/model/createOfferDto.ts +18 -0
  9. package/model/createOfferDtoAttributes.ts +6 -7
  10. package/model/generalAddressDto.ts +216 -0
  11. package/model/models.ts +0 -33
  12. package/model/offerAttributesDto.ts +6 -7
  13. package/model/offerAttributesDtoEstablishment.ts +216 -0
  14. package/package.json +1 -1
  15. package/dist/api/apis.d.ts +0 -20
  16. package/dist/api/apis.js +0 -57
  17. package/dist/api/apis.js.map +0 -1
  18. package/dist/api/automatedOffersApi.d.ts +0 -104
  19. package/dist/api/automatedOffersApi.js +0 -799
  20. package/dist/api/automatedOffersApi.js.map +0 -1
  21. package/dist/api/futureBidsApi.d.ts +0 -65
  22. package/dist/api/futureBidsApi.js +0 -456
  23. package/dist/api/futureBidsApi.js.map +0 -1
  24. package/dist/api/healthApi.d.ts +0 -32
  25. package/dist/api/healthApi.js +0 -175
  26. package/dist/api/healthApi.js.map +0 -1
  27. package/dist/api/matchedOffersApi.d.ts +0 -177
  28. package/dist/api/matchedOffersApi.js +0 -1402
  29. package/dist/api/matchedOffersApi.js.map +0 -1
  30. package/dist/api/offersApi.d.ts +0 -184
  31. package/dist/api/offersApi.js +0 -1461
  32. package/dist/api/offersApi.js.map +0 -1
  33. package/dist/api.d.ts +0 -2
  34. package/dist/api.js +0 -19
  35. package/dist/api.js.map +0 -1
  36. package/dist/model/addFutureBidDto.d.ts +0 -17
  37. package/dist/model/addFutureBidDto.js +0 -36
  38. package/dist/model/addFutureBidDto.js.map +0 -1
  39. package/dist/model/bidDto.d.ts +0 -46
  40. package/dist/model/bidDto.js +0 -156
  41. package/dist/model/bidDto.js.map +0 -1
  42. package/dist/model/bidDtoPacking.d.ts +0 -15
  43. package/dist/model/bidDtoPacking.js +0 -26
  44. package/dist/model/bidDtoPacking.js.map +0 -1
  45. package/dist/model/bidDtoWeight.d.ts +0 -15
  46. package/dist/model/bidDtoWeight.js +0 -26
  47. package/dist/model/bidDtoWeight.js.map +0 -1
  48. package/dist/model/bidNoteAttributesDto.d.ts +0 -15
  49. package/dist/model/bidNoteAttributesDto.js +0 -26
  50. package/dist/model/bidNoteAttributesDto.js.map +0 -1
  51. package/dist/model/bidNoteDto.d.ts +0 -24
  52. package/dist/model/bidNoteDto.js +0 -61
  53. package/dist/model/bidNoteDto.js.map +0 -1
  54. package/dist/model/bidNoteDtoAccount.d.ts +0 -13
  55. package/dist/model/bidNoteDtoAccount.js +0 -15
  56. package/dist/model/bidNoteDtoAccount.js.map +0 -1
  57. package/dist/model/bidNoteDtoAttributes.d.ts +0 -15
  58. package/dist/model/bidNoteDtoAttributes.js +0 -26
  59. package/dist/model/bidNoteDtoAttributes.js.map +0 -1
  60. package/dist/model/bidPackingDto.d.ts +0 -15
  61. package/dist/model/bidPackingDto.js +0 -26
  62. package/dist/model/bidPackingDto.js.map +0 -1
  63. package/dist/model/bidWeightDto.d.ts +0 -15
  64. package/dist/model/bidWeightDto.js +0 -26
  65. package/dist/model/bidWeightDto.js.map +0 -1
  66. package/dist/model/createAutomatedOfferDto.d.ts +0 -107
  67. package/dist/model/createAutomatedOfferDto.js +0 -352
  68. package/dist/model/createAutomatedOfferDto.js.map +0 -1
  69. package/dist/model/createMatchedOfferDto.d.ts +0 -84
  70. package/dist/model/createMatchedOfferDto.js +0 -311
  71. package/dist/model/createMatchedOfferDto.js.map +0 -1
  72. package/dist/model/createMatchedOfferDtoBid.d.ts +0 -46
  73. package/dist/model/createMatchedOfferDtoBid.js +0 -156
  74. package/dist/model/createMatchedOfferDtoBid.js.map +0 -1
  75. package/dist/model/createOfferDto.d.ts +0 -97
  76. package/dist/model/createOfferDto.js +0 -333
  77. package/dist/model/createOfferDto.js.map +0 -1
  78. package/dist/model/createOfferDtoAttributes.d.ts +0 -49
  79. package/dist/model/createOfferDtoAttributes.js +0 -155
  80. package/dist/model/createOfferDtoAttributes.js.map +0 -1
  81. package/dist/model/createOfferDtoFormula.d.ts +0 -19
  82. package/dist/model/createOfferDtoFormula.js +0 -41
  83. package/dist/model/createOfferDtoFormula.js.map +0 -1
  84. package/dist/model/createOfferDtoPacking.d.ts +0 -17
  85. package/dist/model/createOfferDtoPacking.js +0 -36
  86. package/dist/model/createOfferDtoPacking.js.map +0 -1
  87. package/dist/model/createOfferDtoWeight.d.ts +0 -15
  88. package/dist/model/createOfferDtoWeight.js +0 -26
  89. package/dist/model/createOfferDtoWeight.js.map +0 -1
  90. package/dist/model/dealProductBatchDto.d.ts +0 -20
  91. package/dist/model/dealProductBatchDto.js +0 -51
  92. package/dist/model/dealProductBatchDto.js.map +0 -1
  93. package/dist/model/formulaDto.d.ts +0 -19
  94. package/dist/model/formulaDto.js +0 -41
  95. package/dist/model/formulaDto.js.map +0 -1
  96. package/dist/model/formulaLineDto.d.ts +0 -17
  97. package/dist/model/formulaLineDto.js +0 -36
  98. package/dist/model/formulaLineDto.js.map +0 -1
  99. package/dist/model/generalAddressDto.d.ts +0 -19
  100. package/dist/model/generalAddressDto.js +0 -46
  101. package/dist/model/generalAddressDto.js.map +0 -1
  102. package/dist/model/healthControllerPing200Response.d.ts +0 -24
  103. package/dist/model/healthControllerPing200Response.js +0 -36
  104. package/dist/model/healthControllerPing200Response.js.map +0 -1
  105. package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +0 -10
  106. package/dist/model/healthControllerPing200ResponseInfoValue.js +0 -37
  107. package/dist/model/healthControllerPing200ResponseInfoValue.js.map +0 -1
  108. package/dist/model/healthControllerPing503Response.d.ts +0 -24
  109. package/dist/model/healthControllerPing503Response.js +0 -36
  110. package/dist/model/healthControllerPing503Response.js.map +0 -1
  111. package/dist/model/models.d.ts +0 -82
  112. package/dist/model/models.js +0 -341
  113. package/dist/model/models.js.map +0 -1
  114. package/dist/model/offerAttributesDto.d.ts +0 -49
  115. package/dist/model/offerAttributesDto.js +0 -155
  116. package/dist/model/offerAttributesDto.js.map +0 -1
  117. package/dist/model/offerAttributesDtoEstablishment.d.ts +0 -19
  118. package/dist/model/offerAttributesDtoEstablishment.js +0 -46
  119. package/dist/model/offerAttributesDtoEstablishment.js.map +0 -1
  120. package/dist/model/packing.d.ts +0 -17
  121. package/dist/model/packing.js +0 -36
  122. package/dist/model/packing.js.map +0 -1
  123. package/dist/model/pinActionDto.d.ts +0 -14
  124. package/dist/model/pinActionDto.js +0 -21
  125. package/dist/model/pinActionDto.js.map +0 -1
  126. package/dist/model/relistingConfigDto.d.ts +0 -17
  127. package/dist/model/relistingConfigDto.js +0 -36
  128. package/dist/model/relistingConfigDto.js.map +0 -1
  129. package/dist/model/relistingDetailDto.d.ts +0 -31
  130. package/dist/model/relistingDetailDto.js +0 -63
  131. package/dist/model/relistingDetailDto.js.map +0 -1
  132. package/dist/model/relistingDetailDtoRandomConfig.d.ts +0 -19
  133. package/dist/model/relistingDetailDtoRandomConfig.js +0 -46
  134. package/dist/model/relistingDetailDtoRandomConfig.js.map +0 -1
  135. package/dist/model/relistingRandomConfigDto.d.ts +0 -19
  136. package/dist/model/relistingRandomConfigDto.js +0 -46
  137. package/dist/model/relistingRandomConfigDto.js.map +0 -1
  138. package/dist/model/updateFutureBidDto.d.ts +0 -17
  139. package/dist/model/updateFutureBidDto.js +0 -36
  140. package/dist/model/updateFutureBidDto.js.map +0 -1
  141. package/dist/model/userPin.d.ts +0 -15
  142. package/dist/model/userPin.js +0 -26
  143. package/dist/model/userPin.js.map +0 -1
  144. package/dist/model/weight.d.ts +0 -15
  145. package/dist/model/weight.js +0 -26
  146. package/dist/model/weight.js.map +0 -1
  147. package/model/bidDto.ts +0 -270
  148. package/model/bidDtoPacking.ts +0 -47
  149. package/model/bidDtoWeight.ts +0 -47
  150. package/model/bidNoteAttributesDto.ts +0 -43
  151. package/model/bidNoteDto.ts +0 -102
  152. package/model/bidNoteDtoAccount.ts +0 -29
  153. package/model/bidNoteDtoAttributes.ts +0 -47
  154. package/model/bidPackingDto.ts +0 -43
  155. package/model/bidWeightDto.ts +0 -43
  156. package/model/createMatchedOfferDtoBid.ts +0 -274
  157. package/model/dealProductBatchDto.ts +0 -88
@@ -9,24 +9,13 @@ api/matchedOffersApi.ts
9
9
  api/offersApi.ts
10
10
  git_push.sh
11
11
  model/addFutureBidDto.ts
12
- model/bidDto.ts
13
- model/bidDtoPacking.ts
14
- model/bidDtoWeight.ts
15
- model/bidNoteAttributesDto.ts
16
- model/bidNoteDto.ts
17
- model/bidNoteDtoAccount.ts
18
- model/bidNoteDtoAttributes.ts
19
- model/bidPackingDto.ts
20
- model/bidWeightDto.ts
21
12
  model/createAutomatedOfferDto.ts
22
13
  model/createMatchedOfferDto.ts
23
- model/createMatchedOfferDtoBid.ts
24
14
  model/createOfferDto.ts
25
15
  model/createOfferDtoAttributes.ts
26
16
  model/createOfferDtoFormula.ts
27
17
  model/createOfferDtoPacking.ts
28
18
  model/createOfferDtoWeight.ts
29
- model/dealProductBatchDto.ts
30
19
  model/formulaDto.ts
31
20
  model/formulaLineDto.ts
32
21
  model/generalAddressDto.ts
@@ -154,6 +154,74 @@ export class AutomatedOffersApi {
154
154
  });
155
155
  });
156
156
  }
157
+ /**
158
+ *
159
+ * @summary Creates multiple automated offers
160
+ * @param account
161
+ * @param createAutomatedOfferDto
162
+ */
163
+ public async automatedOffersControllerCreatebulk (account: string, createAutomatedOfferDto: Array<CreateAutomatedOfferDto>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
164
+ const localVarPath = this.basePath + '/automated-offers/{account}/bulk'
165
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
166
+ let localVarQueryParameters: any = {};
167
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
168
+ let localVarFormParams: any = {};
169
+
170
+ // verify required parameter 'account' is not null or undefined
171
+ if (account === null || account === undefined) {
172
+ throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerCreatebulk.');
173
+ }
174
+
175
+ // verify required parameter 'createAutomatedOfferDto' is not null or undefined
176
+ if (createAutomatedOfferDto === null || createAutomatedOfferDto === undefined) {
177
+ throw new Error('Required parameter createAutomatedOfferDto was null or undefined when calling automatedOffersControllerCreatebulk.');
178
+ }
179
+
180
+ (<any>Object).assign(localVarHeaderParams, options.headers);
181
+
182
+ let localVarUseFormData = false;
183
+
184
+ let localVarRequestOptions: localVarRequest.Options = {
185
+ method: 'POST',
186
+ qs: localVarQueryParameters,
187
+ headers: localVarHeaderParams,
188
+ uri: localVarPath,
189
+ useQuerystring: this._useQuerystring,
190
+ json: true,
191
+ body: ObjectSerializer.serialize(createAutomatedOfferDto, "Array<CreateAutomatedOfferDto>")
192
+ };
193
+
194
+ let authenticationPromise = Promise.resolve();
195
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
196
+
197
+ let interceptorPromise = authenticationPromise;
198
+ for (const interceptor of this.interceptors) {
199
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
200
+ }
201
+
202
+ return interceptorPromise.then(() => {
203
+ if (Object.keys(localVarFormParams).length) {
204
+ if (localVarUseFormData) {
205
+ (<any>localVarRequestOptions).formData = localVarFormParams;
206
+ } else {
207
+ localVarRequestOptions.form = localVarFormParams;
208
+ }
209
+ }
210
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
211
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
212
+ if (error) {
213
+ reject(error);
214
+ } else {
215
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
216
+ resolve({ response: response, body: body });
217
+ } else {
218
+ reject(new HttpError(response, body, response.statusCode));
219
+ }
220
+ }
221
+ });
222
+ });
223
+ });
224
+ }
157
225
  /**
158
226
  *
159
227
  * @summary Retrieves a list of all automated offers by search criteria
@@ -161,9 +229,10 @@ export class AutomatedOffersApi {
161
229
  * @param skip
162
230
  * @param limit
163
231
  * @param sort
232
+ * @param fields Comma-separated list of fields to include
164
233
  * @param body
165
234
  */
166
- public async automatedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
235
+ public async automatedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
167
236
  const localVarPath = this.basePath + '/automated-offers/{account}/search'
168
237
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
169
238
  let localVarQueryParameters: any = {};
@@ -187,6 +256,10 @@ export class AutomatedOffersApi {
187
256
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
188
257
  }
189
258
 
259
+ if (fields !== undefined) {
260
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
261
+ }
262
+
190
263
  (<any>Object).assign(localVarHeaderParams, options.headers);
191
264
 
192
265
  let localVarUseFormData = false;
@@ -240,8 +313,9 @@ export class AutomatedOffersApi {
240
313
  * @param skip
241
314
  * @param limit
242
315
  * @param sort
316
+ * @param fields Comma-separated list of fields to include
243
317
  */
244
- public async automatedOffersControllerFindall (account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
318
+ public async automatedOffersControllerFindall (account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
245
319
  const localVarPath = this.basePath + '/automated-offers/{account}'
246
320
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
247
321
  let localVarQueryParameters: any = {};
@@ -270,6 +344,10 @@ export class AutomatedOffersApi {
270
344
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
271
345
  }
272
346
 
347
+ if (fields !== undefined) {
348
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
349
+ }
350
+
273
351
  (<any>Object).assign(localVarHeaderParams, options.headers);
274
352
 
275
353
  let localVarUseFormData = false;
@@ -320,8 +398,9 @@ export class AutomatedOffersApi {
320
398
  * @summary Retrieves the automated offer with the provided ID
321
399
  * @param id
322
400
  * @param account
401
+ * @param fields Comma-separated list of fields to include
323
402
  */
324
- public async automatedOffersControllerFindone (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
403
+ public async automatedOffersControllerFindone (id: string, account: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
325
404
  const localVarPath = this.basePath + '/automated-offers/{account}/{id}'
326
405
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
327
406
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -339,6 +418,10 @@ export class AutomatedOffersApi {
339
418
  throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerFindone.');
340
419
  }
341
420
 
421
+ if (fields !== undefined) {
422
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
423
+ }
424
+
342
425
  (<any>Object).assign(localVarHeaderParams, options.headers);
343
426
 
344
427
  let localVarUseFormData = false;
@@ -390,9 +473,10 @@ export class AutomatedOffersApi {
390
473
  * @param skip
391
474
  * @param limit
392
475
  * @param sort
476
+ * @param fields Fields to include in the response. If not specified, all fields are returned.
393
477
  * @param body
394
478
  */
395
- public async automatedOffersControllerGetbids (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
479
+ public async automatedOffersControllerGetbids (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
396
480
  const localVarPath = this.basePath + '/automated-offers/{account}/bids'
397
481
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
398
482
  let localVarQueryParameters: any = {};
@@ -416,6 +500,10 @@ export class AutomatedOffersApi {
416
500
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
417
501
  }
418
502
 
503
+ if (fields !== undefined) {
504
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
505
+ }
506
+
419
507
  (<any>Object).assign(localVarHeaderParams, options.headers);
420
508
 
421
509
  let localVarUseFormData = false;
@@ -177,8 +177,9 @@ export class FutureBidsApi {
177
177
  * @param skip
178
178
  * @param limit
179
179
  * @param sort
180
+ * @param fields Comma-separated list of fields to include
180
181
  */
181
- public async futureBidsControllerFindall (account: string, addFutureBidDto: AddFutureBidDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
182
+ public async futureBidsControllerFindall (account: string, addFutureBidDto: AddFutureBidDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
182
183
  const localVarPath = this.basePath + '/future-bids/{account}'
183
184
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
184
185
  let localVarQueryParameters: any = {};
@@ -207,6 +208,10 @@ export class FutureBidsApi {
207
208
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
208
209
  }
209
210
 
211
+ if (fields !== undefined) {
212
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
213
+ }
214
+
210
215
  (<any>Object).assign(localVarHeaderParams, options.headers);
211
216
 
212
217
  let localVarUseFormData = false;
@@ -455,9 +455,10 @@ export class MatchedOffersApi {
455
455
  * @param skip
456
456
  * @param limit
457
457
  * @param sort
458
+ * @param fields Comma-separated list of fields to include
458
459
  * @param body
459
460
  */
460
- public async matchedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
461
+ public async matchedOffersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
461
462
  const localVarPath = this.basePath + '/matched-offers/{account}/search'
462
463
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
463
464
  let localVarQueryParameters: any = {};
@@ -481,6 +482,10 @@ export class MatchedOffersApi {
481
482
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
482
483
  }
483
484
 
485
+ if (fields !== undefined) {
486
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
487
+ }
488
+
484
489
  (<any>Object).assign(localVarHeaderParams, options.headers);
485
490
 
486
491
  let localVarUseFormData = false;
@@ -534,8 +539,9 @@ export class MatchedOffersApi {
534
539
  * @param skip
535
540
  * @param limit
536
541
  * @param sort
542
+ * @param fields Comma-separated list of fields to include
537
543
  */
538
- public async matchedOffersControllerFindall (account: string, createMatchedOfferDto: CreateMatchedOfferDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
544
+ public async matchedOffersControllerFindall (account: string, createMatchedOfferDto: CreateMatchedOfferDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
539
545
  const localVarPath = this.basePath + '/matched-offers/{account}'
540
546
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
541
547
  let localVarQueryParameters: any = {};
@@ -564,6 +570,10 @@ export class MatchedOffersApi {
564
570
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
565
571
  }
566
572
 
573
+ if (fields !== undefined) {
574
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
575
+ }
576
+
567
577
  (<any>Object).assign(localVarHeaderParams, options.headers);
568
578
 
569
579
  let localVarUseFormData = false;
@@ -675,8 +685,9 @@ export class MatchedOffersApi {
675
685
  * @summary Retrieves the matched offer with the provided ID
676
686
  * @param id
677
687
  * @param account
688
+ * @param fields Comma-separated list of fields to include
678
689
  */
679
- public async matchedOffersControllerFindone (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
690
+ public async matchedOffersControllerFindone (id: string, account: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
680
691
  const localVarPath = this.basePath + '/matched-offers/{account}/{id}'
681
692
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
682
693
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -694,6 +705,10 @@ export class MatchedOffersApi {
694
705
  throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindone.');
695
706
  }
696
707
 
708
+ if (fields !== undefined) {
709
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
710
+ }
711
+
697
712
  (<any>Object).assign(localVarHeaderParams, options.headers);
698
713
 
699
714
  let localVarUseFormData = false;
package/api/offersApi.ts CHANGED
@@ -583,9 +583,10 @@ export class OffersApi {
583
583
  * @param skip
584
584
  * @param limit
585
585
  * @param sort
586
+ * @param fields Comma-separated list of fields to include
586
587
  * @param body
587
588
  */
588
- public async offersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
589
+ public async offersControllerFilter (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, body?: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
589
590
  const localVarPath = this.basePath + '/offers/{account}/search'
590
591
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
591
592
  let localVarQueryParameters: any = {};
@@ -609,6 +610,10 @@ export class OffersApi {
609
610
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
610
611
  }
611
612
 
613
+ if (fields !== undefined) {
614
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
615
+ }
616
+
612
617
  (<any>Object).assign(localVarHeaderParams, options.headers);
613
618
 
614
619
  let localVarUseFormData = false;
@@ -662,8 +667,9 @@ export class OffersApi {
662
667
  * @param skip
663
668
  * @param limit
664
669
  * @param sort
670
+ * @param fields Comma-separated list of fields to include
665
671
  */
666
- public async offersControllerFindall (account: string, createOfferDto: CreateOfferDto, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
672
+ public async offersControllerFindall (account: string, createOfferDto: CreateOfferDto, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
667
673
  const localVarPath = this.basePath + '/offers/{account}'
668
674
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
669
675
  let localVarQueryParameters: any = {};
@@ -692,6 +698,10 @@ export class OffersApi {
692
698
  localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "string");
693
699
  }
694
700
 
701
+ if (fields !== undefined) {
702
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "Array<string>");
703
+ }
704
+
695
705
  (<any>Object).assign(localVarHeaderParams, options.headers);
696
706
 
697
707
  let localVarUseFormData = false;
@@ -803,8 +813,9 @@ export class OffersApi {
803
813
  * @summary Retrieves the offer with the provided ID
804
814
  * @param id
805
815
  * @param account
816
+ * @param fields Comma-separated list of fields to include
806
817
  */
807
- public async offersControllerFindone (id: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
818
+ public async offersControllerFindone (id: string, account: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
808
819
  const localVarPath = this.basePath + '/offers/{account}/{id}'
809
820
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
810
821
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -822,6 +833,10 @@ export class OffersApi {
822
833
  throw new Error('Required parameter account was null or undefined when calling offersControllerFindone.');
823
834
  }
824
835
 
836
+ if (fields !== undefined) {
837
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
838
+ }
839
+
825
840
  (<any>Object).assign(localVarHeaderParams, options.headers);
826
841
 
827
842
  let localVarUseFormData = false;
@@ -231,6 +231,14 @@ export class CreateAutomatedOfferDto {
231
231
  */
232
232
  'skip_cost_matching'?: boolean;
233
233
  /**
234
+ * Skip logistics cost matching flag
235
+ */
236
+ 'skip_logistics_cost_matching'?: boolean;
237
+ /**
238
+ * Skip freight cost matching flag
239
+ */
240
+ 'skip_freight_cost_matching'?: boolean;
241
+ /**
234
242
  * Confirmed by user ID
235
243
  */
236
244
  'confirmed_by'?: string;
@@ -526,6 +534,16 @@ export class CreateAutomatedOfferDto {
526
534
  "baseName": "skip_cost_matching",
527
535
  "type": "boolean"
528
536
  },
537
+ {
538
+ "name": "skip_logistics_cost_matching",
539
+ "baseName": "skip_logistics_cost_matching",
540
+ "type": "boolean"
541
+ },
542
+ {
543
+ "name": "skip_freight_cost_matching",
544
+ "baseName": "skip_freight_cost_matching",
545
+ "type": "boolean"
546
+ },
529
547
  {
530
548
  "name": "confirmed_by",
531
549
  "baseName": "confirmed_by",
@@ -11,7 +11,6 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
- import { CreateMatchedOfferDtoBid } from './createMatchedOfferDtoBid';
15
14
  import { UserPin } from './userPin';
16
15
 
17
16
  export class CreateMatchedOfferDto {
@@ -127,7 +126,10 @@ export class CreateMatchedOfferDto {
127
126
  * Expired at timestamp
128
127
  */
129
128
  'expired_at'?: number;
130
- 'bid': CreateMatchedOfferDtoBid;
129
+ /**
130
+ * Bid information
131
+ */
132
+ 'bid': object | null;
131
133
  /**
132
134
  * Offer information
133
135
  */
@@ -383,7 +385,7 @@ export class CreateMatchedOfferDto {
383
385
  {
384
386
  "name": "bid",
385
387
  "baseName": "bid",
386
- "type": "CreateMatchedOfferDtoBid"
388
+ "type": "object"
387
389
  },
388
390
  {
389
391
  "name": "offer",
@@ -230,6 +230,14 @@ export class CreateOfferDto {
230
230
  */
231
231
  'skip_cost_matching'?: boolean;
232
232
  /**
233
+ * Skip logistics cost matching flag
234
+ */
235
+ 'skip_logistics_cost_matching'?: boolean;
236
+ /**
237
+ * Skip freight cost matching flag
238
+ */
239
+ 'skip_freight_cost_matching'?: boolean;
240
+ /**
233
241
  * Confirmed by user ID
234
242
  */
235
243
  'confirmed_by'?: string;
@@ -517,6 +525,16 @@ export class CreateOfferDto {
517
525
  "baseName": "skip_cost_matching",
518
526
  "type": "boolean"
519
527
  },
528
+ {
529
+ "name": "skip_logistics_cost_matching",
530
+ "baseName": "skip_logistics_cost_matching",
531
+ "type": "boolean"
532
+ },
533
+ {
534
+ "name": "skip_freight_cost_matching",
535
+ "baseName": "skip_freight_cost_matching",
536
+ "type": "boolean"
537
+ },
520
538
  {
521
539
  "name": "confirmed_by",
522
540
  "baseName": "confirmed_by",
@@ -11,7 +11,6 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
- import { DealProductBatchDto } from './dealProductBatchDto';
15
14
  import { GeneralAddressDto } from './generalAddressDto';
16
15
  import { OfferAttributesDto } from './offerAttributesDto';
17
16
  import { OfferAttributesDtoEstablishment } from './offerAttributesDtoEstablishment';
@@ -25,9 +24,9 @@ export class CreateOfferDtoAttributes {
25
24
  */
26
25
  'old_supplier_offer_id'?: string;
27
26
  /**
28
- * olf_
27
+ * old_matched_offer_id
29
28
  */
30
- 'old_match_offer_id'?: string;
29
+ 'old_matched_offer_id'?: string;
31
30
  /**
32
31
  * Weight type ID
33
32
  */
@@ -59,7 +58,7 @@ export class CreateOfferDtoAttributes {
59
58
  /**
60
59
  * Product batches
61
60
  */
62
- 'batches'?: Array<DealProductBatchDto>;
61
+ 'batches'?: Array<object>;
63
62
  /**
64
63
  * Incoterm location
65
64
  */
@@ -131,8 +130,8 @@ export class CreateOfferDtoAttributes {
131
130
  "type": "string"
132
131
  },
133
132
  {
134
- "name": "old_match_offer_id",
135
- "baseName": "old_match_offer_id",
133
+ "name": "old_matched_offer_id",
134
+ "baseName": "old_matched_offer_id",
136
135
  "type": "string"
137
136
  },
138
137
  {
@@ -173,7 +172,7 @@ export class CreateOfferDtoAttributes {
173
172
  {
174
173
  "name": "batches",
175
174
  "baseName": "batches",
176
- "type": "Array<DealProductBatchDto>"
175
+ "type": "Array<object>"
177
176
  },
178
177
  {
179
178
  "name": "incoterm_location",