vayu-ts 0.2.7 → 0.2.8
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/dist/openapi/apis/AuthApi.js +1 -1
- package/dist/openapi/apis/ContractsApi.js +4 -4
- package/dist/openapi/apis/CreditsApi.js +3 -3
- package/dist/openapi/apis/CustomersApi.js +7 -7
- package/dist/openapi/apis/EventsApi.js +5 -5
- package/dist/openapi/apis/IntegrationsApi.js +2 -2
- package/dist/openapi/apis/InvoicesApi.js +2 -2
- package/dist/openapi/apis/MetersApi.js +4 -4
- package/dist/openapi/apis/PlansApi.js +3 -3
- package/dist/openapi/apis/ProductConsumptionsApi.js +1 -1
- package/dist/openapi/apis/ReportsApi.js +2 -2
- package/dist/openapi/apis/WebhooksApi.js +1 -1
- package/dist/openapi/configuration.d.ts +2 -8
- package/dist/openapi/index.d.ts +2 -3
- package/dist/openapi/index.js +1 -3
- package/dist/openapi/types/ObservableAPI.d.ts +71 -71
- package/dist/openapi/types/ObservableAPI.js +105 -1085
- package/dist/openapi/types/PromiseAPI.d.ts +71 -71
- package/dist/openapi/types/PromiseAPI.js +70 -771
- package/dist/openapi-v2/apis/AuthenticationApi.js +1 -1
- package/dist/openapi-v2/apis/CustomersApi.js +6 -6
- package/dist/openapi-v2/apis/EntitlementsApi.js +3 -3
- package/dist/openapi-v2/apis/EventsApi.js +4 -4
- package/dist/openapi-v2/apis/InvoicesApi.js +6 -6
- package/dist/openapi-v2/apis/ProductsApi.js +5 -5
- package/dist/openapi-v2/configuration.d.ts +2 -8
- package/dist/openapi-v2/index.d.ts +2 -3
- package/dist/openapi-v2/index.js +1 -3
- package/dist/openapi-v2/types/ObservableAPI.d.ts +51 -51
- package/dist/openapi-v2/types/ObservableAPI.js +75 -775
- package/dist/openapi-v2/types/PromiseAPI.d.ts +51 -51
- package/dist/openapi-v2/types/PromiseAPI.js +50 -551
- package/dist/sdk/clients/CustomersClient.d.ts +1 -0
- package/dist/sdk/clients/CustomersClient.js +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PromiseWebhooksApi = exports.PromiseReportsApi = exports.PromiseProductConsumptionsApi = exports.PromisePlansApi = exports.PromiseMetersApi = exports.PromiseInvoicesApi = exports.PromiseIntegrationsApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseAuthApi = void 0;
|
|
4
|
-
const middleware_1 = require("../middleware");
|
|
5
4
|
const ObservableAPI_1 = require("./ObservableAPI");
|
|
6
5
|
class PromiseAuthApi {
|
|
7
6
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -13,17 +12,7 @@ class PromiseAuthApi {
|
|
|
13
12
|
* @param loginRequest
|
|
14
13
|
*/
|
|
15
14
|
loginWithHttpInfo(loginRequest, _options) {
|
|
16
|
-
|
|
17
|
-
if (_options) {
|
|
18
|
-
observableOptions = {
|
|
19
|
-
baseServer: _options.baseServer,
|
|
20
|
-
httpApi: _options.httpApi,
|
|
21
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
22
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
23
|
-
authMethods: _options.authMethods
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const result = this.api.loginWithHttpInfo(loginRequest, observableOptions);
|
|
15
|
+
const result = this.api.loginWithHttpInfo(loginRequest, _options);
|
|
27
16
|
return result.toPromise();
|
|
28
17
|
}
|
|
29
18
|
/**
|
|
@@ -32,17 +21,7 @@ class PromiseAuthApi {
|
|
|
32
21
|
* @param loginRequest
|
|
33
22
|
*/
|
|
34
23
|
login(loginRequest, _options) {
|
|
35
|
-
|
|
36
|
-
if (_options) {
|
|
37
|
-
observableOptions = {
|
|
38
|
-
baseServer: _options.baseServer,
|
|
39
|
-
httpApi: _options.httpApi,
|
|
40
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
41
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
42
|
-
authMethods: _options.authMethods
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
const result = this.api.login(loginRequest, observableOptions);
|
|
24
|
+
const result = this.api.login(loginRequest, _options);
|
|
46
25
|
return result.toPromise();
|
|
47
26
|
}
|
|
48
27
|
}
|
|
@@ -58,17 +37,7 @@ class PromiseContractsApi {
|
|
|
58
37
|
* @param createContractRequest
|
|
59
38
|
*/
|
|
60
39
|
createContractWithHttpInfo(createContractRequest, _options) {
|
|
61
|
-
|
|
62
|
-
if (_options) {
|
|
63
|
-
observableOptions = {
|
|
64
|
-
baseServer: _options.baseServer,
|
|
65
|
-
httpApi: _options.httpApi,
|
|
66
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
67
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
68
|
-
authMethods: _options.authMethods
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
const result = this.api.createContractWithHttpInfo(createContractRequest, observableOptions);
|
|
40
|
+
const result = this.api.createContractWithHttpInfo(createContractRequest, _options);
|
|
72
41
|
return result.toPromise();
|
|
73
42
|
}
|
|
74
43
|
/**
|
|
@@ -77,17 +46,7 @@ class PromiseContractsApi {
|
|
|
77
46
|
* @param createContractRequest
|
|
78
47
|
*/
|
|
79
48
|
createContract(createContractRequest, _options) {
|
|
80
|
-
|
|
81
|
-
if (_options) {
|
|
82
|
-
observableOptions = {
|
|
83
|
-
baseServer: _options.baseServer,
|
|
84
|
-
httpApi: _options.httpApi,
|
|
85
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
86
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
87
|
-
authMethods: _options.authMethods
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
const result = this.api.createContract(createContractRequest, observableOptions);
|
|
49
|
+
const result = this.api.createContract(createContractRequest, _options);
|
|
91
50
|
return result.toPromise();
|
|
92
51
|
}
|
|
93
52
|
/**
|
|
@@ -96,17 +55,7 @@ class PromiseContractsApi {
|
|
|
96
55
|
* @param contractId
|
|
97
56
|
*/
|
|
98
57
|
deleteContractWithHttpInfo(contractId, _options) {
|
|
99
|
-
|
|
100
|
-
if (_options) {
|
|
101
|
-
observableOptions = {
|
|
102
|
-
baseServer: _options.baseServer,
|
|
103
|
-
httpApi: _options.httpApi,
|
|
104
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
105
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
106
|
-
authMethods: _options.authMethods
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
const result = this.api.deleteContractWithHttpInfo(contractId, observableOptions);
|
|
58
|
+
const result = this.api.deleteContractWithHttpInfo(contractId, _options);
|
|
110
59
|
return result.toPromise();
|
|
111
60
|
}
|
|
112
61
|
/**
|
|
@@ -115,17 +64,7 @@ class PromiseContractsApi {
|
|
|
115
64
|
* @param contractId
|
|
116
65
|
*/
|
|
117
66
|
deleteContract(contractId, _options) {
|
|
118
|
-
|
|
119
|
-
if (_options) {
|
|
120
|
-
observableOptions = {
|
|
121
|
-
baseServer: _options.baseServer,
|
|
122
|
-
httpApi: _options.httpApi,
|
|
123
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
124
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
125
|
-
authMethods: _options.authMethods
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
const result = this.api.deleteContract(contractId, observableOptions);
|
|
67
|
+
const result = this.api.deleteContract(contractId, _options);
|
|
129
68
|
return result.toPromise();
|
|
130
69
|
}
|
|
131
70
|
/**
|
|
@@ -134,17 +73,7 @@ class PromiseContractsApi {
|
|
|
134
73
|
* @param contractId
|
|
135
74
|
*/
|
|
136
75
|
getContractWithHttpInfo(contractId, _options) {
|
|
137
|
-
|
|
138
|
-
if (_options) {
|
|
139
|
-
observableOptions = {
|
|
140
|
-
baseServer: _options.baseServer,
|
|
141
|
-
httpApi: _options.httpApi,
|
|
142
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
143
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
144
|
-
authMethods: _options.authMethods
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
const result = this.api.getContractWithHttpInfo(contractId, observableOptions);
|
|
76
|
+
const result = this.api.getContractWithHttpInfo(contractId, _options);
|
|
148
77
|
return result.toPromise();
|
|
149
78
|
}
|
|
150
79
|
/**
|
|
@@ -153,17 +82,7 @@ class PromiseContractsApi {
|
|
|
153
82
|
* @param contractId
|
|
154
83
|
*/
|
|
155
84
|
getContract(contractId, _options) {
|
|
156
|
-
|
|
157
|
-
if (_options) {
|
|
158
|
-
observableOptions = {
|
|
159
|
-
baseServer: _options.baseServer,
|
|
160
|
-
httpApi: _options.httpApi,
|
|
161
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
162
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
163
|
-
authMethods: _options.authMethods
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
const result = this.api.getContract(contractId, observableOptions);
|
|
85
|
+
const result = this.api.getContract(contractId, _options);
|
|
167
86
|
return result.toPromise();
|
|
168
87
|
}
|
|
169
88
|
/**
|
|
@@ -173,17 +92,7 @@ class PromiseContractsApi {
|
|
|
173
92
|
* @param [cursor]
|
|
174
93
|
*/
|
|
175
94
|
listContractsWithHttpInfo(limit, cursor, _options) {
|
|
176
|
-
|
|
177
|
-
if (_options) {
|
|
178
|
-
observableOptions = {
|
|
179
|
-
baseServer: _options.baseServer,
|
|
180
|
-
httpApi: _options.httpApi,
|
|
181
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
182
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
183
|
-
authMethods: _options.authMethods
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
const result = this.api.listContractsWithHttpInfo(limit, cursor, observableOptions);
|
|
95
|
+
const result = this.api.listContractsWithHttpInfo(limit, cursor, _options);
|
|
187
96
|
return result.toPromise();
|
|
188
97
|
}
|
|
189
98
|
/**
|
|
@@ -193,17 +102,7 @@ class PromiseContractsApi {
|
|
|
193
102
|
* @param [cursor]
|
|
194
103
|
*/
|
|
195
104
|
listContracts(limit, cursor, _options) {
|
|
196
|
-
|
|
197
|
-
if (_options) {
|
|
198
|
-
observableOptions = {
|
|
199
|
-
baseServer: _options.baseServer,
|
|
200
|
-
httpApi: _options.httpApi,
|
|
201
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
202
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
203
|
-
authMethods: _options.authMethods
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
const result = this.api.listContracts(limit, cursor, observableOptions);
|
|
105
|
+
const result = this.api.listContracts(limit, cursor, _options);
|
|
207
106
|
return result.toPromise();
|
|
208
107
|
}
|
|
209
108
|
}
|
|
@@ -219,17 +118,7 @@ class PromiseCreditsApi {
|
|
|
219
118
|
* @param deductCreditsRequest
|
|
220
119
|
*/
|
|
221
120
|
deductCreditsWithHttpInfo(deductCreditsRequest, _options) {
|
|
222
|
-
|
|
223
|
-
if (_options) {
|
|
224
|
-
observableOptions = {
|
|
225
|
-
baseServer: _options.baseServer,
|
|
226
|
-
httpApi: _options.httpApi,
|
|
227
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
228
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
229
|
-
authMethods: _options.authMethods
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
const result = this.api.deductCreditsWithHttpInfo(deductCreditsRequest, observableOptions);
|
|
121
|
+
const result = this.api.deductCreditsWithHttpInfo(deductCreditsRequest, _options);
|
|
233
122
|
return result.toPromise();
|
|
234
123
|
}
|
|
235
124
|
/**
|
|
@@ -238,17 +127,7 @@ class PromiseCreditsApi {
|
|
|
238
127
|
* @param deductCreditsRequest
|
|
239
128
|
*/
|
|
240
129
|
deductCredits(deductCreditsRequest, _options) {
|
|
241
|
-
|
|
242
|
-
if (_options) {
|
|
243
|
-
observableOptions = {
|
|
244
|
-
baseServer: _options.baseServer,
|
|
245
|
-
httpApi: _options.httpApi,
|
|
246
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
247
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
248
|
-
authMethods: _options.authMethods
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
const result = this.api.deductCredits(deductCreditsRequest, observableOptions);
|
|
130
|
+
const result = this.api.deductCredits(deductCreditsRequest, _options);
|
|
252
131
|
return result.toPromise();
|
|
253
132
|
}
|
|
254
133
|
/**
|
|
@@ -257,17 +136,7 @@ class PromiseCreditsApi {
|
|
|
257
136
|
* @param grantCreditsRequest
|
|
258
137
|
*/
|
|
259
138
|
grantCreditsWithHttpInfo(grantCreditsRequest, _options) {
|
|
260
|
-
|
|
261
|
-
if (_options) {
|
|
262
|
-
observableOptions = {
|
|
263
|
-
baseServer: _options.baseServer,
|
|
264
|
-
httpApi: _options.httpApi,
|
|
265
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
266
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
267
|
-
authMethods: _options.authMethods
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
const result = this.api.grantCreditsWithHttpInfo(grantCreditsRequest, observableOptions);
|
|
139
|
+
const result = this.api.grantCreditsWithHttpInfo(grantCreditsRequest, _options);
|
|
271
140
|
return result.toPromise();
|
|
272
141
|
}
|
|
273
142
|
/**
|
|
@@ -276,17 +145,7 @@ class PromiseCreditsApi {
|
|
|
276
145
|
* @param grantCreditsRequest
|
|
277
146
|
*/
|
|
278
147
|
grantCredits(grantCreditsRequest, _options) {
|
|
279
|
-
|
|
280
|
-
if (_options) {
|
|
281
|
-
observableOptions = {
|
|
282
|
-
baseServer: _options.baseServer,
|
|
283
|
-
httpApi: _options.httpApi,
|
|
284
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
285
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
286
|
-
authMethods: _options.authMethods
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
const result = this.api.grantCredits(grantCreditsRequest, observableOptions);
|
|
148
|
+
const result = this.api.grantCredits(grantCreditsRequest, _options);
|
|
290
149
|
return result.toPromise();
|
|
291
150
|
}
|
|
292
151
|
/**
|
|
@@ -297,17 +156,7 @@ class PromiseCreditsApi {
|
|
|
297
156
|
* @param [cursor]
|
|
298
157
|
*/
|
|
299
158
|
listCreditLedgerEntriesWithHttpInfo(customerId, limit, cursor, _options) {
|
|
300
|
-
|
|
301
|
-
if (_options) {
|
|
302
|
-
observableOptions = {
|
|
303
|
-
baseServer: _options.baseServer,
|
|
304
|
-
httpApi: _options.httpApi,
|
|
305
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
306
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
307
|
-
authMethods: _options.authMethods
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
const result = this.api.listCreditLedgerEntriesWithHttpInfo(customerId, limit, cursor, observableOptions);
|
|
159
|
+
const result = this.api.listCreditLedgerEntriesWithHttpInfo(customerId, limit, cursor, _options);
|
|
311
160
|
return result.toPromise();
|
|
312
161
|
}
|
|
313
162
|
/**
|
|
@@ -318,17 +167,7 @@ class PromiseCreditsApi {
|
|
|
318
167
|
* @param [cursor]
|
|
319
168
|
*/
|
|
320
169
|
listCreditLedgerEntries(customerId, limit, cursor, _options) {
|
|
321
|
-
|
|
322
|
-
if (_options) {
|
|
323
|
-
observableOptions = {
|
|
324
|
-
baseServer: _options.baseServer,
|
|
325
|
-
httpApi: _options.httpApi,
|
|
326
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
327
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
328
|
-
authMethods: _options.authMethods
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
const result = this.api.listCreditLedgerEntries(customerId, limit, cursor, observableOptions);
|
|
170
|
+
const result = this.api.listCreditLedgerEntries(customerId, limit, cursor, _options);
|
|
332
171
|
return result.toPromise();
|
|
333
172
|
}
|
|
334
173
|
}
|
|
@@ -344,17 +183,7 @@ class PromiseCustomersApi {
|
|
|
344
183
|
* @param createCustomerRequest
|
|
345
184
|
*/
|
|
346
185
|
createCustomerWithHttpInfo(createCustomerRequest, _options) {
|
|
347
|
-
|
|
348
|
-
if (_options) {
|
|
349
|
-
observableOptions = {
|
|
350
|
-
baseServer: _options.baseServer,
|
|
351
|
-
httpApi: _options.httpApi,
|
|
352
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
353
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
354
|
-
authMethods: _options.authMethods
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
const result = this.api.createCustomerWithHttpInfo(createCustomerRequest, observableOptions);
|
|
186
|
+
const result = this.api.createCustomerWithHttpInfo(createCustomerRequest, _options);
|
|
358
187
|
return result.toPromise();
|
|
359
188
|
}
|
|
360
189
|
/**
|
|
@@ -363,17 +192,7 @@ class PromiseCustomersApi {
|
|
|
363
192
|
* @param createCustomerRequest
|
|
364
193
|
*/
|
|
365
194
|
createCustomer(createCustomerRequest, _options) {
|
|
366
|
-
|
|
367
|
-
if (_options) {
|
|
368
|
-
observableOptions = {
|
|
369
|
-
baseServer: _options.baseServer,
|
|
370
|
-
httpApi: _options.httpApi,
|
|
371
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
372
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
373
|
-
authMethods: _options.authMethods
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
const result = this.api.createCustomer(createCustomerRequest, observableOptions);
|
|
195
|
+
const result = this.api.createCustomer(createCustomerRequest, _options);
|
|
377
196
|
return result.toPromise();
|
|
378
197
|
}
|
|
379
198
|
/**
|
|
@@ -382,17 +201,7 @@ class PromiseCustomersApi {
|
|
|
382
201
|
* @param customerId
|
|
383
202
|
*/
|
|
384
203
|
deleteCustomerWithHttpInfo(customerId, _options) {
|
|
385
|
-
|
|
386
|
-
if (_options) {
|
|
387
|
-
observableOptions = {
|
|
388
|
-
baseServer: _options.baseServer,
|
|
389
|
-
httpApi: _options.httpApi,
|
|
390
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
391
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
392
|
-
authMethods: _options.authMethods
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
const result = this.api.deleteCustomerWithHttpInfo(customerId, observableOptions);
|
|
204
|
+
const result = this.api.deleteCustomerWithHttpInfo(customerId, _options);
|
|
396
205
|
return result.toPromise();
|
|
397
206
|
}
|
|
398
207
|
/**
|
|
@@ -401,17 +210,7 @@ class PromiseCustomersApi {
|
|
|
401
210
|
* @param customerId
|
|
402
211
|
*/
|
|
403
212
|
deleteCustomer(customerId, _options) {
|
|
404
|
-
|
|
405
|
-
if (_options) {
|
|
406
|
-
observableOptions = {
|
|
407
|
-
baseServer: _options.baseServer,
|
|
408
|
-
httpApi: _options.httpApi,
|
|
409
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
410
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
411
|
-
authMethods: _options.authMethods
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
const result = this.api.deleteCustomer(customerId, observableOptions);
|
|
213
|
+
const result = this.api.deleteCustomer(customerId, _options);
|
|
415
214
|
return result.toPromise();
|
|
416
215
|
}
|
|
417
216
|
/**
|
|
@@ -420,17 +219,7 @@ class PromiseCustomersApi {
|
|
|
420
219
|
* @param customerId
|
|
421
220
|
*/
|
|
422
221
|
getCustomerWithHttpInfo(customerId, _options) {
|
|
423
|
-
|
|
424
|
-
if (_options) {
|
|
425
|
-
observableOptions = {
|
|
426
|
-
baseServer: _options.baseServer,
|
|
427
|
-
httpApi: _options.httpApi,
|
|
428
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
429
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
430
|
-
authMethods: _options.authMethods
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
const result = this.api.getCustomerWithHttpInfo(customerId, observableOptions);
|
|
222
|
+
const result = this.api.getCustomerWithHttpInfo(customerId, _options);
|
|
434
223
|
return result.toPromise();
|
|
435
224
|
}
|
|
436
225
|
/**
|
|
@@ -439,17 +228,7 @@ class PromiseCustomersApi {
|
|
|
439
228
|
* @param customerId
|
|
440
229
|
*/
|
|
441
230
|
getCustomer(customerId, _options) {
|
|
442
|
-
|
|
443
|
-
if (_options) {
|
|
444
|
-
observableOptions = {
|
|
445
|
-
baseServer: _options.baseServer,
|
|
446
|
-
httpApi: _options.httpApi,
|
|
447
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
448
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
449
|
-
authMethods: _options.authMethods
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
const result = this.api.getCustomer(customerId, observableOptions);
|
|
231
|
+
const result = this.api.getCustomer(customerId, _options);
|
|
453
232
|
return result.toPromise();
|
|
454
233
|
}
|
|
455
234
|
/**
|
|
@@ -458,17 +237,7 @@ class PromiseCustomersApi {
|
|
|
458
237
|
* @param externalId
|
|
459
238
|
*/
|
|
460
239
|
getCustomerByExternalIdWithHttpInfo(externalId, _options) {
|
|
461
|
-
|
|
462
|
-
if (_options) {
|
|
463
|
-
observableOptions = {
|
|
464
|
-
baseServer: _options.baseServer,
|
|
465
|
-
httpApi: _options.httpApi,
|
|
466
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
467
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
468
|
-
authMethods: _options.authMethods
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
const result = this.api.getCustomerByExternalIdWithHttpInfo(externalId, observableOptions);
|
|
240
|
+
const result = this.api.getCustomerByExternalIdWithHttpInfo(externalId, _options);
|
|
472
241
|
return result.toPromise();
|
|
473
242
|
}
|
|
474
243
|
/**
|
|
@@ -477,17 +246,7 @@ class PromiseCustomersApi {
|
|
|
477
246
|
* @param externalId
|
|
478
247
|
*/
|
|
479
248
|
getCustomerByExternalId(externalId, _options) {
|
|
480
|
-
|
|
481
|
-
if (_options) {
|
|
482
|
-
observableOptions = {
|
|
483
|
-
baseServer: _options.baseServer,
|
|
484
|
-
httpApi: _options.httpApi,
|
|
485
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
486
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
487
|
-
authMethods: _options.authMethods
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
const result = this.api.getCustomerByExternalId(externalId, observableOptions);
|
|
249
|
+
const result = this.api.getCustomerByExternalId(externalId, _options);
|
|
491
250
|
return result.toPromise();
|
|
492
251
|
}
|
|
493
252
|
/**
|
|
@@ -496,17 +255,7 @@ class PromiseCustomersApi {
|
|
|
496
255
|
* @param customerId
|
|
497
256
|
*/
|
|
498
257
|
getCustomerProductsConsumptionsWithHttpInfo(customerId, _options) {
|
|
499
|
-
|
|
500
|
-
if (_options) {
|
|
501
|
-
observableOptions = {
|
|
502
|
-
baseServer: _options.baseServer,
|
|
503
|
-
httpApi: _options.httpApi,
|
|
504
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
505
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
506
|
-
authMethods: _options.authMethods
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
const result = this.api.getCustomerProductsConsumptionsWithHttpInfo(customerId, observableOptions);
|
|
258
|
+
const result = this.api.getCustomerProductsConsumptionsWithHttpInfo(customerId, _options);
|
|
510
259
|
return result.toPromise();
|
|
511
260
|
}
|
|
512
261
|
/**
|
|
@@ -515,17 +264,7 @@ class PromiseCustomersApi {
|
|
|
515
264
|
* @param customerId
|
|
516
265
|
*/
|
|
517
266
|
getCustomerProductsConsumptions(customerId, _options) {
|
|
518
|
-
|
|
519
|
-
if (_options) {
|
|
520
|
-
observableOptions = {
|
|
521
|
-
baseServer: _options.baseServer,
|
|
522
|
-
httpApi: _options.httpApi,
|
|
523
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
524
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
525
|
-
authMethods: _options.authMethods
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
const result = this.api.getCustomerProductsConsumptions(customerId, observableOptions);
|
|
267
|
+
const result = this.api.getCustomerProductsConsumptions(customerId, _options);
|
|
529
268
|
return result.toPromise();
|
|
530
269
|
}
|
|
531
270
|
/**
|
|
@@ -535,17 +274,7 @@ class PromiseCustomersApi {
|
|
|
535
274
|
* @param [cursor]
|
|
536
275
|
*/
|
|
537
276
|
listCustomersWithHttpInfo(limit, cursor, _options) {
|
|
538
|
-
|
|
539
|
-
if (_options) {
|
|
540
|
-
observableOptions = {
|
|
541
|
-
baseServer: _options.baseServer,
|
|
542
|
-
httpApi: _options.httpApi,
|
|
543
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
544
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
545
|
-
authMethods: _options.authMethods
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
const result = this.api.listCustomersWithHttpInfo(limit, cursor, observableOptions);
|
|
277
|
+
const result = this.api.listCustomersWithHttpInfo(limit, cursor, _options);
|
|
549
278
|
return result.toPromise();
|
|
550
279
|
}
|
|
551
280
|
/**
|
|
@@ -555,17 +284,7 @@ class PromiseCustomersApi {
|
|
|
555
284
|
* @param [cursor]
|
|
556
285
|
*/
|
|
557
286
|
listCustomers(limit, cursor, _options) {
|
|
558
|
-
|
|
559
|
-
if (_options) {
|
|
560
|
-
observableOptions = {
|
|
561
|
-
baseServer: _options.baseServer,
|
|
562
|
-
httpApi: _options.httpApi,
|
|
563
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
564
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
565
|
-
authMethods: _options.authMethods
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
const result = this.api.listCustomers(limit, cursor, observableOptions);
|
|
287
|
+
const result = this.api.listCustomers(limit, cursor, _options);
|
|
569
288
|
return result.toPromise();
|
|
570
289
|
}
|
|
571
290
|
/**
|
|
@@ -575,17 +294,7 @@ class PromiseCustomersApi {
|
|
|
575
294
|
* @param customerId
|
|
576
295
|
*/
|
|
577
296
|
updateCustomerWithHttpInfo(updateCustomerRequest, customerId, _options) {
|
|
578
|
-
|
|
579
|
-
if (_options) {
|
|
580
|
-
observableOptions = {
|
|
581
|
-
baseServer: _options.baseServer,
|
|
582
|
-
httpApi: _options.httpApi,
|
|
583
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
584
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
585
|
-
authMethods: _options.authMethods
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
const result = this.api.updateCustomerWithHttpInfo(updateCustomerRequest, customerId, observableOptions);
|
|
297
|
+
const result = this.api.updateCustomerWithHttpInfo(updateCustomerRequest, customerId, _options);
|
|
589
298
|
return result.toPromise();
|
|
590
299
|
}
|
|
591
300
|
/**
|
|
@@ -595,17 +304,7 @@ class PromiseCustomersApi {
|
|
|
595
304
|
* @param customerId
|
|
596
305
|
*/
|
|
597
306
|
updateCustomer(updateCustomerRequest, customerId, _options) {
|
|
598
|
-
|
|
599
|
-
if (_options) {
|
|
600
|
-
observableOptions = {
|
|
601
|
-
baseServer: _options.baseServer,
|
|
602
|
-
httpApi: _options.httpApi,
|
|
603
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
604
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
605
|
-
authMethods: _options.authMethods
|
|
606
|
-
};
|
|
607
|
-
}
|
|
608
|
-
const result = this.api.updateCustomer(updateCustomerRequest, customerId, observableOptions);
|
|
307
|
+
const result = this.api.updateCustomer(updateCustomerRequest, customerId, _options);
|
|
609
308
|
return result.toPromise();
|
|
610
309
|
}
|
|
611
310
|
}
|
|
@@ -621,17 +320,7 @@ class PromiseEventsApi {
|
|
|
621
320
|
* @param refId
|
|
622
321
|
*/
|
|
623
322
|
deleteEventByRefIdWithHttpInfo(refId, _options) {
|
|
624
|
-
|
|
625
|
-
if (_options) {
|
|
626
|
-
observableOptions = {
|
|
627
|
-
baseServer: _options.baseServer,
|
|
628
|
-
httpApi: _options.httpApi,
|
|
629
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
630
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
631
|
-
authMethods: _options.authMethods
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
const result = this.api.deleteEventByRefIdWithHttpInfo(refId, observableOptions);
|
|
323
|
+
const result = this.api.deleteEventByRefIdWithHttpInfo(refId, _options);
|
|
635
324
|
return result.toPromise();
|
|
636
325
|
}
|
|
637
326
|
/**
|
|
@@ -640,17 +329,7 @@ class PromiseEventsApi {
|
|
|
640
329
|
* @param refId
|
|
641
330
|
*/
|
|
642
331
|
deleteEventByRefId(refId, _options) {
|
|
643
|
-
|
|
644
|
-
if (_options) {
|
|
645
|
-
observableOptions = {
|
|
646
|
-
baseServer: _options.baseServer,
|
|
647
|
-
httpApi: _options.httpApi,
|
|
648
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
649
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
650
|
-
authMethods: _options.authMethods
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
const result = this.api.deleteEventByRefId(refId, observableOptions);
|
|
332
|
+
const result = this.api.deleteEventByRefId(refId, _options);
|
|
654
333
|
return result.toPromise();
|
|
655
334
|
}
|
|
656
335
|
/**
|
|
@@ -659,17 +338,7 @@ class PromiseEventsApi {
|
|
|
659
338
|
* @param refId
|
|
660
339
|
*/
|
|
661
340
|
getEventByRefIdWithHttpInfo(refId, _options) {
|
|
662
|
-
|
|
663
|
-
if (_options) {
|
|
664
|
-
observableOptions = {
|
|
665
|
-
baseServer: _options.baseServer,
|
|
666
|
-
httpApi: _options.httpApi,
|
|
667
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
668
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
669
|
-
authMethods: _options.authMethods
|
|
670
|
-
};
|
|
671
|
-
}
|
|
672
|
-
const result = this.api.getEventByRefIdWithHttpInfo(refId, observableOptions);
|
|
341
|
+
const result = this.api.getEventByRefIdWithHttpInfo(refId, _options);
|
|
673
342
|
return result.toPromise();
|
|
674
343
|
}
|
|
675
344
|
/**
|
|
@@ -678,17 +347,7 @@ class PromiseEventsApi {
|
|
|
678
347
|
* @param refId
|
|
679
348
|
*/
|
|
680
349
|
getEventByRefId(refId, _options) {
|
|
681
|
-
|
|
682
|
-
if (_options) {
|
|
683
|
-
observableOptions = {
|
|
684
|
-
baseServer: _options.baseServer,
|
|
685
|
-
httpApi: _options.httpApi,
|
|
686
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
687
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
688
|
-
authMethods: _options.authMethods
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
const result = this.api.getEventByRefId(refId, observableOptions);
|
|
350
|
+
const result = this.api.getEventByRefId(refId, _options);
|
|
692
351
|
return result.toPromise();
|
|
693
352
|
}
|
|
694
353
|
/**
|
|
@@ -701,17 +360,7 @@ class PromiseEventsApi {
|
|
|
701
360
|
* @param [cursor]
|
|
702
361
|
*/
|
|
703
362
|
queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options) {
|
|
704
|
-
|
|
705
|
-
if (_options) {
|
|
706
|
-
observableOptions = {
|
|
707
|
-
baseServer: _options.baseServer,
|
|
708
|
-
httpApi: _options.httpApi,
|
|
709
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
710
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
711
|
-
authMethods: _options.authMethods
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, observableOptions);
|
|
363
|
+
const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options);
|
|
715
364
|
return result.toPromise();
|
|
716
365
|
}
|
|
717
366
|
/**
|
|
@@ -724,17 +373,7 @@ class PromiseEventsApi {
|
|
|
724
373
|
* @param [cursor]
|
|
725
374
|
*/
|
|
726
375
|
queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
|
|
727
|
-
|
|
728
|
-
if (_options) {
|
|
729
|
-
observableOptions = {
|
|
730
|
-
baseServer: _options.baseServer,
|
|
731
|
-
httpApi: _options.httpApi,
|
|
732
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
733
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
734
|
-
authMethods: _options.authMethods
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
const result = this.api.queryEvents(startTime, endTime, eventName, limit, cursor, observableOptions);
|
|
376
|
+
const result = this.api.queryEvents(startTime, endTime, eventName, limit, cursor, _options);
|
|
738
377
|
return result.toPromise();
|
|
739
378
|
}
|
|
740
379
|
/**
|
|
@@ -743,17 +382,7 @@ class PromiseEventsApi {
|
|
|
743
382
|
* @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
|
|
744
383
|
*/
|
|
745
384
|
sendEventsWithHttpInfo(sendEventsRequest, _options) {
|
|
746
|
-
|
|
747
|
-
if (_options) {
|
|
748
|
-
observableOptions = {
|
|
749
|
-
baseServer: _options.baseServer,
|
|
750
|
-
httpApi: _options.httpApi,
|
|
751
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
752
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
753
|
-
authMethods: _options.authMethods
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
const result = this.api.sendEventsWithHttpInfo(sendEventsRequest, observableOptions);
|
|
385
|
+
const result = this.api.sendEventsWithHttpInfo(sendEventsRequest, _options);
|
|
757
386
|
return result.toPromise();
|
|
758
387
|
}
|
|
759
388
|
/**
|
|
@@ -762,17 +391,7 @@ class PromiseEventsApi {
|
|
|
762
391
|
* @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
|
|
763
392
|
*/
|
|
764
393
|
sendEvents(sendEventsRequest, _options) {
|
|
765
|
-
|
|
766
|
-
if (_options) {
|
|
767
|
-
observableOptions = {
|
|
768
|
-
baseServer: _options.baseServer,
|
|
769
|
-
httpApi: _options.httpApi,
|
|
770
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
771
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
772
|
-
authMethods: _options.authMethods
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
const result = this.api.sendEvents(sendEventsRequest, observableOptions);
|
|
394
|
+
const result = this.api.sendEvents(sendEventsRequest, _options);
|
|
776
395
|
return result.toPromise();
|
|
777
396
|
}
|
|
778
397
|
/**
|
|
@@ -781,17 +400,7 @@ class PromiseEventsApi {
|
|
|
781
400
|
* @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
|
|
782
401
|
*/
|
|
783
402
|
sendEventsDryRunWithHttpInfo(eventsDryRunRequest, _options) {
|
|
784
|
-
|
|
785
|
-
if (_options) {
|
|
786
|
-
observableOptions = {
|
|
787
|
-
baseServer: _options.baseServer,
|
|
788
|
-
httpApi: _options.httpApi,
|
|
789
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
790
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
791
|
-
authMethods: _options.authMethods
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
const result = this.api.sendEventsDryRunWithHttpInfo(eventsDryRunRequest, observableOptions);
|
|
403
|
+
const result = this.api.sendEventsDryRunWithHttpInfo(eventsDryRunRequest, _options);
|
|
795
404
|
return result.toPromise();
|
|
796
405
|
}
|
|
797
406
|
/**
|
|
@@ -800,17 +409,7 @@ class PromiseEventsApi {
|
|
|
800
409
|
* @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
|
|
801
410
|
*/
|
|
802
411
|
sendEventsDryRun(eventsDryRunRequest, _options) {
|
|
803
|
-
|
|
804
|
-
if (_options) {
|
|
805
|
-
observableOptions = {
|
|
806
|
-
baseServer: _options.baseServer,
|
|
807
|
-
httpApi: _options.httpApi,
|
|
808
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
809
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
810
|
-
authMethods: _options.authMethods
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
const result = this.api.sendEventsDryRun(eventsDryRunRequest, observableOptions);
|
|
412
|
+
const result = this.api.sendEventsDryRun(eventsDryRunRequest, _options);
|
|
814
413
|
return result.toPromise();
|
|
815
414
|
}
|
|
816
415
|
}
|
|
@@ -826,17 +425,7 @@ class PromiseIntegrationsApi {
|
|
|
826
425
|
* @param netSuiteExportSalesOrderRequest
|
|
827
426
|
*/
|
|
828
427
|
exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options) {
|
|
829
|
-
|
|
830
|
-
if (_options) {
|
|
831
|
-
observableOptions = {
|
|
832
|
-
baseServer: _options.baseServer,
|
|
833
|
-
httpApi: _options.httpApi,
|
|
834
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
835
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
836
|
-
authMethods: _options.authMethods
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
const result = this.api.exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, observableOptions);
|
|
428
|
+
const result = this.api.exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options);
|
|
840
429
|
return result.toPromise();
|
|
841
430
|
}
|
|
842
431
|
/**
|
|
@@ -845,17 +434,7 @@ class PromiseIntegrationsApi {
|
|
|
845
434
|
* @param netSuiteExportSalesOrderRequest
|
|
846
435
|
*/
|
|
847
436
|
exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options) {
|
|
848
|
-
|
|
849
|
-
if (_options) {
|
|
850
|
-
observableOptions = {
|
|
851
|
-
baseServer: _options.baseServer,
|
|
852
|
-
httpApi: _options.httpApi,
|
|
853
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
854
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
855
|
-
authMethods: _options.authMethods
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
const result = this.api.exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, observableOptions);
|
|
437
|
+
const result = this.api.exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options);
|
|
859
438
|
return result.toPromise();
|
|
860
439
|
}
|
|
861
440
|
/**
|
|
@@ -864,17 +443,7 @@ class PromiseIntegrationsApi {
|
|
|
864
443
|
* @param netSuiteSyncInvoicesRequest
|
|
865
444
|
*/
|
|
866
445
|
netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options) {
|
|
867
|
-
|
|
868
|
-
if (_options) {
|
|
869
|
-
observableOptions = {
|
|
870
|
-
baseServer: _options.baseServer,
|
|
871
|
-
httpApi: _options.httpApi,
|
|
872
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
873
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
874
|
-
authMethods: _options.authMethods
|
|
875
|
-
};
|
|
876
|
-
}
|
|
877
|
-
const result = this.api.netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, observableOptions);
|
|
446
|
+
const result = this.api.netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options);
|
|
878
447
|
return result.toPromise();
|
|
879
448
|
}
|
|
880
449
|
/**
|
|
@@ -883,17 +452,7 @@ class PromiseIntegrationsApi {
|
|
|
883
452
|
* @param netSuiteSyncInvoicesRequest
|
|
884
453
|
*/
|
|
885
454
|
netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options) {
|
|
886
|
-
|
|
887
|
-
if (_options) {
|
|
888
|
-
observableOptions = {
|
|
889
|
-
baseServer: _options.baseServer,
|
|
890
|
-
httpApi: _options.httpApi,
|
|
891
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
892
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
893
|
-
authMethods: _options.authMethods
|
|
894
|
-
};
|
|
895
|
-
}
|
|
896
|
-
const result = this.api.netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, observableOptions);
|
|
455
|
+
const result = this.api.netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options);
|
|
897
456
|
return result.toPromise();
|
|
898
457
|
}
|
|
899
458
|
}
|
|
@@ -909,17 +468,7 @@ class PromiseInvoicesApi {
|
|
|
909
468
|
* @param invoiceId
|
|
910
469
|
*/
|
|
911
470
|
getInvoiceWithHttpInfo(invoiceId, _options) {
|
|
912
|
-
|
|
913
|
-
if (_options) {
|
|
914
|
-
observableOptions = {
|
|
915
|
-
baseServer: _options.baseServer,
|
|
916
|
-
httpApi: _options.httpApi,
|
|
917
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
918
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
919
|
-
authMethods: _options.authMethods
|
|
920
|
-
};
|
|
921
|
-
}
|
|
922
|
-
const result = this.api.getInvoiceWithHttpInfo(invoiceId, observableOptions);
|
|
471
|
+
const result = this.api.getInvoiceWithHttpInfo(invoiceId, _options);
|
|
923
472
|
return result.toPromise();
|
|
924
473
|
}
|
|
925
474
|
/**
|
|
@@ -928,17 +477,7 @@ class PromiseInvoicesApi {
|
|
|
928
477
|
* @param invoiceId
|
|
929
478
|
*/
|
|
930
479
|
getInvoice(invoiceId, _options) {
|
|
931
|
-
|
|
932
|
-
if (_options) {
|
|
933
|
-
observableOptions = {
|
|
934
|
-
baseServer: _options.baseServer,
|
|
935
|
-
httpApi: _options.httpApi,
|
|
936
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
937
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
938
|
-
authMethods: _options.authMethods
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
const result = this.api.getInvoice(invoiceId, observableOptions);
|
|
480
|
+
const result = this.api.getInvoice(invoiceId, _options);
|
|
942
481
|
return result.toPromise();
|
|
943
482
|
}
|
|
944
483
|
/**
|
|
@@ -948,17 +487,7 @@ class PromiseInvoicesApi {
|
|
|
948
487
|
* @param [cursor]
|
|
949
488
|
*/
|
|
950
489
|
listInvoicesWithHttpInfo(limit, cursor, _options) {
|
|
951
|
-
|
|
952
|
-
if (_options) {
|
|
953
|
-
observableOptions = {
|
|
954
|
-
baseServer: _options.baseServer,
|
|
955
|
-
httpApi: _options.httpApi,
|
|
956
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
957
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
958
|
-
authMethods: _options.authMethods
|
|
959
|
-
};
|
|
960
|
-
}
|
|
961
|
-
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, observableOptions);
|
|
490
|
+
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, _options);
|
|
962
491
|
return result.toPromise();
|
|
963
492
|
}
|
|
964
493
|
/**
|
|
@@ -968,17 +497,7 @@ class PromiseInvoicesApi {
|
|
|
968
497
|
* @param [cursor]
|
|
969
498
|
*/
|
|
970
499
|
listInvoices(limit, cursor, _options) {
|
|
971
|
-
|
|
972
|
-
if (_options) {
|
|
973
|
-
observableOptions = {
|
|
974
|
-
baseServer: _options.baseServer,
|
|
975
|
-
httpApi: _options.httpApi,
|
|
976
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
977
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
978
|
-
authMethods: _options.authMethods
|
|
979
|
-
};
|
|
980
|
-
}
|
|
981
|
-
const result = this.api.listInvoices(limit, cursor, observableOptions);
|
|
500
|
+
const result = this.api.listInvoices(limit, cursor, _options);
|
|
982
501
|
return result.toPromise();
|
|
983
502
|
}
|
|
984
503
|
}
|
|
@@ -994,17 +513,7 @@ class PromiseMetersApi {
|
|
|
994
513
|
* @param meterId
|
|
995
514
|
*/
|
|
996
515
|
deleteMeterWithHttpInfo(meterId, _options) {
|
|
997
|
-
|
|
998
|
-
if (_options) {
|
|
999
|
-
observableOptions = {
|
|
1000
|
-
baseServer: _options.baseServer,
|
|
1001
|
-
httpApi: _options.httpApi,
|
|
1002
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1003
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1004
|
-
authMethods: _options.authMethods
|
|
1005
|
-
};
|
|
1006
|
-
}
|
|
1007
|
-
const result = this.api.deleteMeterWithHttpInfo(meterId, observableOptions);
|
|
516
|
+
const result = this.api.deleteMeterWithHttpInfo(meterId, _options);
|
|
1008
517
|
return result.toPromise();
|
|
1009
518
|
}
|
|
1010
519
|
/**
|
|
@@ -1013,17 +522,7 @@ class PromiseMetersApi {
|
|
|
1013
522
|
* @param meterId
|
|
1014
523
|
*/
|
|
1015
524
|
deleteMeter(meterId, _options) {
|
|
1016
|
-
|
|
1017
|
-
if (_options) {
|
|
1018
|
-
observableOptions = {
|
|
1019
|
-
baseServer: _options.baseServer,
|
|
1020
|
-
httpApi: _options.httpApi,
|
|
1021
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1022
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1023
|
-
authMethods: _options.authMethods
|
|
1024
|
-
};
|
|
1025
|
-
}
|
|
1026
|
-
const result = this.api.deleteMeter(meterId, observableOptions);
|
|
525
|
+
const result = this.api.deleteMeter(meterId, _options);
|
|
1027
526
|
return result.toPromise();
|
|
1028
527
|
}
|
|
1029
528
|
/**
|
|
@@ -1032,17 +531,7 @@ class PromiseMetersApi {
|
|
|
1032
531
|
* @param meterId
|
|
1033
532
|
*/
|
|
1034
533
|
getMeterWithHttpInfo(meterId, _options) {
|
|
1035
|
-
|
|
1036
|
-
if (_options) {
|
|
1037
|
-
observableOptions = {
|
|
1038
|
-
baseServer: _options.baseServer,
|
|
1039
|
-
httpApi: _options.httpApi,
|
|
1040
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1041
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1042
|
-
authMethods: _options.authMethods
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
const result = this.api.getMeterWithHttpInfo(meterId, observableOptions);
|
|
534
|
+
const result = this.api.getMeterWithHttpInfo(meterId, _options);
|
|
1046
535
|
return result.toPromise();
|
|
1047
536
|
}
|
|
1048
537
|
/**
|
|
@@ -1051,17 +540,7 @@ class PromiseMetersApi {
|
|
|
1051
540
|
* @param meterId
|
|
1052
541
|
*/
|
|
1053
542
|
getMeter(meterId, _options) {
|
|
1054
|
-
|
|
1055
|
-
if (_options) {
|
|
1056
|
-
observableOptions = {
|
|
1057
|
-
baseServer: _options.baseServer,
|
|
1058
|
-
httpApi: _options.httpApi,
|
|
1059
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1060
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1061
|
-
authMethods: _options.authMethods
|
|
1062
|
-
};
|
|
1063
|
-
}
|
|
1064
|
-
const result = this.api.getMeter(meterId, observableOptions);
|
|
543
|
+
const result = this.api.getMeter(meterId, _options);
|
|
1065
544
|
return result.toPromise();
|
|
1066
545
|
}
|
|
1067
546
|
/**
|
|
@@ -1071,17 +550,7 @@ class PromiseMetersApi {
|
|
|
1071
550
|
* @param [cursor]
|
|
1072
551
|
*/
|
|
1073
552
|
listMetersWithHttpInfo(limit, cursor, _options) {
|
|
1074
|
-
|
|
1075
|
-
if (_options) {
|
|
1076
|
-
observableOptions = {
|
|
1077
|
-
baseServer: _options.baseServer,
|
|
1078
|
-
httpApi: _options.httpApi,
|
|
1079
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1080
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1081
|
-
authMethods: _options.authMethods
|
|
1082
|
-
};
|
|
1083
|
-
}
|
|
1084
|
-
const result = this.api.listMetersWithHttpInfo(limit, cursor, observableOptions);
|
|
553
|
+
const result = this.api.listMetersWithHttpInfo(limit, cursor, _options);
|
|
1085
554
|
return result.toPromise();
|
|
1086
555
|
}
|
|
1087
556
|
/**
|
|
@@ -1091,17 +560,7 @@ class PromiseMetersApi {
|
|
|
1091
560
|
* @param [cursor]
|
|
1092
561
|
*/
|
|
1093
562
|
listMeters(limit, cursor, _options) {
|
|
1094
|
-
|
|
1095
|
-
if (_options) {
|
|
1096
|
-
observableOptions = {
|
|
1097
|
-
baseServer: _options.baseServer,
|
|
1098
|
-
httpApi: _options.httpApi,
|
|
1099
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1100
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1101
|
-
authMethods: _options.authMethods
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
const result = this.api.listMeters(limit, cursor, observableOptions);
|
|
563
|
+
const result = this.api.listMeters(limit, cursor, _options);
|
|
1105
564
|
return result.toPromise();
|
|
1106
565
|
}
|
|
1107
566
|
/**
|
|
@@ -1111,17 +570,7 @@ class PromiseMetersApi {
|
|
|
1111
570
|
* @param meterId
|
|
1112
571
|
*/
|
|
1113
572
|
updateMeterWithHttpInfo(updateMeterRequest, meterId, _options) {
|
|
1114
|
-
|
|
1115
|
-
if (_options) {
|
|
1116
|
-
observableOptions = {
|
|
1117
|
-
baseServer: _options.baseServer,
|
|
1118
|
-
httpApi: _options.httpApi,
|
|
1119
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1120
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1121
|
-
authMethods: _options.authMethods
|
|
1122
|
-
};
|
|
1123
|
-
}
|
|
1124
|
-
const result = this.api.updateMeterWithHttpInfo(updateMeterRequest, meterId, observableOptions);
|
|
573
|
+
const result = this.api.updateMeterWithHttpInfo(updateMeterRequest, meterId, _options);
|
|
1125
574
|
return result.toPromise();
|
|
1126
575
|
}
|
|
1127
576
|
/**
|
|
@@ -1131,17 +580,7 @@ class PromiseMetersApi {
|
|
|
1131
580
|
* @param meterId
|
|
1132
581
|
*/
|
|
1133
582
|
updateMeter(updateMeterRequest, meterId, _options) {
|
|
1134
|
-
|
|
1135
|
-
if (_options) {
|
|
1136
|
-
observableOptions = {
|
|
1137
|
-
baseServer: _options.baseServer,
|
|
1138
|
-
httpApi: _options.httpApi,
|
|
1139
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1140
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1141
|
-
authMethods: _options.authMethods
|
|
1142
|
-
};
|
|
1143
|
-
}
|
|
1144
|
-
const result = this.api.updateMeter(updateMeterRequest, meterId, observableOptions);
|
|
583
|
+
const result = this.api.updateMeter(updateMeterRequest, meterId, _options);
|
|
1145
584
|
return result.toPromise();
|
|
1146
585
|
}
|
|
1147
586
|
}
|
|
@@ -1157,17 +596,7 @@ class PromisePlansApi {
|
|
|
1157
596
|
* @param planId
|
|
1158
597
|
*/
|
|
1159
598
|
deletePlanWithHttpInfo(planId, _options) {
|
|
1160
|
-
|
|
1161
|
-
if (_options) {
|
|
1162
|
-
observableOptions = {
|
|
1163
|
-
baseServer: _options.baseServer,
|
|
1164
|
-
httpApi: _options.httpApi,
|
|
1165
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1166
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1167
|
-
authMethods: _options.authMethods
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
const result = this.api.deletePlanWithHttpInfo(planId, observableOptions);
|
|
599
|
+
const result = this.api.deletePlanWithHttpInfo(planId, _options);
|
|
1171
600
|
return result.toPromise();
|
|
1172
601
|
}
|
|
1173
602
|
/**
|
|
@@ -1176,17 +605,7 @@ class PromisePlansApi {
|
|
|
1176
605
|
* @param planId
|
|
1177
606
|
*/
|
|
1178
607
|
deletePlan(planId, _options) {
|
|
1179
|
-
|
|
1180
|
-
if (_options) {
|
|
1181
|
-
observableOptions = {
|
|
1182
|
-
baseServer: _options.baseServer,
|
|
1183
|
-
httpApi: _options.httpApi,
|
|
1184
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1185
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1186
|
-
authMethods: _options.authMethods
|
|
1187
|
-
};
|
|
1188
|
-
}
|
|
1189
|
-
const result = this.api.deletePlan(planId, observableOptions);
|
|
608
|
+
const result = this.api.deletePlan(planId, _options);
|
|
1190
609
|
return result.toPromise();
|
|
1191
610
|
}
|
|
1192
611
|
/**
|
|
@@ -1195,17 +614,7 @@ class PromisePlansApi {
|
|
|
1195
614
|
* @param planId
|
|
1196
615
|
*/
|
|
1197
616
|
getPlanWithHttpInfo(planId, _options) {
|
|
1198
|
-
|
|
1199
|
-
if (_options) {
|
|
1200
|
-
observableOptions = {
|
|
1201
|
-
baseServer: _options.baseServer,
|
|
1202
|
-
httpApi: _options.httpApi,
|
|
1203
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1204
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1205
|
-
authMethods: _options.authMethods
|
|
1206
|
-
};
|
|
1207
|
-
}
|
|
1208
|
-
const result = this.api.getPlanWithHttpInfo(planId, observableOptions);
|
|
617
|
+
const result = this.api.getPlanWithHttpInfo(planId, _options);
|
|
1209
618
|
return result.toPromise();
|
|
1210
619
|
}
|
|
1211
620
|
/**
|
|
@@ -1214,17 +623,7 @@ class PromisePlansApi {
|
|
|
1214
623
|
* @param planId
|
|
1215
624
|
*/
|
|
1216
625
|
getPlan(planId, _options) {
|
|
1217
|
-
|
|
1218
|
-
if (_options) {
|
|
1219
|
-
observableOptions = {
|
|
1220
|
-
baseServer: _options.baseServer,
|
|
1221
|
-
httpApi: _options.httpApi,
|
|
1222
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1223
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1224
|
-
authMethods: _options.authMethods
|
|
1225
|
-
};
|
|
1226
|
-
}
|
|
1227
|
-
const result = this.api.getPlan(planId, observableOptions);
|
|
626
|
+
const result = this.api.getPlan(planId, _options);
|
|
1228
627
|
return result.toPromise();
|
|
1229
628
|
}
|
|
1230
629
|
/**
|
|
@@ -1234,17 +633,7 @@ class PromisePlansApi {
|
|
|
1234
633
|
* @param [cursor]
|
|
1235
634
|
*/
|
|
1236
635
|
listPlansWithHttpInfo(limit, cursor, _options) {
|
|
1237
|
-
|
|
1238
|
-
if (_options) {
|
|
1239
|
-
observableOptions = {
|
|
1240
|
-
baseServer: _options.baseServer,
|
|
1241
|
-
httpApi: _options.httpApi,
|
|
1242
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1243
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1244
|
-
authMethods: _options.authMethods
|
|
1245
|
-
};
|
|
1246
|
-
}
|
|
1247
|
-
const result = this.api.listPlansWithHttpInfo(limit, cursor, observableOptions);
|
|
636
|
+
const result = this.api.listPlansWithHttpInfo(limit, cursor, _options);
|
|
1248
637
|
return result.toPromise();
|
|
1249
638
|
}
|
|
1250
639
|
/**
|
|
@@ -1254,17 +643,7 @@ class PromisePlansApi {
|
|
|
1254
643
|
* @param [cursor]
|
|
1255
644
|
*/
|
|
1256
645
|
listPlans(limit, cursor, _options) {
|
|
1257
|
-
|
|
1258
|
-
if (_options) {
|
|
1259
|
-
observableOptions = {
|
|
1260
|
-
baseServer: _options.baseServer,
|
|
1261
|
-
httpApi: _options.httpApi,
|
|
1262
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1263
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1264
|
-
authMethods: _options.authMethods
|
|
1265
|
-
};
|
|
1266
|
-
}
|
|
1267
|
-
const result = this.api.listPlans(limit, cursor, observableOptions);
|
|
646
|
+
const result = this.api.listPlans(limit, cursor, _options);
|
|
1268
647
|
return result.toPromise();
|
|
1269
648
|
}
|
|
1270
649
|
}
|
|
@@ -1280,17 +659,7 @@ class PromiseProductConsumptionsApi {
|
|
|
1280
659
|
* @param productId
|
|
1281
660
|
*/
|
|
1282
661
|
getProductConsumptionWithHttpInfo(productId, _options) {
|
|
1283
|
-
|
|
1284
|
-
if (_options) {
|
|
1285
|
-
observableOptions = {
|
|
1286
|
-
baseServer: _options.baseServer,
|
|
1287
|
-
httpApi: _options.httpApi,
|
|
1288
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1289
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1290
|
-
authMethods: _options.authMethods
|
|
1291
|
-
};
|
|
1292
|
-
}
|
|
1293
|
-
const result = this.api.getProductConsumptionWithHttpInfo(productId, observableOptions);
|
|
662
|
+
const result = this.api.getProductConsumptionWithHttpInfo(productId, _options);
|
|
1294
663
|
return result.toPromise();
|
|
1295
664
|
}
|
|
1296
665
|
/**
|
|
@@ -1299,17 +668,7 @@ class PromiseProductConsumptionsApi {
|
|
|
1299
668
|
* @param productId
|
|
1300
669
|
*/
|
|
1301
670
|
getProductConsumption(productId, _options) {
|
|
1302
|
-
|
|
1303
|
-
if (_options) {
|
|
1304
|
-
observableOptions = {
|
|
1305
|
-
baseServer: _options.baseServer,
|
|
1306
|
-
httpApi: _options.httpApi,
|
|
1307
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1308
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1309
|
-
authMethods: _options.authMethods
|
|
1310
|
-
};
|
|
1311
|
-
}
|
|
1312
|
-
const result = this.api.getProductConsumption(productId, observableOptions);
|
|
671
|
+
const result = this.api.getProductConsumption(productId, _options);
|
|
1313
672
|
return result.toPromise();
|
|
1314
673
|
}
|
|
1315
674
|
}
|
|
@@ -1324,17 +683,7 @@ class PromiseReportsApi {
|
|
|
1324
683
|
* @param [reportId]
|
|
1325
684
|
*/
|
|
1326
685
|
getCommitmentReportResponseWithHttpInfo(reportId, _options) {
|
|
1327
|
-
|
|
1328
|
-
if (_options) {
|
|
1329
|
-
observableOptions = {
|
|
1330
|
-
baseServer: _options.baseServer,
|
|
1331
|
-
httpApi: _options.httpApi,
|
|
1332
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1333
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1334
|
-
authMethods: _options.authMethods
|
|
1335
|
-
};
|
|
1336
|
-
}
|
|
1337
|
-
const result = this.api.getCommitmentReportResponseWithHttpInfo(reportId, observableOptions);
|
|
686
|
+
const result = this.api.getCommitmentReportResponseWithHttpInfo(reportId, _options);
|
|
1338
687
|
return result.toPromise();
|
|
1339
688
|
}
|
|
1340
689
|
/**
|
|
@@ -1342,17 +691,7 @@ class PromiseReportsApi {
|
|
|
1342
691
|
* @param [reportId]
|
|
1343
692
|
*/
|
|
1344
693
|
getCommitmentReportResponse(reportId, _options) {
|
|
1345
|
-
|
|
1346
|
-
if (_options) {
|
|
1347
|
-
observableOptions = {
|
|
1348
|
-
baseServer: _options.baseServer,
|
|
1349
|
-
httpApi: _options.httpApi,
|
|
1350
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1351
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1352
|
-
authMethods: _options.authMethods
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
const result = this.api.getCommitmentReportResponse(reportId, observableOptions);
|
|
694
|
+
const result = this.api.getCommitmentReportResponse(reportId, _options);
|
|
1356
695
|
return result.toPromise();
|
|
1357
696
|
}
|
|
1358
697
|
/**
|
|
@@ -1363,17 +702,7 @@ class PromiseReportsApi {
|
|
|
1363
702
|
* @param [cursor]
|
|
1364
703
|
*/
|
|
1365
704
|
getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options) {
|
|
1366
|
-
|
|
1367
|
-
if (_options) {
|
|
1368
|
-
observableOptions = {
|
|
1369
|
-
baseServer: _options.baseServer,
|
|
1370
|
-
httpApi: _options.httpApi,
|
|
1371
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1372
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1373
|
-
authMethods: _options.authMethods
|
|
1374
|
-
};
|
|
1375
|
-
}
|
|
1376
|
-
const result = this.api.getProductsUsageReportWithHttpInfo(reportId, limit, cursor, observableOptions);
|
|
705
|
+
const result = this.api.getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options);
|
|
1377
706
|
return result.toPromise();
|
|
1378
707
|
}
|
|
1379
708
|
/**
|
|
@@ -1384,17 +713,7 @@ class PromiseReportsApi {
|
|
|
1384
713
|
* @param [cursor]
|
|
1385
714
|
*/
|
|
1386
715
|
getProductsUsageReport(reportId, limit, cursor, _options) {
|
|
1387
|
-
|
|
1388
|
-
if (_options) {
|
|
1389
|
-
observableOptions = {
|
|
1390
|
-
baseServer: _options.baseServer,
|
|
1391
|
-
httpApi: _options.httpApi,
|
|
1392
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1393
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1394
|
-
authMethods: _options.authMethods
|
|
1395
|
-
};
|
|
1396
|
-
}
|
|
1397
|
-
const result = this.api.getProductsUsageReport(reportId, limit, cursor, observableOptions);
|
|
716
|
+
const result = this.api.getProductsUsageReport(reportId, limit, cursor, _options);
|
|
1398
717
|
return result.toPromise();
|
|
1399
718
|
}
|
|
1400
719
|
}
|
|
@@ -1410,17 +729,7 @@ class PromiseWebhooksApi {
|
|
|
1410
729
|
* @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
|
|
1411
730
|
*/
|
|
1412
731
|
webhookSubscribeWithHttpInfo(webhookSubscribeRequest, _options) {
|
|
1413
|
-
|
|
1414
|
-
if (_options) {
|
|
1415
|
-
observableOptions = {
|
|
1416
|
-
baseServer: _options.baseServer,
|
|
1417
|
-
httpApi: _options.httpApi,
|
|
1418
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1419
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1420
|
-
authMethods: _options.authMethods
|
|
1421
|
-
};
|
|
1422
|
-
}
|
|
1423
|
-
const result = this.api.webhookSubscribeWithHttpInfo(webhookSubscribeRequest, observableOptions);
|
|
732
|
+
const result = this.api.webhookSubscribeWithHttpInfo(webhookSubscribeRequest, _options);
|
|
1424
733
|
return result.toPromise();
|
|
1425
734
|
}
|
|
1426
735
|
/**
|
|
@@ -1429,17 +738,7 @@ class PromiseWebhooksApi {
|
|
|
1429
738
|
* @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
|
|
1430
739
|
*/
|
|
1431
740
|
webhookSubscribe(webhookSubscribeRequest, _options) {
|
|
1432
|
-
|
|
1433
|
-
if (_options) {
|
|
1434
|
-
observableOptions = {
|
|
1435
|
-
baseServer: _options.baseServer,
|
|
1436
|
-
httpApi: _options.httpApi,
|
|
1437
|
-
middleware: _options.middleware?.map(m => new middleware_1.PromiseMiddlewareWrapper(m)),
|
|
1438
|
-
middlewareMergeStrategy: _options.middlewareMergeStrategy,
|
|
1439
|
-
authMethods: _options.authMethods
|
|
1440
|
-
};
|
|
1441
|
-
}
|
|
1442
|
-
const result = this.api.webhookSubscribe(webhookSubscribeRequest, observableOptions);
|
|
741
|
+
const result = this.api.webhookSubscribe(webhookSubscribeRequest, _options);
|
|
1443
742
|
return result.toPromise();
|
|
1444
743
|
}
|
|
1445
744
|
}
|