@tradecafe/offer-service-sdk 0.0.56 → 0.0.57
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 +68 -68
- package/dist/api/apis.d.ts +20 -20
- package/dist/api/apis.js +56 -56
- package/dist/api/automatedOffersApi.d.ts +156 -156
- package/dist/api/automatedOffersApi.js +1218 -1218
- package/dist/api/futureBidsApi.d.ts +65 -65
- package/dist/api/futureBidsApi.js +456 -456
- package/dist/api/healthApi.d.ts +32 -32
- package/dist/api/healthApi.js +174 -174
- package/dist/api/matchedOffersApi.d.ts +258 -258
- package/dist/api/matchedOffersApi.js +2008 -2008
- package/dist/api/offersApi.d.ts +200 -200
- package/dist/api/offersApi.js +1605 -1605
- package/dist/api.d.ts +2 -2
- package/dist/api.js +18 -18
- package/dist/model/addFutureBidDto.d.ts +17 -17
- package/dist/model/addFutureBidDto.js +35 -35
- package/dist/model/addMatchedDeliveryDateDto.d.ts +14 -14
- package/dist/model/addMatchedDeliveryDateDto.js +20 -20
- package/dist/model/associatedCostDto.d.ts +16 -16
- package/dist/model/associatedCostDto.js +30 -30
- package/dist/model/bulkAddRelistingDto.d.ts +16 -16
- package/dist/model/bulkAddRelistingDto.js +25 -25
- package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -16
- package/dist/model/bulkAddTertiaryCostsDto.js +25 -25
- package/dist/model/bulkChangeFreightRatesDto.d.ts +19 -19
- package/dist/model/bulkChangeFreightRatesDto.js +40 -40
- package/dist/model/bulkChangeIncotermDto.d.ts +16 -16
- package/dist/model/bulkChangeIncotermDto.js +30 -30
- package/dist/model/bulkChangeSellPriceItemDto.d.ts +20 -20
- package/dist/model/bulkChangeSellPriceItemDto.js +45 -45
- package/dist/model/bulkChangeSellPricesDto.d.ts +23 -18
- package/dist/model/bulkChangeSellPricesDto.js +55 -35
- package/dist/model/bulkChangeSellPricesDto.js.map +1 -1
- package/dist/model/bulkChangeSellingTraderDto.d.ts +16 -16
- package/dist/model/bulkChangeSellingTraderDto.js +30 -30
- package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.d.ts +15 -15
- package/dist/model/bulkDeleteBuyerSpecialInstructionsDto.js +25 -25
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.d.ts +19 -19
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js +45 -45
- package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -16
- package/dist/model/bulkUpdateDeliveryDatesDto.js +30 -30
- package/dist/model/bulkUpdateDocsCountryDto.d.ts +16 -16
- package/dist/model/bulkUpdateDocsCountryDto.js +30 -30
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.d.ts +15 -15
- package/dist/model/bulkUpdateMatchedDeliveryDatesDto.js +25 -25
- package/dist/model/costAmountDto.d.ts +17 -17
- package/dist/model/costAmountDto.js +35 -35
- package/dist/model/costAttributesDto.d.ts +32 -32
- package/dist/model/costAttributesDto.js +100 -100
- package/dist/model/costAttributesDtoAssociated.d.ts +16 -16
- package/dist/model/costAttributesDtoAssociated.js +30 -30
- package/dist/model/costAttributesDtoDefaultCost.d.ts +18 -18
- package/dist/model/costAttributesDtoDefaultCost.js +40 -40
- package/dist/model/costDto.d.ts +35 -35
- package/dist/model/costDto.js +110 -110
- package/dist/model/costDtoAmount.d.ts +17 -17
- package/dist/model/costDtoAmount.js +35 -35
- package/dist/model/costDtoAttributes.d.ts +32 -32
- package/dist/model/costDtoAttributes.js +100 -100
- package/dist/model/costDtoSource.d.ts +15 -15
- package/dist/model/costDtoSource.js +25 -25
- package/dist/model/costSourceDto.d.ts +15 -15
- package/dist/model/costSourceDto.js +25 -25
- package/dist/model/createAutomatedOfferDto.d.ts +124 -124
- package/dist/model/createAutomatedOfferDto.js +419 -419
- package/dist/model/createMatchedOfferDto.d.ts +85 -85
- package/dist/model/createMatchedOfferDto.js +315 -315
- package/dist/model/createMatchedOfferDtoAttributes.d.ts +34 -34
- package/dist/model/createMatchedOfferDtoAttributes.js +94 -94
- package/dist/model/createOfferDto.d.ts +111 -111
- package/dist/model/createOfferDto.js +397 -397
- package/dist/model/createOfferDtoAttributes.d.ts +52 -52
- package/dist/model/createOfferDtoAttributes.js +174 -174
- package/dist/model/createOfferDtoFormula.d.ts +19 -19
- package/dist/model/createOfferDtoFormula.js +40 -40
- package/dist/model/createOfferDtoPacking.d.ts +17 -17
- package/dist/model/createOfferDtoPacking.js +35 -35
- package/dist/model/createOfferDtoWeight.d.ts +15 -15
- package/dist/model/createOfferDtoWeight.js +25 -25
- package/dist/model/defaultCostDto.d.ts +18 -18
- package/dist/model/defaultCostDto.js +40 -40
- package/dist/model/formulaDto.d.ts +19 -19
- package/dist/model/formulaDto.js +40 -40
- package/dist/model/formulaLineDto.d.ts +17 -17
- package/dist/model/formulaLineDto.js +35 -35
- package/dist/model/generalAddressDto.d.ts +43 -43
- package/dist/model/generalAddressDto.js +165 -165
- package/dist/model/healthControllerPing200Response.d.ts +24 -24
- package/dist/model/healthControllerPing200Response.js +35 -35
- package/dist/model/healthControllerPing200ResponseInfoValue.d.ts +10 -10
- package/dist/model/healthControllerPing200ResponseInfoValue.js +36 -36
- package/dist/model/healthControllerPing503Response.d.ts +24 -24
- package/dist/model/healthControllerPing503Response.js +35 -35
- package/dist/model/matchedOfferAttributesDto.d.ts +34 -34
- package/dist/model/matchedOfferAttributesDto.js +94 -94
- package/dist/model/models.d.ts +101 -101
- package/dist/model/models.js +399 -399
- package/dist/model/offerAttributesDto.d.ts +52 -52
- package/dist/model/offerAttributesDto.js +174 -174
- package/dist/model/offerAttributesDtoEstablishment.d.ts +43 -43
- package/dist/model/offerAttributesDtoEstablishment.js +165 -165
- package/dist/model/overwriteItemDto.d.ts +22 -22
- package/dist/model/overwriteItemDto.js +55 -55
- package/dist/model/overwriteItemDtoWeight.d.ts +14 -14
- package/dist/model/overwriteItemDtoWeight.js +20 -20
- package/dist/model/packing.d.ts +17 -17
- package/dist/model/packing.js +35 -35
- package/dist/model/pinActionDto.d.ts +14 -14
- package/dist/model/pinActionDto.js +20 -20
- package/dist/model/relistingConfigDto.d.ts +17 -17
- package/dist/model/relistingConfigDto.js +35 -35
- package/dist/model/relistingDetailDto.d.ts +31 -31
- package/dist/model/relistingDetailDto.js +62 -62
- package/dist/model/relistingDetailDtoRandomConfig.d.ts +19 -19
- package/dist/model/relistingDetailDtoRandomConfig.js +45 -45
- package/dist/model/relistingRandomConfigDto.d.ts +19 -19
- package/dist/model/relistingRandomConfigDto.js +45 -45
- package/dist/model/updateFutureBidDto.d.ts +17 -17
- package/dist/model/updateFutureBidDto.js +35 -35
- package/dist/model/updateMatchedDeliveryDateDto.d.ts +15 -15
- package/dist/model/updateMatchedDeliveryDateDto.js +25 -25
- package/dist/model/userPin.d.ts +15 -15
- package/dist/model/userPin.js +25 -25
- package/dist/model/weight.d.ts +15 -15
- package/dist/model/weight.js +25 -25
- package/dist/model/weightDto.d.ts +14 -14
- package/dist/model/weightDto.js +20 -20
- package/model/bulkChangeSellPricesDto.ts +25 -0
- package/package.json +1 -1
|
@@ -1,2009 +1,2009 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.MatchedOffersApi = exports.MatchedOffersApiApiKeys = void 0;
|
|
43
|
-
var request_1 = __importDefault(require("request"));
|
|
44
|
-
var models_1 = require("../model/models");
|
|
45
|
-
var apis_1 = require("./apis");
|
|
46
|
-
var defaultBasePath = 'http://localhost';
|
|
47
|
-
var MatchedOffersApiApiKeys;
|
|
48
|
-
(function (MatchedOffersApiApiKeys) {
|
|
49
|
-
})(MatchedOffersApiApiKeys = exports.MatchedOffersApiApiKeys || (exports.MatchedOffersApiApiKeys = {}));
|
|
50
|
-
var MatchedOffersApi = (function () {
|
|
51
|
-
function MatchedOffersApi(basePathOrUsername, password, basePath) {
|
|
52
|
-
this._basePath = defaultBasePath;
|
|
53
|
-
this._defaultHeaders = {};
|
|
54
|
-
this._useQuerystring = false;
|
|
55
|
-
this.authentications = {
|
|
56
|
-
'default': new models_1.VoidAuth(),
|
|
57
|
-
};
|
|
58
|
-
this.interceptors = [];
|
|
59
|
-
if (password) {
|
|
60
|
-
if (basePath) {
|
|
61
|
-
this.basePath = basePath;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
if (basePathOrUsername) {
|
|
66
|
-
this.basePath = basePathOrUsername;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
Object.defineProperty(MatchedOffersApi.prototype, "useQuerystring", {
|
|
71
|
-
set: function (value) {
|
|
72
|
-
this._useQuerystring = value;
|
|
73
|
-
},
|
|
74
|
-
enumerable: false,
|
|
75
|
-
configurable: true
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(MatchedOffersApi.prototype, "basePath", {
|
|
78
|
-
get: function () {
|
|
79
|
-
return this._basePath;
|
|
80
|
-
},
|
|
81
|
-
set: function (basePath) {
|
|
82
|
-
this._basePath = basePath;
|
|
83
|
-
},
|
|
84
|
-
enumerable: false,
|
|
85
|
-
configurable: true
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(MatchedOffersApi.prototype, "defaultHeaders", {
|
|
88
|
-
get: function () {
|
|
89
|
-
return this._defaultHeaders;
|
|
90
|
-
},
|
|
91
|
-
set: function (defaultHeaders) {
|
|
92
|
-
this._defaultHeaders = defaultHeaders;
|
|
93
|
-
},
|
|
94
|
-
enumerable: false,
|
|
95
|
-
configurable: true
|
|
96
|
-
});
|
|
97
|
-
MatchedOffersApi.prototype.setDefaultAuthentication = function (auth) {
|
|
98
|
-
this.authentications.default = auth;
|
|
99
|
-
};
|
|
100
|
-
MatchedOffersApi.prototype.setApiKey = function (key, value) {
|
|
101
|
-
this.authentications[MatchedOffersApiApiKeys[key]].apiKey = value;
|
|
102
|
-
};
|
|
103
|
-
MatchedOffersApi.prototype.addInterceptor = function (interceptor) {
|
|
104
|
-
this.interceptors.push(interceptor);
|
|
105
|
-
};
|
|
106
|
-
MatchedOffersApi.prototype.matchedOffersControllerAddbid = function (id, userId, account, body, options) {
|
|
107
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
108
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
|
|
110
|
-
var _this = this;
|
|
111
|
-
return __generator(this, function (_b) {
|
|
112
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/{userId}/bid'
|
|
113
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
114
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
115
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
116
|
-
localVarQueryParameters = {};
|
|
117
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
118
|
-
localVarFormParams = {};
|
|
119
|
-
if (id === null || id === undefined) {
|
|
120
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerAddbid.');
|
|
121
|
-
}
|
|
122
|
-
if (userId === null || userId === undefined) {
|
|
123
|
-
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerAddbid.');
|
|
124
|
-
}
|
|
125
|
-
if (account === null || account === undefined) {
|
|
126
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerAddbid.');
|
|
127
|
-
}
|
|
128
|
-
if (body === null || body === undefined) {
|
|
129
|
-
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerAddbid.');
|
|
130
|
-
}
|
|
131
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
132
|
-
localVarUseFormData = false;
|
|
133
|
-
localVarRequestOptions = {
|
|
134
|
-
method: 'POST',
|
|
135
|
-
qs: localVarQueryParameters,
|
|
136
|
-
headers: localVarHeaderParams,
|
|
137
|
-
uri: localVarPath,
|
|
138
|
-
useQuerystring: this._useQuerystring,
|
|
139
|
-
json: true,
|
|
140
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
141
|
-
};
|
|
142
|
-
authenticationPromise = Promise.resolve();
|
|
143
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
144
|
-
interceptorPromise = authenticationPromise;
|
|
145
|
-
_loop_1 = function (interceptor) {
|
|
146
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
147
|
-
};
|
|
148
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
149
|
-
interceptor = _a[_i];
|
|
150
|
-
_loop_1(interceptor);
|
|
151
|
-
}
|
|
152
|
-
return [2, interceptorPromise.then(function () {
|
|
153
|
-
if (Object.keys(localVarFormParams).length) {
|
|
154
|
-
if (localVarUseFormData) {
|
|
155
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
return new Promise(function (resolve, reject) {
|
|
162
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
163
|
-
if (error) {
|
|
164
|
-
reject(error);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
168
|
-
resolve({ response: response, body: body });
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
})];
|
|
177
|
-
});
|
|
178
|
-
});
|
|
179
|
-
};
|
|
180
|
-
MatchedOffersApi.prototype.matchedOffersControllerAddpin = function (id, account, pinActionDto, options) {
|
|
181
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
182
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
184
|
-
var _this = this;
|
|
185
|
-
return __generator(this, function (_b) {
|
|
186
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/pin'
|
|
187
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
188
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
189
|
-
localVarQueryParameters = {};
|
|
190
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
191
|
-
localVarFormParams = {};
|
|
192
|
-
if (id === null || id === undefined) {
|
|
193
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerAddpin.');
|
|
194
|
-
}
|
|
195
|
-
if (account === null || account === undefined) {
|
|
196
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerAddpin.');
|
|
197
|
-
}
|
|
198
|
-
if (pinActionDto === null || pinActionDto === undefined) {
|
|
199
|
-
throw new Error('Required parameter pinActionDto was null or undefined when calling matchedOffersControllerAddpin.');
|
|
200
|
-
}
|
|
201
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
202
|
-
localVarUseFormData = false;
|
|
203
|
-
localVarRequestOptions = {
|
|
204
|
-
method: 'POST',
|
|
205
|
-
qs: localVarQueryParameters,
|
|
206
|
-
headers: localVarHeaderParams,
|
|
207
|
-
uri: localVarPath,
|
|
208
|
-
useQuerystring: this._useQuerystring,
|
|
209
|
-
json: true,
|
|
210
|
-
body: models_1.ObjectSerializer.serialize(pinActionDto, "PinActionDto")
|
|
211
|
-
};
|
|
212
|
-
authenticationPromise = Promise.resolve();
|
|
213
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
214
|
-
interceptorPromise = authenticationPromise;
|
|
215
|
-
_loop_2 = function (interceptor) {
|
|
216
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
217
|
-
};
|
|
218
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
219
|
-
interceptor = _a[_i];
|
|
220
|
-
_loop_2(interceptor);
|
|
221
|
-
}
|
|
222
|
-
return [2, interceptorPromise.then(function () {
|
|
223
|
-
if (Object.keys(localVarFormParams).length) {
|
|
224
|
-
if (localVarUseFormData) {
|
|
225
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return new Promise(function (resolve, reject) {
|
|
232
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
233
|
-
if (error) {
|
|
234
|
-
reject(error);
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
238
|
-
resolve({ response: response, body: body });
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
})];
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
};
|
|
250
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkaddtertiarycosts = function (account, userId, bulkAddTertiaryCostsDto, options) {
|
|
251
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
252
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
253
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
254
|
-
var _this = this;
|
|
255
|
-
return __generator(this, function (_b) {
|
|
256
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/tertiary-costs/{userId}'
|
|
257
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)))
|
|
258
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
259
|
-
localVarQueryParameters = {};
|
|
260
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
261
|
-
localVarFormParams = {};
|
|
262
|
-
if (account === null || account === undefined) {
|
|
263
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
264
|
-
}
|
|
265
|
-
if (userId === null || userId === undefined) {
|
|
266
|
-
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
267
|
-
}
|
|
268
|
-
if (bulkAddTertiaryCostsDto === null || bulkAddTertiaryCostsDto === undefined) {
|
|
269
|
-
throw new Error('Required parameter bulkAddTertiaryCostsDto was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
270
|
-
}
|
|
271
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
272
|
-
localVarUseFormData = false;
|
|
273
|
-
localVarRequestOptions = {
|
|
274
|
-
method: 'PUT',
|
|
275
|
-
qs: localVarQueryParameters,
|
|
276
|
-
headers: localVarHeaderParams,
|
|
277
|
-
uri: localVarPath,
|
|
278
|
-
useQuerystring: this._useQuerystring,
|
|
279
|
-
json: true,
|
|
280
|
-
body: models_1.ObjectSerializer.serialize(bulkAddTertiaryCostsDto, "BulkAddTertiaryCostsDto")
|
|
281
|
-
};
|
|
282
|
-
authenticationPromise = Promise.resolve();
|
|
283
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
284
|
-
interceptorPromise = authenticationPromise;
|
|
285
|
-
_loop_3 = function (interceptor) {
|
|
286
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
287
|
-
};
|
|
288
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
289
|
-
interceptor = _a[_i];
|
|
290
|
-
_loop_3(interceptor);
|
|
291
|
-
}
|
|
292
|
-
return [2, interceptorPromise.then(function () {
|
|
293
|
-
if (Object.keys(localVarFormParams).length) {
|
|
294
|
-
if (localVarUseFormData) {
|
|
295
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
296
|
-
}
|
|
297
|
-
else {
|
|
298
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return new Promise(function (resolve, reject) {
|
|
302
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
303
|
-
if (error) {
|
|
304
|
-
reject(error);
|
|
305
|
-
}
|
|
306
|
-
else {
|
|
307
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
308
|
-
resolve({ response: response, body: body });
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
});
|
|
316
|
-
})];
|
|
317
|
-
});
|
|
318
|
-
});
|
|
319
|
-
};
|
|
320
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkchangefreightrates = function (account, bulkChangeFreightRatesDto, options) {
|
|
321
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
322
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
324
|
-
var _this = this;
|
|
325
|
-
return __generator(this, function (_b) {
|
|
326
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/freight-rates'
|
|
327
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
328
|
-
localVarQueryParameters = {};
|
|
329
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
330
|
-
localVarFormParams = {};
|
|
331
|
-
if (account === null || account === undefined) {
|
|
332
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangefreightrates.');
|
|
333
|
-
}
|
|
334
|
-
if (bulkChangeFreightRatesDto === null || bulkChangeFreightRatesDto === undefined) {
|
|
335
|
-
throw new Error('Required parameter bulkChangeFreightRatesDto was null or undefined when calling matchedOffersControllerBulkchangefreightrates.');
|
|
336
|
-
}
|
|
337
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
338
|
-
localVarUseFormData = false;
|
|
339
|
-
localVarRequestOptions = {
|
|
340
|
-
method: 'PUT',
|
|
341
|
-
qs: localVarQueryParameters,
|
|
342
|
-
headers: localVarHeaderParams,
|
|
343
|
-
uri: localVarPath,
|
|
344
|
-
useQuerystring: this._useQuerystring,
|
|
345
|
-
json: true,
|
|
346
|
-
body: models_1.ObjectSerializer.serialize(bulkChangeFreightRatesDto, "BulkChangeFreightRatesDto")
|
|
347
|
-
};
|
|
348
|
-
authenticationPromise = Promise.resolve();
|
|
349
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
350
|
-
interceptorPromise = authenticationPromise;
|
|
351
|
-
_loop_4 = function (interceptor) {
|
|
352
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
353
|
-
};
|
|
354
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
355
|
-
interceptor = _a[_i];
|
|
356
|
-
_loop_4(interceptor);
|
|
357
|
-
}
|
|
358
|
-
return [2, interceptorPromise.then(function () {
|
|
359
|
-
if (Object.keys(localVarFormParams).length) {
|
|
360
|
-
if (localVarUseFormData) {
|
|
361
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
return new Promise(function (resolve, reject) {
|
|
368
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
369
|
-
if (error) {
|
|
370
|
-
reject(error);
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
374
|
-
resolve({ response: response, body: body });
|
|
375
|
-
}
|
|
376
|
-
else {
|
|
377
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
});
|
|
382
|
-
})];
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkchangeincoterm = function (account, bulkChangeIncotermDto, options) {
|
|
387
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
388
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
389
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
390
|
-
var _this = this;
|
|
391
|
-
return __generator(this, function (_b) {
|
|
392
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/incoterm'
|
|
393
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
394
|
-
localVarQueryParameters = {};
|
|
395
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
396
|
-
localVarFormParams = {};
|
|
397
|
-
if (account === null || account === undefined) {
|
|
398
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangeincoterm.');
|
|
399
|
-
}
|
|
400
|
-
if (bulkChangeIncotermDto === null || bulkChangeIncotermDto === undefined) {
|
|
401
|
-
throw new Error('Required parameter bulkChangeIncotermDto was null or undefined when calling matchedOffersControllerBulkchangeincoterm.');
|
|
402
|
-
}
|
|
403
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
404
|
-
localVarUseFormData = false;
|
|
405
|
-
localVarRequestOptions = {
|
|
406
|
-
method: 'PUT',
|
|
407
|
-
qs: localVarQueryParameters,
|
|
408
|
-
headers: localVarHeaderParams,
|
|
409
|
-
uri: localVarPath,
|
|
410
|
-
useQuerystring: this._useQuerystring,
|
|
411
|
-
json: true,
|
|
412
|
-
body: models_1.ObjectSerializer.serialize(bulkChangeIncotermDto, "BulkChangeIncotermDto")
|
|
413
|
-
};
|
|
414
|
-
authenticationPromise = Promise.resolve();
|
|
415
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
416
|
-
interceptorPromise = authenticationPromise;
|
|
417
|
-
_loop_5 = function (interceptor) {
|
|
418
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
419
|
-
};
|
|
420
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
421
|
-
interceptor = _a[_i];
|
|
422
|
-
_loop_5(interceptor);
|
|
423
|
-
}
|
|
424
|
-
return [2, interceptorPromise.then(function () {
|
|
425
|
-
if (Object.keys(localVarFormParams).length) {
|
|
426
|
-
if (localVarUseFormData) {
|
|
427
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
return new Promise(function (resolve, reject) {
|
|
434
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
435
|
-
if (error) {
|
|
436
|
-
reject(error);
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
440
|
-
resolve({ response: response, body: body });
|
|
441
|
-
}
|
|
442
|
-
else {
|
|
443
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
});
|
|
448
|
-
})];
|
|
449
|
-
});
|
|
450
|
-
});
|
|
451
|
-
};
|
|
452
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkchangesellingtrader = function (account, bulkChangeSellingTraderDto, options) {
|
|
453
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
454
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
455
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
456
|
-
var _this = this;
|
|
457
|
-
return __generator(this, function (_b) {
|
|
458
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/selling-trader'
|
|
459
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
460
|
-
localVarQueryParameters = {};
|
|
461
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
462
|
-
localVarFormParams = {};
|
|
463
|
-
if (account === null || account === undefined) {
|
|
464
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
|
|
465
|
-
}
|
|
466
|
-
if (bulkChangeSellingTraderDto === null || bulkChangeSellingTraderDto === undefined) {
|
|
467
|
-
throw new Error('Required parameter bulkChangeSellingTraderDto was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
|
|
468
|
-
}
|
|
469
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
470
|
-
localVarUseFormData = false;
|
|
471
|
-
localVarRequestOptions = {
|
|
472
|
-
method: 'PUT',
|
|
473
|
-
qs: localVarQueryParameters,
|
|
474
|
-
headers: localVarHeaderParams,
|
|
475
|
-
uri: localVarPath,
|
|
476
|
-
useQuerystring: this._useQuerystring,
|
|
477
|
-
json: true,
|
|
478
|
-
body: models_1.ObjectSerializer.serialize(bulkChangeSellingTraderDto, "BulkChangeSellingTraderDto")
|
|
479
|
-
};
|
|
480
|
-
authenticationPromise = Promise.resolve();
|
|
481
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
482
|
-
interceptorPromise = authenticationPromise;
|
|
483
|
-
_loop_6 = function (interceptor) {
|
|
484
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
485
|
-
};
|
|
486
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
487
|
-
interceptor = _a[_i];
|
|
488
|
-
_loop_6(interceptor);
|
|
489
|
-
}
|
|
490
|
-
return [2, interceptorPromise.then(function () {
|
|
491
|
-
if (Object.keys(localVarFormParams).length) {
|
|
492
|
-
if (localVarUseFormData) {
|
|
493
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
494
|
-
}
|
|
495
|
-
else {
|
|
496
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
return new Promise(function (resolve, reject) {
|
|
500
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
501
|
-
if (error) {
|
|
502
|
-
reject(error);
|
|
503
|
-
}
|
|
504
|
-
else {
|
|
505
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
506
|
-
resolve({ response: response, body: body });
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
});
|
|
514
|
-
})];
|
|
515
|
-
});
|
|
516
|
-
});
|
|
517
|
-
};
|
|
518
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkchangesellprices = function (account, bulkChangeSellPricesDto, options) {
|
|
519
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
520
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
522
|
-
var _this = this;
|
|
523
|
-
return __generator(this, function (_b) {
|
|
524
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/sell-prices'
|
|
525
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
526
|
-
localVarQueryParameters = {};
|
|
527
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
528
|
-
localVarFormParams = {};
|
|
529
|
-
if (account === null || account === undefined) {
|
|
530
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
531
|
-
}
|
|
532
|
-
if (bulkChangeSellPricesDto === null || bulkChangeSellPricesDto === undefined) {
|
|
533
|
-
throw new Error('Required parameter bulkChangeSellPricesDto was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
534
|
-
}
|
|
535
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
536
|
-
localVarUseFormData = false;
|
|
537
|
-
localVarRequestOptions = {
|
|
538
|
-
method: 'PUT',
|
|
539
|
-
qs: localVarQueryParameters,
|
|
540
|
-
headers: localVarHeaderParams,
|
|
541
|
-
uri: localVarPath,
|
|
542
|
-
useQuerystring: this._useQuerystring,
|
|
543
|
-
json: true,
|
|
544
|
-
body: models_1.ObjectSerializer.serialize(bulkChangeSellPricesDto, "BulkChangeSellPricesDto")
|
|
545
|
-
};
|
|
546
|
-
authenticationPromise = Promise.resolve();
|
|
547
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
548
|
-
interceptorPromise = authenticationPromise;
|
|
549
|
-
_loop_7 = function (interceptor) {
|
|
550
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
551
|
-
};
|
|
552
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
553
|
-
interceptor = _a[_i];
|
|
554
|
-
_loop_7(interceptor);
|
|
555
|
-
}
|
|
556
|
-
return [2, interceptorPromise.then(function () {
|
|
557
|
-
if (Object.keys(localVarFormParams).length) {
|
|
558
|
-
if (localVarUseFormData) {
|
|
559
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
return new Promise(function (resolve, reject) {
|
|
566
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
567
|
-
if (error) {
|
|
568
|
-
reject(error);
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
572
|
-
resolve({ response: response, body: body });
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
575
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
});
|
|
579
|
-
});
|
|
580
|
-
})];
|
|
581
|
-
});
|
|
582
|
-
});
|
|
583
|
-
};
|
|
584
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkdeletebuyerspecialinstructions = function (account, bulkDeleteBuyerSpecialInstructionsDto, options) {
|
|
585
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
586
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
587
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
588
|
-
var _this = this;
|
|
589
|
-
return __generator(this, function (_b) {
|
|
590
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
591
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
592
|
-
localVarQueryParameters = {};
|
|
593
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
594
|
-
localVarFormParams = {};
|
|
595
|
-
if (account === null || account === undefined) {
|
|
596
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
|
|
597
|
-
}
|
|
598
|
-
if (bulkDeleteBuyerSpecialInstructionsDto === null || bulkDeleteBuyerSpecialInstructionsDto === undefined) {
|
|
599
|
-
throw new Error('Required parameter bulkDeleteBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
|
|
600
|
-
}
|
|
601
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
602
|
-
localVarUseFormData = false;
|
|
603
|
-
localVarRequestOptions = {
|
|
604
|
-
method: 'DELETE',
|
|
605
|
-
qs: localVarQueryParameters,
|
|
606
|
-
headers: localVarHeaderParams,
|
|
607
|
-
uri: localVarPath,
|
|
608
|
-
useQuerystring: this._useQuerystring,
|
|
609
|
-
json: true,
|
|
610
|
-
body: models_1.ObjectSerializer.serialize(bulkDeleteBuyerSpecialInstructionsDto, "BulkDeleteBuyerSpecialInstructionsDto")
|
|
611
|
-
};
|
|
612
|
-
authenticationPromise = Promise.resolve();
|
|
613
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
614
|
-
interceptorPromise = authenticationPromise;
|
|
615
|
-
_loop_8 = function (interceptor) {
|
|
616
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
617
|
-
};
|
|
618
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
619
|
-
interceptor = _a[_i];
|
|
620
|
-
_loop_8(interceptor);
|
|
621
|
-
}
|
|
622
|
-
return [2, interceptorPromise.then(function () {
|
|
623
|
-
if (Object.keys(localVarFormParams).length) {
|
|
624
|
-
if (localVarUseFormData) {
|
|
625
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
return new Promise(function (resolve, reject) {
|
|
632
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
633
|
-
if (error) {
|
|
634
|
-
reject(error);
|
|
635
|
-
}
|
|
636
|
-
else {
|
|
637
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
638
|
-
resolve({ response: response, body: body });
|
|
639
|
-
}
|
|
640
|
-
else {
|
|
641
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
});
|
|
645
|
-
});
|
|
646
|
-
})];
|
|
647
|
-
});
|
|
648
|
-
});
|
|
649
|
-
};
|
|
650
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatebuyerspecialinstructions = function (account, bulkUpdateBuyerSpecialInstructionsDto, options) {
|
|
651
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
652
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
653
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
654
|
-
var _this = this;
|
|
655
|
-
return __generator(this, function (_b) {
|
|
656
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
657
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
658
|
-
localVarQueryParameters = {};
|
|
659
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
660
|
-
localVarFormParams = {};
|
|
661
|
-
if (account === null || account === undefined) {
|
|
662
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
663
|
-
}
|
|
664
|
-
if (bulkUpdateBuyerSpecialInstructionsDto === null || bulkUpdateBuyerSpecialInstructionsDto === undefined) {
|
|
665
|
-
throw new Error('Required parameter bulkUpdateBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
666
|
-
}
|
|
667
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
668
|
-
localVarUseFormData = false;
|
|
669
|
-
localVarRequestOptions = {
|
|
670
|
-
method: 'PUT',
|
|
671
|
-
qs: localVarQueryParameters,
|
|
672
|
-
headers: localVarHeaderParams,
|
|
673
|
-
uri: localVarPath,
|
|
674
|
-
useQuerystring: this._useQuerystring,
|
|
675
|
-
json: true,
|
|
676
|
-
body: models_1.ObjectSerializer.serialize(bulkUpdateBuyerSpecialInstructionsDto, "BulkUpdateBuyerSpecialInstructionsDto")
|
|
677
|
-
};
|
|
678
|
-
authenticationPromise = Promise.resolve();
|
|
679
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
680
|
-
interceptorPromise = authenticationPromise;
|
|
681
|
-
_loop_9 = function (interceptor) {
|
|
682
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
683
|
-
};
|
|
684
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
685
|
-
interceptor = _a[_i];
|
|
686
|
-
_loop_9(interceptor);
|
|
687
|
-
}
|
|
688
|
-
return [2, interceptorPromise.then(function () {
|
|
689
|
-
if (Object.keys(localVarFormParams).length) {
|
|
690
|
-
if (localVarUseFormData) {
|
|
691
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
692
|
-
}
|
|
693
|
-
else {
|
|
694
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
return new Promise(function (resolve, reject) {
|
|
698
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
699
|
-
if (error) {
|
|
700
|
-
reject(error);
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
704
|
-
resolve({ response: response, body: body });
|
|
705
|
-
}
|
|
706
|
-
else {
|
|
707
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
});
|
|
712
|
-
})];
|
|
713
|
-
});
|
|
714
|
-
});
|
|
715
|
-
};
|
|
716
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatedeliverydates = function (account, bulkUpdateDeliveryDatesDto, options) {
|
|
717
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
718
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
719
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
720
|
-
var _this = this;
|
|
721
|
-
return __generator(this, function (_b) {
|
|
722
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/delivery-dates'
|
|
723
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
724
|
-
localVarQueryParameters = {};
|
|
725
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
726
|
-
localVarFormParams = {};
|
|
727
|
-
if (account === null || account === undefined) {
|
|
728
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
729
|
-
}
|
|
730
|
-
if (bulkUpdateDeliveryDatesDto === null || bulkUpdateDeliveryDatesDto === undefined) {
|
|
731
|
-
throw new Error('Required parameter bulkUpdateDeliveryDatesDto was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
732
|
-
}
|
|
733
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
734
|
-
localVarUseFormData = false;
|
|
735
|
-
localVarRequestOptions = {
|
|
736
|
-
method: 'PUT',
|
|
737
|
-
qs: localVarQueryParameters,
|
|
738
|
-
headers: localVarHeaderParams,
|
|
739
|
-
uri: localVarPath,
|
|
740
|
-
useQuerystring: this._useQuerystring,
|
|
741
|
-
json: true,
|
|
742
|
-
body: models_1.ObjectSerializer.serialize(bulkUpdateDeliveryDatesDto, "BulkUpdateDeliveryDatesDto")
|
|
743
|
-
};
|
|
744
|
-
authenticationPromise = Promise.resolve();
|
|
745
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
746
|
-
interceptorPromise = authenticationPromise;
|
|
747
|
-
_loop_10 = function (interceptor) {
|
|
748
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
749
|
-
};
|
|
750
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
751
|
-
interceptor = _a[_i];
|
|
752
|
-
_loop_10(interceptor);
|
|
753
|
-
}
|
|
754
|
-
return [2, interceptorPromise.then(function () {
|
|
755
|
-
if (Object.keys(localVarFormParams).length) {
|
|
756
|
-
if (localVarUseFormData) {
|
|
757
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
758
|
-
}
|
|
759
|
-
else {
|
|
760
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
return new Promise(function (resolve, reject) {
|
|
764
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
765
|
-
if (error) {
|
|
766
|
-
reject(error);
|
|
767
|
-
}
|
|
768
|
-
else {
|
|
769
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
770
|
-
resolve({ response: response, body: body });
|
|
771
|
-
}
|
|
772
|
-
else {
|
|
773
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
});
|
|
777
|
-
});
|
|
778
|
-
})];
|
|
779
|
-
});
|
|
780
|
-
});
|
|
781
|
-
};
|
|
782
|
-
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatedocscountry = function (account, bulkUpdateDocsCountryDto, options) {
|
|
783
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
784
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
785
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
786
|
-
var _this = this;
|
|
787
|
-
return __generator(this, function (_b) {
|
|
788
|
-
localVarPath = this.basePath + '/matched-offers/{account}/bulk/docs-country'
|
|
789
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
790
|
-
localVarQueryParameters = {};
|
|
791
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
792
|
-
localVarFormParams = {};
|
|
793
|
-
if (account === null || account === undefined) {
|
|
794
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
795
|
-
}
|
|
796
|
-
if (bulkUpdateDocsCountryDto === null || bulkUpdateDocsCountryDto === undefined) {
|
|
797
|
-
throw new Error('Required parameter bulkUpdateDocsCountryDto was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
798
|
-
}
|
|
799
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
800
|
-
localVarUseFormData = false;
|
|
801
|
-
localVarRequestOptions = {
|
|
802
|
-
method: 'PUT',
|
|
803
|
-
qs: localVarQueryParameters,
|
|
804
|
-
headers: localVarHeaderParams,
|
|
805
|
-
uri: localVarPath,
|
|
806
|
-
useQuerystring: this._useQuerystring,
|
|
807
|
-
json: true,
|
|
808
|
-
body: models_1.ObjectSerializer.serialize(bulkUpdateDocsCountryDto, "BulkUpdateDocsCountryDto")
|
|
809
|
-
};
|
|
810
|
-
authenticationPromise = Promise.resolve();
|
|
811
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
812
|
-
interceptorPromise = authenticationPromise;
|
|
813
|
-
_loop_11 = function (interceptor) {
|
|
814
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
815
|
-
};
|
|
816
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
817
|
-
interceptor = _a[_i];
|
|
818
|
-
_loop_11(interceptor);
|
|
819
|
-
}
|
|
820
|
-
return [2, interceptorPromise.then(function () {
|
|
821
|
-
if (Object.keys(localVarFormParams).length) {
|
|
822
|
-
if (localVarUseFormData) {
|
|
823
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
824
|
-
}
|
|
825
|
-
else {
|
|
826
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
return new Promise(function (resolve, reject) {
|
|
830
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
831
|
-
if (error) {
|
|
832
|
-
reject(error);
|
|
833
|
-
}
|
|
834
|
-
else {
|
|
835
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
836
|
-
resolve({ response: response, body: body });
|
|
837
|
-
}
|
|
838
|
-
else {
|
|
839
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
});
|
|
843
|
-
});
|
|
844
|
-
})];
|
|
845
|
-
});
|
|
846
|
-
});
|
|
847
|
-
};
|
|
848
|
-
MatchedOffersApi.prototype.matchedOffersControllerCountsbystatus = function (account, options) {
|
|
849
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
850
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
851
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
852
|
-
var _this = this;
|
|
853
|
-
return __generator(this, function (_b) {
|
|
854
|
-
localVarPath = this.basePath + '/matched-offers/{account}/counts-by-status'
|
|
855
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
856
|
-
localVarQueryParameters = {};
|
|
857
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
858
|
-
localVarFormParams = {};
|
|
859
|
-
if (account === null || account === undefined) {
|
|
860
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerCountsbystatus.');
|
|
861
|
-
}
|
|
862
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
863
|
-
localVarUseFormData = false;
|
|
864
|
-
localVarRequestOptions = {
|
|
865
|
-
method: 'GET',
|
|
866
|
-
qs: localVarQueryParameters,
|
|
867
|
-
headers: localVarHeaderParams,
|
|
868
|
-
uri: localVarPath,
|
|
869
|
-
useQuerystring: this._useQuerystring,
|
|
870
|
-
json: true,
|
|
871
|
-
};
|
|
872
|
-
authenticationPromise = Promise.resolve();
|
|
873
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
874
|
-
interceptorPromise = authenticationPromise;
|
|
875
|
-
_loop_12 = function (interceptor) {
|
|
876
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
877
|
-
};
|
|
878
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
879
|
-
interceptor = _a[_i];
|
|
880
|
-
_loop_12(interceptor);
|
|
881
|
-
}
|
|
882
|
-
return [2, interceptorPromise.then(function () {
|
|
883
|
-
if (Object.keys(localVarFormParams).length) {
|
|
884
|
-
if (localVarUseFormData) {
|
|
885
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
886
|
-
}
|
|
887
|
-
else {
|
|
888
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
return new Promise(function (resolve, reject) {
|
|
892
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
893
|
-
if (error) {
|
|
894
|
-
reject(error);
|
|
895
|
-
}
|
|
896
|
-
else {
|
|
897
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
898
|
-
resolve({ response: response, body: body });
|
|
899
|
-
}
|
|
900
|
-
else {
|
|
901
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
});
|
|
905
|
-
});
|
|
906
|
-
})];
|
|
907
|
-
});
|
|
908
|
-
});
|
|
909
|
-
};
|
|
910
|
-
MatchedOffersApi.prototype.matchedOffersControllerCreate = function (account, createMatchedOfferDto, options) {
|
|
911
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
912
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
913
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
914
|
-
var _this = this;
|
|
915
|
-
return __generator(this, function (_b) {
|
|
916
|
-
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
917
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
918
|
-
localVarQueryParameters = {};
|
|
919
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
920
|
-
localVarFormParams = {};
|
|
921
|
-
if (account === null || account === undefined) {
|
|
922
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerCreate.');
|
|
923
|
-
}
|
|
924
|
-
if (createMatchedOfferDto === null || createMatchedOfferDto === undefined) {
|
|
925
|
-
throw new Error('Required parameter createMatchedOfferDto was null or undefined when calling matchedOffersControllerCreate.');
|
|
926
|
-
}
|
|
927
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
928
|
-
localVarUseFormData = false;
|
|
929
|
-
localVarRequestOptions = {
|
|
930
|
-
method: 'POST',
|
|
931
|
-
qs: localVarQueryParameters,
|
|
932
|
-
headers: localVarHeaderParams,
|
|
933
|
-
uri: localVarPath,
|
|
934
|
-
useQuerystring: this._useQuerystring,
|
|
935
|
-
json: true,
|
|
936
|
-
body: models_1.ObjectSerializer.serialize(createMatchedOfferDto, "CreateMatchedOfferDto")
|
|
937
|
-
};
|
|
938
|
-
authenticationPromise = Promise.resolve();
|
|
939
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
940
|
-
interceptorPromise = authenticationPromise;
|
|
941
|
-
_loop_13 = function (interceptor) {
|
|
942
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
943
|
-
};
|
|
944
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
945
|
-
interceptor = _a[_i];
|
|
946
|
-
_loop_13(interceptor);
|
|
947
|
-
}
|
|
948
|
-
return [2, interceptorPromise.then(function () {
|
|
949
|
-
if (Object.keys(localVarFormParams).length) {
|
|
950
|
-
if (localVarUseFormData) {
|
|
951
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
952
|
-
}
|
|
953
|
-
else {
|
|
954
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
return new Promise(function (resolve, reject) {
|
|
958
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
959
|
-
if (error) {
|
|
960
|
-
reject(error);
|
|
961
|
-
}
|
|
962
|
-
else {
|
|
963
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
964
|
-
resolve({ response: response, body: body });
|
|
965
|
-
}
|
|
966
|
-
else {
|
|
967
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
|
-
});
|
|
972
|
-
})];
|
|
973
|
-
});
|
|
974
|
-
});
|
|
975
|
-
};
|
|
976
|
-
MatchedOffersApi.prototype.matchedOffersControllerDeletebid = function (id, userId, account, options) {
|
|
977
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
978
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
979
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
980
|
-
var _this = this;
|
|
981
|
-
return __generator(this, function (_b) {
|
|
982
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/{userId}/bid'
|
|
983
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
984
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
985
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
986
|
-
localVarQueryParameters = {};
|
|
987
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
988
|
-
localVarFormParams = {};
|
|
989
|
-
if (id === null || id === undefined) {
|
|
990
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerDeletebid.');
|
|
991
|
-
}
|
|
992
|
-
if (userId === null || userId === undefined) {
|
|
993
|
-
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerDeletebid.');
|
|
994
|
-
}
|
|
995
|
-
if (account === null || account === undefined) {
|
|
996
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerDeletebid.');
|
|
997
|
-
}
|
|
998
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
999
|
-
localVarUseFormData = false;
|
|
1000
|
-
localVarRequestOptions = {
|
|
1001
|
-
method: 'DELETE',
|
|
1002
|
-
qs: localVarQueryParameters,
|
|
1003
|
-
headers: localVarHeaderParams,
|
|
1004
|
-
uri: localVarPath,
|
|
1005
|
-
useQuerystring: this._useQuerystring,
|
|
1006
|
-
json: true,
|
|
1007
|
-
};
|
|
1008
|
-
authenticationPromise = Promise.resolve();
|
|
1009
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1010
|
-
interceptorPromise = authenticationPromise;
|
|
1011
|
-
_loop_14 = function (interceptor) {
|
|
1012
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1013
|
-
};
|
|
1014
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1015
|
-
interceptor = _a[_i];
|
|
1016
|
-
_loop_14(interceptor);
|
|
1017
|
-
}
|
|
1018
|
-
return [2, interceptorPromise.then(function () {
|
|
1019
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1020
|
-
if (localVarUseFormData) {
|
|
1021
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1022
|
-
}
|
|
1023
|
-
else {
|
|
1024
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
return new Promise(function (resolve, reject) {
|
|
1028
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1029
|
-
if (error) {
|
|
1030
|
-
reject(error);
|
|
1031
|
-
}
|
|
1032
|
-
else {
|
|
1033
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1034
|
-
resolve({ response: response, body: body });
|
|
1035
|
-
}
|
|
1036
|
-
else {
|
|
1037
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
});
|
|
1041
|
-
});
|
|
1042
|
-
})];
|
|
1043
|
-
});
|
|
1044
|
-
});
|
|
1045
|
-
};
|
|
1046
|
-
MatchedOffersApi.prototype.matchedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
1047
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1048
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1049
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
1050
|
-
var _this = this;
|
|
1051
|
-
return __generator(this, function (_b) {
|
|
1052
|
-
localVarPath = this.basePath + '/matched-offers/{account}/search'
|
|
1053
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1054
|
-
localVarQueryParameters = {};
|
|
1055
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1056
|
-
localVarFormParams = {};
|
|
1057
|
-
if (account === null || account === undefined) {
|
|
1058
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFilter.');
|
|
1059
|
-
}
|
|
1060
|
-
if (skip !== undefined) {
|
|
1061
|
-
localVarQueryParameters['skip'] = models_1.ObjectSerializer.serialize(skip, "number");
|
|
1062
|
-
}
|
|
1063
|
-
if (limit !== undefined) {
|
|
1064
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1065
|
-
}
|
|
1066
|
-
if (sort !== undefined) {
|
|
1067
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "string");
|
|
1068
|
-
}
|
|
1069
|
-
if (fields !== undefined) {
|
|
1070
|
-
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(fields, "Array<string>");
|
|
1071
|
-
}
|
|
1072
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1073
|
-
localVarUseFormData = false;
|
|
1074
|
-
localVarRequestOptions = {
|
|
1075
|
-
method: 'POST',
|
|
1076
|
-
qs: localVarQueryParameters,
|
|
1077
|
-
headers: localVarHeaderParams,
|
|
1078
|
-
uri: localVarPath,
|
|
1079
|
-
useQuerystring: this._useQuerystring,
|
|
1080
|
-
json: true,
|
|
1081
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1082
|
-
};
|
|
1083
|
-
authenticationPromise = Promise.resolve();
|
|
1084
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1085
|
-
interceptorPromise = authenticationPromise;
|
|
1086
|
-
_loop_15 = function (interceptor) {
|
|
1087
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1088
|
-
};
|
|
1089
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1090
|
-
interceptor = _a[_i];
|
|
1091
|
-
_loop_15(interceptor);
|
|
1092
|
-
}
|
|
1093
|
-
return [2, interceptorPromise.then(function () {
|
|
1094
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1095
|
-
if (localVarUseFormData) {
|
|
1096
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1097
|
-
}
|
|
1098
|
-
else {
|
|
1099
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
return new Promise(function (resolve, reject) {
|
|
1103
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1104
|
-
if (error) {
|
|
1105
|
-
reject(error);
|
|
1106
|
-
}
|
|
1107
|
-
else {
|
|
1108
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1109
|
-
resolve({ response: response, body: body });
|
|
1110
|
-
}
|
|
1111
|
-
else {
|
|
1112
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
});
|
|
1116
|
-
});
|
|
1117
|
-
})];
|
|
1118
|
-
});
|
|
1119
|
-
});
|
|
1120
|
-
};
|
|
1121
|
-
MatchedOffersApi.prototype.matchedOffersControllerFindall = function (account, createMatchedOfferDto, skip, limit, sort, fields, options) {
|
|
1122
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1123
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1124
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1125
|
-
var _this = this;
|
|
1126
|
-
return __generator(this, function (_b) {
|
|
1127
|
-
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
1128
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1129
|
-
localVarQueryParameters = {};
|
|
1130
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1131
|
-
localVarFormParams = {};
|
|
1132
|
-
if (account === null || account === undefined) {
|
|
1133
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindall.');
|
|
1134
|
-
}
|
|
1135
|
-
if (createMatchedOfferDto === null || createMatchedOfferDto === undefined) {
|
|
1136
|
-
throw new Error('Required parameter createMatchedOfferDto was null or undefined when calling matchedOffersControllerFindall.');
|
|
1137
|
-
}
|
|
1138
|
-
if (skip !== undefined) {
|
|
1139
|
-
localVarQueryParameters['skip'] = models_1.ObjectSerializer.serialize(skip, "number");
|
|
1140
|
-
}
|
|
1141
|
-
if (limit !== undefined) {
|
|
1142
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1143
|
-
}
|
|
1144
|
-
if (sort !== undefined) {
|
|
1145
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "string");
|
|
1146
|
-
}
|
|
1147
|
-
if (fields !== undefined) {
|
|
1148
|
-
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(fields, "Array<string>");
|
|
1149
|
-
}
|
|
1150
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1151
|
-
localVarUseFormData = false;
|
|
1152
|
-
localVarRequestOptions = {
|
|
1153
|
-
method: 'GET',
|
|
1154
|
-
qs: localVarQueryParameters,
|
|
1155
|
-
headers: localVarHeaderParams,
|
|
1156
|
-
uri: localVarPath,
|
|
1157
|
-
useQuerystring: this._useQuerystring,
|
|
1158
|
-
json: true,
|
|
1159
|
-
body: models_1.ObjectSerializer.serialize(createMatchedOfferDto, "CreateMatchedOfferDto")
|
|
1160
|
-
};
|
|
1161
|
-
authenticationPromise = Promise.resolve();
|
|
1162
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1163
|
-
interceptorPromise = authenticationPromise;
|
|
1164
|
-
_loop_16 = function (interceptor) {
|
|
1165
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1166
|
-
};
|
|
1167
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1168
|
-
interceptor = _a[_i];
|
|
1169
|
-
_loop_16(interceptor);
|
|
1170
|
-
}
|
|
1171
|
-
return [2, interceptorPromise.then(function () {
|
|
1172
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1173
|
-
if (localVarUseFormData) {
|
|
1174
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1175
|
-
}
|
|
1176
|
-
else {
|
|
1177
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
return new Promise(function (resolve, reject) {
|
|
1181
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1182
|
-
if (error) {
|
|
1183
|
-
reject(error);
|
|
1184
|
-
}
|
|
1185
|
-
else {
|
|
1186
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1187
|
-
resolve({ response: response, body: body });
|
|
1188
|
-
}
|
|
1189
|
-
else {
|
|
1190
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
});
|
|
1195
|
-
})];
|
|
1196
|
-
});
|
|
1197
|
-
});
|
|
1198
|
-
};
|
|
1199
|
-
MatchedOffersApi.prototype.matchedOffersControllerFindcountries = function (account, options) {
|
|
1200
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1201
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1202
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
1203
|
-
var _this = this;
|
|
1204
|
-
return __generator(this, function (_b) {
|
|
1205
|
-
localVarPath = this.basePath + '/matched-offers/{account}/countries'
|
|
1206
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1207
|
-
localVarQueryParameters = {};
|
|
1208
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1209
|
-
localVarFormParams = {};
|
|
1210
|
-
if (account === null || account === undefined) {
|
|
1211
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindcountries.');
|
|
1212
|
-
}
|
|
1213
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1214
|
-
localVarUseFormData = false;
|
|
1215
|
-
localVarRequestOptions = {
|
|
1216
|
-
method: 'GET',
|
|
1217
|
-
qs: localVarQueryParameters,
|
|
1218
|
-
headers: localVarHeaderParams,
|
|
1219
|
-
uri: localVarPath,
|
|
1220
|
-
useQuerystring: this._useQuerystring,
|
|
1221
|
-
json: true,
|
|
1222
|
-
};
|
|
1223
|
-
authenticationPromise = Promise.resolve();
|
|
1224
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1225
|
-
interceptorPromise = authenticationPromise;
|
|
1226
|
-
_loop_17 = function (interceptor) {
|
|
1227
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1228
|
-
};
|
|
1229
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1230
|
-
interceptor = _a[_i];
|
|
1231
|
-
_loop_17(interceptor);
|
|
1232
|
-
}
|
|
1233
|
-
return [2, interceptorPromise.then(function () {
|
|
1234
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1235
|
-
if (localVarUseFormData) {
|
|
1236
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1237
|
-
}
|
|
1238
|
-
else {
|
|
1239
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
return new Promise(function (resolve, reject) {
|
|
1243
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1244
|
-
if (error) {
|
|
1245
|
-
reject(error);
|
|
1246
|
-
}
|
|
1247
|
-
else {
|
|
1248
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1249
|
-
resolve({ response: response, body: body });
|
|
1250
|
-
}
|
|
1251
|
-
else {
|
|
1252
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
});
|
|
1256
|
-
});
|
|
1257
|
-
})];
|
|
1258
|
-
});
|
|
1259
|
-
});
|
|
1260
|
-
};
|
|
1261
|
-
MatchedOffersApi.prototype.matchedOffersControllerFindone = function (id, account, fields, options) {
|
|
1262
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1263
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1264
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
1265
|
-
var _this = this;
|
|
1266
|
-
return __generator(this, function (_b) {
|
|
1267
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
1268
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1269
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1270
|
-
localVarQueryParameters = {};
|
|
1271
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1272
|
-
localVarFormParams = {};
|
|
1273
|
-
if (id === null || id === undefined) {
|
|
1274
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerFindone.');
|
|
1275
|
-
}
|
|
1276
|
-
if (account === null || account === undefined) {
|
|
1277
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindone.');
|
|
1278
|
-
}
|
|
1279
|
-
if (fields !== undefined) {
|
|
1280
|
-
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(fields, "string");
|
|
1281
|
-
}
|
|
1282
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1283
|
-
localVarUseFormData = false;
|
|
1284
|
-
localVarRequestOptions = {
|
|
1285
|
-
method: 'GET',
|
|
1286
|
-
qs: localVarQueryParameters,
|
|
1287
|
-
headers: localVarHeaderParams,
|
|
1288
|
-
uri: localVarPath,
|
|
1289
|
-
useQuerystring: this._useQuerystring,
|
|
1290
|
-
json: true,
|
|
1291
|
-
};
|
|
1292
|
-
authenticationPromise = Promise.resolve();
|
|
1293
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1294
|
-
interceptorPromise = authenticationPromise;
|
|
1295
|
-
_loop_18 = function (interceptor) {
|
|
1296
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1297
|
-
};
|
|
1298
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1299
|
-
interceptor = _a[_i];
|
|
1300
|
-
_loop_18(interceptor);
|
|
1301
|
-
}
|
|
1302
|
-
return [2, interceptorPromise.then(function () {
|
|
1303
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1304
|
-
if (localVarUseFormData) {
|
|
1305
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1306
|
-
}
|
|
1307
|
-
else {
|
|
1308
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
return new Promise(function (resolve, reject) {
|
|
1312
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1313
|
-
if (error) {
|
|
1314
|
-
reject(error);
|
|
1315
|
-
}
|
|
1316
|
-
else {
|
|
1317
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1318
|
-
resolve({ response: response, body: body });
|
|
1319
|
-
}
|
|
1320
|
-
else {
|
|
1321
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
});
|
|
1325
|
-
});
|
|
1326
|
-
})];
|
|
1327
|
-
});
|
|
1328
|
-
});
|
|
1329
|
-
};
|
|
1330
|
-
MatchedOffersApi.prototype.matchedOffersControllerGenerateoffernumber = function (id, account, options) {
|
|
1331
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1332
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1333
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1334
|
-
var _this = this;
|
|
1335
|
-
return __generator(this, function (_b) {
|
|
1336
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/generate/number'
|
|
1337
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1338
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1339
|
-
localVarQueryParameters = {};
|
|
1340
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1341
|
-
localVarFormParams = {};
|
|
1342
|
-
if (id === null || id === undefined) {
|
|
1343
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerGenerateoffernumber.');
|
|
1344
|
-
}
|
|
1345
|
-
if (account === null || account === undefined) {
|
|
1346
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerGenerateoffernumber.');
|
|
1347
|
-
}
|
|
1348
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1349
|
-
localVarUseFormData = false;
|
|
1350
|
-
localVarRequestOptions = {
|
|
1351
|
-
method: 'PUT',
|
|
1352
|
-
qs: localVarQueryParameters,
|
|
1353
|
-
headers: localVarHeaderParams,
|
|
1354
|
-
uri: localVarPath,
|
|
1355
|
-
useQuerystring: this._useQuerystring,
|
|
1356
|
-
json: true,
|
|
1357
|
-
};
|
|
1358
|
-
authenticationPromise = Promise.resolve();
|
|
1359
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1360
|
-
interceptorPromise = authenticationPromise;
|
|
1361
|
-
_loop_19 = function (interceptor) {
|
|
1362
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1363
|
-
};
|
|
1364
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1365
|
-
interceptor = _a[_i];
|
|
1366
|
-
_loop_19(interceptor);
|
|
1367
|
-
}
|
|
1368
|
-
return [2, interceptorPromise.then(function () {
|
|
1369
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1370
|
-
if (localVarUseFormData) {
|
|
1371
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1372
|
-
}
|
|
1373
|
-
else {
|
|
1374
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
return new Promise(function (resolve, reject) {
|
|
1378
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1379
|
-
if (error) {
|
|
1380
|
-
reject(error);
|
|
1381
|
-
}
|
|
1382
|
-
else {
|
|
1383
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1384
|
-
resolve({ response: response, body: body });
|
|
1385
|
-
}
|
|
1386
|
-
else {
|
|
1387
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
});
|
|
1391
|
-
});
|
|
1392
|
-
})];
|
|
1393
|
-
});
|
|
1394
|
-
});
|
|
1395
|
-
};
|
|
1396
|
-
MatchedOffersApi.prototype.matchedOffersControllerLogview = function (id, account, body, options) {
|
|
1397
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1398
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1399
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1400
|
-
var _this = this;
|
|
1401
|
-
return __generator(this, function (_b) {
|
|
1402
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/view'
|
|
1403
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1404
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1405
|
-
localVarQueryParameters = {};
|
|
1406
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1407
|
-
localVarFormParams = {};
|
|
1408
|
-
if (id === null || id === undefined) {
|
|
1409
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerLogview.');
|
|
1410
|
-
}
|
|
1411
|
-
if (account === null || account === undefined) {
|
|
1412
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerLogview.');
|
|
1413
|
-
}
|
|
1414
|
-
if (body === null || body === undefined) {
|
|
1415
|
-
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerLogview.');
|
|
1416
|
-
}
|
|
1417
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1418
|
-
localVarUseFormData = false;
|
|
1419
|
-
localVarRequestOptions = {
|
|
1420
|
-
method: 'POST',
|
|
1421
|
-
qs: localVarQueryParameters,
|
|
1422
|
-
headers: localVarHeaderParams,
|
|
1423
|
-
uri: localVarPath,
|
|
1424
|
-
useQuerystring: this._useQuerystring,
|
|
1425
|
-
json: true,
|
|
1426
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1427
|
-
};
|
|
1428
|
-
authenticationPromise = Promise.resolve();
|
|
1429
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1430
|
-
interceptorPromise = authenticationPromise;
|
|
1431
|
-
_loop_20 = function (interceptor) {
|
|
1432
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1433
|
-
};
|
|
1434
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1435
|
-
interceptor = _a[_i];
|
|
1436
|
-
_loop_20(interceptor);
|
|
1437
|
-
}
|
|
1438
|
-
return [2, interceptorPromise.then(function () {
|
|
1439
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1440
|
-
if (localVarUseFormData) {
|
|
1441
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1442
|
-
}
|
|
1443
|
-
else {
|
|
1444
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
return new Promise(function (resolve, reject) {
|
|
1448
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1449
|
-
if (error) {
|
|
1450
|
-
reject(error);
|
|
1451
|
-
}
|
|
1452
|
-
else {
|
|
1453
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1454
|
-
resolve({ response: response, body: body });
|
|
1455
|
-
}
|
|
1456
|
-
else {
|
|
1457
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
});
|
|
1461
|
-
});
|
|
1462
|
-
})];
|
|
1463
|
-
});
|
|
1464
|
-
});
|
|
1465
|
-
};
|
|
1466
|
-
MatchedOffersApi.prototype.matchedOffersControllerRemove = function (id, account, options) {
|
|
1467
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1468
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1469
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
|
|
1470
|
-
var _this = this;
|
|
1471
|
-
return __generator(this, function (_b) {
|
|
1472
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
1473
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1474
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1475
|
-
localVarQueryParameters = {};
|
|
1476
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1477
|
-
localVarFormParams = {};
|
|
1478
|
-
if (id === null || id === undefined) {
|
|
1479
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerRemove.');
|
|
1480
|
-
}
|
|
1481
|
-
if (account === null || account === undefined) {
|
|
1482
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerRemove.');
|
|
1483
|
-
}
|
|
1484
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1485
|
-
localVarUseFormData = false;
|
|
1486
|
-
localVarRequestOptions = {
|
|
1487
|
-
method: 'DELETE',
|
|
1488
|
-
qs: localVarQueryParameters,
|
|
1489
|
-
headers: localVarHeaderParams,
|
|
1490
|
-
uri: localVarPath,
|
|
1491
|
-
useQuerystring: this._useQuerystring,
|
|
1492
|
-
json: true,
|
|
1493
|
-
};
|
|
1494
|
-
authenticationPromise = Promise.resolve();
|
|
1495
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1496
|
-
interceptorPromise = authenticationPromise;
|
|
1497
|
-
_loop_21 = function (interceptor) {
|
|
1498
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1499
|
-
};
|
|
1500
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1501
|
-
interceptor = _a[_i];
|
|
1502
|
-
_loop_21(interceptor);
|
|
1503
|
-
}
|
|
1504
|
-
return [2, interceptorPromise.then(function () {
|
|
1505
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1506
|
-
if (localVarUseFormData) {
|
|
1507
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1508
|
-
}
|
|
1509
|
-
else {
|
|
1510
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
return new Promise(function (resolve, reject) {
|
|
1514
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1515
|
-
if (error) {
|
|
1516
|
-
reject(error);
|
|
1517
|
-
}
|
|
1518
|
-
else {
|
|
1519
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1520
|
-
resolve({ response: response, body: body });
|
|
1521
|
-
}
|
|
1522
|
-
else {
|
|
1523
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
});
|
|
1527
|
-
});
|
|
1528
|
-
})];
|
|
1529
|
-
});
|
|
1530
|
-
});
|
|
1531
|
-
};
|
|
1532
|
-
MatchedOffersApi.prototype.matchedOffersControllerRemovepin = function (id, account, pinActionDto, options) {
|
|
1533
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1534
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1535
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
|
|
1536
|
-
var _this = this;
|
|
1537
|
-
return __generator(this, function (_b) {
|
|
1538
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/unpin'
|
|
1539
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1540
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1541
|
-
localVarQueryParameters = {};
|
|
1542
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1543
|
-
localVarFormParams = {};
|
|
1544
|
-
if (id === null || id === undefined) {
|
|
1545
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerRemovepin.');
|
|
1546
|
-
}
|
|
1547
|
-
if (account === null || account === undefined) {
|
|
1548
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerRemovepin.');
|
|
1549
|
-
}
|
|
1550
|
-
if (pinActionDto === null || pinActionDto === undefined) {
|
|
1551
|
-
throw new Error('Required parameter pinActionDto was null or undefined when calling matchedOffersControllerRemovepin.');
|
|
1552
|
-
}
|
|
1553
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1554
|
-
localVarUseFormData = false;
|
|
1555
|
-
localVarRequestOptions = {
|
|
1556
|
-
method: 'POST',
|
|
1557
|
-
qs: localVarQueryParameters,
|
|
1558
|
-
headers: localVarHeaderParams,
|
|
1559
|
-
uri: localVarPath,
|
|
1560
|
-
useQuerystring: this._useQuerystring,
|
|
1561
|
-
json: true,
|
|
1562
|
-
body: models_1.ObjectSerializer.serialize(pinActionDto, "PinActionDto")
|
|
1563
|
-
};
|
|
1564
|
-
authenticationPromise = Promise.resolve();
|
|
1565
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1566
|
-
interceptorPromise = authenticationPromise;
|
|
1567
|
-
_loop_22 = function (interceptor) {
|
|
1568
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1569
|
-
};
|
|
1570
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1571
|
-
interceptor = _a[_i];
|
|
1572
|
-
_loop_22(interceptor);
|
|
1573
|
-
}
|
|
1574
|
-
return [2, interceptorPromise.then(function () {
|
|
1575
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1576
|
-
if (localVarUseFormData) {
|
|
1577
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1578
|
-
}
|
|
1579
|
-
else {
|
|
1580
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
return new Promise(function (resolve, reject) {
|
|
1584
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1585
|
-
if (error) {
|
|
1586
|
-
reject(error);
|
|
1587
|
-
}
|
|
1588
|
-
else {
|
|
1589
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1590
|
-
resolve({ response: response, body: body });
|
|
1591
|
-
}
|
|
1592
|
-
else {
|
|
1593
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
});
|
|
1597
|
-
});
|
|
1598
|
-
})];
|
|
1599
|
-
});
|
|
1600
|
-
});
|
|
1601
|
-
};
|
|
1602
|
-
MatchedOffersApi.prototype.matchedOffersControllerReopen = function (id, account, options) {
|
|
1603
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1604
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1605
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_23, _i, _a, interceptor;
|
|
1606
|
-
var _this = this;
|
|
1607
|
-
return __generator(this, function (_b) {
|
|
1608
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/reopen'
|
|
1609
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1610
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1611
|
-
localVarQueryParameters = {};
|
|
1612
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1613
|
-
localVarFormParams = {};
|
|
1614
|
-
if (id === null || id === undefined) {
|
|
1615
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerReopen.');
|
|
1616
|
-
}
|
|
1617
|
-
if (account === null || account === undefined) {
|
|
1618
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerReopen.');
|
|
1619
|
-
}
|
|
1620
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1621
|
-
localVarUseFormData = false;
|
|
1622
|
-
localVarRequestOptions = {
|
|
1623
|
-
method: 'POST',
|
|
1624
|
-
qs: localVarQueryParameters,
|
|
1625
|
-
headers: localVarHeaderParams,
|
|
1626
|
-
uri: localVarPath,
|
|
1627
|
-
useQuerystring: this._useQuerystring,
|
|
1628
|
-
json: true,
|
|
1629
|
-
};
|
|
1630
|
-
authenticationPromise = Promise.resolve();
|
|
1631
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1632
|
-
interceptorPromise = authenticationPromise;
|
|
1633
|
-
_loop_23 = function (interceptor) {
|
|
1634
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1635
|
-
};
|
|
1636
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1637
|
-
interceptor = _a[_i];
|
|
1638
|
-
_loop_23(interceptor);
|
|
1639
|
-
}
|
|
1640
|
-
return [2, interceptorPromise.then(function () {
|
|
1641
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1642
|
-
if (localVarUseFormData) {
|
|
1643
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1644
|
-
}
|
|
1645
|
-
else {
|
|
1646
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
return new Promise(function (resolve, reject) {
|
|
1650
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1651
|
-
if (error) {
|
|
1652
|
-
reject(error);
|
|
1653
|
-
}
|
|
1654
|
-
else {
|
|
1655
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1656
|
-
resolve({ response: response, body: body });
|
|
1657
|
-
}
|
|
1658
|
-
else {
|
|
1659
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
});
|
|
1663
|
-
});
|
|
1664
|
-
})];
|
|
1665
|
-
});
|
|
1666
|
-
});
|
|
1667
|
-
};
|
|
1668
|
-
MatchedOffersApi.prototype.matchedOffersControllerSetconfirmindex = function (id, account, body, options) {
|
|
1669
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1670
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1671
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_24, _i, _a, interceptor;
|
|
1672
|
-
var _this = this;
|
|
1673
|
-
return __generator(this, function (_b) {
|
|
1674
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}/confirm/index'
|
|
1675
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1676
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1677
|
-
localVarQueryParameters = {};
|
|
1678
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1679
|
-
localVarFormParams = {};
|
|
1680
|
-
if (id === null || id === undefined) {
|
|
1681
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerSetconfirmindex.');
|
|
1682
|
-
}
|
|
1683
|
-
if (account === null || account === undefined) {
|
|
1684
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerSetconfirmindex.');
|
|
1685
|
-
}
|
|
1686
|
-
if (body === null || body === undefined) {
|
|
1687
|
-
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerSetconfirmindex.');
|
|
1688
|
-
}
|
|
1689
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1690
|
-
localVarUseFormData = false;
|
|
1691
|
-
localVarRequestOptions = {
|
|
1692
|
-
method: 'PUT',
|
|
1693
|
-
qs: localVarQueryParameters,
|
|
1694
|
-
headers: localVarHeaderParams,
|
|
1695
|
-
uri: localVarPath,
|
|
1696
|
-
useQuerystring: this._useQuerystring,
|
|
1697
|
-
json: true,
|
|
1698
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1699
|
-
};
|
|
1700
|
-
authenticationPromise = Promise.resolve();
|
|
1701
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1702
|
-
interceptorPromise = authenticationPromise;
|
|
1703
|
-
_loop_24 = function (interceptor) {
|
|
1704
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1705
|
-
};
|
|
1706
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1707
|
-
interceptor = _a[_i];
|
|
1708
|
-
_loop_24(interceptor);
|
|
1709
|
-
}
|
|
1710
|
-
return [2, interceptorPromise.then(function () {
|
|
1711
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1712
|
-
if (localVarUseFormData) {
|
|
1713
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1714
|
-
}
|
|
1715
|
-
else {
|
|
1716
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1717
|
-
}
|
|
1718
|
-
}
|
|
1719
|
-
return new Promise(function (resolve, reject) {
|
|
1720
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1721
|
-
if (error) {
|
|
1722
|
-
reject(error);
|
|
1723
|
-
}
|
|
1724
|
-
else {
|
|
1725
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1726
|
-
resolve({ response: response, body: body });
|
|
1727
|
-
}
|
|
1728
|
-
else {
|
|
1729
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
});
|
|
1733
|
-
});
|
|
1734
|
-
})];
|
|
1735
|
-
});
|
|
1736
|
-
});
|
|
1737
|
-
};
|
|
1738
|
-
MatchedOffersApi.prototype.matchedOffersControllerTotal = function (account, body, options) {
|
|
1739
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1740
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1741
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_25, _i, _a, interceptor;
|
|
1742
|
-
var _this = this;
|
|
1743
|
-
return __generator(this, function (_b) {
|
|
1744
|
-
localVarPath = this.basePath + '/matched-offers/{account}/total'
|
|
1745
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1746
|
-
localVarQueryParameters = {};
|
|
1747
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1748
|
-
localVarFormParams = {};
|
|
1749
|
-
if (account === null || account === undefined) {
|
|
1750
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerTotal.');
|
|
1751
|
-
}
|
|
1752
|
-
if (body === null || body === undefined) {
|
|
1753
|
-
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerTotal.');
|
|
1754
|
-
}
|
|
1755
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1756
|
-
localVarUseFormData = false;
|
|
1757
|
-
localVarRequestOptions = {
|
|
1758
|
-
method: 'GET',
|
|
1759
|
-
qs: localVarQueryParameters,
|
|
1760
|
-
headers: localVarHeaderParams,
|
|
1761
|
-
uri: localVarPath,
|
|
1762
|
-
useQuerystring: this._useQuerystring,
|
|
1763
|
-
json: true,
|
|
1764
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1765
|
-
};
|
|
1766
|
-
authenticationPromise = Promise.resolve();
|
|
1767
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1768
|
-
interceptorPromise = authenticationPromise;
|
|
1769
|
-
_loop_25 = function (interceptor) {
|
|
1770
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1771
|
-
};
|
|
1772
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1773
|
-
interceptor = _a[_i];
|
|
1774
|
-
_loop_25(interceptor);
|
|
1775
|
-
}
|
|
1776
|
-
return [2, interceptorPromise.then(function () {
|
|
1777
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1778
|
-
if (localVarUseFormData) {
|
|
1779
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1780
|
-
}
|
|
1781
|
-
else {
|
|
1782
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
return new Promise(function (resolve, reject) {
|
|
1786
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1787
|
-
if (error) {
|
|
1788
|
-
reject(error);
|
|
1789
|
-
}
|
|
1790
|
-
else {
|
|
1791
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1792
|
-
resolve({ response: response, body: body });
|
|
1793
|
-
}
|
|
1794
|
-
else {
|
|
1795
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
});
|
|
1799
|
-
});
|
|
1800
|
-
})];
|
|
1801
|
-
});
|
|
1802
|
-
});
|
|
1803
|
-
};
|
|
1804
|
-
MatchedOffersApi.prototype.matchedOffersControllerUpdate = function (id, account, body, options) {
|
|
1805
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1806
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1807
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_26, _i, _a, interceptor;
|
|
1808
|
-
var _this = this;
|
|
1809
|
-
return __generator(this, function (_b) {
|
|
1810
|
-
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
1811
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1812
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1813
|
-
localVarQueryParameters = {};
|
|
1814
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1815
|
-
localVarFormParams = {};
|
|
1816
|
-
if (id === null || id === undefined) {
|
|
1817
|
-
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerUpdate.');
|
|
1818
|
-
}
|
|
1819
|
-
if (account === null || account === undefined) {
|
|
1820
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerUpdate.');
|
|
1821
|
-
}
|
|
1822
|
-
if (body === null || body === undefined) {
|
|
1823
|
-
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerUpdate.');
|
|
1824
|
-
}
|
|
1825
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1826
|
-
localVarUseFormData = false;
|
|
1827
|
-
localVarRequestOptions = {
|
|
1828
|
-
method: 'PUT',
|
|
1829
|
-
qs: localVarQueryParameters,
|
|
1830
|
-
headers: localVarHeaderParams,
|
|
1831
|
-
uri: localVarPath,
|
|
1832
|
-
useQuerystring: this._useQuerystring,
|
|
1833
|
-
json: true,
|
|
1834
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1835
|
-
};
|
|
1836
|
-
authenticationPromise = Promise.resolve();
|
|
1837
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1838
|
-
interceptorPromise = authenticationPromise;
|
|
1839
|
-
_loop_26 = function (interceptor) {
|
|
1840
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1841
|
-
};
|
|
1842
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1843
|
-
interceptor = _a[_i];
|
|
1844
|
-
_loop_26(interceptor);
|
|
1845
|
-
}
|
|
1846
|
-
return [2, interceptorPromise.then(function () {
|
|
1847
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1848
|
-
if (localVarUseFormData) {
|
|
1849
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1850
|
-
}
|
|
1851
|
-
else {
|
|
1852
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
return new Promise(function (resolve, reject) {
|
|
1856
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1857
|
-
if (error) {
|
|
1858
|
-
reject(error);
|
|
1859
|
-
}
|
|
1860
|
-
else {
|
|
1861
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1862
|
-
resolve({ response: response, body: body });
|
|
1863
|
-
}
|
|
1864
|
-
else {
|
|
1865
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
});
|
|
1869
|
-
});
|
|
1870
|
-
})];
|
|
1871
|
-
});
|
|
1872
|
-
});
|
|
1873
|
-
};
|
|
1874
|
-
MatchedOffersApi.prototype.matchedOffersControllerUpdatestatus = function (account, body, options) {
|
|
1875
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1876
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1877
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_27, _i, _a, interceptor;
|
|
1878
|
-
var _this = this;
|
|
1879
|
-
return __generator(this, function (_b) {
|
|
1880
|
-
localVarPath = this.basePath + '/matched-offers/{account}/status'
|
|
1881
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1882
|
-
localVarQueryParameters = {};
|
|
1883
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1884
|
-
localVarFormParams = {};
|
|
1885
|
-
if (account === null || account === undefined) {
|
|
1886
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerUpdatestatus.');
|
|
1887
|
-
}
|
|
1888
|
-
if (body === null || body === undefined) {
|
|
1889
|
-
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerUpdatestatus.');
|
|
1890
|
-
}
|
|
1891
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1892
|
-
localVarUseFormData = false;
|
|
1893
|
-
localVarRequestOptions = {
|
|
1894
|
-
method: 'PUT',
|
|
1895
|
-
qs: localVarQueryParameters,
|
|
1896
|
-
headers: localVarHeaderParams,
|
|
1897
|
-
uri: localVarPath,
|
|
1898
|
-
useQuerystring: this._useQuerystring,
|
|
1899
|
-
json: true,
|
|
1900
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1901
|
-
};
|
|
1902
|
-
authenticationPromise = Promise.resolve();
|
|
1903
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1904
|
-
interceptorPromise = authenticationPromise;
|
|
1905
|
-
_loop_27 = function (interceptor) {
|
|
1906
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1907
|
-
};
|
|
1908
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1909
|
-
interceptor = _a[_i];
|
|
1910
|
-
_loop_27(interceptor);
|
|
1911
|
-
}
|
|
1912
|
-
return [2, interceptorPromise.then(function () {
|
|
1913
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1914
|
-
if (localVarUseFormData) {
|
|
1915
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1916
|
-
}
|
|
1917
|
-
else {
|
|
1918
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
return new Promise(function (resolve, reject) {
|
|
1922
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1923
|
-
if (error) {
|
|
1924
|
-
reject(error);
|
|
1925
|
-
}
|
|
1926
|
-
else {
|
|
1927
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1928
|
-
resolve({ response: response, body: body });
|
|
1929
|
-
}
|
|
1930
|
-
else {
|
|
1931
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
1934
|
-
});
|
|
1935
|
-
});
|
|
1936
|
-
})];
|
|
1937
|
-
});
|
|
1938
|
-
});
|
|
1939
|
-
};
|
|
1940
|
-
MatchedOffersApi.prototype.matchedOffersControllerValidatestatus = function (account, body, options) {
|
|
1941
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1942
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1943
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_28, _i, _a, interceptor;
|
|
1944
|
-
var _this = this;
|
|
1945
|
-
return __generator(this, function (_b) {
|
|
1946
|
-
localVarPath = this.basePath + '/matched-offers/{account}/status/validate'
|
|
1947
|
-
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1948
|
-
localVarQueryParameters = {};
|
|
1949
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1950
|
-
localVarFormParams = {};
|
|
1951
|
-
if (account === null || account === undefined) {
|
|
1952
|
-
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerValidatestatus.');
|
|
1953
|
-
}
|
|
1954
|
-
if (body === null || body === undefined) {
|
|
1955
|
-
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerValidatestatus.');
|
|
1956
|
-
}
|
|
1957
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1958
|
-
localVarUseFormData = false;
|
|
1959
|
-
localVarRequestOptions = {
|
|
1960
|
-
method: 'POST',
|
|
1961
|
-
qs: localVarQueryParameters,
|
|
1962
|
-
headers: localVarHeaderParams,
|
|
1963
|
-
uri: localVarPath,
|
|
1964
|
-
useQuerystring: this._useQuerystring,
|
|
1965
|
-
json: true,
|
|
1966
|
-
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1967
|
-
};
|
|
1968
|
-
authenticationPromise = Promise.resolve();
|
|
1969
|
-
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1970
|
-
interceptorPromise = authenticationPromise;
|
|
1971
|
-
_loop_28 = function (interceptor) {
|
|
1972
|
-
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1973
|
-
};
|
|
1974
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1975
|
-
interceptor = _a[_i];
|
|
1976
|
-
_loop_28(interceptor);
|
|
1977
|
-
}
|
|
1978
|
-
return [2, interceptorPromise.then(function () {
|
|
1979
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1980
|
-
if (localVarUseFormData) {
|
|
1981
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1982
|
-
}
|
|
1983
|
-
else {
|
|
1984
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1987
|
-
return new Promise(function (resolve, reject) {
|
|
1988
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1989
|
-
if (error) {
|
|
1990
|
-
reject(error);
|
|
1991
|
-
}
|
|
1992
|
-
else {
|
|
1993
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1994
|
-
resolve({ response: response, body: body });
|
|
1995
|
-
}
|
|
1996
|
-
else {
|
|
1997
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
});
|
|
2001
|
-
});
|
|
2002
|
-
})];
|
|
2003
|
-
});
|
|
2004
|
-
});
|
|
2005
|
-
};
|
|
2006
|
-
return MatchedOffersApi;
|
|
2007
|
-
}());
|
|
2008
|
-
exports.MatchedOffersApi = MatchedOffersApi;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.MatchedOffersApi = exports.MatchedOffersApiApiKeys = void 0;
|
|
43
|
+
var request_1 = __importDefault(require("request"));
|
|
44
|
+
var models_1 = require("../model/models");
|
|
45
|
+
var apis_1 = require("./apis");
|
|
46
|
+
var defaultBasePath = 'http://localhost';
|
|
47
|
+
var MatchedOffersApiApiKeys;
|
|
48
|
+
(function (MatchedOffersApiApiKeys) {
|
|
49
|
+
})(MatchedOffersApiApiKeys = exports.MatchedOffersApiApiKeys || (exports.MatchedOffersApiApiKeys = {}));
|
|
50
|
+
var MatchedOffersApi = (function () {
|
|
51
|
+
function MatchedOffersApi(basePathOrUsername, password, basePath) {
|
|
52
|
+
this._basePath = defaultBasePath;
|
|
53
|
+
this._defaultHeaders = {};
|
|
54
|
+
this._useQuerystring = false;
|
|
55
|
+
this.authentications = {
|
|
56
|
+
'default': new models_1.VoidAuth(),
|
|
57
|
+
};
|
|
58
|
+
this.interceptors = [];
|
|
59
|
+
if (password) {
|
|
60
|
+
if (basePath) {
|
|
61
|
+
this.basePath = basePath;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
if (basePathOrUsername) {
|
|
66
|
+
this.basePath = basePathOrUsername;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
Object.defineProperty(MatchedOffersApi.prototype, "useQuerystring", {
|
|
71
|
+
set: function (value) {
|
|
72
|
+
this._useQuerystring = value;
|
|
73
|
+
},
|
|
74
|
+
enumerable: false,
|
|
75
|
+
configurable: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(MatchedOffersApi.prototype, "basePath", {
|
|
78
|
+
get: function () {
|
|
79
|
+
return this._basePath;
|
|
80
|
+
},
|
|
81
|
+
set: function (basePath) {
|
|
82
|
+
this._basePath = basePath;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(MatchedOffersApi.prototype, "defaultHeaders", {
|
|
88
|
+
get: function () {
|
|
89
|
+
return this._defaultHeaders;
|
|
90
|
+
},
|
|
91
|
+
set: function (defaultHeaders) {
|
|
92
|
+
this._defaultHeaders = defaultHeaders;
|
|
93
|
+
},
|
|
94
|
+
enumerable: false,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
MatchedOffersApi.prototype.setDefaultAuthentication = function (auth) {
|
|
98
|
+
this.authentications.default = auth;
|
|
99
|
+
};
|
|
100
|
+
MatchedOffersApi.prototype.setApiKey = function (key, value) {
|
|
101
|
+
this.authentications[MatchedOffersApiApiKeys[key]].apiKey = value;
|
|
102
|
+
};
|
|
103
|
+
MatchedOffersApi.prototype.addInterceptor = function (interceptor) {
|
|
104
|
+
this.interceptors.push(interceptor);
|
|
105
|
+
};
|
|
106
|
+
MatchedOffersApi.prototype.matchedOffersControllerAddbid = function (id, userId, account, body, options) {
|
|
107
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
108
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
|
|
110
|
+
var _this = this;
|
|
111
|
+
return __generator(this, function (_b) {
|
|
112
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/{userId}/bid'
|
|
113
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
114
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
115
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
116
|
+
localVarQueryParameters = {};
|
|
117
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
118
|
+
localVarFormParams = {};
|
|
119
|
+
if (id === null || id === undefined) {
|
|
120
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerAddbid.');
|
|
121
|
+
}
|
|
122
|
+
if (userId === null || userId === undefined) {
|
|
123
|
+
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerAddbid.');
|
|
124
|
+
}
|
|
125
|
+
if (account === null || account === undefined) {
|
|
126
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerAddbid.');
|
|
127
|
+
}
|
|
128
|
+
if (body === null || body === undefined) {
|
|
129
|
+
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerAddbid.');
|
|
130
|
+
}
|
|
131
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
132
|
+
localVarUseFormData = false;
|
|
133
|
+
localVarRequestOptions = {
|
|
134
|
+
method: 'POST',
|
|
135
|
+
qs: localVarQueryParameters,
|
|
136
|
+
headers: localVarHeaderParams,
|
|
137
|
+
uri: localVarPath,
|
|
138
|
+
useQuerystring: this._useQuerystring,
|
|
139
|
+
json: true,
|
|
140
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
141
|
+
};
|
|
142
|
+
authenticationPromise = Promise.resolve();
|
|
143
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
144
|
+
interceptorPromise = authenticationPromise;
|
|
145
|
+
_loop_1 = function (interceptor) {
|
|
146
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
147
|
+
};
|
|
148
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
149
|
+
interceptor = _a[_i];
|
|
150
|
+
_loop_1(interceptor);
|
|
151
|
+
}
|
|
152
|
+
return [2, interceptorPromise.then(function () {
|
|
153
|
+
if (Object.keys(localVarFormParams).length) {
|
|
154
|
+
if (localVarUseFormData) {
|
|
155
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return new Promise(function (resolve, reject) {
|
|
162
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
163
|
+
if (error) {
|
|
164
|
+
reject(error);
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
168
|
+
resolve({ response: response, body: body });
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
})];
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
MatchedOffersApi.prototype.matchedOffersControllerAddpin = function (id, account, pinActionDto, options) {
|
|
181
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
184
|
+
var _this = this;
|
|
185
|
+
return __generator(this, function (_b) {
|
|
186
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/pin'
|
|
187
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
188
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
189
|
+
localVarQueryParameters = {};
|
|
190
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
191
|
+
localVarFormParams = {};
|
|
192
|
+
if (id === null || id === undefined) {
|
|
193
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerAddpin.');
|
|
194
|
+
}
|
|
195
|
+
if (account === null || account === undefined) {
|
|
196
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerAddpin.');
|
|
197
|
+
}
|
|
198
|
+
if (pinActionDto === null || pinActionDto === undefined) {
|
|
199
|
+
throw new Error('Required parameter pinActionDto was null or undefined when calling matchedOffersControllerAddpin.');
|
|
200
|
+
}
|
|
201
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
202
|
+
localVarUseFormData = false;
|
|
203
|
+
localVarRequestOptions = {
|
|
204
|
+
method: 'POST',
|
|
205
|
+
qs: localVarQueryParameters,
|
|
206
|
+
headers: localVarHeaderParams,
|
|
207
|
+
uri: localVarPath,
|
|
208
|
+
useQuerystring: this._useQuerystring,
|
|
209
|
+
json: true,
|
|
210
|
+
body: models_1.ObjectSerializer.serialize(pinActionDto, "PinActionDto")
|
|
211
|
+
};
|
|
212
|
+
authenticationPromise = Promise.resolve();
|
|
213
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
214
|
+
interceptorPromise = authenticationPromise;
|
|
215
|
+
_loop_2 = function (interceptor) {
|
|
216
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
217
|
+
};
|
|
218
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
219
|
+
interceptor = _a[_i];
|
|
220
|
+
_loop_2(interceptor);
|
|
221
|
+
}
|
|
222
|
+
return [2, interceptorPromise.then(function () {
|
|
223
|
+
if (Object.keys(localVarFormParams).length) {
|
|
224
|
+
if (localVarUseFormData) {
|
|
225
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return new Promise(function (resolve, reject) {
|
|
232
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
233
|
+
if (error) {
|
|
234
|
+
reject(error);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
238
|
+
resolve({ response: response, body: body });
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
})];
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkaddtertiarycosts = function (account, userId, bulkAddTertiaryCostsDto, options) {
|
|
251
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
252
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
253
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
254
|
+
var _this = this;
|
|
255
|
+
return __generator(this, function (_b) {
|
|
256
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/tertiary-costs/{userId}'
|
|
257
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)))
|
|
258
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
259
|
+
localVarQueryParameters = {};
|
|
260
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
261
|
+
localVarFormParams = {};
|
|
262
|
+
if (account === null || account === undefined) {
|
|
263
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
264
|
+
}
|
|
265
|
+
if (userId === null || userId === undefined) {
|
|
266
|
+
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
267
|
+
}
|
|
268
|
+
if (bulkAddTertiaryCostsDto === null || bulkAddTertiaryCostsDto === undefined) {
|
|
269
|
+
throw new Error('Required parameter bulkAddTertiaryCostsDto was null or undefined when calling matchedOffersControllerBulkaddtertiarycosts.');
|
|
270
|
+
}
|
|
271
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
272
|
+
localVarUseFormData = false;
|
|
273
|
+
localVarRequestOptions = {
|
|
274
|
+
method: 'PUT',
|
|
275
|
+
qs: localVarQueryParameters,
|
|
276
|
+
headers: localVarHeaderParams,
|
|
277
|
+
uri: localVarPath,
|
|
278
|
+
useQuerystring: this._useQuerystring,
|
|
279
|
+
json: true,
|
|
280
|
+
body: models_1.ObjectSerializer.serialize(bulkAddTertiaryCostsDto, "BulkAddTertiaryCostsDto")
|
|
281
|
+
};
|
|
282
|
+
authenticationPromise = Promise.resolve();
|
|
283
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
284
|
+
interceptorPromise = authenticationPromise;
|
|
285
|
+
_loop_3 = function (interceptor) {
|
|
286
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
287
|
+
};
|
|
288
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
289
|
+
interceptor = _a[_i];
|
|
290
|
+
_loop_3(interceptor);
|
|
291
|
+
}
|
|
292
|
+
return [2, interceptorPromise.then(function () {
|
|
293
|
+
if (Object.keys(localVarFormParams).length) {
|
|
294
|
+
if (localVarUseFormData) {
|
|
295
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return new Promise(function (resolve, reject) {
|
|
302
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
303
|
+
if (error) {
|
|
304
|
+
reject(error);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
308
|
+
resolve({ response: response, body: body });
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
})];
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkchangefreightrates = function (account, bulkChangeFreightRatesDto, options) {
|
|
321
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
322
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
324
|
+
var _this = this;
|
|
325
|
+
return __generator(this, function (_b) {
|
|
326
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/freight-rates'
|
|
327
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
328
|
+
localVarQueryParameters = {};
|
|
329
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
330
|
+
localVarFormParams = {};
|
|
331
|
+
if (account === null || account === undefined) {
|
|
332
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangefreightrates.');
|
|
333
|
+
}
|
|
334
|
+
if (bulkChangeFreightRatesDto === null || bulkChangeFreightRatesDto === undefined) {
|
|
335
|
+
throw new Error('Required parameter bulkChangeFreightRatesDto was null or undefined when calling matchedOffersControllerBulkchangefreightrates.');
|
|
336
|
+
}
|
|
337
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
338
|
+
localVarUseFormData = false;
|
|
339
|
+
localVarRequestOptions = {
|
|
340
|
+
method: 'PUT',
|
|
341
|
+
qs: localVarQueryParameters,
|
|
342
|
+
headers: localVarHeaderParams,
|
|
343
|
+
uri: localVarPath,
|
|
344
|
+
useQuerystring: this._useQuerystring,
|
|
345
|
+
json: true,
|
|
346
|
+
body: models_1.ObjectSerializer.serialize(bulkChangeFreightRatesDto, "BulkChangeFreightRatesDto")
|
|
347
|
+
};
|
|
348
|
+
authenticationPromise = Promise.resolve();
|
|
349
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
350
|
+
interceptorPromise = authenticationPromise;
|
|
351
|
+
_loop_4 = function (interceptor) {
|
|
352
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
353
|
+
};
|
|
354
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
355
|
+
interceptor = _a[_i];
|
|
356
|
+
_loop_4(interceptor);
|
|
357
|
+
}
|
|
358
|
+
return [2, interceptorPromise.then(function () {
|
|
359
|
+
if (Object.keys(localVarFormParams).length) {
|
|
360
|
+
if (localVarUseFormData) {
|
|
361
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return new Promise(function (resolve, reject) {
|
|
368
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
369
|
+
if (error) {
|
|
370
|
+
reject(error);
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
374
|
+
resolve({ response: response, body: body });
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
});
|
|
382
|
+
})];
|
|
383
|
+
});
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkchangeincoterm = function (account, bulkChangeIncotermDto, options) {
|
|
387
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
388
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
389
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
390
|
+
var _this = this;
|
|
391
|
+
return __generator(this, function (_b) {
|
|
392
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/incoterm'
|
|
393
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
394
|
+
localVarQueryParameters = {};
|
|
395
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
396
|
+
localVarFormParams = {};
|
|
397
|
+
if (account === null || account === undefined) {
|
|
398
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangeincoterm.');
|
|
399
|
+
}
|
|
400
|
+
if (bulkChangeIncotermDto === null || bulkChangeIncotermDto === undefined) {
|
|
401
|
+
throw new Error('Required parameter bulkChangeIncotermDto was null or undefined when calling matchedOffersControllerBulkchangeincoterm.');
|
|
402
|
+
}
|
|
403
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
404
|
+
localVarUseFormData = false;
|
|
405
|
+
localVarRequestOptions = {
|
|
406
|
+
method: 'PUT',
|
|
407
|
+
qs: localVarQueryParameters,
|
|
408
|
+
headers: localVarHeaderParams,
|
|
409
|
+
uri: localVarPath,
|
|
410
|
+
useQuerystring: this._useQuerystring,
|
|
411
|
+
json: true,
|
|
412
|
+
body: models_1.ObjectSerializer.serialize(bulkChangeIncotermDto, "BulkChangeIncotermDto")
|
|
413
|
+
};
|
|
414
|
+
authenticationPromise = Promise.resolve();
|
|
415
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
416
|
+
interceptorPromise = authenticationPromise;
|
|
417
|
+
_loop_5 = function (interceptor) {
|
|
418
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
419
|
+
};
|
|
420
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
421
|
+
interceptor = _a[_i];
|
|
422
|
+
_loop_5(interceptor);
|
|
423
|
+
}
|
|
424
|
+
return [2, interceptorPromise.then(function () {
|
|
425
|
+
if (Object.keys(localVarFormParams).length) {
|
|
426
|
+
if (localVarUseFormData) {
|
|
427
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return new Promise(function (resolve, reject) {
|
|
434
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
435
|
+
if (error) {
|
|
436
|
+
reject(error);
|
|
437
|
+
}
|
|
438
|
+
else {
|
|
439
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
440
|
+
resolve({ response: response, body: body });
|
|
441
|
+
}
|
|
442
|
+
else {
|
|
443
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
});
|
|
448
|
+
})];
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkchangesellingtrader = function (account, bulkChangeSellingTraderDto, options) {
|
|
453
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
454
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
455
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
456
|
+
var _this = this;
|
|
457
|
+
return __generator(this, function (_b) {
|
|
458
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/selling-trader'
|
|
459
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
460
|
+
localVarQueryParameters = {};
|
|
461
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
462
|
+
localVarFormParams = {};
|
|
463
|
+
if (account === null || account === undefined) {
|
|
464
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
|
|
465
|
+
}
|
|
466
|
+
if (bulkChangeSellingTraderDto === null || bulkChangeSellingTraderDto === undefined) {
|
|
467
|
+
throw new Error('Required parameter bulkChangeSellingTraderDto was null or undefined when calling matchedOffersControllerBulkchangesellingtrader.');
|
|
468
|
+
}
|
|
469
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
470
|
+
localVarUseFormData = false;
|
|
471
|
+
localVarRequestOptions = {
|
|
472
|
+
method: 'PUT',
|
|
473
|
+
qs: localVarQueryParameters,
|
|
474
|
+
headers: localVarHeaderParams,
|
|
475
|
+
uri: localVarPath,
|
|
476
|
+
useQuerystring: this._useQuerystring,
|
|
477
|
+
json: true,
|
|
478
|
+
body: models_1.ObjectSerializer.serialize(bulkChangeSellingTraderDto, "BulkChangeSellingTraderDto")
|
|
479
|
+
};
|
|
480
|
+
authenticationPromise = Promise.resolve();
|
|
481
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
482
|
+
interceptorPromise = authenticationPromise;
|
|
483
|
+
_loop_6 = function (interceptor) {
|
|
484
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
485
|
+
};
|
|
486
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
487
|
+
interceptor = _a[_i];
|
|
488
|
+
_loop_6(interceptor);
|
|
489
|
+
}
|
|
490
|
+
return [2, interceptorPromise.then(function () {
|
|
491
|
+
if (Object.keys(localVarFormParams).length) {
|
|
492
|
+
if (localVarUseFormData) {
|
|
493
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return new Promise(function (resolve, reject) {
|
|
500
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
501
|
+
if (error) {
|
|
502
|
+
reject(error);
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
506
|
+
resolve({ response: response, body: body });
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
})];
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
};
|
|
518
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkchangesellprices = function (account, bulkChangeSellPricesDto, options) {
|
|
519
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
520
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
522
|
+
var _this = this;
|
|
523
|
+
return __generator(this, function (_b) {
|
|
524
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/sell-prices'
|
|
525
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
526
|
+
localVarQueryParameters = {};
|
|
527
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
528
|
+
localVarFormParams = {};
|
|
529
|
+
if (account === null || account === undefined) {
|
|
530
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
531
|
+
}
|
|
532
|
+
if (bulkChangeSellPricesDto === null || bulkChangeSellPricesDto === undefined) {
|
|
533
|
+
throw new Error('Required parameter bulkChangeSellPricesDto was null or undefined when calling matchedOffersControllerBulkchangesellprices.');
|
|
534
|
+
}
|
|
535
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
536
|
+
localVarUseFormData = false;
|
|
537
|
+
localVarRequestOptions = {
|
|
538
|
+
method: 'PUT',
|
|
539
|
+
qs: localVarQueryParameters,
|
|
540
|
+
headers: localVarHeaderParams,
|
|
541
|
+
uri: localVarPath,
|
|
542
|
+
useQuerystring: this._useQuerystring,
|
|
543
|
+
json: true,
|
|
544
|
+
body: models_1.ObjectSerializer.serialize(bulkChangeSellPricesDto, "BulkChangeSellPricesDto")
|
|
545
|
+
};
|
|
546
|
+
authenticationPromise = Promise.resolve();
|
|
547
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
548
|
+
interceptorPromise = authenticationPromise;
|
|
549
|
+
_loop_7 = function (interceptor) {
|
|
550
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
551
|
+
};
|
|
552
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
553
|
+
interceptor = _a[_i];
|
|
554
|
+
_loop_7(interceptor);
|
|
555
|
+
}
|
|
556
|
+
return [2, interceptorPromise.then(function () {
|
|
557
|
+
if (Object.keys(localVarFormParams).length) {
|
|
558
|
+
if (localVarUseFormData) {
|
|
559
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
560
|
+
}
|
|
561
|
+
else {
|
|
562
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
return new Promise(function (resolve, reject) {
|
|
566
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
567
|
+
if (error) {
|
|
568
|
+
reject(error);
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
572
|
+
resolve({ response: response, body: body });
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
});
|
|
580
|
+
})];
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkdeletebuyerspecialinstructions = function (account, bulkDeleteBuyerSpecialInstructionsDto, options) {
|
|
585
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
586
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
587
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
588
|
+
var _this = this;
|
|
589
|
+
return __generator(this, function (_b) {
|
|
590
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
591
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
592
|
+
localVarQueryParameters = {};
|
|
593
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
594
|
+
localVarFormParams = {};
|
|
595
|
+
if (account === null || account === undefined) {
|
|
596
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
|
|
597
|
+
}
|
|
598
|
+
if (bulkDeleteBuyerSpecialInstructionsDto === null || bulkDeleteBuyerSpecialInstructionsDto === undefined) {
|
|
599
|
+
throw new Error('Required parameter bulkDeleteBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkdeletebuyerspecialinstructions.');
|
|
600
|
+
}
|
|
601
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
602
|
+
localVarUseFormData = false;
|
|
603
|
+
localVarRequestOptions = {
|
|
604
|
+
method: 'DELETE',
|
|
605
|
+
qs: localVarQueryParameters,
|
|
606
|
+
headers: localVarHeaderParams,
|
|
607
|
+
uri: localVarPath,
|
|
608
|
+
useQuerystring: this._useQuerystring,
|
|
609
|
+
json: true,
|
|
610
|
+
body: models_1.ObjectSerializer.serialize(bulkDeleteBuyerSpecialInstructionsDto, "BulkDeleteBuyerSpecialInstructionsDto")
|
|
611
|
+
};
|
|
612
|
+
authenticationPromise = Promise.resolve();
|
|
613
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
614
|
+
interceptorPromise = authenticationPromise;
|
|
615
|
+
_loop_8 = function (interceptor) {
|
|
616
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
617
|
+
};
|
|
618
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
619
|
+
interceptor = _a[_i];
|
|
620
|
+
_loop_8(interceptor);
|
|
621
|
+
}
|
|
622
|
+
return [2, interceptorPromise.then(function () {
|
|
623
|
+
if (Object.keys(localVarFormParams).length) {
|
|
624
|
+
if (localVarUseFormData) {
|
|
625
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
626
|
+
}
|
|
627
|
+
else {
|
|
628
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return new Promise(function (resolve, reject) {
|
|
632
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
633
|
+
if (error) {
|
|
634
|
+
reject(error);
|
|
635
|
+
}
|
|
636
|
+
else {
|
|
637
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
638
|
+
resolve({ response: response, body: body });
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
})];
|
|
647
|
+
});
|
|
648
|
+
});
|
|
649
|
+
};
|
|
650
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatebuyerspecialinstructions = function (account, bulkUpdateBuyerSpecialInstructionsDto, options) {
|
|
651
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
652
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
653
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
654
|
+
var _this = this;
|
|
655
|
+
return __generator(this, function (_b) {
|
|
656
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/buyer-special-instructions'
|
|
657
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
658
|
+
localVarQueryParameters = {};
|
|
659
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
660
|
+
localVarFormParams = {};
|
|
661
|
+
if (account === null || account === undefined) {
|
|
662
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
663
|
+
}
|
|
664
|
+
if (bulkUpdateBuyerSpecialInstructionsDto === null || bulkUpdateBuyerSpecialInstructionsDto === undefined) {
|
|
665
|
+
throw new Error('Required parameter bulkUpdateBuyerSpecialInstructionsDto was null or undefined when calling matchedOffersControllerBulkupdatebuyerspecialinstructions.');
|
|
666
|
+
}
|
|
667
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
668
|
+
localVarUseFormData = false;
|
|
669
|
+
localVarRequestOptions = {
|
|
670
|
+
method: 'PUT',
|
|
671
|
+
qs: localVarQueryParameters,
|
|
672
|
+
headers: localVarHeaderParams,
|
|
673
|
+
uri: localVarPath,
|
|
674
|
+
useQuerystring: this._useQuerystring,
|
|
675
|
+
json: true,
|
|
676
|
+
body: models_1.ObjectSerializer.serialize(bulkUpdateBuyerSpecialInstructionsDto, "BulkUpdateBuyerSpecialInstructionsDto")
|
|
677
|
+
};
|
|
678
|
+
authenticationPromise = Promise.resolve();
|
|
679
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
680
|
+
interceptorPromise = authenticationPromise;
|
|
681
|
+
_loop_9 = function (interceptor) {
|
|
682
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
683
|
+
};
|
|
684
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
685
|
+
interceptor = _a[_i];
|
|
686
|
+
_loop_9(interceptor);
|
|
687
|
+
}
|
|
688
|
+
return [2, interceptorPromise.then(function () {
|
|
689
|
+
if (Object.keys(localVarFormParams).length) {
|
|
690
|
+
if (localVarUseFormData) {
|
|
691
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
692
|
+
}
|
|
693
|
+
else {
|
|
694
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
return new Promise(function (resolve, reject) {
|
|
698
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
699
|
+
if (error) {
|
|
700
|
+
reject(error);
|
|
701
|
+
}
|
|
702
|
+
else {
|
|
703
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
704
|
+
resolve({ response: response, body: body });
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
})];
|
|
713
|
+
});
|
|
714
|
+
});
|
|
715
|
+
};
|
|
716
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatedeliverydates = function (account, bulkUpdateDeliveryDatesDto, options) {
|
|
717
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
718
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
719
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
720
|
+
var _this = this;
|
|
721
|
+
return __generator(this, function (_b) {
|
|
722
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/delivery-dates'
|
|
723
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
724
|
+
localVarQueryParameters = {};
|
|
725
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
726
|
+
localVarFormParams = {};
|
|
727
|
+
if (account === null || account === undefined) {
|
|
728
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
729
|
+
}
|
|
730
|
+
if (bulkUpdateDeliveryDatesDto === null || bulkUpdateDeliveryDatesDto === undefined) {
|
|
731
|
+
throw new Error('Required parameter bulkUpdateDeliveryDatesDto was null or undefined when calling matchedOffersControllerBulkupdatedeliverydates.');
|
|
732
|
+
}
|
|
733
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
734
|
+
localVarUseFormData = false;
|
|
735
|
+
localVarRequestOptions = {
|
|
736
|
+
method: 'PUT',
|
|
737
|
+
qs: localVarQueryParameters,
|
|
738
|
+
headers: localVarHeaderParams,
|
|
739
|
+
uri: localVarPath,
|
|
740
|
+
useQuerystring: this._useQuerystring,
|
|
741
|
+
json: true,
|
|
742
|
+
body: models_1.ObjectSerializer.serialize(bulkUpdateDeliveryDatesDto, "BulkUpdateDeliveryDatesDto")
|
|
743
|
+
};
|
|
744
|
+
authenticationPromise = Promise.resolve();
|
|
745
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
746
|
+
interceptorPromise = authenticationPromise;
|
|
747
|
+
_loop_10 = function (interceptor) {
|
|
748
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
749
|
+
};
|
|
750
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
751
|
+
interceptor = _a[_i];
|
|
752
|
+
_loop_10(interceptor);
|
|
753
|
+
}
|
|
754
|
+
return [2, interceptorPromise.then(function () {
|
|
755
|
+
if (Object.keys(localVarFormParams).length) {
|
|
756
|
+
if (localVarUseFormData) {
|
|
757
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
758
|
+
}
|
|
759
|
+
else {
|
|
760
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return new Promise(function (resolve, reject) {
|
|
764
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
765
|
+
if (error) {
|
|
766
|
+
reject(error);
|
|
767
|
+
}
|
|
768
|
+
else {
|
|
769
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
770
|
+
resolve({ response: response, body: body });
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
});
|
|
778
|
+
})];
|
|
779
|
+
});
|
|
780
|
+
});
|
|
781
|
+
};
|
|
782
|
+
MatchedOffersApi.prototype.matchedOffersControllerBulkupdatedocscountry = function (account, bulkUpdateDocsCountryDto, options) {
|
|
783
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
784
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
785
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
786
|
+
var _this = this;
|
|
787
|
+
return __generator(this, function (_b) {
|
|
788
|
+
localVarPath = this.basePath + '/matched-offers/{account}/bulk/docs-country'
|
|
789
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
790
|
+
localVarQueryParameters = {};
|
|
791
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
792
|
+
localVarFormParams = {};
|
|
793
|
+
if (account === null || account === undefined) {
|
|
794
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
795
|
+
}
|
|
796
|
+
if (bulkUpdateDocsCountryDto === null || bulkUpdateDocsCountryDto === undefined) {
|
|
797
|
+
throw new Error('Required parameter bulkUpdateDocsCountryDto was null or undefined when calling matchedOffersControllerBulkupdatedocscountry.');
|
|
798
|
+
}
|
|
799
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
800
|
+
localVarUseFormData = false;
|
|
801
|
+
localVarRequestOptions = {
|
|
802
|
+
method: 'PUT',
|
|
803
|
+
qs: localVarQueryParameters,
|
|
804
|
+
headers: localVarHeaderParams,
|
|
805
|
+
uri: localVarPath,
|
|
806
|
+
useQuerystring: this._useQuerystring,
|
|
807
|
+
json: true,
|
|
808
|
+
body: models_1.ObjectSerializer.serialize(bulkUpdateDocsCountryDto, "BulkUpdateDocsCountryDto")
|
|
809
|
+
};
|
|
810
|
+
authenticationPromise = Promise.resolve();
|
|
811
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
812
|
+
interceptorPromise = authenticationPromise;
|
|
813
|
+
_loop_11 = function (interceptor) {
|
|
814
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
815
|
+
};
|
|
816
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
817
|
+
interceptor = _a[_i];
|
|
818
|
+
_loop_11(interceptor);
|
|
819
|
+
}
|
|
820
|
+
return [2, interceptorPromise.then(function () {
|
|
821
|
+
if (Object.keys(localVarFormParams).length) {
|
|
822
|
+
if (localVarUseFormData) {
|
|
823
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
824
|
+
}
|
|
825
|
+
else {
|
|
826
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
return new Promise(function (resolve, reject) {
|
|
830
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
831
|
+
if (error) {
|
|
832
|
+
reject(error);
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
836
|
+
resolve({ response: response, body: body });
|
|
837
|
+
}
|
|
838
|
+
else {
|
|
839
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
});
|
|
844
|
+
})];
|
|
845
|
+
});
|
|
846
|
+
});
|
|
847
|
+
};
|
|
848
|
+
MatchedOffersApi.prototype.matchedOffersControllerCountsbystatus = function (account, options) {
|
|
849
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
850
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
851
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
852
|
+
var _this = this;
|
|
853
|
+
return __generator(this, function (_b) {
|
|
854
|
+
localVarPath = this.basePath + '/matched-offers/{account}/counts-by-status'
|
|
855
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
856
|
+
localVarQueryParameters = {};
|
|
857
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
858
|
+
localVarFormParams = {};
|
|
859
|
+
if (account === null || account === undefined) {
|
|
860
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerCountsbystatus.');
|
|
861
|
+
}
|
|
862
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
863
|
+
localVarUseFormData = false;
|
|
864
|
+
localVarRequestOptions = {
|
|
865
|
+
method: 'GET',
|
|
866
|
+
qs: localVarQueryParameters,
|
|
867
|
+
headers: localVarHeaderParams,
|
|
868
|
+
uri: localVarPath,
|
|
869
|
+
useQuerystring: this._useQuerystring,
|
|
870
|
+
json: true,
|
|
871
|
+
};
|
|
872
|
+
authenticationPromise = Promise.resolve();
|
|
873
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
874
|
+
interceptorPromise = authenticationPromise;
|
|
875
|
+
_loop_12 = function (interceptor) {
|
|
876
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
877
|
+
};
|
|
878
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
879
|
+
interceptor = _a[_i];
|
|
880
|
+
_loop_12(interceptor);
|
|
881
|
+
}
|
|
882
|
+
return [2, interceptorPromise.then(function () {
|
|
883
|
+
if (Object.keys(localVarFormParams).length) {
|
|
884
|
+
if (localVarUseFormData) {
|
|
885
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
886
|
+
}
|
|
887
|
+
else {
|
|
888
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
return new Promise(function (resolve, reject) {
|
|
892
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
893
|
+
if (error) {
|
|
894
|
+
reject(error);
|
|
895
|
+
}
|
|
896
|
+
else {
|
|
897
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
898
|
+
resolve({ response: response, body: body });
|
|
899
|
+
}
|
|
900
|
+
else {
|
|
901
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
});
|
|
906
|
+
})];
|
|
907
|
+
});
|
|
908
|
+
});
|
|
909
|
+
};
|
|
910
|
+
MatchedOffersApi.prototype.matchedOffersControllerCreate = function (account, createMatchedOfferDto, options) {
|
|
911
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
912
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
913
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
914
|
+
var _this = this;
|
|
915
|
+
return __generator(this, function (_b) {
|
|
916
|
+
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
917
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
918
|
+
localVarQueryParameters = {};
|
|
919
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
920
|
+
localVarFormParams = {};
|
|
921
|
+
if (account === null || account === undefined) {
|
|
922
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerCreate.');
|
|
923
|
+
}
|
|
924
|
+
if (createMatchedOfferDto === null || createMatchedOfferDto === undefined) {
|
|
925
|
+
throw new Error('Required parameter createMatchedOfferDto was null or undefined when calling matchedOffersControllerCreate.');
|
|
926
|
+
}
|
|
927
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
928
|
+
localVarUseFormData = false;
|
|
929
|
+
localVarRequestOptions = {
|
|
930
|
+
method: 'POST',
|
|
931
|
+
qs: localVarQueryParameters,
|
|
932
|
+
headers: localVarHeaderParams,
|
|
933
|
+
uri: localVarPath,
|
|
934
|
+
useQuerystring: this._useQuerystring,
|
|
935
|
+
json: true,
|
|
936
|
+
body: models_1.ObjectSerializer.serialize(createMatchedOfferDto, "CreateMatchedOfferDto")
|
|
937
|
+
};
|
|
938
|
+
authenticationPromise = Promise.resolve();
|
|
939
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
940
|
+
interceptorPromise = authenticationPromise;
|
|
941
|
+
_loop_13 = function (interceptor) {
|
|
942
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
943
|
+
};
|
|
944
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
945
|
+
interceptor = _a[_i];
|
|
946
|
+
_loop_13(interceptor);
|
|
947
|
+
}
|
|
948
|
+
return [2, interceptorPromise.then(function () {
|
|
949
|
+
if (Object.keys(localVarFormParams).length) {
|
|
950
|
+
if (localVarUseFormData) {
|
|
951
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
952
|
+
}
|
|
953
|
+
else {
|
|
954
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return new Promise(function (resolve, reject) {
|
|
958
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
959
|
+
if (error) {
|
|
960
|
+
reject(error);
|
|
961
|
+
}
|
|
962
|
+
else {
|
|
963
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
964
|
+
resolve({ response: response, body: body });
|
|
965
|
+
}
|
|
966
|
+
else {
|
|
967
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
});
|
|
972
|
+
})];
|
|
973
|
+
});
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
MatchedOffersApi.prototype.matchedOffersControllerDeletebid = function (id, userId, account, options) {
|
|
977
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
978
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
979
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
980
|
+
var _this = this;
|
|
981
|
+
return __generator(this, function (_b) {
|
|
982
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/{userId}/bid'
|
|
983
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
984
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
985
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
986
|
+
localVarQueryParameters = {};
|
|
987
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
988
|
+
localVarFormParams = {};
|
|
989
|
+
if (id === null || id === undefined) {
|
|
990
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerDeletebid.');
|
|
991
|
+
}
|
|
992
|
+
if (userId === null || userId === undefined) {
|
|
993
|
+
throw new Error('Required parameter userId was null or undefined when calling matchedOffersControllerDeletebid.');
|
|
994
|
+
}
|
|
995
|
+
if (account === null || account === undefined) {
|
|
996
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerDeletebid.');
|
|
997
|
+
}
|
|
998
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
999
|
+
localVarUseFormData = false;
|
|
1000
|
+
localVarRequestOptions = {
|
|
1001
|
+
method: 'DELETE',
|
|
1002
|
+
qs: localVarQueryParameters,
|
|
1003
|
+
headers: localVarHeaderParams,
|
|
1004
|
+
uri: localVarPath,
|
|
1005
|
+
useQuerystring: this._useQuerystring,
|
|
1006
|
+
json: true,
|
|
1007
|
+
};
|
|
1008
|
+
authenticationPromise = Promise.resolve();
|
|
1009
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1010
|
+
interceptorPromise = authenticationPromise;
|
|
1011
|
+
_loop_14 = function (interceptor) {
|
|
1012
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1013
|
+
};
|
|
1014
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1015
|
+
interceptor = _a[_i];
|
|
1016
|
+
_loop_14(interceptor);
|
|
1017
|
+
}
|
|
1018
|
+
return [2, interceptorPromise.then(function () {
|
|
1019
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1020
|
+
if (localVarUseFormData) {
|
|
1021
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1022
|
+
}
|
|
1023
|
+
else {
|
|
1024
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
return new Promise(function (resolve, reject) {
|
|
1028
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1029
|
+
if (error) {
|
|
1030
|
+
reject(error);
|
|
1031
|
+
}
|
|
1032
|
+
else {
|
|
1033
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1034
|
+
resolve({ response: response, body: body });
|
|
1035
|
+
}
|
|
1036
|
+
else {
|
|
1037
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
})];
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
MatchedOffersApi.prototype.matchedOffersControllerFilter = function (account, skip, limit, sort, fields, body, options) {
|
|
1047
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1048
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1049
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
1050
|
+
var _this = this;
|
|
1051
|
+
return __generator(this, function (_b) {
|
|
1052
|
+
localVarPath = this.basePath + '/matched-offers/{account}/search'
|
|
1053
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1054
|
+
localVarQueryParameters = {};
|
|
1055
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1056
|
+
localVarFormParams = {};
|
|
1057
|
+
if (account === null || account === undefined) {
|
|
1058
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFilter.');
|
|
1059
|
+
}
|
|
1060
|
+
if (skip !== undefined) {
|
|
1061
|
+
localVarQueryParameters['skip'] = models_1.ObjectSerializer.serialize(skip, "number");
|
|
1062
|
+
}
|
|
1063
|
+
if (limit !== undefined) {
|
|
1064
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1065
|
+
}
|
|
1066
|
+
if (sort !== undefined) {
|
|
1067
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "string");
|
|
1068
|
+
}
|
|
1069
|
+
if (fields !== undefined) {
|
|
1070
|
+
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(fields, "Array<string>");
|
|
1071
|
+
}
|
|
1072
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1073
|
+
localVarUseFormData = false;
|
|
1074
|
+
localVarRequestOptions = {
|
|
1075
|
+
method: 'POST',
|
|
1076
|
+
qs: localVarQueryParameters,
|
|
1077
|
+
headers: localVarHeaderParams,
|
|
1078
|
+
uri: localVarPath,
|
|
1079
|
+
useQuerystring: this._useQuerystring,
|
|
1080
|
+
json: true,
|
|
1081
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1082
|
+
};
|
|
1083
|
+
authenticationPromise = Promise.resolve();
|
|
1084
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1085
|
+
interceptorPromise = authenticationPromise;
|
|
1086
|
+
_loop_15 = function (interceptor) {
|
|
1087
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1088
|
+
};
|
|
1089
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1090
|
+
interceptor = _a[_i];
|
|
1091
|
+
_loop_15(interceptor);
|
|
1092
|
+
}
|
|
1093
|
+
return [2, interceptorPromise.then(function () {
|
|
1094
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1095
|
+
if (localVarUseFormData) {
|
|
1096
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1097
|
+
}
|
|
1098
|
+
else {
|
|
1099
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
return new Promise(function (resolve, reject) {
|
|
1103
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1104
|
+
if (error) {
|
|
1105
|
+
reject(error);
|
|
1106
|
+
}
|
|
1107
|
+
else {
|
|
1108
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1109
|
+
resolve({ response: response, body: body });
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
});
|
|
1117
|
+
})];
|
|
1118
|
+
});
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
MatchedOffersApi.prototype.matchedOffersControllerFindall = function (account, createMatchedOfferDto, skip, limit, sort, fields, options) {
|
|
1122
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1124
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1125
|
+
var _this = this;
|
|
1126
|
+
return __generator(this, function (_b) {
|
|
1127
|
+
localVarPath = this.basePath + '/matched-offers/{account}'
|
|
1128
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1129
|
+
localVarQueryParameters = {};
|
|
1130
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1131
|
+
localVarFormParams = {};
|
|
1132
|
+
if (account === null || account === undefined) {
|
|
1133
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindall.');
|
|
1134
|
+
}
|
|
1135
|
+
if (createMatchedOfferDto === null || createMatchedOfferDto === undefined) {
|
|
1136
|
+
throw new Error('Required parameter createMatchedOfferDto was null or undefined when calling matchedOffersControllerFindall.');
|
|
1137
|
+
}
|
|
1138
|
+
if (skip !== undefined) {
|
|
1139
|
+
localVarQueryParameters['skip'] = models_1.ObjectSerializer.serialize(skip, "number");
|
|
1140
|
+
}
|
|
1141
|
+
if (limit !== undefined) {
|
|
1142
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1143
|
+
}
|
|
1144
|
+
if (sort !== undefined) {
|
|
1145
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "string");
|
|
1146
|
+
}
|
|
1147
|
+
if (fields !== undefined) {
|
|
1148
|
+
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(fields, "Array<string>");
|
|
1149
|
+
}
|
|
1150
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1151
|
+
localVarUseFormData = false;
|
|
1152
|
+
localVarRequestOptions = {
|
|
1153
|
+
method: 'GET',
|
|
1154
|
+
qs: localVarQueryParameters,
|
|
1155
|
+
headers: localVarHeaderParams,
|
|
1156
|
+
uri: localVarPath,
|
|
1157
|
+
useQuerystring: this._useQuerystring,
|
|
1158
|
+
json: true,
|
|
1159
|
+
body: models_1.ObjectSerializer.serialize(createMatchedOfferDto, "CreateMatchedOfferDto")
|
|
1160
|
+
};
|
|
1161
|
+
authenticationPromise = Promise.resolve();
|
|
1162
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1163
|
+
interceptorPromise = authenticationPromise;
|
|
1164
|
+
_loop_16 = function (interceptor) {
|
|
1165
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1166
|
+
};
|
|
1167
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1168
|
+
interceptor = _a[_i];
|
|
1169
|
+
_loop_16(interceptor);
|
|
1170
|
+
}
|
|
1171
|
+
return [2, interceptorPromise.then(function () {
|
|
1172
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1173
|
+
if (localVarUseFormData) {
|
|
1174
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1175
|
+
}
|
|
1176
|
+
else {
|
|
1177
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
return new Promise(function (resolve, reject) {
|
|
1181
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1182
|
+
if (error) {
|
|
1183
|
+
reject(error);
|
|
1184
|
+
}
|
|
1185
|
+
else {
|
|
1186
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1187
|
+
resolve({ response: response, body: body });
|
|
1188
|
+
}
|
|
1189
|
+
else {
|
|
1190
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
});
|
|
1195
|
+
})];
|
|
1196
|
+
});
|
|
1197
|
+
});
|
|
1198
|
+
};
|
|
1199
|
+
MatchedOffersApi.prototype.matchedOffersControllerFindcountries = function (account, options) {
|
|
1200
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1202
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
1203
|
+
var _this = this;
|
|
1204
|
+
return __generator(this, function (_b) {
|
|
1205
|
+
localVarPath = this.basePath + '/matched-offers/{account}/countries'
|
|
1206
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1207
|
+
localVarQueryParameters = {};
|
|
1208
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1209
|
+
localVarFormParams = {};
|
|
1210
|
+
if (account === null || account === undefined) {
|
|
1211
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindcountries.');
|
|
1212
|
+
}
|
|
1213
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1214
|
+
localVarUseFormData = false;
|
|
1215
|
+
localVarRequestOptions = {
|
|
1216
|
+
method: 'GET',
|
|
1217
|
+
qs: localVarQueryParameters,
|
|
1218
|
+
headers: localVarHeaderParams,
|
|
1219
|
+
uri: localVarPath,
|
|
1220
|
+
useQuerystring: this._useQuerystring,
|
|
1221
|
+
json: true,
|
|
1222
|
+
};
|
|
1223
|
+
authenticationPromise = Promise.resolve();
|
|
1224
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1225
|
+
interceptorPromise = authenticationPromise;
|
|
1226
|
+
_loop_17 = function (interceptor) {
|
|
1227
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1228
|
+
};
|
|
1229
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1230
|
+
interceptor = _a[_i];
|
|
1231
|
+
_loop_17(interceptor);
|
|
1232
|
+
}
|
|
1233
|
+
return [2, interceptorPromise.then(function () {
|
|
1234
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1235
|
+
if (localVarUseFormData) {
|
|
1236
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1237
|
+
}
|
|
1238
|
+
else {
|
|
1239
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
return new Promise(function (resolve, reject) {
|
|
1243
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1244
|
+
if (error) {
|
|
1245
|
+
reject(error);
|
|
1246
|
+
}
|
|
1247
|
+
else {
|
|
1248
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1249
|
+
resolve({ response: response, body: body });
|
|
1250
|
+
}
|
|
1251
|
+
else {
|
|
1252
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
});
|
|
1257
|
+
})];
|
|
1258
|
+
});
|
|
1259
|
+
});
|
|
1260
|
+
};
|
|
1261
|
+
MatchedOffersApi.prototype.matchedOffersControllerFindone = function (id, account, fields, options) {
|
|
1262
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1264
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
1265
|
+
var _this = this;
|
|
1266
|
+
return __generator(this, function (_b) {
|
|
1267
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
1268
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1269
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1270
|
+
localVarQueryParameters = {};
|
|
1271
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1272
|
+
localVarFormParams = {};
|
|
1273
|
+
if (id === null || id === undefined) {
|
|
1274
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerFindone.');
|
|
1275
|
+
}
|
|
1276
|
+
if (account === null || account === undefined) {
|
|
1277
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerFindone.');
|
|
1278
|
+
}
|
|
1279
|
+
if (fields !== undefined) {
|
|
1280
|
+
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(fields, "string");
|
|
1281
|
+
}
|
|
1282
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1283
|
+
localVarUseFormData = false;
|
|
1284
|
+
localVarRequestOptions = {
|
|
1285
|
+
method: 'GET',
|
|
1286
|
+
qs: localVarQueryParameters,
|
|
1287
|
+
headers: localVarHeaderParams,
|
|
1288
|
+
uri: localVarPath,
|
|
1289
|
+
useQuerystring: this._useQuerystring,
|
|
1290
|
+
json: true,
|
|
1291
|
+
};
|
|
1292
|
+
authenticationPromise = Promise.resolve();
|
|
1293
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1294
|
+
interceptorPromise = authenticationPromise;
|
|
1295
|
+
_loop_18 = function (interceptor) {
|
|
1296
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1297
|
+
};
|
|
1298
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1299
|
+
interceptor = _a[_i];
|
|
1300
|
+
_loop_18(interceptor);
|
|
1301
|
+
}
|
|
1302
|
+
return [2, interceptorPromise.then(function () {
|
|
1303
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1304
|
+
if (localVarUseFormData) {
|
|
1305
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1306
|
+
}
|
|
1307
|
+
else {
|
|
1308
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
return new Promise(function (resolve, reject) {
|
|
1312
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1313
|
+
if (error) {
|
|
1314
|
+
reject(error);
|
|
1315
|
+
}
|
|
1316
|
+
else {
|
|
1317
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1318
|
+
resolve({ response: response, body: body });
|
|
1319
|
+
}
|
|
1320
|
+
else {
|
|
1321
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
});
|
|
1326
|
+
})];
|
|
1327
|
+
});
|
|
1328
|
+
});
|
|
1329
|
+
};
|
|
1330
|
+
MatchedOffersApi.prototype.matchedOffersControllerGenerateoffernumber = function (id, account, options) {
|
|
1331
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1332
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1333
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1334
|
+
var _this = this;
|
|
1335
|
+
return __generator(this, function (_b) {
|
|
1336
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/generate/number'
|
|
1337
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1338
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1339
|
+
localVarQueryParameters = {};
|
|
1340
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1341
|
+
localVarFormParams = {};
|
|
1342
|
+
if (id === null || id === undefined) {
|
|
1343
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerGenerateoffernumber.');
|
|
1344
|
+
}
|
|
1345
|
+
if (account === null || account === undefined) {
|
|
1346
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerGenerateoffernumber.');
|
|
1347
|
+
}
|
|
1348
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1349
|
+
localVarUseFormData = false;
|
|
1350
|
+
localVarRequestOptions = {
|
|
1351
|
+
method: 'PUT',
|
|
1352
|
+
qs: localVarQueryParameters,
|
|
1353
|
+
headers: localVarHeaderParams,
|
|
1354
|
+
uri: localVarPath,
|
|
1355
|
+
useQuerystring: this._useQuerystring,
|
|
1356
|
+
json: true,
|
|
1357
|
+
};
|
|
1358
|
+
authenticationPromise = Promise.resolve();
|
|
1359
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1360
|
+
interceptorPromise = authenticationPromise;
|
|
1361
|
+
_loop_19 = function (interceptor) {
|
|
1362
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1363
|
+
};
|
|
1364
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1365
|
+
interceptor = _a[_i];
|
|
1366
|
+
_loop_19(interceptor);
|
|
1367
|
+
}
|
|
1368
|
+
return [2, interceptorPromise.then(function () {
|
|
1369
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1370
|
+
if (localVarUseFormData) {
|
|
1371
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1372
|
+
}
|
|
1373
|
+
else {
|
|
1374
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
return new Promise(function (resolve, reject) {
|
|
1378
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1379
|
+
if (error) {
|
|
1380
|
+
reject(error);
|
|
1381
|
+
}
|
|
1382
|
+
else {
|
|
1383
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1384
|
+
resolve({ response: response, body: body });
|
|
1385
|
+
}
|
|
1386
|
+
else {
|
|
1387
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
});
|
|
1391
|
+
});
|
|
1392
|
+
})];
|
|
1393
|
+
});
|
|
1394
|
+
});
|
|
1395
|
+
};
|
|
1396
|
+
MatchedOffersApi.prototype.matchedOffersControllerLogview = function (id, account, body, options) {
|
|
1397
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1398
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1399
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1400
|
+
var _this = this;
|
|
1401
|
+
return __generator(this, function (_b) {
|
|
1402
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/view'
|
|
1403
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1404
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1405
|
+
localVarQueryParameters = {};
|
|
1406
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1407
|
+
localVarFormParams = {};
|
|
1408
|
+
if (id === null || id === undefined) {
|
|
1409
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerLogview.');
|
|
1410
|
+
}
|
|
1411
|
+
if (account === null || account === undefined) {
|
|
1412
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerLogview.');
|
|
1413
|
+
}
|
|
1414
|
+
if (body === null || body === undefined) {
|
|
1415
|
+
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerLogview.');
|
|
1416
|
+
}
|
|
1417
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1418
|
+
localVarUseFormData = false;
|
|
1419
|
+
localVarRequestOptions = {
|
|
1420
|
+
method: 'POST',
|
|
1421
|
+
qs: localVarQueryParameters,
|
|
1422
|
+
headers: localVarHeaderParams,
|
|
1423
|
+
uri: localVarPath,
|
|
1424
|
+
useQuerystring: this._useQuerystring,
|
|
1425
|
+
json: true,
|
|
1426
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1427
|
+
};
|
|
1428
|
+
authenticationPromise = Promise.resolve();
|
|
1429
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1430
|
+
interceptorPromise = authenticationPromise;
|
|
1431
|
+
_loop_20 = function (interceptor) {
|
|
1432
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1433
|
+
};
|
|
1434
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1435
|
+
interceptor = _a[_i];
|
|
1436
|
+
_loop_20(interceptor);
|
|
1437
|
+
}
|
|
1438
|
+
return [2, interceptorPromise.then(function () {
|
|
1439
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1440
|
+
if (localVarUseFormData) {
|
|
1441
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1442
|
+
}
|
|
1443
|
+
else {
|
|
1444
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
return new Promise(function (resolve, reject) {
|
|
1448
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1449
|
+
if (error) {
|
|
1450
|
+
reject(error);
|
|
1451
|
+
}
|
|
1452
|
+
else {
|
|
1453
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1454
|
+
resolve({ response: response, body: body });
|
|
1455
|
+
}
|
|
1456
|
+
else {
|
|
1457
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
});
|
|
1462
|
+
})];
|
|
1463
|
+
});
|
|
1464
|
+
});
|
|
1465
|
+
};
|
|
1466
|
+
MatchedOffersApi.prototype.matchedOffersControllerRemove = function (id, account, options) {
|
|
1467
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1468
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1469
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
|
|
1470
|
+
var _this = this;
|
|
1471
|
+
return __generator(this, function (_b) {
|
|
1472
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
1473
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1474
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1475
|
+
localVarQueryParameters = {};
|
|
1476
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1477
|
+
localVarFormParams = {};
|
|
1478
|
+
if (id === null || id === undefined) {
|
|
1479
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerRemove.');
|
|
1480
|
+
}
|
|
1481
|
+
if (account === null || account === undefined) {
|
|
1482
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerRemove.');
|
|
1483
|
+
}
|
|
1484
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1485
|
+
localVarUseFormData = false;
|
|
1486
|
+
localVarRequestOptions = {
|
|
1487
|
+
method: 'DELETE',
|
|
1488
|
+
qs: localVarQueryParameters,
|
|
1489
|
+
headers: localVarHeaderParams,
|
|
1490
|
+
uri: localVarPath,
|
|
1491
|
+
useQuerystring: this._useQuerystring,
|
|
1492
|
+
json: true,
|
|
1493
|
+
};
|
|
1494
|
+
authenticationPromise = Promise.resolve();
|
|
1495
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1496
|
+
interceptorPromise = authenticationPromise;
|
|
1497
|
+
_loop_21 = function (interceptor) {
|
|
1498
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1499
|
+
};
|
|
1500
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1501
|
+
interceptor = _a[_i];
|
|
1502
|
+
_loop_21(interceptor);
|
|
1503
|
+
}
|
|
1504
|
+
return [2, interceptorPromise.then(function () {
|
|
1505
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1506
|
+
if (localVarUseFormData) {
|
|
1507
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1508
|
+
}
|
|
1509
|
+
else {
|
|
1510
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
return new Promise(function (resolve, reject) {
|
|
1514
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1515
|
+
if (error) {
|
|
1516
|
+
reject(error);
|
|
1517
|
+
}
|
|
1518
|
+
else {
|
|
1519
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1520
|
+
resolve({ response: response, body: body });
|
|
1521
|
+
}
|
|
1522
|
+
else {
|
|
1523
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
});
|
|
1528
|
+
})];
|
|
1529
|
+
});
|
|
1530
|
+
});
|
|
1531
|
+
};
|
|
1532
|
+
MatchedOffersApi.prototype.matchedOffersControllerRemovepin = function (id, account, pinActionDto, options) {
|
|
1533
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1534
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1535
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
|
|
1536
|
+
var _this = this;
|
|
1537
|
+
return __generator(this, function (_b) {
|
|
1538
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/unpin'
|
|
1539
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1540
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1541
|
+
localVarQueryParameters = {};
|
|
1542
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1543
|
+
localVarFormParams = {};
|
|
1544
|
+
if (id === null || id === undefined) {
|
|
1545
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerRemovepin.');
|
|
1546
|
+
}
|
|
1547
|
+
if (account === null || account === undefined) {
|
|
1548
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerRemovepin.');
|
|
1549
|
+
}
|
|
1550
|
+
if (pinActionDto === null || pinActionDto === undefined) {
|
|
1551
|
+
throw new Error('Required parameter pinActionDto was null or undefined when calling matchedOffersControllerRemovepin.');
|
|
1552
|
+
}
|
|
1553
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1554
|
+
localVarUseFormData = false;
|
|
1555
|
+
localVarRequestOptions = {
|
|
1556
|
+
method: 'POST',
|
|
1557
|
+
qs: localVarQueryParameters,
|
|
1558
|
+
headers: localVarHeaderParams,
|
|
1559
|
+
uri: localVarPath,
|
|
1560
|
+
useQuerystring: this._useQuerystring,
|
|
1561
|
+
json: true,
|
|
1562
|
+
body: models_1.ObjectSerializer.serialize(pinActionDto, "PinActionDto")
|
|
1563
|
+
};
|
|
1564
|
+
authenticationPromise = Promise.resolve();
|
|
1565
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1566
|
+
interceptorPromise = authenticationPromise;
|
|
1567
|
+
_loop_22 = function (interceptor) {
|
|
1568
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1569
|
+
};
|
|
1570
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1571
|
+
interceptor = _a[_i];
|
|
1572
|
+
_loop_22(interceptor);
|
|
1573
|
+
}
|
|
1574
|
+
return [2, interceptorPromise.then(function () {
|
|
1575
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1576
|
+
if (localVarUseFormData) {
|
|
1577
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1578
|
+
}
|
|
1579
|
+
else {
|
|
1580
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
return new Promise(function (resolve, reject) {
|
|
1584
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1585
|
+
if (error) {
|
|
1586
|
+
reject(error);
|
|
1587
|
+
}
|
|
1588
|
+
else {
|
|
1589
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1590
|
+
resolve({ response: response, body: body });
|
|
1591
|
+
}
|
|
1592
|
+
else {
|
|
1593
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
});
|
|
1598
|
+
})];
|
|
1599
|
+
});
|
|
1600
|
+
});
|
|
1601
|
+
};
|
|
1602
|
+
MatchedOffersApi.prototype.matchedOffersControllerReopen = function (id, account, options) {
|
|
1603
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1604
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1605
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_23, _i, _a, interceptor;
|
|
1606
|
+
var _this = this;
|
|
1607
|
+
return __generator(this, function (_b) {
|
|
1608
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/reopen'
|
|
1609
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1610
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1611
|
+
localVarQueryParameters = {};
|
|
1612
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1613
|
+
localVarFormParams = {};
|
|
1614
|
+
if (id === null || id === undefined) {
|
|
1615
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerReopen.');
|
|
1616
|
+
}
|
|
1617
|
+
if (account === null || account === undefined) {
|
|
1618
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerReopen.');
|
|
1619
|
+
}
|
|
1620
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1621
|
+
localVarUseFormData = false;
|
|
1622
|
+
localVarRequestOptions = {
|
|
1623
|
+
method: 'POST',
|
|
1624
|
+
qs: localVarQueryParameters,
|
|
1625
|
+
headers: localVarHeaderParams,
|
|
1626
|
+
uri: localVarPath,
|
|
1627
|
+
useQuerystring: this._useQuerystring,
|
|
1628
|
+
json: true,
|
|
1629
|
+
};
|
|
1630
|
+
authenticationPromise = Promise.resolve();
|
|
1631
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1632
|
+
interceptorPromise = authenticationPromise;
|
|
1633
|
+
_loop_23 = function (interceptor) {
|
|
1634
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1635
|
+
};
|
|
1636
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1637
|
+
interceptor = _a[_i];
|
|
1638
|
+
_loop_23(interceptor);
|
|
1639
|
+
}
|
|
1640
|
+
return [2, interceptorPromise.then(function () {
|
|
1641
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1642
|
+
if (localVarUseFormData) {
|
|
1643
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1644
|
+
}
|
|
1645
|
+
else {
|
|
1646
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
return new Promise(function (resolve, reject) {
|
|
1650
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1651
|
+
if (error) {
|
|
1652
|
+
reject(error);
|
|
1653
|
+
}
|
|
1654
|
+
else {
|
|
1655
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1656
|
+
resolve({ response: response, body: body });
|
|
1657
|
+
}
|
|
1658
|
+
else {
|
|
1659
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
});
|
|
1663
|
+
});
|
|
1664
|
+
})];
|
|
1665
|
+
});
|
|
1666
|
+
});
|
|
1667
|
+
};
|
|
1668
|
+
MatchedOffersApi.prototype.matchedOffersControllerSetconfirmindex = function (id, account, body, options) {
|
|
1669
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1670
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1671
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_24, _i, _a, interceptor;
|
|
1672
|
+
var _this = this;
|
|
1673
|
+
return __generator(this, function (_b) {
|
|
1674
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}/confirm/index'
|
|
1675
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1676
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1677
|
+
localVarQueryParameters = {};
|
|
1678
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1679
|
+
localVarFormParams = {};
|
|
1680
|
+
if (id === null || id === undefined) {
|
|
1681
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerSetconfirmindex.');
|
|
1682
|
+
}
|
|
1683
|
+
if (account === null || account === undefined) {
|
|
1684
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerSetconfirmindex.');
|
|
1685
|
+
}
|
|
1686
|
+
if (body === null || body === undefined) {
|
|
1687
|
+
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerSetconfirmindex.');
|
|
1688
|
+
}
|
|
1689
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1690
|
+
localVarUseFormData = false;
|
|
1691
|
+
localVarRequestOptions = {
|
|
1692
|
+
method: 'PUT',
|
|
1693
|
+
qs: localVarQueryParameters,
|
|
1694
|
+
headers: localVarHeaderParams,
|
|
1695
|
+
uri: localVarPath,
|
|
1696
|
+
useQuerystring: this._useQuerystring,
|
|
1697
|
+
json: true,
|
|
1698
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1699
|
+
};
|
|
1700
|
+
authenticationPromise = Promise.resolve();
|
|
1701
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1702
|
+
interceptorPromise = authenticationPromise;
|
|
1703
|
+
_loop_24 = function (interceptor) {
|
|
1704
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1705
|
+
};
|
|
1706
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1707
|
+
interceptor = _a[_i];
|
|
1708
|
+
_loop_24(interceptor);
|
|
1709
|
+
}
|
|
1710
|
+
return [2, interceptorPromise.then(function () {
|
|
1711
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1712
|
+
if (localVarUseFormData) {
|
|
1713
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1714
|
+
}
|
|
1715
|
+
else {
|
|
1716
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
return new Promise(function (resolve, reject) {
|
|
1720
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1721
|
+
if (error) {
|
|
1722
|
+
reject(error);
|
|
1723
|
+
}
|
|
1724
|
+
else {
|
|
1725
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1726
|
+
resolve({ response: response, body: body });
|
|
1727
|
+
}
|
|
1728
|
+
else {
|
|
1729
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
});
|
|
1734
|
+
})];
|
|
1735
|
+
});
|
|
1736
|
+
});
|
|
1737
|
+
};
|
|
1738
|
+
MatchedOffersApi.prototype.matchedOffersControllerTotal = function (account, body, options) {
|
|
1739
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1740
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1741
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_25, _i, _a, interceptor;
|
|
1742
|
+
var _this = this;
|
|
1743
|
+
return __generator(this, function (_b) {
|
|
1744
|
+
localVarPath = this.basePath + '/matched-offers/{account}/total'
|
|
1745
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1746
|
+
localVarQueryParameters = {};
|
|
1747
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1748
|
+
localVarFormParams = {};
|
|
1749
|
+
if (account === null || account === undefined) {
|
|
1750
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerTotal.');
|
|
1751
|
+
}
|
|
1752
|
+
if (body === null || body === undefined) {
|
|
1753
|
+
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerTotal.');
|
|
1754
|
+
}
|
|
1755
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1756
|
+
localVarUseFormData = false;
|
|
1757
|
+
localVarRequestOptions = {
|
|
1758
|
+
method: 'GET',
|
|
1759
|
+
qs: localVarQueryParameters,
|
|
1760
|
+
headers: localVarHeaderParams,
|
|
1761
|
+
uri: localVarPath,
|
|
1762
|
+
useQuerystring: this._useQuerystring,
|
|
1763
|
+
json: true,
|
|
1764
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1765
|
+
};
|
|
1766
|
+
authenticationPromise = Promise.resolve();
|
|
1767
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1768
|
+
interceptorPromise = authenticationPromise;
|
|
1769
|
+
_loop_25 = function (interceptor) {
|
|
1770
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1771
|
+
};
|
|
1772
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1773
|
+
interceptor = _a[_i];
|
|
1774
|
+
_loop_25(interceptor);
|
|
1775
|
+
}
|
|
1776
|
+
return [2, interceptorPromise.then(function () {
|
|
1777
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1778
|
+
if (localVarUseFormData) {
|
|
1779
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1780
|
+
}
|
|
1781
|
+
else {
|
|
1782
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
return new Promise(function (resolve, reject) {
|
|
1786
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1787
|
+
if (error) {
|
|
1788
|
+
reject(error);
|
|
1789
|
+
}
|
|
1790
|
+
else {
|
|
1791
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1792
|
+
resolve({ response: response, body: body });
|
|
1793
|
+
}
|
|
1794
|
+
else {
|
|
1795
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
});
|
|
1799
|
+
});
|
|
1800
|
+
})];
|
|
1801
|
+
});
|
|
1802
|
+
});
|
|
1803
|
+
};
|
|
1804
|
+
MatchedOffersApi.prototype.matchedOffersControllerUpdate = function (id, account, body, options) {
|
|
1805
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1806
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1807
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_26, _i, _a, interceptor;
|
|
1808
|
+
var _this = this;
|
|
1809
|
+
return __generator(this, function (_b) {
|
|
1810
|
+
localVarPath = this.basePath + '/matched-offers/{account}/{id}'
|
|
1811
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
1812
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1813
|
+
localVarQueryParameters = {};
|
|
1814
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1815
|
+
localVarFormParams = {};
|
|
1816
|
+
if (id === null || id === undefined) {
|
|
1817
|
+
throw new Error('Required parameter id was null or undefined when calling matchedOffersControllerUpdate.');
|
|
1818
|
+
}
|
|
1819
|
+
if (account === null || account === undefined) {
|
|
1820
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerUpdate.');
|
|
1821
|
+
}
|
|
1822
|
+
if (body === null || body === undefined) {
|
|
1823
|
+
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerUpdate.');
|
|
1824
|
+
}
|
|
1825
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1826
|
+
localVarUseFormData = false;
|
|
1827
|
+
localVarRequestOptions = {
|
|
1828
|
+
method: 'PUT',
|
|
1829
|
+
qs: localVarQueryParameters,
|
|
1830
|
+
headers: localVarHeaderParams,
|
|
1831
|
+
uri: localVarPath,
|
|
1832
|
+
useQuerystring: this._useQuerystring,
|
|
1833
|
+
json: true,
|
|
1834
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1835
|
+
};
|
|
1836
|
+
authenticationPromise = Promise.resolve();
|
|
1837
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1838
|
+
interceptorPromise = authenticationPromise;
|
|
1839
|
+
_loop_26 = function (interceptor) {
|
|
1840
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1841
|
+
};
|
|
1842
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1843
|
+
interceptor = _a[_i];
|
|
1844
|
+
_loop_26(interceptor);
|
|
1845
|
+
}
|
|
1846
|
+
return [2, interceptorPromise.then(function () {
|
|
1847
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1848
|
+
if (localVarUseFormData) {
|
|
1849
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1850
|
+
}
|
|
1851
|
+
else {
|
|
1852
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
return new Promise(function (resolve, reject) {
|
|
1856
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1857
|
+
if (error) {
|
|
1858
|
+
reject(error);
|
|
1859
|
+
}
|
|
1860
|
+
else {
|
|
1861
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1862
|
+
resolve({ response: response, body: body });
|
|
1863
|
+
}
|
|
1864
|
+
else {
|
|
1865
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
});
|
|
1869
|
+
});
|
|
1870
|
+
})];
|
|
1871
|
+
});
|
|
1872
|
+
});
|
|
1873
|
+
};
|
|
1874
|
+
MatchedOffersApi.prototype.matchedOffersControllerUpdatestatus = function (account, body, options) {
|
|
1875
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1876
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1877
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_27, _i, _a, interceptor;
|
|
1878
|
+
var _this = this;
|
|
1879
|
+
return __generator(this, function (_b) {
|
|
1880
|
+
localVarPath = this.basePath + '/matched-offers/{account}/status'
|
|
1881
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1882
|
+
localVarQueryParameters = {};
|
|
1883
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1884
|
+
localVarFormParams = {};
|
|
1885
|
+
if (account === null || account === undefined) {
|
|
1886
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerUpdatestatus.');
|
|
1887
|
+
}
|
|
1888
|
+
if (body === null || body === undefined) {
|
|
1889
|
+
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerUpdatestatus.');
|
|
1890
|
+
}
|
|
1891
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1892
|
+
localVarUseFormData = false;
|
|
1893
|
+
localVarRequestOptions = {
|
|
1894
|
+
method: 'PUT',
|
|
1895
|
+
qs: localVarQueryParameters,
|
|
1896
|
+
headers: localVarHeaderParams,
|
|
1897
|
+
uri: localVarPath,
|
|
1898
|
+
useQuerystring: this._useQuerystring,
|
|
1899
|
+
json: true,
|
|
1900
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1901
|
+
};
|
|
1902
|
+
authenticationPromise = Promise.resolve();
|
|
1903
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1904
|
+
interceptorPromise = authenticationPromise;
|
|
1905
|
+
_loop_27 = function (interceptor) {
|
|
1906
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1907
|
+
};
|
|
1908
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1909
|
+
interceptor = _a[_i];
|
|
1910
|
+
_loop_27(interceptor);
|
|
1911
|
+
}
|
|
1912
|
+
return [2, interceptorPromise.then(function () {
|
|
1913
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1914
|
+
if (localVarUseFormData) {
|
|
1915
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1916
|
+
}
|
|
1917
|
+
else {
|
|
1918
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
return new Promise(function (resolve, reject) {
|
|
1922
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1923
|
+
if (error) {
|
|
1924
|
+
reject(error);
|
|
1925
|
+
}
|
|
1926
|
+
else {
|
|
1927
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1928
|
+
resolve({ response: response, body: body });
|
|
1929
|
+
}
|
|
1930
|
+
else {
|
|
1931
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
});
|
|
1935
|
+
});
|
|
1936
|
+
})];
|
|
1937
|
+
});
|
|
1938
|
+
});
|
|
1939
|
+
};
|
|
1940
|
+
MatchedOffersApi.prototype.matchedOffersControllerValidatestatus = function (account, body, options) {
|
|
1941
|
+
if (options === void 0) { options = { headers: {} }; }
|
|
1942
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1943
|
+
var localVarPath, localVarQueryParameters, localVarHeaderParams, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_28, _i, _a, interceptor;
|
|
1944
|
+
var _this = this;
|
|
1945
|
+
return __generator(this, function (_b) {
|
|
1946
|
+
localVarPath = this.basePath + '/matched-offers/{account}/status/validate'
|
|
1947
|
+
.replace('{' + 'account' + '}', encodeURIComponent(String(account)));
|
|
1948
|
+
localVarQueryParameters = {};
|
|
1949
|
+
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1950
|
+
localVarFormParams = {};
|
|
1951
|
+
if (account === null || account === undefined) {
|
|
1952
|
+
throw new Error('Required parameter account was null or undefined when calling matchedOffersControllerValidatestatus.');
|
|
1953
|
+
}
|
|
1954
|
+
if (body === null || body === undefined) {
|
|
1955
|
+
throw new Error('Required parameter body was null or undefined when calling matchedOffersControllerValidatestatus.');
|
|
1956
|
+
}
|
|
1957
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1958
|
+
localVarUseFormData = false;
|
|
1959
|
+
localVarRequestOptions = {
|
|
1960
|
+
method: 'POST',
|
|
1961
|
+
qs: localVarQueryParameters,
|
|
1962
|
+
headers: localVarHeaderParams,
|
|
1963
|
+
uri: localVarPath,
|
|
1964
|
+
useQuerystring: this._useQuerystring,
|
|
1965
|
+
json: true,
|
|
1966
|
+
body: models_1.ObjectSerializer.serialize(body, "object")
|
|
1967
|
+
};
|
|
1968
|
+
authenticationPromise = Promise.resolve();
|
|
1969
|
+
authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
|
|
1970
|
+
interceptorPromise = authenticationPromise;
|
|
1971
|
+
_loop_28 = function (interceptor) {
|
|
1972
|
+
interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
|
|
1973
|
+
};
|
|
1974
|
+
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1975
|
+
interceptor = _a[_i];
|
|
1976
|
+
_loop_28(interceptor);
|
|
1977
|
+
}
|
|
1978
|
+
return [2, interceptorPromise.then(function () {
|
|
1979
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1980
|
+
if (localVarUseFormData) {
|
|
1981
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1982
|
+
}
|
|
1983
|
+
else {
|
|
1984
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
return new Promise(function (resolve, reject) {
|
|
1988
|
+
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1989
|
+
if (error) {
|
|
1990
|
+
reject(error);
|
|
1991
|
+
}
|
|
1992
|
+
else {
|
|
1993
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1994
|
+
resolve({ response: response, body: body });
|
|
1995
|
+
}
|
|
1996
|
+
else {
|
|
1997
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
});
|
|
2002
|
+
})];
|
|
2003
|
+
});
|
|
2004
|
+
});
|
|
2005
|
+
};
|
|
2006
|
+
return MatchedOffersApi;
|
|
2007
|
+
}());
|
|
2008
|
+
exports.MatchedOffersApi = MatchedOffersApi;
|
|
2009
2009
|
//# sourceMappingURL=matchedOffersApi.js.map
|