gs2 1.4.110 → 1.4.115
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/account/rest.js +130 -564
- package/account/rest.js.map +1 -1
- package/adReward/rest.js +44 -203
- package/adReward/rest.js.map +1 -1
- package/auth/rest.js +10 -52
- package/auth/rest.js.map +1 -1
- package/buff/rest.js +56 -249
- package/buff/rest.js.map +1 -1
- package/chat/rest.js +108 -463
- package/chat/rest.js.map +1 -1
- package/core/AbstractGs2RestClient.d.ts +9 -0
- package/core/AbstractGs2RestClient.js +48 -0
- package/core/AbstractGs2RestClient.js.map +1 -1
- package/core/model.d.ts +9 -1
- package/core/model.js +4 -1
- package/core/model.js.map +1 -1
- package/datastore/rest.js +78 -370
- package/datastore/rest.js.map +1 -1
- package/deploy/rest.js +48 -209
- package/deploy/rest.js.map +1 -1
- package/dictionary/rest.js +102 -450
- package/dictionary/rest.js.map +1 -1
- package/distributor/rest.js +96 -465
- package/distributor/rest.js.map +1 -1
- package/enchant/rest.js +112 -497
- package/enchant/rest.js.map +1 -1
- package/enhance/rest.js +100 -455
- package/enhance/rest.js.map +1 -1
- package/exchange/rest.js +108 -491
- package/exchange/rest.js.map +1 -1
- package/experience/rest.js +120 -561
- package/experience/rest.js.map +1 -1
- package/formation/rest.js +158 -686
- package/formation/rest.js.map +1 -1
- package/freeze/rest.js +12 -51
- package/freeze/rest.js.map +1 -1
- package/friend/rest.js +118 -490
- package/friend/rest.js.map +1 -1
- package/gateway/rest.js +56 -245
- package/gateway/rest.js.map +1 -1
- package/grade/rest.js +96 -449
- package/grade/rest.js.map +1 -1
- package/guard/rest.js +14 -58
- package/guard/rest.js.map +1 -1
- package/guild/rest.js +186 -840
- package/guild/rest.js.map +1 -1
- package/identifier/rest.js +60 -259
- package/identifier/rest.js.map +1 -1
- package/idle/rest.js +84 -387
- package/idle/rest.js.map +1 -1
- package/inbox/rest.js +96 -437
- package/inbox/rest.js.map +1 -1
- package/inventory/rest.js +270 -1206
- package/inventory/rest.js.map +1 -1
- package/jobQueue/rest.js +50 -220
- package/jobQueue/rest.js.map +1 -1
- package/key/rest.js +38 -166
- package/key/rest.js.map +1 -1
- package/limit/rest.js +80 -361
- package/limit/rest.js.map +1 -1
- package/lock/rest.js +28 -123
- package/lock/rest.js.map +1 -1
- package/log/rest.js +46 -186
- package/log/rest.js.map +1 -1
- package/loginReward/rest.js +82 -376
- package/loginReward/rest.js.map +1 -1
- package/lottery/rest.js +100 -427
- package/lottery/rest.js.map +1 -1
- package/matchmaking/rest.js +146 -644
- package/matchmaking/rest.js.map +1 -1
- package/megaField/rest.js +68 -307
- package/megaField/rest.js.map +1 -1
- package/mission/rest.js +158 -726
- package/mission/rest.js.map +1 -1
- package/money/rest.js +58 -264
- package/money/rest.js.map +1 -1
- package/money2/rest.js +126 -542
- package/money2/rest.js.map +1 -1
- package/news/rest.js +36 -147
- package/news/rest.js.map +1 -1
- package/package.json +5 -5
- package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
- package/project/request/WaitCleanUserDataRequest.js +0 -14
- package/project/request/WaitCleanUserDataRequest.js.map +1 -1
- package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
- package/project/request/WaitDumpUserDataRequest.js +0 -14
- package/project/request/WaitDumpUserDataRequest.js.map +1 -1
- package/project/request/WaitImportUserDataRequest.d.ts +0 -4
- package/project/request/WaitImportUserDataRequest.js +0 -14
- package/project/request/WaitImportUserDataRequest.js.map +1 -1
- package/project/rest.js +91 -411
- package/project/rest.js.map +1 -1
- package/quest/rest.js +100 -431
- package/quest/rest.js.map +1 -1
- package/ranking/rest.js +92 -387
- package/ranking/rest.js.map +1 -1
- package/ranking2/rest.js +220 -939
- package/ranking2/rest.js.map +1 -1
- package/realtime/rest.js +24 -97
- package/realtime/rest.js.map +1 -1
- package/schedule/rest.js +94 -418
- package/schedule/rest.js.map +1 -1
- package/script/rest.js +34 -156
- package/script/rest.js.map +1 -1
- package/seasonRating/rest.js +70 -314
- package/seasonRating/rest.js.map +1 -1
- package/serialKey/rest.js +84 -383
- package/serialKey/rest.js.map +1 -1
- package/showcase/rest.js +116 -515
- package/showcase/rest.js.map +1 -1
- package/skillTree/rest.js +82 -372
- package/skillTree/rest.js.map +1 -1
- package/stamina/rest.js +166 -798
- package/stamina/rest.js.map +1 -1
- package/stateMachine/rest.js +62 -270
- package/stateMachine/rest.js.map +1 -1
- package/version/rest.js +78 -346
- package/version/rest.js.map +1 -1
- package/watch/rest.js +156 -563
- package/watch/rest.js.map +1 -1
package/money2/rest.js
CHANGED
|
@@ -19,7 +19,6 @@ var tslib_1 = require("tslib");
|
|
|
19
19
|
var AbstractGs2RestClient_1 = tslib_1.__importDefault(require("../core/AbstractGs2RestClient"));
|
|
20
20
|
var model_1 = require("../core/model");
|
|
21
21
|
var Result = tslib_1.__importStar(require("./result"));
|
|
22
|
-
var axios_1 = tslib_1.__importDefault(require("axios"));
|
|
23
22
|
var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2Money2RestClient, _super);
|
|
25
24
|
function Gs2Money2RestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
40
39
|
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
40
|
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
41
|
};
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
headers: headers,
|
|
46
|
-
}).then(function (response) {
|
|
47
|
-
return Result.DescribeNamespacesResult.fromDict(response.data);
|
|
48
|
-
}).catch(function (error) {
|
|
49
|
-
throw JSON.parse(error.response.data.message);
|
|
42
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
43
|
+
return Result.DescribeNamespacesResult.fromDict(data);
|
|
50
44
|
});
|
|
51
45
|
};
|
|
52
46
|
Gs2Money2RestClient.prototype.createNamespace = function (request) {
|
|
@@ -76,17 +70,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
76
70
|
'changeSubscriptionStatusNotification': (_y = (_x = request.getChangeSubscriptionStatusNotification()) === null || _x === void 0 ? void 0 : _x.toDict()) !== null && _y !== void 0 ? _y : null,
|
|
77
71
|
'logSetting': (_0 = (_z = request.getLogSetting()) === null || _z === void 0 ? void 0 : _z.toDict()) !== null && _0 !== void 0 ? _0 : null,
|
|
78
72
|
};
|
|
79
|
-
return
|
|
80
|
-
|
|
81
|
-
}).then(function (response) {
|
|
82
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
83
|
-
}).catch(function (error) {
|
|
84
|
-
if (error.response) {
|
|
85
|
-
throw JSON.parse(error.response.data.message);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
throw [];
|
|
89
|
-
}
|
|
73
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
74
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
90
75
|
});
|
|
91
76
|
};
|
|
92
77
|
Gs2Money2RestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -102,13 +87,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
102
87
|
var params = {
|
|
103
88
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
104
89
|
};
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
headers: headers,
|
|
108
|
-
}).then(function (response) {
|
|
109
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
110
|
-
}).catch(function (error) {
|
|
111
|
-
throw JSON.parse(error.response.data.message);
|
|
90
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
91
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
112
92
|
});
|
|
113
93
|
};
|
|
114
94
|
Gs2Money2RestClient.prototype.getNamespace = function (request) {
|
|
@@ -124,13 +104,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
124
104
|
var params = {
|
|
125
105
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
126
106
|
};
|
|
127
|
-
return
|
|
128
|
-
|
|
129
|
-
headers: headers,
|
|
130
|
-
}).then(function (response) {
|
|
131
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
132
|
-
}).catch(function (error) {
|
|
133
|
-
throw JSON.parse(error.response.data.message);
|
|
107
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
108
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
134
109
|
});
|
|
135
110
|
};
|
|
136
111
|
Gs2Money2RestClient.prototype.updateNamespace = function (request) {
|
|
@@ -159,17 +134,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
159
134
|
'changeSubscriptionStatusNotification': (_y = (_x = request.getChangeSubscriptionStatusNotification()) === null || _x === void 0 ? void 0 : _x.toDict()) !== null && _y !== void 0 ? _y : null,
|
|
160
135
|
'logSetting': (_0 = (_z = request.getLogSetting()) === null || _z === void 0 ? void 0 : _z.toDict()) !== null && _0 !== void 0 ? _0 : null,
|
|
161
136
|
};
|
|
162
|
-
return
|
|
163
|
-
|
|
164
|
-
}).then(function (response) {
|
|
165
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
166
|
-
}).catch(function (error) {
|
|
167
|
-
if (error.response) {
|
|
168
|
-
throw JSON.parse(error.response.data.message);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
throw [];
|
|
172
|
-
}
|
|
137
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
138
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
173
139
|
});
|
|
174
140
|
};
|
|
175
141
|
Gs2Money2RestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -185,13 +151,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
185
151
|
var params = {
|
|
186
152
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
187
153
|
};
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
headers: headers,
|
|
191
|
-
}).then(function (response) {
|
|
192
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
193
|
-
}).catch(function (error) {
|
|
194
|
-
throw JSON.parse(error.response.data.message);
|
|
154
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
155
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
195
156
|
});
|
|
196
157
|
};
|
|
197
158
|
Gs2Money2RestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -206,13 +167,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
206
167
|
var params = {
|
|
207
168
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
208
169
|
};
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
headers: headers,
|
|
212
|
-
}).then(function (response) {
|
|
213
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
214
|
-
}).catch(function (error) {
|
|
215
|
-
throw JSON.parse(error.response.data.message);
|
|
170
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
171
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
216
172
|
});
|
|
217
173
|
};
|
|
218
174
|
Gs2Money2RestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -231,17 +187,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
231
187
|
var body = {
|
|
232
188
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
233
189
|
};
|
|
234
|
-
return
|
|
235
|
-
|
|
236
|
-
}).then(function (response) {
|
|
237
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
238
|
-
}).catch(function (error) {
|
|
239
|
-
if (error.response) {
|
|
240
|
-
throw JSON.parse(error.response.data.message);
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
throw [];
|
|
244
|
-
}
|
|
190
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
191
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
245
192
|
});
|
|
246
193
|
};
|
|
247
194
|
Gs2Money2RestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -260,13 +207,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
260
207
|
var params = {
|
|
261
208
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
262
209
|
};
|
|
263
|
-
return
|
|
264
|
-
|
|
265
|
-
headers: headers,
|
|
266
|
-
}).then(function (response) {
|
|
267
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
268
|
-
}).catch(function (error) {
|
|
269
|
-
throw JSON.parse(error.response.data.message);
|
|
210
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
211
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
270
212
|
});
|
|
271
213
|
};
|
|
272
214
|
Gs2Money2RestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -285,17 +227,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
285
227
|
var body = {
|
|
286
228
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
287
229
|
};
|
|
288
|
-
return
|
|
289
|
-
|
|
290
|
-
}).then(function (response) {
|
|
291
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
292
|
-
}).catch(function (error) {
|
|
293
|
-
if (error.response) {
|
|
294
|
-
throw JSON.parse(error.response.data.message);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
throw [];
|
|
298
|
-
}
|
|
230
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
231
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
299
232
|
});
|
|
300
233
|
};
|
|
301
234
|
Gs2Money2RestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -314,13 +247,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
314
247
|
var params = {
|
|
315
248
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
316
249
|
};
|
|
317
|
-
return
|
|
318
|
-
|
|
319
|
-
headers: headers,
|
|
320
|
-
}).then(function (response) {
|
|
321
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
322
|
-
}).catch(function (error) {
|
|
323
|
-
throw JSON.parse(error.response.data.message);
|
|
250
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
251
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
324
252
|
});
|
|
325
253
|
};
|
|
326
254
|
Gs2Money2RestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -339,17 +267,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
339
267
|
var body = {
|
|
340
268
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
341
269
|
};
|
|
342
|
-
return
|
|
343
|
-
|
|
344
|
-
}).then(function (response) {
|
|
345
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
346
|
-
}).catch(function (error) {
|
|
347
|
-
if (error.response) {
|
|
348
|
-
throw JSON.parse(error.response.data.message);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
throw [];
|
|
352
|
-
}
|
|
270
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
271
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
353
272
|
});
|
|
354
273
|
};
|
|
355
274
|
Gs2Money2RestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -369,17 +288,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
369
288
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
370
289
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
371
290
|
};
|
|
372
|
-
return
|
|
373
|
-
|
|
374
|
-
}).then(function (response) {
|
|
375
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
376
|
-
}).catch(function (error) {
|
|
377
|
-
if (error.response) {
|
|
378
|
-
throw JSON.parse(error.response.data.message);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
throw [];
|
|
382
|
-
}
|
|
291
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
292
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
383
293
|
});
|
|
384
294
|
};
|
|
385
295
|
Gs2Money2RestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -399,13 +309,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
399
309
|
var params = {
|
|
400
310
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
401
311
|
};
|
|
402
|
-
return
|
|
403
|
-
|
|
404
|
-
headers: headers,
|
|
405
|
-
}).then(function (response) {
|
|
406
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
407
|
-
}).catch(function (error) {
|
|
408
|
-
throw JSON.parse(error.response.data.message);
|
|
312
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
313
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
409
314
|
});
|
|
410
315
|
};
|
|
411
316
|
Gs2Money2RestClient.prototype.describeWallets = function (request) {
|
|
@@ -426,13 +331,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
426
331
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
427
332
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
428
333
|
};
|
|
429
|
-
return
|
|
430
|
-
|
|
431
|
-
headers: headers,
|
|
432
|
-
}).then(function (response) {
|
|
433
|
-
return Result.DescribeWalletsResult.fromDict(response.data);
|
|
434
|
-
}).catch(function (error) {
|
|
435
|
-
throw JSON.parse(error.response.data.message);
|
|
334
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
335
|
+
return Result.DescribeWalletsResult.fromDict(data);
|
|
436
336
|
});
|
|
437
337
|
};
|
|
438
338
|
Gs2Money2RestClient.prototype.describeWalletsByUserId = function (request) {
|
|
@@ -454,13 +354,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
454
354
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
455
355
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
456
356
|
};
|
|
457
|
-
return
|
|
458
|
-
|
|
459
|
-
headers: headers,
|
|
460
|
-
}).then(function (response) {
|
|
461
|
-
return Result.DescribeWalletsByUserIdResult.fromDict(response.data);
|
|
462
|
-
}).catch(function (error) {
|
|
463
|
-
throw JSON.parse(error.response.data.message);
|
|
357
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
358
|
+
return Result.DescribeWalletsByUserIdResult.fromDict(data);
|
|
464
359
|
});
|
|
465
360
|
};
|
|
466
361
|
Gs2Money2RestClient.prototype.getWallet = function (request) {
|
|
@@ -480,13 +375,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
480
375
|
var params = {
|
|
481
376
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
482
377
|
};
|
|
483
|
-
return
|
|
484
|
-
|
|
485
|
-
headers: headers,
|
|
486
|
-
}).then(function (response) {
|
|
487
|
-
return Result.GetWalletResult.fromDict(response.data);
|
|
488
|
-
}).catch(function (error) {
|
|
489
|
-
throw JSON.parse(error.response.data.message);
|
|
378
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
379
|
+
return Result.GetWalletResult.fromDict(data);
|
|
490
380
|
});
|
|
491
381
|
};
|
|
492
382
|
Gs2Money2RestClient.prototype.getWalletByUserId = function (request) {
|
|
@@ -507,13 +397,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
507
397
|
var params = {
|
|
508
398
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
509
399
|
};
|
|
510
|
-
return
|
|
511
|
-
|
|
512
|
-
headers: headers,
|
|
513
|
-
}).then(function (response) {
|
|
514
|
-
return Result.GetWalletByUserIdResult.fromDict(response.data);
|
|
515
|
-
}).catch(function (error) {
|
|
516
|
-
throw JSON.parse(error.response.data.message);
|
|
400
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
401
|
+
return Result.GetWalletByUserIdResult.fromDict(data);
|
|
517
402
|
});
|
|
518
403
|
};
|
|
519
404
|
Gs2Money2RestClient.prototype.depositByUserId = function (request) {
|
|
@@ -538,17 +423,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
538
423
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
539
424
|
'depositTransactions': (_m = (_l = request.getDepositTransactions()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
540
425
|
};
|
|
541
|
-
return
|
|
542
|
-
|
|
543
|
-
}).then(function (response) {
|
|
544
|
-
return Result.DepositByUserIdResult.fromDict(response.data);
|
|
545
|
-
}).catch(function (error) {
|
|
546
|
-
if (error.response) {
|
|
547
|
-
throw JSON.parse(error.response.data.message);
|
|
548
|
-
}
|
|
549
|
-
else {
|
|
550
|
-
throw [];
|
|
551
|
-
}
|
|
426
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
427
|
+
return Result.DepositByUserIdResult.fromDict(data);
|
|
552
428
|
});
|
|
553
429
|
};
|
|
554
430
|
Gs2Money2RestClient.prototype.withdraw = function (request) {
|
|
@@ -573,17 +449,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
573
449
|
'withdrawCount': (_j = request.getWithdrawCount()) !== null && _j !== void 0 ? _j : null,
|
|
574
450
|
'paidOnly': (_k = request.getPaidOnly()) !== null && _k !== void 0 ? _k : null,
|
|
575
451
|
};
|
|
576
|
-
return
|
|
577
|
-
|
|
578
|
-
}).then(function (response) {
|
|
579
|
-
return Result.WithdrawResult.fromDict(response.data);
|
|
580
|
-
}).catch(function (error) {
|
|
581
|
-
if (error.response) {
|
|
582
|
-
throw JSON.parse(error.response.data.message);
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
throw [];
|
|
586
|
-
}
|
|
452
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
453
|
+
return Result.WithdrawResult.fromDict(data);
|
|
587
454
|
});
|
|
588
455
|
};
|
|
589
456
|
Gs2Money2RestClient.prototype.withdrawByUserId = function (request) {
|
|
@@ -609,17 +476,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
609
476
|
'withdrawCount': (_l = request.getWithdrawCount()) !== null && _l !== void 0 ? _l : null,
|
|
610
477
|
'paidOnly': (_m = request.getPaidOnly()) !== null && _m !== void 0 ? _m : null,
|
|
611
478
|
};
|
|
612
|
-
return
|
|
613
|
-
|
|
614
|
-
}).then(function (response) {
|
|
615
|
-
return Result.WithdrawByUserIdResult.fromDict(response.data);
|
|
616
|
-
}).catch(function (error) {
|
|
617
|
-
if (error.response) {
|
|
618
|
-
throw JSON.parse(error.response.data.message);
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
throw [];
|
|
622
|
-
}
|
|
479
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
480
|
+
return Result.WithdrawByUserIdResult.fromDict(data);
|
|
623
481
|
});
|
|
624
482
|
};
|
|
625
483
|
Gs2Money2RestClient.prototype.depositByStampSheet = function (request) {
|
|
@@ -636,17 +494,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
636
494
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
637
495
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
638
496
|
};
|
|
639
|
-
return
|
|
640
|
-
|
|
641
|
-
}).then(function (response) {
|
|
642
|
-
return Result.DepositByStampSheetResult.fromDict(response.data);
|
|
643
|
-
}).catch(function (error) {
|
|
644
|
-
if (error.response) {
|
|
645
|
-
throw JSON.parse(error.response.data.message);
|
|
646
|
-
}
|
|
647
|
-
else {
|
|
648
|
-
throw [];
|
|
649
|
-
}
|
|
497
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
498
|
+
return Result.DepositByStampSheetResult.fromDict(data);
|
|
650
499
|
});
|
|
651
500
|
};
|
|
652
501
|
Gs2Money2RestClient.prototype.withdrawByStampTask = function (request) {
|
|
@@ -663,17 +512,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
663
512
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
664
513
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
665
514
|
};
|
|
666
|
-
return
|
|
667
|
-
|
|
668
|
-
}).then(function (response) {
|
|
669
|
-
return Result.WithdrawByStampTaskResult.fromDict(response.data);
|
|
670
|
-
}).catch(function (error) {
|
|
671
|
-
if (error.response) {
|
|
672
|
-
throw JSON.parse(error.response.data.message);
|
|
673
|
-
}
|
|
674
|
-
else {
|
|
675
|
-
throw [];
|
|
676
|
-
}
|
|
515
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
516
|
+
return Result.WithdrawByStampTaskResult.fromDict(data);
|
|
677
517
|
});
|
|
678
518
|
};
|
|
679
519
|
Gs2Money2RestClient.prototype.describeEventsByUserId = function (request) {
|
|
@@ -697,13 +537,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
697
537
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
698
538
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
699
539
|
};
|
|
700
|
-
return
|
|
701
|
-
|
|
702
|
-
headers: headers,
|
|
703
|
-
}).then(function (response) {
|
|
704
|
-
return Result.DescribeEventsByUserIdResult.fromDict(response.data);
|
|
705
|
-
}).catch(function (error) {
|
|
706
|
-
throw JSON.parse(error.response.data.message);
|
|
540
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
541
|
+
return Result.DescribeEventsByUserIdResult.fromDict(data);
|
|
707
542
|
});
|
|
708
543
|
};
|
|
709
544
|
Gs2Money2RestClient.prototype.getEventByTransactionId = function (request) {
|
|
@@ -720,13 +555,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
720
555
|
var params = {
|
|
721
556
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
722
557
|
};
|
|
723
|
-
return
|
|
724
|
-
|
|
725
|
-
headers: headers,
|
|
726
|
-
}).then(function (response) {
|
|
727
|
-
return Result.GetEventByTransactionIdResult.fromDict(response.data);
|
|
728
|
-
}).catch(function (error) {
|
|
729
|
-
throw JSON.parse(error.response.data.message);
|
|
558
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
559
|
+
return Result.GetEventByTransactionIdResult.fromDict(data);
|
|
730
560
|
});
|
|
731
561
|
};
|
|
732
562
|
Gs2Money2RestClient.prototype.verifyReceipt = function (request) {
|
|
@@ -750,17 +580,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
750
580
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
751
581
|
'receipt': (_k = (_j = request.getReceipt()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
752
582
|
};
|
|
753
|
-
return
|
|
754
|
-
|
|
755
|
-
}).then(function (response) {
|
|
756
|
-
return Result.VerifyReceiptResult.fromDict(response.data);
|
|
757
|
-
}).catch(function (error) {
|
|
758
|
-
if (error.response) {
|
|
759
|
-
throw JSON.parse(error.response.data.message);
|
|
760
|
-
}
|
|
761
|
-
else {
|
|
762
|
-
throw [];
|
|
763
|
-
}
|
|
583
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
584
|
+
return Result.VerifyReceiptResult.fromDict(data);
|
|
764
585
|
});
|
|
765
586
|
};
|
|
766
587
|
Gs2Money2RestClient.prototype.verifyReceiptByUserId = function (request) {
|
|
@@ -785,17 +606,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
785
606
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
786
607
|
'receipt': (_m = (_l = request.getReceipt()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
787
608
|
};
|
|
788
|
-
return
|
|
789
|
-
|
|
790
|
-
}).then(function (response) {
|
|
791
|
-
return Result.VerifyReceiptByUserIdResult.fromDict(response.data);
|
|
792
|
-
}).catch(function (error) {
|
|
793
|
-
if (error.response) {
|
|
794
|
-
throw JSON.parse(error.response.data.message);
|
|
795
|
-
}
|
|
796
|
-
else {
|
|
797
|
-
throw [];
|
|
798
|
-
}
|
|
609
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
610
|
+
return Result.VerifyReceiptByUserIdResult.fromDict(data);
|
|
799
611
|
});
|
|
800
612
|
};
|
|
801
613
|
Gs2Money2RestClient.prototype.verifyReceiptByStampTask = function (request) {
|
|
@@ -812,17 +624,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
812
624
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
813
625
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
814
626
|
};
|
|
815
|
-
return
|
|
816
|
-
|
|
817
|
-
}).then(function (response) {
|
|
818
|
-
return Result.VerifyReceiptByStampTaskResult.fromDict(response.data);
|
|
819
|
-
}).catch(function (error) {
|
|
820
|
-
if (error.response) {
|
|
821
|
-
throw JSON.parse(error.response.data.message);
|
|
822
|
-
}
|
|
823
|
-
else {
|
|
824
|
-
throw [];
|
|
825
|
-
}
|
|
627
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
628
|
+
return Result.VerifyReceiptByStampTaskResult.fromDict(data);
|
|
826
629
|
});
|
|
827
630
|
};
|
|
828
631
|
Gs2Money2RestClient.prototype.describeSubscriptionStatuses = function (request) {
|
|
@@ -841,13 +644,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
841
644
|
var params = {
|
|
842
645
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
843
646
|
};
|
|
844
|
-
return
|
|
845
|
-
|
|
846
|
-
headers: headers,
|
|
847
|
-
}).then(function (response) {
|
|
848
|
-
return Result.DescribeSubscriptionStatusesResult.fromDict(response.data);
|
|
849
|
-
}).catch(function (error) {
|
|
850
|
-
throw JSON.parse(error.response.data.message);
|
|
647
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
648
|
+
return Result.DescribeSubscriptionStatusesResult.fromDict(data);
|
|
851
649
|
});
|
|
852
650
|
};
|
|
853
651
|
Gs2Money2RestClient.prototype.describeSubscriptionStatusesByUserId = function (request) {
|
|
@@ -867,13 +665,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
867
665
|
var params = {
|
|
868
666
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
869
667
|
};
|
|
870
|
-
return
|
|
871
|
-
|
|
872
|
-
headers: headers,
|
|
873
|
-
}).then(function (response) {
|
|
874
|
-
return Result.DescribeSubscriptionStatusesByUserIdResult.fromDict(response.data);
|
|
875
|
-
}).catch(function (error) {
|
|
876
|
-
throw JSON.parse(error.response.data.message);
|
|
668
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
669
|
+
return Result.DescribeSubscriptionStatusesByUserIdResult.fromDict(data);
|
|
877
670
|
});
|
|
878
671
|
};
|
|
879
672
|
Gs2Money2RestClient.prototype.getSubscriptionStatus = function (request) {
|
|
@@ -893,13 +686,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
893
686
|
var params = {
|
|
894
687
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
895
688
|
};
|
|
896
|
-
return
|
|
897
|
-
|
|
898
|
-
headers: headers,
|
|
899
|
-
}).then(function (response) {
|
|
900
|
-
return Result.GetSubscriptionStatusResult.fromDict(response.data);
|
|
901
|
-
}).catch(function (error) {
|
|
902
|
-
throw JSON.parse(error.response.data.message);
|
|
689
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
690
|
+
return Result.GetSubscriptionStatusResult.fromDict(data);
|
|
903
691
|
});
|
|
904
692
|
};
|
|
905
693
|
Gs2Money2RestClient.prototype.getSubscriptionStatusByUserId = function (request) {
|
|
@@ -920,13 +708,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
920
708
|
var params = {
|
|
921
709
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
922
710
|
};
|
|
923
|
-
return
|
|
924
|
-
|
|
925
|
-
headers: headers,
|
|
926
|
-
}).then(function (response) {
|
|
927
|
-
return Result.GetSubscriptionStatusByUserIdResult.fromDict(response.data);
|
|
928
|
-
}).catch(function (error) {
|
|
929
|
-
throw JSON.parse(error.response.data.message);
|
|
711
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
712
|
+
return Result.GetSubscriptionStatusByUserIdResult.fromDict(data);
|
|
930
713
|
});
|
|
931
714
|
};
|
|
932
715
|
Gs2Money2RestClient.prototype.allocateSubscriptionStatus = function (request) {
|
|
@@ -949,17 +732,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
949
732
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
950
733
|
'receipt': (_g = request.getReceipt()) !== null && _g !== void 0 ? _g : null,
|
|
951
734
|
};
|
|
952
|
-
return
|
|
953
|
-
|
|
954
|
-
}).then(function (response) {
|
|
955
|
-
return Result.AllocateSubscriptionStatusResult.fromDict(response.data);
|
|
956
|
-
}).catch(function (error) {
|
|
957
|
-
if (error.response) {
|
|
958
|
-
throw JSON.parse(error.response.data.message);
|
|
959
|
-
}
|
|
960
|
-
else {
|
|
961
|
-
throw [];
|
|
962
|
-
}
|
|
735
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
736
|
+
return Result.AllocateSubscriptionStatusResult.fromDict(data);
|
|
963
737
|
});
|
|
964
738
|
};
|
|
965
739
|
Gs2Money2RestClient.prototype.allocateSubscriptionStatusByUserId = function (request) {
|
|
@@ -983,17 +757,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
983
757
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
984
758
|
'receipt': (_j = request.getReceipt()) !== null && _j !== void 0 ? _j : null,
|
|
985
759
|
};
|
|
986
|
-
return
|
|
987
|
-
|
|
988
|
-
}).then(function (response) {
|
|
989
|
-
return Result.AllocateSubscriptionStatusByUserIdResult.fromDict(response.data);
|
|
990
|
-
}).catch(function (error) {
|
|
991
|
-
if (error.response) {
|
|
992
|
-
throw JSON.parse(error.response.data.message);
|
|
993
|
-
}
|
|
994
|
-
else {
|
|
995
|
-
throw [];
|
|
996
|
-
}
|
|
760
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
761
|
+
return Result.AllocateSubscriptionStatusByUserIdResult.fromDict(data);
|
|
997
762
|
});
|
|
998
763
|
};
|
|
999
764
|
Gs2Money2RestClient.prototype.takeoverSubscriptionStatus = function (request) {
|
|
@@ -1016,17 +781,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1016
781
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1017
782
|
'receipt': (_g = request.getReceipt()) !== null && _g !== void 0 ? _g : null,
|
|
1018
783
|
};
|
|
1019
|
-
return
|
|
1020
|
-
|
|
1021
|
-
}).then(function (response) {
|
|
1022
|
-
return Result.TakeoverSubscriptionStatusResult.fromDict(response.data);
|
|
1023
|
-
}).catch(function (error) {
|
|
1024
|
-
if (error.response) {
|
|
1025
|
-
throw JSON.parse(error.response.data.message);
|
|
1026
|
-
}
|
|
1027
|
-
else {
|
|
1028
|
-
throw [];
|
|
1029
|
-
}
|
|
784
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
785
|
+
return Result.TakeoverSubscriptionStatusResult.fromDict(data);
|
|
1030
786
|
});
|
|
1031
787
|
};
|
|
1032
788
|
Gs2Money2RestClient.prototype.takeoverSubscriptionStatusByUserId = function (request) {
|
|
@@ -1050,17 +806,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1050
806
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1051
807
|
'receipt': (_j = request.getReceipt()) !== null && _j !== void 0 ? _j : null,
|
|
1052
808
|
};
|
|
1053
|
-
return
|
|
1054
|
-
|
|
1055
|
-
}).then(function (response) {
|
|
1056
|
-
return Result.TakeoverSubscriptionStatusByUserIdResult.fromDict(response.data);
|
|
1057
|
-
}).catch(function (error) {
|
|
1058
|
-
if (error.response) {
|
|
1059
|
-
throw JSON.parse(error.response.data.message);
|
|
1060
|
-
}
|
|
1061
|
-
else {
|
|
1062
|
-
throw [];
|
|
1063
|
-
}
|
|
809
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
810
|
+
return Result.TakeoverSubscriptionStatusByUserIdResult.fromDict(data);
|
|
1064
811
|
});
|
|
1065
812
|
};
|
|
1066
813
|
Gs2Money2RestClient.prototype.describeRefundHistoriesByUserId = function (request) {
|
|
@@ -1082,13 +829,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1082
829
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1083
830
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1084
831
|
};
|
|
1085
|
-
return
|
|
1086
|
-
|
|
1087
|
-
headers: headers,
|
|
1088
|
-
}).then(function (response) {
|
|
1089
|
-
return Result.DescribeRefundHistoriesByUserIdResult.fromDict(response.data);
|
|
1090
|
-
}).catch(function (error) {
|
|
1091
|
-
throw JSON.parse(error.response.data.message);
|
|
832
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
833
|
+
return Result.DescribeRefundHistoriesByUserIdResult.fromDict(data);
|
|
1092
834
|
});
|
|
1093
835
|
};
|
|
1094
836
|
Gs2Money2RestClient.prototype.describeRefundHistoriesByDate = function (request) {
|
|
@@ -1109,13 +851,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1109
851
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1110
852
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1111
853
|
};
|
|
1112
|
-
return
|
|
1113
|
-
|
|
1114
|
-
headers: headers,
|
|
1115
|
-
}).then(function (response) {
|
|
1116
|
-
return Result.DescribeRefundHistoriesByDateResult.fromDict(response.data);
|
|
1117
|
-
}).catch(function (error) {
|
|
1118
|
-
throw JSON.parse(error.response.data.message);
|
|
854
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
855
|
+
return Result.DescribeRefundHistoriesByDateResult.fromDict(data);
|
|
1119
856
|
});
|
|
1120
857
|
};
|
|
1121
858
|
Gs2Money2RestClient.prototype.getRefundHistory = function (request) {
|
|
@@ -1132,13 +869,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1132
869
|
var params = {
|
|
1133
870
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1134
871
|
};
|
|
1135
|
-
return
|
|
1136
|
-
|
|
1137
|
-
headers: headers,
|
|
1138
|
-
}).then(function (response) {
|
|
1139
|
-
return Result.GetRefundHistoryResult.fromDict(response.data);
|
|
1140
|
-
}).catch(function (error) {
|
|
1141
|
-
throw JSON.parse(error.response.data.message);
|
|
872
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
873
|
+
return Result.GetRefundHistoryResult.fromDict(data);
|
|
1142
874
|
});
|
|
1143
875
|
};
|
|
1144
876
|
Gs2Money2RestClient.prototype.describeStoreContentModels = function (request) {
|
|
@@ -1154,13 +886,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1154
886
|
var params = {
|
|
1155
887
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1156
888
|
};
|
|
1157
|
-
return
|
|
1158
|
-
|
|
1159
|
-
headers: headers,
|
|
1160
|
-
}).then(function (response) {
|
|
1161
|
-
return Result.DescribeStoreContentModelsResult.fromDict(response.data);
|
|
1162
|
-
}).catch(function (error) {
|
|
1163
|
-
throw JSON.parse(error.response.data.message);
|
|
889
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
890
|
+
return Result.DescribeStoreContentModelsResult.fromDict(data);
|
|
1164
891
|
});
|
|
1165
892
|
};
|
|
1166
893
|
Gs2Money2RestClient.prototype.getStoreContentModel = function (request) {
|
|
@@ -1177,13 +904,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1177
904
|
var params = {
|
|
1178
905
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1179
906
|
};
|
|
1180
|
-
return
|
|
1181
|
-
|
|
1182
|
-
headers: headers,
|
|
1183
|
-
}).then(function (response) {
|
|
1184
|
-
return Result.GetStoreContentModelResult.fromDict(response.data);
|
|
1185
|
-
}).catch(function (error) {
|
|
1186
|
-
throw JSON.parse(error.response.data.message);
|
|
907
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
908
|
+
return Result.GetStoreContentModelResult.fromDict(data);
|
|
1187
909
|
});
|
|
1188
910
|
};
|
|
1189
911
|
Gs2Money2RestClient.prototype.describeStoreContentModelMasters = function (request) {
|
|
@@ -1202,13 +924,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1202
924
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1203
925
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1204
926
|
};
|
|
1205
|
-
return
|
|
1206
|
-
|
|
1207
|
-
headers: headers,
|
|
1208
|
-
}).then(function (response) {
|
|
1209
|
-
return Result.DescribeStoreContentModelMastersResult.fromDict(response.data);
|
|
1210
|
-
}).catch(function (error) {
|
|
1211
|
-
throw JSON.parse(error.response.data.message);
|
|
927
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
928
|
+
return Result.DescribeStoreContentModelMastersResult.fromDict(data);
|
|
1212
929
|
});
|
|
1213
930
|
};
|
|
1214
931
|
Gs2Money2RestClient.prototype.createStoreContentModelMaster = function (request) {
|
|
@@ -1229,17 +946,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1229
946
|
'appleAppStore': (_j = (_h = request.getAppleAppStore()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
1230
947
|
'googlePlay': (_l = (_k = request.getGooglePlay()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
1231
948
|
};
|
|
1232
|
-
return
|
|
1233
|
-
|
|
1234
|
-
}).then(function (response) {
|
|
1235
|
-
return Result.CreateStoreContentModelMasterResult.fromDict(response.data);
|
|
1236
|
-
}).catch(function (error) {
|
|
1237
|
-
if (error.response) {
|
|
1238
|
-
throw JSON.parse(error.response.data.message);
|
|
1239
|
-
}
|
|
1240
|
-
else {
|
|
1241
|
-
throw [];
|
|
1242
|
-
}
|
|
949
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
950
|
+
return Result.CreateStoreContentModelMasterResult.fromDict(data);
|
|
1243
951
|
});
|
|
1244
952
|
};
|
|
1245
953
|
Gs2Money2RestClient.prototype.getStoreContentModelMaster = function (request) {
|
|
@@ -1256,13 +964,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1256
964
|
var params = {
|
|
1257
965
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1258
966
|
};
|
|
1259
|
-
return
|
|
1260
|
-
|
|
1261
|
-
headers: headers,
|
|
1262
|
-
}).then(function (response) {
|
|
1263
|
-
return Result.GetStoreContentModelMasterResult.fromDict(response.data);
|
|
1264
|
-
}).catch(function (error) {
|
|
1265
|
-
throw JSON.parse(error.response.data.message);
|
|
967
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
968
|
+
return Result.GetStoreContentModelMasterResult.fromDict(data);
|
|
1266
969
|
});
|
|
1267
970
|
};
|
|
1268
971
|
Gs2Money2RestClient.prototype.updateStoreContentModelMaster = function (request) {
|
|
@@ -1283,17 +986,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1283
986
|
'appleAppStore': (_k = (_j = request.getAppleAppStore()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
1284
987
|
'googlePlay': (_m = (_l = request.getGooglePlay()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
1285
988
|
};
|
|
1286
|
-
return
|
|
1287
|
-
|
|
1288
|
-
}).then(function (response) {
|
|
1289
|
-
return Result.UpdateStoreContentModelMasterResult.fromDict(response.data);
|
|
1290
|
-
}).catch(function (error) {
|
|
1291
|
-
if (error.response) {
|
|
1292
|
-
throw JSON.parse(error.response.data.message);
|
|
1293
|
-
}
|
|
1294
|
-
else {
|
|
1295
|
-
throw [];
|
|
1296
|
-
}
|
|
989
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
990
|
+
return Result.UpdateStoreContentModelMasterResult.fromDict(data);
|
|
1297
991
|
});
|
|
1298
992
|
};
|
|
1299
993
|
Gs2Money2RestClient.prototype.deleteStoreContentModelMaster = function (request) {
|
|
@@ -1310,13 +1004,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1310
1004
|
var params = {
|
|
1311
1005
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1312
1006
|
};
|
|
1313
|
-
return
|
|
1314
|
-
|
|
1315
|
-
headers: headers,
|
|
1316
|
-
}).then(function (response) {
|
|
1317
|
-
return Result.DeleteStoreContentModelMasterResult.fromDict(response.data);
|
|
1318
|
-
}).catch(function (error) {
|
|
1319
|
-
throw JSON.parse(error.response.data.message);
|
|
1007
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1008
|
+
return Result.DeleteStoreContentModelMasterResult.fromDict(data);
|
|
1320
1009
|
});
|
|
1321
1010
|
};
|
|
1322
1011
|
Gs2Money2RestClient.prototype.describeStoreSubscriptionContentModels = function (request) {
|
|
@@ -1332,13 +1021,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1332
1021
|
var params = {
|
|
1333
1022
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1334
1023
|
};
|
|
1335
|
-
return
|
|
1336
|
-
|
|
1337
|
-
headers: headers,
|
|
1338
|
-
}).then(function (response) {
|
|
1339
|
-
return Result.DescribeStoreSubscriptionContentModelsResult.fromDict(response.data);
|
|
1340
|
-
}).catch(function (error) {
|
|
1341
|
-
throw JSON.parse(error.response.data.message);
|
|
1024
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1025
|
+
return Result.DescribeStoreSubscriptionContentModelsResult.fromDict(data);
|
|
1342
1026
|
});
|
|
1343
1027
|
};
|
|
1344
1028
|
Gs2Money2RestClient.prototype.getStoreSubscriptionContentModel = function (request) {
|
|
@@ -1355,13 +1039,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1355
1039
|
var params = {
|
|
1356
1040
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1357
1041
|
};
|
|
1358
|
-
return
|
|
1359
|
-
|
|
1360
|
-
headers: headers,
|
|
1361
|
-
}).then(function (response) {
|
|
1362
|
-
return Result.GetStoreSubscriptionContentModelResult.fromDict(response.data);
|
|
1363
|
-
}).catch(function (error) {
|
|
1364
|
-
throw JSON.parse(error.response.data.message);
|
|
1042
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1043
|
+
return Result.GetStoreSubscriptionContentModelResult.fromDict(data);
|
|
1365
1044
|
});
|
|
1366
1045
|
};
|
|
1367
1046
|
Gs2Money2RestClient.prototype.describeStoreSubscriptionContentModelMasters = function (request) {
|
|
@@ -1380,13 +1059,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1380
1059
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1381
1060
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1382
1061
|
};
|
|
1383
|
-
return
|
|
1384
|
-
|
|
1385
|
-
headers: headers,
|
|
1386
|
-
}).then(function (response) {
|
|
1387
|
-
return Result.DescribeStoreSubscriptionContentModelMastersResult.fromDict(response.data);
|
|
1388
|
-
}).catch(function (error) {
|
|
1389
|
-
throw JSON.parse(error.response.data.message);
|
|
1062
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1063
|
+
return Result.DescribeStoreSubscriptionContentModelMastersResult.fromDict(data);
|
|
1390
1064
|
});
|
|
1391
1065
|
};
|
|
1392
1066
|
Gs2Money2RestClient.prototype.createStoreSubscriptionContentModelMaster = function (request) {
|
|
@@ -1412,17 +1086,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1412
1086
|
'appleAppStore': (_p = (_o = request.getAppleAppStore()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
1413
1087
|
'googlePlay': (_r = (_q = request.getGooglePlay()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
1414
1088
|
};
|
|
1415
|
-
return
|
|
1416
|
-
|
|
1417
|
-
}).then(function (response) {
|
|
1418
|
-
return Result.CreateStoreSubscriptionContentModelMasterResult.fromDict(response.data);
|
|
1419
|
-
}).catch(function (error) {
|
|
1420
|
-
if (error.response) {
|
|
1421
|
-
throw JSON.parse(error.response.data.message);
|
|
1422
|
-
}
|
|
1423
|
-
else {
|
|
1424
|
-
throw [];
|
|
1425
|
-
}
|
|
1089
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1090
|
+
return Result.CreateStoreSubscriptionContentModelMasterResult.fromDict(data);
|
|
1426
1091
|
});
|
|
1427
1092
|
};
|
|
1428
1093
|
Gs2Money2RestClient.prototype.getStoreSubscriptionContentModelMaster = function (request) {
|
|
@@ -1439,13 +1104,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1439
1104
|
var params = {
|
|
1440
1105
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1441
1106
|
};
|
|
1442
|
-
return
|
|
1443
|
-
|
|
1444
|
-
headers: headers,
|
|
1445
|
-
}).then(function (response) {
|
|
1446
|
-
return Result.GetStoreSubscriptionContentModelMasterResult.fromDict(response.data);
|
|
1447
|
-
}).catch(function (error) {
|
|
1448
|
-
throw JSON.parse(error.response.data.message);
|
|
1107
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1108
|
+
return Result.GetStoreSubscriptionContentModelMasterResult.fromDict(data);
|
|
1449
1109
|
});
|
|
1450
1110
|
};
|
|
1451
1111
|
Gs2Money2RestClient.prototype.updateStoreSubscriptionContentModelMaster = function (request) {
|
|
@@ -1471,17 +1131,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1471
1131
|
'appleAppStore': (_q = (_p = request.getAppleAppStore()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
1472
1132
|
'googlePlay': (_s = (_r = request.getGooglePlay()) === null || _r === void 0 ? void 0 : _r.toDict()) !== null && _s !== void 0 ? _s : null,
|
|
1473
1133
|
};
|
|
1474
|
-
return
|
|
1475
|
-
|
|
1476
|
-
}).then(function (response) {
|
|
1477
|
-
return Result.UpdateStoreSubscriptionContentModelMasterResult.fromDict(response.data);
|
|
1478
|
-
}).catch(function (error) {
|
|
1479
|
-
if (error.response) {
|
|
1480
|
-
throw JSON.parse(error.response.data.message);
|
|
1481
|
-
}
|
|
1482
|
-
else {
|
|
1483
|
-
throw [];
|
|
1484
|
-
}
|
|
1134
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1135
|
+
return Result.UpdateStoreSubscriptionContentModelMasterResult.fromDict(data);
|
|
1485
1136
|
});
|
|
1486
1137
|
};
|
|
1487
1138
|
Gs2Money2RestClient.prototype.deleteStoreSubscriptionContentModelMaster = function (request) {
|
|
@@ -1498,13 +1149,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1498
1149
|
var params = {
|
|
1499
1150
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1500
1151
|
};
|
|
1501
|
-
return
|
|
1502
|
-
|
|
1503
|
-
headers: headers,
|
|
1504
|
-
}).then(function (response) {
|
|
1505
|
-
return Result.DeleteStoreSubscriptionContentModelMasterResult.fromDict(response.data);
|
|
1506
|
-
}).catch(function (error) {
|
|
1507
|
-
throw JSON.parse(error.response.data.message);
|
|
1152
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1153
|
+
return Result.DeleteStoreSubscriptionContentModelMasterResult.fromDict(data);
|
|
1508
1154
|
});
|
|
1509
1155
|
};
|
|
1510
1156
|
Gs2Money2RestClient.prototype.exportMaster = function (request) {
|
|
@@ -1520,13 +1166,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1520
1166
|
var params = {
|
|
1521
1167
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1522
1168
|
};
|
|
1523
|
-
return
|
|
1524
|
-
|
|
1525
|
-
headers: headers,
|
|
1526
|
-
}).then(function (response) {
|
|
1527
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
1528
|
-
}).catch(function (error) {
|
|
1529
|
-
throw JSON.parse(error.response.data.message);
|
|
1169
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1170
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
1530
1171
|
});
|
|
1531
1172
|
};
|
|
1532
1173
|
Gs2Money2RestClient.prototype.getCurrentModelMaster = function (request) {
|
|
@@ -1542,13 +1183,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1542
1183
|
var params = {
|
|
1543
1184
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1544
1185
|
};
|
|
1545
|
-
return
|
|
1546
|
-
|
|
1547
|
-
headers: headers,
|
|
1548
|
-
}).then(function (response) {
|
|
1549
|
-
return Result.GetCurrentModelMasterResult.fromDict(response.data);
|
|
1550
|
-
}).catch(function (error) {
|
|
1551
|
-
throw JSON.parse(error.response.data.message);
|
|
1186
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1187
|
+
return Result.GetCurrentModelMasterResult.fromDict(data);
|
|
1552
1188
|
});
|
|
1553
1189
|
};
|
|
1554
1190
|
Gs2Money2RestClient.prototype.preUpdateCurrentModelMaster = function (request) {
|
|
@@ -1564,17 +1200,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1564
1200
|
var body = {
|
|
1565
1201
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1566
1202
|
};
|
|
1567
|
-
return
|
|
1568
|
-
|
|
1569
|
-
}).then(function (response) {
|
|
1570
|
-
return Result.PreUpdateCurrentModelMasterResult.fromDict(response.data);
|
|
1571
|
-
}).catch(function (error) {
|
|
1572
|
-
if (error.response) {
|
|
1573
|
-
throw JSON.parse(error.response.data.message);
|
|
1574
|
-
}
|
|
1575
|
-
else {
|
|
1576
|
-
throw [];
|
|
1577
|
-
}
|
|
1203
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1204
|
+
return Result.PreUpdateCurrentModelMasterResult.fromDict(data);
|
|
1578
1205
|
});
|
|
1579
1206
|
};
|
|
1580
1207
|
Gs2Money2RestClient.prototype.updateCurrentModelMaster = function (request) {
|
|
@@ -1593,17 +1220,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1593
1220
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1594
1221
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1595
1222
|
};
|
|
1596
|
-
return
|
|
1597
|
-
|
|
1598
|
-
}).then(function (response) {
|
|
1599
|
-
return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
|
|
1600
|
-
}).catch(function (error) {
|
|
1601
|
-
if (error.response) {
|
|
1602
|
-
throw JSON.parse(error.response.data.message);
|
|
1603
|
-
}
|
|
1604
|
-
else {
|
|
1605
|
-
throw [];
|
|
1606
|
-
}
|
|
1223
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1224
|
+
return Result.UpdateCurrentModelMasterResult.fromDict(data);
|
|
1607
1225
|
});
|
|
1608
1226
|
};
|
|
1609
1227
|
Gs2Money2RestClient.prototype.updateCurrentModelMasterFromGitHub = function (request) {
|
|
@@ -1620,17 +1238,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1620
1238
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1621
1239
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1622
1240
|
};
|
|
1623
|
-
return
|
|
1624
|
-
|
|
1625
|
-
}).then(function (response) {
|
|
1626
|
-
return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
|
|
1627
|
-
}).catch(function (error) {
|
|
1628
|
-
if (error.response) {
|
|
1629
|
-
throw JSON.parse(error.response.data.message);
|
|
1630
|
-
}
|
|
1631
|
-
else {
|
|
1632
|
-
throw [];
|
|
1633
|
-
}
|
|
1241
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1242
|
+
return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(data);
|
|
1634
1243
|
});
|
|
1635
1244
|
};
|
|
1636
1245
|
Gs2Money2RestClient.prototype.describeDailyTransactionHistoriesByCurrency = function (request) {
|
|
@@ -1651,13 +1260,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1651
1260
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1652
1261
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1653
1262
|
};
|
|
1654
|
-
return
|
|
1655
|
-
|
|
1656
|
-
headers: headers,
|
|
1657
|
-
}).then(function (response) {
|
|
1658
|
-
return Result.DescribeDailyTransactionHistoriesByCurrencyResult.fromDict(response.data);
|
|
1659
|
-
}).catch(function (error) {
|
|
1660
|
-
throw JSON.parse(error.response.data.message);
|
|
1263
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1264
|
+
return Result.DescribeDailyTransactionHistoriesByCurrencyResult.fromDict(data);
|
|
1661
1265
|
});
|
|
1662
1266
|
};
|
|
1663
1267
|
Gs2Money2RestClient.prototype.describeDailyTransactionHistories = function (request) {
|
|
@@ -1678,13 +1282,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1678
1282
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1679
1283
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1680
1284
|
};
|
|
1681
|
-
return
|
|
1682
|
-
|
|
1683
|
-
headers: headers,
|
|
1684
|
-
}).then(function (response) {
|
|
1685
|
-
return Result.DescribeDailyTransactionHistoriesResult.fromDict(response.data);
|
|
1686
|
-
}).catch(function (error) {
|
|
1687
|
-
throw JSON.parse(error.response.data.message);
|
|
1285
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1286
|
+
return Result.DescribeDailyTransactionHistoriesResult.fromDict(data);
|
|
1688
1287
|
});
|
|
1689
1288
|
};
|
|
1690
1289
|
Gs2Money2RestClient.prototype.getDailyTransactionHistory = function (request) {
|
|
@@ -1704,13 +1303,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1704
1303
|
var params = {
|
|
1705
1304
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1706
1305
|
};
|
|
1707
|
-
return
|
|
1708
|
-
|
|
1709
|
-
headers: headers,
|
|
1710
|
-
}).then(function (response) {
|
|
1711
|
-
return Result.GetDailyTransactionHistoryResult.fromDict(response.data);
|
|
1712
|
-
}).catch(function (error) {
|
|
1713
|
-
throw JSON.parse(error.response.data.message);
|
|
1306
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1307
|
+
return Result.GetDailyTransactionHistoryResult.fromDict(data);
|
|
1714
1308
|
});
|
|
1715
1309
|
};
|
|
1716
1310
|
Gs2Money2RestClient.prototype.describeUnusedBalances = function (request) {
|
|
@@ -1728,13 +1322,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1728
1322
|
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
1729
1323
|
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
1730
1324
|
};
|
|
1731
|
-
return
|
|
1732
|
-
|
|
1733
|
-
headers: headers,
|
|
1734
|
-
}).then(function (response) {
|
|
1735
|
-
return Result.DescribeUnusedBalancesResult.fromDict(response.data);
|
|
1736
|
-
}).catch(function (error) {
|
|
1737
|
-
throw JSON.parse(error.response.data.message);
|
|
1325
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1326
|
+
return Result.DescribeUnusedBalancesResult.fromDict(data);
|
|
1738
1327
|
});
|
|
1739
1328
|
};
|
|
1740
1329
|
Gs2Money2RestClient.prototype.getUnusedBalance = function (request) {
|
|
@@ -1751,13 +1340,8 @@ var Gs2Money2RestClient = /** @class */ (function (_super) {
|
|
|
1751
1340
|
var params = {
|
|
1752
1341
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1753
1342
|
};
|
|
1754
|
-
return
|
|
1755
|
-
|
|
1756
|
-
headers: headers,
|
|
1757
|
-
}).then(function (response) {
|
|
1758
|
-
return Result.GetUnusedBalanceResult.fromDict(response.data);
|
|
1759
|
-
}).catch(function (error) {
|
|
1760
|
-
throw JSON.parse(error.response.data.message);
|
|
1343
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1344
|
+
return Result.GetUnusedBalanceResult.fromDict(data);
|
|
1761
1345
|
});
|
|
1762
1346
|
};
|
|
1763
1347
|
Gs2Money2RestClient.ENDPOINT_HOST = null;
|