@tradecafe/offer-service-sdk 0.0.43 → 0.0.45
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 +1 -0
- package/api/automatedOffersApi.ts +231 -12
- package/api/offersApi.ts +75 -0
- package/dist/api/automatedOffersApi.d.ts +26 -1
- package/dist/api/automatedOffersApi.js +247 -41
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/api/offersApi.d.ts +8 -0
- package/dist/api/offersApi.js +133 -63
- package/dist/api/offersApi.js.map +1 -1
- package/dist/model/createAutomatedOfferDto.d.ts +4 -1
- package/dist/model/createAutomatedOfferDto.js +3 -0
- package/dist/model/createAutomatedOfferDto.js.map +1 -1
- package/dist/model/models.d.ts +1 -0
- package/dist/model/models.js +3 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -0
- package/dist/model/updateMatchedDeliveryDateDto.js +26 -0
- package/dist/model/updateMatchedDeliveryDateDto.js.map +1 -0
- package/model/createAutomatedOfferDto.ts +4 -1
- package/model/models.ts +3 -0
- package/model/updateMatchedDeliveryDateDto.ts +43 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,7 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
19
19
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
20
|
+
import { UpdateMatchedDeliveryDateDto } from '../model/updateMatchedDeliveryDateDto';
|
|
20
21
|
|
|
21
22
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
22
23
|
|
|
@@ -87,6 +88,156 @@ export class AutomatedOffersApi {
|
|
|
87
88
|
this.interceptors.push(interceptor);
|
|
88
89
|
}
|
|
89
90
|
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Add buyer after creating its MO to the offer
|
|
94
|
+
* @param id
|
|
95
|
+
* @param buyer
|
|
96
|
+
* @param account
|
|
97
|
+
*/
|
|
98
|
+
public async automatedOffersControllerAddmatchedbuyertooffer (id: string, buyer: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
99
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-buyer/{buyer}/add'
|
|
100
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
101
|
+
.replace('{' + 'buyer' + '}', encodeURIComponent(String(buyer)))
|
|
102
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
103
|
+
let localVarQueryParameters: any = {};
|
|
104
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
105
|
+
let localVarFormParams: any = {};
|
|
106
|
+
|
|
107
|
+
// verify required parameter 'id' is not null or undefined
|
|
108
|
+
if (id === null || id === undefined) {
|
|
109
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// verify required parameter 'buyer' is not null or undefined
|
|
113
|
+
if (buyer === null || buyer === undefined) {
|
|
114
|
+
throw new Error('Required parameter buyer was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// verify required parameter 'account' is not null or undefined
|
|
118
|
+
if (account === null || account === undefined) {
|
|
119
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerAddmatchedbuyertooffer.');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
123
|
+
|
|
124
|
+
let localVarUseFormData = false;
|
|
125
|
+
|
|
126
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
127
|
+
method: 'PUT',
|
|
128
|
+
qs: localVarQueryParameters,
|
|
129
|
+
headers: localVarHeaderParams,
|
|
130
|
+
uri: localVarPath,
|
|
131
|
+
useQuerystring: this._useQuerystring,
|
|
132
|
+
json: true,
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
let authenticationPromise = Promise.resolve();
|
|
136
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
137
|
+
|
|
138
|
+
let interceptorPromise = authenticationPromise;
|
|
139
|
+
for (const interceptor of this.interceptors) {
|
|
140
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return interceptorPromise.then(() => {
|
|
144
|
+
if (Object.keys(localVarFormParams).length) {
|
|
145
|
+
if (localVarUseFormData) {
|
|
146
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
147
|
+
} else {
|
|
148
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
152
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
153
|
+
if (error) {
|
|
154
|
+
reject(error);
|
|
155
|
+
} else {
|
|
156
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
157
|
+
resolve({ response: response, body: body });
|
|
158
|
+
} else {
|
|
159
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @summary Add delivery date after creating its MO to the offer
|
|
169
|
+
* @param id
|
|
170
|
+
* @param account
|
|
171
|
+
* @param body
|
|
172
|
+
*/
|
|
173
|
+
public async automatedOffersControllerAddmatcheddeliverydatetooffer (id: string, account: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
174
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-date/add'
|
|
175
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
176
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
177
|
+
let localVarQueryParameters: any = {};
|
|
178
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
179
|
+
let localVarFormParams: any = {};
|
|
180
|
+
|
|
181
|
+
// verify required parameter 'id' is not null or undefined
|
|
182
|
+
if (id === null || id === undefined) {
|
|
183
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// verify required parameter 'account' is not null or undefined
|
|
187
|
+
if (account === null || account === undefined) {
|
|
188
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
189
|
+
}
|
|
190
|
+
|
|
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 automatedOffersControllerAddmatcheddeliverydatetooffer.');
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
197
|
+
|
|
198
|
+
let localVarUseFormData = false;
|
|
199
|
+
|
|
200
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
201
|
+
method: 'PUT',
|
|
202
|
+
qs: localVarQueryParameters,
|
|
203
|
+
headers: localVarHeaderParams,
|
|
204
|
+
uri: localVarPath,
|
|
205
|
+
useQuerystring: this._useQuerystring,
|
|
206
|
+
json: true,
|
|
207
|
+
body: ObjectSerializer.serialize(body, "object")
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
let authenticationPromise = Promise.resolve();
|
|
211
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
212
|
+
|
|
213
|
+
let interceptorPromise = authenticationPromise;
|
|
214
|
+
for (const interceptor of this.interceptors) {
|
|
215
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return interceptorPromise.then(() => {
|
|
219
|
+
if (Object.keys(localVarFormParams).length) {
|
|
220
|
+
if (localVarUseFormData) {
|
|
221
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
222
|
+
} else {
|
|
223
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
227
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
228
|
+
if (error) {
|
|
229
|
+
reject(error);
|
|
230
|
+
} else {
|
|
231
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
232
|
+
resolve({ response: response, body: body });
|
|
233
|
+
} else {
|
|
234
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
}
|
|
90
241
|
/**
|
|
91
242
|
*
|
|
92
243
|
* @summary Adds relistings to multiple automated offers in bulk
|
|
@@ -157,7 +308,7 @@ export class AutomatedOffersApi {
|
|
|
157
308
|
}
|
|
158
309
|
/**
|
|
159
310
|
*
|
|
160
|
-
* @summary Creates a new automated
|
|
311
|
+
* @summary Creates a new automated offer
|
|
161
312
|
* @param account
|
|
162
313
|
* @param createAutomatedOfferDto
|
|
163
314
|
*/
|
|
@@ -376,15 +527,14 @@ export class AutomatedOffersApi {
|
|
|
376
527
|
}
|
|
377
528
|
/**
|
|
378
529
|
*
|
|
379
|
-
* @summary Retrieves a list of all automated
|
|
530
|
+
* @summary Retrieves a list of all automated offers
|
|
380
531
|
* @param account
|
|
381
|
-
* @param createAutomatedOfferDto
|
|
382
532
|
* @param skip
|
|
383
533
|
* @param limit
|
|
384
534
|
* @param sort
|
|
385
535
|
* @param fields Comma-separated list of fields to include
|
|
386
536
|
*/
|
|
387
|
-
public async automatedOffersControllerFindall (account: string,
|
|
537
|
+
public async automatedOffersControllerFindall (account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
388
538
|
const localVarPath = this.basePath + '/automated-offers/{account}'
|
|
389
539
|
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
390
540
|
let localVarQueryParameters: any = {};
|
|
@@ -396,11 +546,6 @@ export class AutomatedOffersApi {
|
|
|
396
546
|
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerFindall.');
|
|
397
547
|
}
|
|
398
548
|
|
|
399
|
-
// verify required parameter 'createAutomatedOfferDto' is not null or undefined
|
|
400
|
-
if (createAutomatedOfferDto === null || createAutomatedOfferDto === undefined) {
|
|
401
|
-
throw new Error('Required parameter createAutomatedOfferDto was null or undefined when calling automatedOffersControllerFindall.');
|
|
402
|
-
}
|
|
403
|
-
|
|
404
549
|
if (skip !== undefined) {
|
|
405
550
|
localVarQueryParameters['skip'] = ObjectSerializer.serialize(skip, "number");
|
|
406
551
|
}
|
|
@@ -428,7 +573,6 @@ export class AutomatedOffersApi {
|
|
|
428
573
|
uri: localVarPath,
|
|
429
574
|
useQuerystring: this._useQuerystring,
|
|
430
575
|
json: true,
|
|
431
|
-
body: ObjectSerializer.serialize(createAutomatedOfferDto, "CreateAutomatedOfferDto")
|
|
432
576
|
};
|
|
433
577
|
|
|
434
578
|
let authenticationPromise = Promise.resolve();
|
|
@@ -537,7 +681,7 @@ export class AutomatedOffersApi {
|
|
|
537
681
|
}
|
|
538
682
|
/**
|
|
539
683
|
*
|
|
540
|
-
* @summary Retrieves
|
|
684
|
+
* @summary Retrieves bids of all automated offers by search criteria
|
|
541
685
|
* @param account
|
|
542
686
|
* @param skip
|
|
543
687
|
* @param limit
|
|
@@ -761,6 +905,81 @@ export class AutomatedOffersApi {
|
|
|
761
905
|
});
|
|
762
906
|
});
|
|
763
907
|
}
|
|
908
|
+
/**
|
|
909
|
+
*
|
|
910
|
+
* @summary Update a delivery date on the offer, replacing only the first occurrence of the old value
|
|
911
|
+
* @param id
|
|
912
|
+
* @param account
|
|
913
|
+
* @param updateMatchedDeliveryDateDto
|
|
914
|
+
*/
|
|
915
|
+
public async automatedOffersControllerUpdatematcheddeliverydateonoffer (id: string, account: string, updateMatchedDeliveryDateDto: UpdateMatchedDeliveryDateDto, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
916
|
+
const localVarPath = this.basePath + '/automated-offers/{account}/{id}/matched-delivery-date/update'
|
|
917
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
918
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
919
|
+
let localVarQueryParameters: any = {};
|
|
920
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
921
|
+
let localVarFormParams: any = {};
|
|
922
|
+
|
|
923
|
+
// verify required parameter 'id' is not null or undefined
|
|
924
|
+
if (id === null || id === undefined) {
|
|
925
|
+
throw new Error('Required parameter id was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
// verify required parameter 'account' is not null or undefined
|
|
929
|
+
if (account === null || account === undefined) {
|
|
930
|
+
throw new Error('Required parameter account was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
// verify required parameter 'updateMatchedDeliveryDateDto' is not null or undefined
|
|
934
|
+
if (updateMatchedDeliveryDateDto === null || updateMatchedDeliveryDateDto === undefined) {
|
|
935
|
+
throw new Error('Required parameter updateMatchedDeliveryDateDto was null or undefined when calling automatedOffersControllerUpdatematcheddeliverydateonoffer.');
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
939
|
+
|
|
940
|
+
let localVarUseFormData = false;
|
|
941
|
+
|
|
942
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
943
|
+
method: 'PATCH',
|
|
944
|
+
qs: localVarQueryParameters,
|
|
945
|
+
headers: localVarHeaderParams,
|
|
946
|
+
uri: localVarPath,
|
|
947
|
+
useQuerystring: this._useQuerystring,
|
|
948
|
+
json: true,
|
|
949
|
+
body: ObjectSerializer.serialize(updateMatchedDeliveryDateDto, "UpdateMatchedDeliveryDateDto")
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
let authenticationPromise = Promise.resolve();
|
|
953
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
954
|
+
|
|
955
|
+
let interceptorPromise = authenticationPromise;
|
|
956
|
+
for (const interceptor of this.interceptors) {
|
|
957
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
return interceptorPromise.then(() => {
|
|
961
|
+
if (Object.keys(localVarFormParams).length) {
|
|
962
|
+
if (localVarUseFormData) {
|
|
963
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
964
|
+
} else {
|
|
965
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
969
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
970
|
+
if (error) {
|
|
971
|
+
reject(error);
|
|
972
|
+
} else {
|
|
973
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
974
|
+
resolve({ response: response, body: body });
|
|
975
|
+
} else {
|
|
976
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
});
|
|
981
|
+
});
|
|
982
|
+
}
|
|
764
983
|
/**
|
|
765
984
|
*
|
|
766
985
|
* @summary Updates the relisting status
|
|
@@ -913,7 +1132,7 @@ export class AutomatedOffersApi {
|
|
|
913
1132
|
}
|
|
914
1133
|
/**
|
|
915
1134
|
*
|
|
916
|
-
* @summary Retrieves
|
|
1135
|
+
* @summary Retrieves views of all automated offers by search criteria
|
|
917
1136
|
* @param account
|
|
918
1137
|
* @param body
|
|
919
1138
|
*/
|
package/api/offersApi.ts
CHANGED
|
@@ -86,6 +86,81 @@ export class OffersApi {
|
|
|
86
86
|
this.interceptors.push(interceptor);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @summary Add buyer after create its MO to the offer
|
|
92
|
+
* @param id
|
|
93
|
+
* @param buyer
|
|
94
|
+
* @param account
|
|
95
|
+
*/
|
|
96
|
+
public async offersControllerAddmatchedbuyertooffer (id: string, buyer: string, account: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
97
|
+
const localVarPath = this.basePath + '/offers/{account}/{id}/matched-buyer/{buyer}/add'
|
|
98
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
99
|
+
.replace('{' + 'buyer' + '}', encodeURIComponent(String(buyer)))
|
|
100
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
101
|
+
let localVarQueryParameters: any = {};
|
|
102
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
103
|
+
let localVarFormParams: any = {};
|
|
104
|
+
|
|
105
|
+
// verify required parameter 'id' is not null or undefined
|
|
106
|
+
if (id === null || id === undefined) {
|
|
107
|
+
throw new Error('Required parameter id was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// verify required parameter 'buyer' is not null or undefined
|
|
111
|
+
if (buyer === null || buyer === undefined) {
|
|
112
|
+
throw new Error('Required parameter buyer was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// verify required parameter 'account' is not null or undefined
|
|
116
|
+
if (account === null || account === undefined) {
|
|
117
|
+
throw new Error('Required parameter account was null or undefined when calling offersControllerAddmatchedbuyertooffer.');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
121
|
+
|
|
122
|
+
let localVarUseFormData = false;
|
|
123
|
+
|
|
124
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
125
|
+
method: 'PUT',
|
|
126
|
+
qs: localVarQueryParameters,
|
|
127
|
+
headers: localVarHeaderParams,
|
|
128
|
+
uri: localVarPath,
|
|
129
|
+
useQuerystring: this._useQuerystring,
|
|
130
|
+
json: true,
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
let authenticationPromise = Promise.resolve();
|
|
134
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
135
|
+
|
|
136
|
+
let interceptorPromise = authenticationPromise;
|
|
137
|
+
for (const interceptor of this.interceptors) {
|
|
138
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return interceptorPromise.then(() => {
|
|
142
|
+
if (Object.keys(localVarFormParams).length) {
|
|
143
|
+
if (localVarUseFormData) {
|
|
144
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
145
|
+
} else {
|
|
146
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
150
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
151
|
+
if (error) {
|
|
152
|
+
reject(error);
|
|
153
|
+
} else {
|
|
154
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
155
|
+
resolve({ response: response, body: body });
|
|
156
|
+
} else {
|
|
157
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
89
164
|
/**
|
|
90
165
|
*
|
|
91
166
|
* @summary Adds note to the offer with the provided ID
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import http from 'http';
|
|
3
3
|
import { BulkAddRelistingDto } from '../model/bulkAddRelistingDto';
|
|
4
4
|
import { CreateAutomatedOfferDto } from '../model/createAutomatedOfferDto';
|
|
5
|
+
import { UpdateMatchedDeliveryDateDto } from '../model/updateMatchedDeliveryDateDto';
|
|
5
6
|
import { Authentication, Interceptor } from '../model/models';
|
|
6
7
|
export declare enum AutomatedOffersApiApiKeys {
|
|
7
8
|
}
|
|
@@ -22,6 +23,22 @@ export declare class AutomatedOffersApi {
|
|
|
22
23
|
setDefaultAuthentication(auth: Authentication): void;
|
|
23
24
|
setApiKey(key: AutomatedOffersApiApiKeys, value: string): void;
|
|
24
25
|
addInterceptor(interceptor: Interceptor): void;
|
|
26
|
+
automatedOffersControllerAddmatchedbuyertooffer(id: string, buyer: string, account: string, options?: {
|
|
27
|
+
headers: {
|
|
28
|
+
[name: string]: string;
|
|
29
|
+
};
|
|
30
|
+
}): Promise<{
|
|
31
|
+
response: http.IncomingMessage;
|
|
32
|
+
body?: any;
|
|
33
|
+
}>;
|
|
34
|
+
automatedOffersControllerAddmatcheddeliverydatetooffer(id: string, account: string, body: object, options?: {
|
|
35
|
+
headers: {
|
|
36
|
+
[name: string]: string;
|
|
37
|
+
};
|
|
38
|
+
}): Promise<{
|
|
39
|
+
response: http.IncomingMessage;
|
|
40
|
+
body?: any;
|
|
41
|
+
}>;
|
|
25
42
|
automatedOffersControllerAddrelistingbulk(account: string, bulkAddRelistingDto: BulkAddRelistingDto, options?: {
|
|
26
43
|
headers: {
|
|
27
44
|
[name: string]: string;
|
|
@@ -54,7 +71,7 @@ export declare class AutomatedOffersApi {
|
|
|
54
71
|
response: http.IncomingMessage;
|
|
55
72
|
body?: any;
|
|
56
73
|
}>;
|
|
57
|
-
automatedOffersControllerFindall(account: string,
|
|
74
|
+
automatedOffersControllerFindall(account: string, skip?: number, limit?: number, sort?: string, fields?: Array<string>, options?: {
|
|
58
75
|
headers: {
|
|
59
76
|
[name: string]: string;
|
|
60
77
|
};
|
|
@@ -94,6 +111,14 @@ export declare class AutomatedOffersApi {
|
|
|
94
111
|
response: http.IncomingMessage;
|
|
95
112
|
body?: any;
|
|
96
113
|
}>;
|
|
114
|
+
automatedOffersControllerUpdatematcheddeliverydateonoffer(id: string, account: string, updateMatchedDeliveryDateDto: UpdateMatchedDeliveryDateDto, options?: {
|
|
115
|
+
headers: {
|
|
116
|
+
[name: string]: string;
|
|
117
|
+
};
|
|
118
|
+
}): Promise<{
|
|
119
|
+
response: http.IncomingMessage;
|
|
120
|
+
body?: any;
|
|
121
|
+
}>;
|
|
97
122
|
automatedOffersControllerUpdaterelistingstatus(automatedOfferId: string, id: string, account: string, body: object, options?: {
|
|
98
123
|
headers: {
|
|
99
124
|
[name: string]: string;
|