@tradecafe/offer-service-sdk 0.0.25 → 0.0.27

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 (166) hide show
  1. package/.openapi-generator/FILES +49 -16
  2. package/api/automatedOffersApi.ts +13 -12
  3. package/api/futureBidsApi.ts +20 -18
  4. package/api/matchedOffersApi.ts +164 -12
  5. package/api/offersApi.ts +13 -12
  6. package/dist/api/apis.d.ts +20 -20
  7. package/dist/api/apis.js +56 -56
  8. package/dist/api/automatedOffersApi.d.ts +104 -103
  9. package/dist/api/automatedOffersApi.js +798 -798
  10. package/dist/api/automatedOffersApi.js.map +1 -1
  11. package/dist/api/futureBidsApi.d.ts +65 -63
  12. package/dist/api/futureBidsApi.js +455 -455
  13. package/dist/api/futureBidsApi.js.map +1 -1
  14. package/dist/api/healthApi.d.ts +32 -32
  15. package/dist/api/healthApi.js +174 -174
  16. package/dist/api/matchedOffersApi.d.ts +177 -159
  17. package/dist/api/matchedOffersApi.js +1401 -1261
  18. package/dist/api/matchedOffersApi.js.map +1 -1
  19. package/dist/api/offersApi.d.ts +184 -183
  20. package/dist/api/offersApi.js +1460 -1460
  21. package/dist/api/offersApi.js.map +1 -1
  22. package/dist/api.d.ts +2 -2
  23. package/dist/api.js +18 -18
  24. package/dist/model/addFutureBidDto.d.ts +17 -0
  25. package/dist/model/addFutureBidDto.js +36 -0
  26. package/dist/model/addFutureBidDto.js.map +1 -0
  27. package/dist/model/bidDto.d.ts +46 -0
  28. package/dist/model/bidDto.js +156 -0
  29. package/dist/model/bidDto.js.map +1 -0
  30. package/dist/model/bidDtoPacking.d.ts +15 -0
  31. package/dist/model/bidDtoPacking.js +26 -0
  32. package/dist/model/bidDtoPacking.js.map +1 -0
  33. package/dist/model/bidDtoWeight.d.ts +15 -0
  34. package/dist/model/bidDtoWeight.js +26 -0
  35. package/dist/model/bidDtoWeight.js.map +1 -0
  36. package/dist/model/bidNoteAttributesDto.d.ts +15 -0
  37. package/dist/model/bidNoteAttributesDto.js +26 -0
  38. package/dist/model/bidNoteAttributesDto.js.map +1 -0
  39. package/dist/model/bidNoteDto.d.ts +24 -0
  40. package/dist/model/bidNoteDto.js +61 -0
  41. package/dist/model/bidNoteDto.js.map +1 -0
  42. package/dist/model/bidNoteDtoAccount.d.ts +13 -0
  43. package/dist/model/bidNoteDtoAccount.js +15 -0
  44. package/dist/model/bidNoteDtoAccount.js.map +1 -0
  45. package/dist/model/bidNoteDtoAttributes.d.ts +15 -0
  46. package/dist/model/bidNoteDtoAttributes.js +26 -0
  47. package/dist/model/bidNoteDtoAttributes.js.map +1 -0
  48. package/dist/model/bidPackingDto.d.ts +15 -0
  49. package/dist/model/bidPackingDto.js +26 -0
  50. package/dist/model/bidPackingDto.js.map +1 -0
  51. package/dist/model/bidWeightDto.d.ts +15 -0
  52. package/dist/model/bidWeightDto.js +26 -0
  53. package/dist/model/bidWeightDto.js.map +1 -0
  54. package/dist/model/createAutomatedOfferDto.d.ts +107 -0
  55. package/dist/model/createAutomatedOfferDto.js +352 -0
  56. package/dist/model/createAutomatedOfferDto.js.map +1 -0
  57. package/dist/model/createMatchedOfferDto.d.ts +84 -0
  58. package/dist/model/createMatchedOfferDto.js +311 -0
  59. package/dist/model/createMatchedOfferDto.js.map +1 -0
  60. package/dist/model/createMatchedOfferDtoBid.d.ts +46 -0
  61. package/dist/model/createMatchedOfferDtoBid.js +156 -0
  62. package/dist/model/createMatchedOfferDtoBid.js.map +1 -0
  63. package/dist/model/createOfferDto.d.ts +97 -0
  64. package/dist/model/createOfferDto.js +333 -0
  65. package/dist/model/createOfferDto.js.map +1 -0
  66. package/dist/model/createOfferDtoAttributes.d.ts +49 -0
  67. package/dist/model/createOfferDtoAttributes.js +155 -0
  68. package/dist/model/createOfferDtoAttributes.js.map +1 -0
  69. package/dist/model/createOfferDtoFormula.d.ts +19 -0
  70. package/dist/model/createOfferDtoFormula.js +41 -0
  71. package/dist/model/createOfferDtoFormula.js.map +1 -0
  72. package/dist/model/createOfferDtoPacking.d.ts +17 -0
  73. package/dist/model/createOfferDtoPacking.js +36 -0
  74. package/dist/model/createOfferDtoPacking.js.map +1 -0
  75. package/dist/model/createOfferDtoWeight.d.ts +15 -0
  76. package/dist/model/createOfferDtoWeight.js +26 -0
  77. package/dist/model/createOfferDtoWeight.js.map +1 -0
  78. package/dist/model/dealProductBatchDto.d.ts +20 -0
  79. package/dist/model/dealProductBatchDto.js +51 -0
  80. package/dist/model/dealProductBatchDto.js.map +1 -0
  81. package/dist/model/formulaDto.d.ts +19 -0
  82. package/dist/model/formulaDto.js +41 -0
  83. package/dist/model/formulaDto.js.map +1 -0
  84. package/dist/model/formulaLineDto.d.ts +17 -0
  85. package/dist/model/formulaLineDto.js +36 -0
  86. package/dist/model/formulaLineDto.js.map +1 -0
  87. package/dist/model/generalAddressDto.d.ts +19 -0
  88. package/dist/model/generalAddressDto.js +46 -0
  89. package/dist/model/generalAddressDto.js.map +1 -0
  90. package/dist/model/healthControllerPing200Response.d.ts +24 -24
  91. package/dist/model/healthControllerPing200Response.js +35 -35
  92. package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -10
  93. package/dist/model/healthControllerPing200ResponseInfoValue.js +36 -36
  94. package/dist/model/healthControllerPing503Response.d.ts +24 -24
  95. package/dist/model/healthControllerPing503Response.js +35 -35
  96. package/dist/model/models.d.ts +82 -49
  97. package/dist/model/models.js +340 -231
  98. package/dist/model/models.js.map +1 -1
  99. package/dist/model/offerAttributesDto.d.ts +49 -0
  100. package/dist/model/offerAttributesDto.js +155 -0
  101. package/dist/model/offerAttributesDto.js.map +1 -0
  102. package/dist/model/offerAttributesDtoEstablishment.d.ts +19 -0
  103. package/dist/model/offerAttributesDtoEstablishment.js +46 -0
  104. package/dist/model/offerAttributesDtoEstablishment.js.map +1 -0
  105. package/dist/model/packing.d.ts +17 -0
  106. package/dist/model/packing.js +36 -0
  107. package/dist/model/packing.js.map +1 -0
  108. package/dist/model/pinActionDto.d.ts +14 -0
  109. package/dist/model/pinActionDto.js +21 -0
  110. package/dist/model/pinActionDto.js.map +1 -0
  111. package/dist/model/relistingConfigDto.d.ts +17 -0
  112. package/dist/model/relistingConfigDto.js +36 -0
  113. package/dist/model/relistingConfigDto.js.map +1 -0
  114. package/dist/model/relistingDetailDto.d.ts +31 -0
  115. package/dist/model/relistingDetailDto.js +63 -0
  116. package/dist/model/relistingDetailDto.js.map +1 -0
  117. package/dist/model/relistingDetailDtoRandomConfig.d.ts +19 -0
  118. package/dist/model/relistingDetailDtoRandomConfig.js +46 -0
  119. package/dist/model/relistingDetailDtoRandomConfig.js.map +1 -0
  120. package/dist/model/relistingRandomConfigDto.d.ts +19 -0
  121. package/dist/model/relistingRandomConfigDto.js +46 -0
  122. package/dist/model/relistingRandomConfigDto.js.map +1 -0
  123. package/dist/model/updateFutureBidDto.d.ts +17 -0
  124. package/dist/model/updateFutureBidDto.js +36 -0
  125. package/dist/model/updateFutureBidDto.js.map +1 -0
  126. package/dist/model/userPin.d.ts +15 -0
  127. package/dist/model/userPin.js +26 -0
  128. package/dist/model/userPin.js.map +1 -0
  129. package/dist/model/weight.d.ts +15 -0
  130. package/dist/model/weight.js +26 -0
  131. package/dist/model/weight.js.map +1 -0
  132. package/model/addFutureBidDto.ts +61 -0
  133. package/model/bidDto.ts +270 -0
  134. package/model/bidDtoPacking.ts +47 -0
  135. package/model/bidDtoWeight.ts +47 -0
  136. package/model/bidNoteAttributesDto.ts +43 -0
  137. package/model/bidNoteDto.ts +102 -0
  138. package/model/bidNoteDtoAccount.ts +29 -0
  139. package/model/bidNoteDtoAttributes.ts +47 -0
  140. package/model/bidPackingDto.ts +43 -0
  141. package/model/bidWeightDto.ts +43 -0
  142. package/model/createAutomatedOfferDto.ts +579 -0
  143. package/model/createMatchedOfferDto.ts +541 -0
  144. package/model/createMatchedOfferDtoBid.ts +274 -0
  145. package/model/createOfferDto.ts +553 -0
  146. package/model/createOfferDtoAttributes.ts +270 -0
  147. package/model/createOfferDtoFormula.ts +75 -0
  148. package/model/createOfferDtoPacking.ts +65 -0
  149. package/model/createOfferDtoWeight.ts +47 -0
  150. package/model/dealProductBatchDto.ts +88 -0
  151. package/model/formulaDto.ts +71 -0
  152. package/model/formulaLineDto.ts +61 -0
  153. package/model/generalAddressDto.ts +79 -0
  154. package/model/models.ts +108 -0
  155. package/model/offerAttributesDto.ts +266 -0
  156. package/model/offerAttributesDtoEstablishment.ts +83 -0
  157. package/model/packing.ts +61 -0
  158. package/model/pinActionDto.ts +34 -0
  159. package/model/relistingConfigDto.ts +61 -0
  160. package/model/relistingDetailDto.ts +96 -0
  161. package/model/relistingDetailDtoRandomConfig.ts +83 -0
  162. package/model/relistingRandomConfigDto.ts +79 -0
  163. package/model/updateFutureBidDto.ts +61 -0
  164. package/model/userPin.ts +43 -0
  165. package/model/weight.ts +43 -0
  166. package/package.json +1 -1
@@ -1,16 +1,49 @@
1
- .gitignore
2
- .openapi-generator-ignore
3
- api.ts
4
- api/apis.ts
5
- api/automatedOffersApi.ts
6
- api/futureBidsApi.ts
7
- api/healthApi.ts
8
- api/matchedOffersApi.ts
9
- api/offersApi.ts
10
- git_push.sh
11
- model/healthControllerPing200Response.ts
12
- model/healthControllerPing200ResponseInfoValue.ts
13
- model/healthControllerPing503Response.ts
14
- model/models.ts
15
- package.json
16
- tsconfig.json
1
+ .gitignore
2
+ .openapi-generator-ignore
3
+ api.ts
4
+ api/apis.ts
5
+ api/automatedOffersApi.ts
6
+ api/futureBidsApi.ts
7
+ api/healthApi.ts
8
+ api/matchedOffersApi.ts
9
+ api/offersApi.ts
10
+ git_push.sh
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
+ model/createAutomatedOfferDto.ts
22
+ model/createMatchedOfferDto.ts
23
+ model/createMatchedOfferDtoBid.ts
24
+ model/createOfferDto.ts
25
+ model/createOfferDtoAttributes.ts
26
+ model/createOfferDtoFormula.ts
27
+ model/createOfferDtoPacking.ts
28
+ model/createOfferDtoWeight.ts
29
+ model/dealProductBatchDto.ts
30
+ model/formulaDto.ts
31
+ model/formulaLineDto.ts
32
+ model/generalAddressDto.ts
33
+ model/healthControllerPing200Response.ts
34
+ model/healthControllerPing200ResponseInfoValue.ts
35
+ model/healthControllerPing503Response.ts
36
+ model/models.ts
37
+ model/offerAttributesDto.ts
38
+ model/offerAttributesDtoEstablishment.ts
39
+ model/packing.ts
40
+ model/pinActionDto.ts
41
+ model/relistingConfigDto.ts
42
+ model/relistingDetailDto.ts
43
+ model/relistingDetailDtoRandomConfig.ts
44
+ model/relistingRandomConfigDto.ts
45
+ model/updateFutureBidDto.ts
46
+ model/userPin.ts
47
+ model/weight.ts
48
+ package.json
49
+ tsconfig.json
@@ -15,6 +15,7 @@ import localVarRequest from 'request';
15
15
  import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
+ import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
18
19
 
19
20
  import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
20
21
 
@@ -89,9 +90,9 @@ export class AutomatedOffersApi {
89
90
  *
90
91
  * @summary Creates a new automated offers
91
92
  * @param account
92
- * @param body
93
+ * @param createAutomatedOfferDto
93
94
  */
94
- public async automatedOffersControllerCreate (account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
95
+ public async automatedOffersControllerCreate (account: string, createAutomatedOfferDto: CreateAutomatedOfferDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
95
96
  const localVarPath = this.basePath + '/automated-offers/{account}'
96
97
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
97
98
  let localVarQueryParameters: any = {};
@@ -103,9 +104,9 @@ export class AutomatedOffersApi {
103
104
  throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerCreate.');
104
105
  }
105
106
 
106
- // verify required parameter 'body' is not null or undefined
107
- if (body === null || body === undefined) {
108
- throw new Error('Required parameter body was null or undefined when calling automatedOffersControllerCreate.');
107
+ // verify required parameter 'createAutomatedOfferDto' is not null or undefined
108
+ if (createAutomatedOfferDto === null || createAutomatedOfferDto === undefined) {
109
+ throw new Error('Required parameter createAutomatedOfferDto was null or undefined when calling automatedOffersControllerCreate.');
109
110
  }
110
111
 
111
112
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -119,7 +120,7 @@ export class AutomatedOffersApi {
119
120
  uri: localVarPath,
120
121
  useQuerystring: this._useQuerystring,
121
122
  json: true,
122
- body: ObjectSerializer.serialize(body, "object")
123
+ body: ObjectSerializer.serialize(createAutomatedOfferDto, "CreateAutomatedOfferDto")
123
124
  };
124
125
 
125
126
  let authenticationPromise = Promise.resolve();
@@ -235,12 +236,12 @@ export class AutomatedOffersApi {
235
236
  *
236
237
  * @summary Retrieves a list of all automated offer
237
238
  * @param account
238
- * @param body
239
+ * @param createAutomatedOfferDto
239
240
  * @param skip
240
241
  * @param limit
241
242
  * @param sort
242
243
  */
243
- public async automatedOffersControllerFindall (account: string, body: object, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
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; }> {
244
245
  const localVarPath = this.basePath + '/automated-offers/{account}'
245
246
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
246
247
  let localVarQueryParameters: any = {};
@@ -252,9 +253,9 @@ export class AutomatedOffersApi {
252
253
  throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerFindall.');
253
254
  }
254
255
 
255
- // verify required parameter 'body' is not null or undefined
256
- if (body === null || body === undefined) {
257
- throw new Error('Required parameter body was null or undefined when calling automatedOffersControllerFindall.');
256
+ // verify required parameter 'createAutomatedOfferDto' is not null or undefined
257
+ if (createAutomatedOfferDto === null || createAutomatedOfferDto === undefined) {
258
+ throw new Error('Required parameter createAutomatedOfferDto was null or undefined when calling automatedOffersControllerFindall.');
258
259
  }
259
260
 
260
261
  if (skip !== undefined) {
@@ -280,7 +281,7 @@ export class AutomatedOffersApi {
280
281
  uri: localVarPath,
281
282
  useQuerystring: this._useQuerystring,
282
283
  json: true,
283
- body: ObjectSerializer.serialize(body, "object")
284
+ body: ObjectSerializer.serialize(createAutomatedOfferDto, "CreateAutomatedOfferDto")
284
285
  };
285
286
 
286
287
  let authenticationPromise = Promise.resolve();
@@ -15,6 +15,8 @@ import localVarRequest from 'request';
15
15
  import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
+ import { AddFutureBidDto } from '../model/addFutureBidDto';
19
+ import { UpdateFutureBidDto } from '../model/updateFutureBidDto';
18
20
 
19
21
  import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
20
22
 
@@ -91,9 +93,9 @@ export class FutureBidsApi {
91
93
  * @param matchedOfferId
92
94
  * @param userId
93
95
  * @param account
94
- * @param body
96
+ * @param addFutureBidDto
95
97
  */
96
- public async futureBidsControllerAddfuturebid (matchedOfferId: string, userId: string, account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
98
+ public async futureBidsControllerAddfuturebid (matchedOfferId: string, userId: string, account: string, addFutureBidDto: AddFutureBidDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
97
99
  const localVarPath = this.basePath + '/future-bids/{account}/{matchedOfferId}/{userId}'
98
100
  .replace('{' + 'matchedOfferId' + '}', encodeURIComponent(String(matchedOfferId)))
99
101
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
@@ -117,9 +119,9 @@ export class FutureBidsApi {
117
119
  throw new Error('Required parameter account was null or undefined when calling futureBidsControllerAddfuturebid.');
118
120
  }
119
121
 
120
- // verify required parameter 'body' is not null or undefined
121
- if (body === null || body === undefined) {
122
- throw new Error('Required parameter body was null or undefined when calling futureBidsControllerAddfuturebid.');
122
+ // verify required parameter 'addFutureBidDto' is not null or undefined
123
+ if (addFutureBidDto === null || addFutureBidDto === undefined) {
124
+ throw new Error('Required parameter addFutureBidDto was null or undefined when calling futureBidsControllerAddfuturebid.');
123
125
  }
124
126
 
125
127
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -133,7 +135,7 @@ export class FutureBidsApi {
133
135
  uri: localVarPath,
134
136
  useQuerystring: this._useQuerystring,
135
137
  json: true,
136
- body: ObjectSerializer.serialize(body, "object")
138
+ body: ObjectSerializer.serialize(addFutureBidDto, "AddFutureBidDto")
137
139
  };
138
140
 
139
141
  let authenticationPromise = Promise.resolve();
@@ -171,12 +173,12 @@ export class FutureBidsApi {
171
173
  *
172
174
  * @summary Retrieves a list of all future bids
173
175
  * @param account
174
- * @param body
176
+ * @param addFutureBidDto
175
177
  * @param skip
176
178
  * @param limit
177
179
  * @param sort
178
180
  */
179
- public async futureBidsControllerFindall (account: string, body: object, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
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; }> {
180
182
  const localVarPath = this.basePath + '/future-bids/{account}'
181
183
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
182
184
  let localVarQueryParameters: any = {};
@@ -188,9 +190,9 @@ export class FutureBidsApi {
188
190
  throw new Error('Required parameter account was null or undefined when calling futureBidsControllerFindall.');
189
191
  }
190
192
 
191
- // verify required parameter 'body' is not null or undefined
192
- if (body === null || body === undefined) {
193
- throw new Error('Required parameter body was null or undefined when calling futureBidsControllerFindall.');
193
+ // verify required parameter 'addFutureBidDto' is not null or undefined
194
+ if (addFutureBidDto === null || addFutureBidDto === undefined) {
195
+ throw new Error('Required parameter addFutureBidDto was null or undefined when calling futureBidsControllerFindall.');
194
196
  }
195
197
 
196
198
  if (skip !== undefined) {
@@ -216,7 +218,7 @@ export class FutureBidsApi {
216
218
  uri: localVarPath,
217
219
  useQuerystring: this._useQuerystring,
218
220
  json: true,
219
- body: ObjectSerializer.serialize(body, "object")
221
+ body: ObjectSerializer.serialize(addFutureBidDto, "AddFutureBidDto")
220
222
  };
221
223
 
222
224
  let authenticationPromise = Promise.resolve();
@@ -384,9 +386,9 @@ export class FutureBidsApi {
384
386
  * @summary update the future bid
385
387
  * @param id
386
388
  * @param account
387
- * @param body
389
+ * @param updateFutureBidDto
388
390
  */
389
- public async futureBidsControllerUpdate (id: string, account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
391
+ public async futureBidsControllerUpdate (id: string, account: string, updateFutureBidDto: UpdateFutureBidDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
390
392
  const localVarPath = this.basePath + '/future-bids/{account}/{id}'
391
393
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
392
394
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
@@ -404,9 +406,9 @@ export class FutureBidsApi {
404
406
  throw new Error('Required parameter account was null or undefined when calling futureBidsControllerUpdate.');
405
407
  }
406
408
 
407
- // verify required parameter 'body' is not null or undefined
408
- if (body === null || body === undefined) {
409
- throw new Error('Required parameter body was null or undefined when calling futureBidsControllerUpdate.');
409
+ // verify required parameter 'updateFutureBidDto' is not null or undefined
410
+ if (updateFutureBidDto === null || updateFutureBidDto === undefined) {
411
+ throw new Error('Required parameter updateFutureBidDto was null or undefined when calling futureBidsControllerUpdate.');
410
412
  }
411
413
 
412
414
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -420,7 +422,7 @@ export class FutureBidsApi {
420
422
  uri: localVarPath,
421
423
  useQuerystring: this._useQuerystring,
422
424
  json: true,
423
- body: ObjectSerializer.serialize(body, "object")
425
+ body: ObjectSerializer.serialize(updateFutureBidDto, "UpdateFutureBidDto")
424
426
  };
425
427
 
426
428
  let authenticationPromise = Promise.resolve();
@@ -15,6 +15,8 @@ import localVarRequest from 'request';
15
15
  import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
+ import { CreateMatchedOfferDto } from '../model/createMatchedOfferDto';
19
+ import { PinActionDto } from '../model/pinActionDto';
18
20
 
19
21
  import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
20
22
 
@@ -167,6 +169,81 @@ export class MatchedOffersApi {
167
169
  });
168
170
  });
169
171
  }
172
+ /**
173
+ *
174
+ * @summary Pins a matched offer for a specified user
175
+ * @param id
176
+ * @param account
177
+ * @param pinActionDto
178
+ */
179
+ public async matchedOffersControllerAddpin (id: string, account: string, pinActionDto: PinActionDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
180
+ const localVarPath = this.basePath + '/matched-offers/{account}/{id}/pin'
181
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
182
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
183
+ let localVarQueryParameters: any = {};
184
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
185
+ let localVarFormParams: any = {};
186
+
187
+ // verify required parameter 'id' is not null or undefined
188
+ if (id === null || id === undefined) {
189
+ throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerAddpin.');
190
+ }
191
+
192
+ // verify required parameter 'account' is not null or undefined
193
+ if (account === null || account === undefined) {
194
+ throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerAddpin.');
195
+ }
196
+
197
+ // verify required parameter 'pinActionDto' is not null or undefined
198
+ if (pinActionDto === null || pinActionDto === undefined) {
199
+ throw new Error('Required parameter pinActionDto was null or undefined when calling matchedOffersControllerAddpin.');
200
+ }
201
+
202
+ (<any>Object).assign(localVarHeaderParams, options.headers);
203
+
204
+ let localVarUseFormData = false;
205
+
206
+ let localVarRequestOptions: localVarRequest.Options = {
207
+ method: 'POST',
208
+ qs: localVarQueryParameters,
209
+ headers: localVarHeaderParams,
210
+ uri: localVarPath,
211
+ useQuerystring: this._useQuerystring,
212
+ json: true,
213
+ body: ObjectSerializer.serialize(pinActionDto, "PinActionDto")
214
+ };
215
+
216
+ let authenticationPromise = Promise.resolve();
217
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
218
+
219
+ let interceptorPromise = authenticationPromise;
220
+ for (const interceptor of this.interceptors) {
221
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
222
+ }
223
+
224
+ return interceptorPromise.then(() => {
225
+ if (Object.keys(localVarFormParams).length) {
226
+ if (localVarUseFormData) {
227
+ (<any>localVarRequestOptions).formData = localVarFormParams;
228
+ } else {
229
+ localVarRequestOptions.form = localVarFormParams;
230
+ }
231
+ }
232
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
233
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
234
+ if (error) {
235
+ reject(error);
236
+ } else {
237
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
238
+ resolve({ response: response, body: body });
239
+ } else {
240
+ reject(new HttpError(response, body, response.statusCode));
241
+ }
242
+ }
243
+ });
244
+ });
245
+ });
246
+ }
170
247
  /**
171
248
  *
172
249
  * @summary Counts supplier offers by their status, providing a detailed breakdown.
@@ -232,9 +309,9 @@ export class MatchedOffersApi {
232
309
  *
233
310
  * @summary Creates a new matched offer
234
311
  * @param account
235
- * @param body
312
+ * @param createMatchedOfferDto
236
313
  */
237
- public async matchedOffersControllerCreate (account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
314
+ public async matchedOffersControllerCreate (account: string, createMatchedOfferDto: CreateMatchedOfferDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
238
315
  const localVarPath = this.basePath + '/matched-offers/{account}'
239
316
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
240
317
  let localVarQueryParameters: any = {};
@@ -246,9 +323,9 @@ export class MatchedOffersApi {
246
323
  throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerCreate.');
247
324
  }
248
325
 
249
- // verify required parameter 'body' is not null or undefined
250
- if (body === null || body === undefined) {
251
- throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerCreate.');
326
+ // verify required parameter 'createMatchedOfferDto' is not null or undefined
327
+ if (createMatchedOfferDto === null || createMatchedOfferDto === undefined) {
328
+ throw new Error('Required parameter createMatchedOfferDto was null or undefined when calling matchedOffersControllerCreate.');
252
329
  }
253
330
 
254
331
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -262,7 +339,7 @@ export class MatchedOffersApi {
262
339
  uri: localVarPath,
263
340
  useQuerystring: this._useQuerystring,
264
341
  json: true,
265
- body: ObjectSerializer.serialize(body, "object")
342
+ body: ObjectSerializer.serialize(createMatchedOfferDto, "CreateMatchedOfferDto")
266
343
  };
267
344
 
268
345
  let authenticationPromise = Promise.resolve();
@@ -453,12 +530,12 @@ export class MatchedOffersApi {
453
530
  *
454
531
  * @summary Retrieves a list of all matched offers
455
532
  * @param account
456
- * @param body
533
+ * @param createMatchedOfferDto
457
534
  * @param skip
458
535
  * @param limit
459
536
  * @param sort
460
537
  */
461
- public async matchedOffersControllerFindall (account: string, body: object, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
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; }> {
462
539
  const localVarPath = this.basePath + '/matched-offers/{account}'
463
540
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
464
541
  let localVarQueryParameters: any = {};
@@ -470,9 +547,9 @@ export class MatchedOffersApi {
470
547
  throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindall.');
471
548
  }
472
549
 
473
- // verify required parameter 'body' is not null or undefined
474
- if (body === null || body === undefined) {
475
- throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerFindall.');
550
+ // verify required parameter 'createMatchedOfferDto' is not null or undefined
551
+ if (createMatchedOfferDto === null || createMatchedOfferDto === undefined) {
552
+ throw new Error('Required parameter createMatchedOfferDto was null or undefined when calling matchedOffersControllerFindall.');
476
553
  }
477
554
 
478
555
  if (skip !== undefined) {
@@ -498,7 +575,7 @@ export class MatchedOffersApi {
498
575
  uri: localVarPath,
499
576
  useQuerystring: this._useQuerystring,
500
577
  json: true,
501
- body: ObjectSerializer.serialize(body, "object")
578
+ body: ObjectSerializer.serialize(createMatchedOfferDto, "CreateMatchedOfferDto")
502
579
  };
503
580
 
504
581
  let authenticationPromise = Promise.resolve();
@@ -872,6 +949,81 @@ export class MatchedOffersApi {
872
949
  });
873
950
  });
874
951
  }
952
+ /**
953
+ *
954
+ * @summary Unpins a matched offer for a specified user
955
+ * @param id
956
+ * @param account
957
+ * @param pinActionDto
958
+ */
959
+ public async matchedOffersControllerRemovepin (id: string, account: string, pinActionDto: PinActionDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
960
+ const localVarPath = this.basePath + '/matched-offers/{account}/{id}/unpin'
961
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)))
962
+ .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
963
+ let localVarQueryParameters: any = {};
964
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
965
+ let localVarFormParams: any = {};
966
+
967
+ // verify required parameter 'id' is not null or undefined
968
+ if (id === null || id === undefined) {
969
+ throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerRemovepin.');
970
+ }
971
+
972
+ // verify required parameter 'account' is not null or undefined
973
+ if (account === null || account === undefined) {
974
+ throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerRemovepin.');
975
+ }
976
+
977
+ // verify required parameter 'pinActionDto' is not null or undefined
978
+ if (pinActionDto === null || pinActionDto === undefined) {
979
+ throw new Error('Required parameter pinActionDto was null or undefined when calling matchedOffersControllerRemovepin.');
980
+ }
981
+
982
+ (<any>Object).assign(localVarHeaderParams, options.headers);
983
+
984
+ let localVarUseFormData = false;
985
+
986
+ let localVarRequestOptions: localVarRequest.Options = {
987
+ method: 'POST',
988
+ qs: localVarQueryParameters,
989
+ headers: localVarHeaderParams,
990
+ uri: localVarPath,
991
+ useQuerystring: this._useQuerystring,
992
+ json: true,
993
+ body: ObjectSerializer.serialize(pinActionDto, "PinActionDto")
994
+ };
995
+
996
+ let authenticationPromise = Promise.resolve();
997
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
998
+
999
+ let interceptorPromise = authenticationPromise;
1000
+ for (const interceptor of this.interceptors) {
1001
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1002
+ }
1003
+
1004
+ return interceptorPromise.then(() => {
1005
+ if (Object.keys(localVarFormParams).length) {
1006
+ if (localVarUseFormData) {
1007
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1008
+ } else {
1009
+ localVarRequestOptions.form = localVarFormParams;
1010
+ }
1011
+ }
1012
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
1013
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1014
+ if (error) {
1015
+ reject(error);
1016
+ } else {
1017
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1018
+ resolve({ response: response, body: body });
1019
+ } else {
1020
+ reject(new HttpError(response, body, response.statusCode));
1021
+ }
1022
+ }
1023
+ });
1024
+ });
1025
+ });
1026
+ }
875
1027
  /**
876
1028
  *
877
1029
  * @summary Reopens the matched offer with the provided ID and its associated supplier offer
package/api/offersApi.ts CHANGED
@@ -15,6 +15,7 @@ import localVarRequest from 'request';
15
15
  import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
+ import { CreateOfferDto } from '../model/createOfferDto';
18
19
 
19
20
  import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
20
21
 
@@ -443,9 +444,9 @@ export class OffersApi {
443
444
  *
444
445
  * @summary Creates a new offer
445
446
  * @param account
446
- * @param body
447
+ * @param createOfferDto
447
448
  */
448
- public async offersControllerCreate (account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
449
+ public async offersControllerCreate (account: string, createOfferDto: CreateOfferDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
449
450
  const localVarPath = this.basePath + '/offers/{account}'
450
451
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
451
452
  let localVarQueryParameters: any = {};
@@ -457,9 +458,9 @@ export class OffersApi {
457
458
  throw new Error('Required parameter account was null or undefined when calling offersControllerCreate.');
458
459
  }
459
460
 
460
- // verify required parameter 'body' is not null or undefined
461
- if (body === null || body === undefined) {
462
- throw new Error('Required parameter body was null or undefined when calling offersControllerCreate.');
461
+ // verify required parameter 'createOfferDto' is not null or undefined
462
+ if (createOfferDto === null || createOfferDto === undefined) {
463
+ throw new Error('Required parameter createOfferDto was null or undefined when calling offersControllerCreate.');
463
464
  }
464
465
 
465
466
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -473,7 +474,7 @@ export class OffersApi {
473
474
  uri: localVarPath,
474
475
  useQuerystring: this._useQuerystring,
475
476
  json: true,
476
- body: ObjectSerializer.serialize(body, "object")
477
+ body: ObjectSerializer.serialize(createOfferDto, "CreateOfferDto")
477
478
  };
478
479
 
479
480
  let authenticationPromise = Promise.resolve();
@@ -657,12 +658,12 @@ export class OffersApi {
657
658
  *
658
659
  * @summary Retrieves a list of all offers
659
660
  * @param account
660
- * @param body
661
+ * @param createOfferDto
661
662
  * @param skip
662
663
  * @param limit
663
664
  * @param sort
664
665
  */
665
- public async offersControllerFindall (account: string, body: object, skip?: number, limit?: number, sort?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
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; }> {
666
667
  const localVarPath = this.basePath + '/offers/{account}'
667
668
  .replace('{' + 'account' + '}', encodeURIComponent(String(account)));
668
669
  let localVarQueryParameters: any = {};
@@ -674,9 +675,9 @@ export class OffersApi {
674
675
  throw new Error('Required parameter account was null or undefined when calling offersControllerFindall.');
675
676
  }
676
677
 
677
- // verify required parameter 'body' is not null or undefined
678
- if (body === null || body === undefined) {
679
- throw new Error('Required parameter body was null or undefined when calling offersControllerFindall.');
678
+ // verify required parameter 'createOfferDto' is not null or undefined
679
+ if (createOfferDto === null || createOfferDto === undefined) {
680
+ throw new Error('Required parameter createOfferDto was null or undefined when calling offersControllerFindall.');
680
681
  }
681
682
 
682
683
  if (skip !== undefined) {
@@ -702,7 +703,7 @@ export class OffersApi {
702
703
  uri: localVarPath,
703
704
  useQuerystring: this._useQuerystring,
704
705
  json: true,
705
- body: ObjectSerializer.serialize(body, "object")
706
+ body: ObjectSerializer.serialize(createOfferDto, "CreateOfferDto")
706
707
  };
707
708
 
708
709
  let authenticationPromise = Promise.resolve();
@@ -1,20 +1,20 @@
1
- /// <reference types="node" />
2
- export * from './automatedOffersApi';
3
- import { AutomatedOffersApi } from './automatedOffersApi';
4
- export * from './futureBidsApi';
5
- import { FutureBidsApi } from './futureBidsApi';
6
- export * from './healthApi';
7
- import { HealthApi } from './healthApi';
8
- export * from './matchedOffersApi';
9
- import { MatchedOffersApi } from './matchedOffersApi';
10
- export * from './offersApi';
11
- import { OffersApi } from './offersApi';
12
- import * as http from 'http';
13
- export declare class HttpError extends Error {
14
- response: http.IncomingMessage;
15
- body: any;
16
- statusCode?: number | undefined;
17
- constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
18
- }
19
- export { RequestFile } from '../model/models';
20
- export declare const APIS: (typeof AutomatedOffersApi | typeof FutureBidsApi | typeof HealthApi | typeof MatchedOffersApi | typeof OffersApi)[];
1
+ /// <reference types="node" />
2
+ export * from './automatedOffersApi';
3
+ import { AutomatedOffersApi } from './automatedOffersApi';
4
+ export * from './futureBidsApi';
5
+ import { FutureBidsApi } from './futureBidsApi';
6
+ export * from './healthApi';
7
+ import { HealthApi } from './healthApi';
8
+ export * from './matchedOffersApi';
9
+ import { MatchedOffersApi } from './matchedOffersApi';
10
+ export * from './offersApi';
11
+ import { OffersApi } from './offersApi';
12
+ import * as http from 'http';
13
+ export declare class HttpError extends Error {
14
+ response: http.IncomingMessage;
15
+ body: any;
16
+ statusCode?: number | undefined;
17
+ constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
18
+ }
19
+ export { RequestFile } from '../model/models';
20
+ export declare const APIS: (typeof AutomatedOffersApi | typeof FutureBidsApi | typeof HealthApi | typeof MatchedOffersApi | typeof OffersApi)[];