gs2 1.4.99 → 1.4.101
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.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/money/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2MoneyRestClient.prototype.describeNamespaces = function (request) {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
29
|
+
var _a, _b, _c, _d, _e;
|
|
30
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
31
31
|
.replace('{service}', 'money')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
35
35
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
36
36
|
}
|
|
37
37
|
var params = {
|
|
38
|
-
'contextStack': (
|
|
39
|
-
'namePrefix': String((
|
|
40
|
-
'pageToken': String((
|
|
41
|
-
'limit': String((
|
|
38
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
39
|
+
'namePrefix': String((_c = request.getNamePrefix()) !== null && _c !== void 0 ? _c : null),
|
|
40
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
42
|
};
|
|
43
43
|
return axios_1.default.get(url, {
|
|
44
44
|
params: params,
|
|
@@ -50,8 +50,8 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2MoneyRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
54
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/')
|
|
55
55
|
.replace('{service}', 'money')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,20 +59,20 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
59
59
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
60
60
|
}
|
|
61
61
|
var body = {
|
|
62
|
-
'contextStack': (
|
|
63
|
-
'name': (
|
|
64
|
-
'description': (
|
|
65
|
-
'transactionSetting': (
|
|
66
|
-
'priority': (
|
|
67
|
-
'shareFree': (
|
|
68
|
-
'currency': (
|
|
69
|
-
'appleKey': (
|
|
70
|
-
'googleKey': (
|
|
71
|
-
'enableFakeReceipt': (
|
|
72
|
-
'createWalletScript': (
|
|
73
|
-
'depositScript': (
|
|
74
|
-
'withdrawScript': (
|
|
75
|
-
'logSetting': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'priority': (_g = request.getPriority()) !== null && _g !== void 0 ? _g : null,
|
|
67
|
+
'shareFree': (_h = request.getShareFree()) !== null && _h !== void 0 ? _h : null,
|
|
68
|
+
'currency': (_j = request.getCurrency()) !== null && _j !== void 0 ? _j : null,
|
|
69
|
+
'appleKey': (_k = request.getAppleKey()) !== null && _k !== void 0 ? _k : null,
|
|
70
|
+
'googleKey': (_l = request.getGoogleKey()) !== null && _l !== void 0 ? _l : null,
|
|
71
|
+
'enableFakeReceipt': (_m = request.getEnableFakeReceipt()) !== null && _m !== void 0 ? _m : null,
|
|
72
|
+
'createWalletScript': (_p = (_o = request.getCreateWalletScript()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
|
|
73
|
+
'depositScript': (_r = (_q = request.getDepositScript()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
74
|
+
'withdrawScript': (_t = (_s = request.getWithdrawScript()) === null || _s === void 0 ? void 0 : _s.toDict()) !== null && _t !== void 0 ? _t : null,
|
|
75
|
+
'logSetting': (_v = (_u = request.getLogSetting()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
|
|
76
76
|
};
|
|
77
77
|
return axios_1.default.post(url, body, {
|
|
78
78
|
headers: headers,
|
|
@@ -88,17 +88,17 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
Gs2MoneyRestClient.prototype.getNamespaceStatus = function (request) {
|
|
91
|
-
var _a, _b, _c;
|
|
92
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
91
|
+
var _a, _b, _c, _d;
|
|
92
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/status')
|
|
93
93
|
.replace('{service}', 'money')
|
|
94
94
|
.replace('{region}', this.session.region)
|
|
95
|
-
.replace('{namespaceName}', String((
|
|
95
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
96
96
|
var headers = this.createAuthorizedHeaders();
|
|
97
97
|
if (request.getRequestId()) {
|
|
98
98
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
99
99
|
}
|
|
100
100
|
var params = {
|
|
101
|
-
'contextStack': (
|
|
101
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
102
102
|
};
|
|
103
103
|
return axios_1.default.get(url, {
|
|
104
104
|
params: params,
|
|
@@ -110,17 +110,17 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
Gs2MoneyRestClient.prototype.getNamespace = function (request) {
|
|
113
|
-
var _a, _b, _c;
|
|
114
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
113
|
+
var _a, _b, _c, _d;
|
|
114
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
115
115
|
.replace('{service}', 'money')
|
|
116
116
|
.replace('{region}', this.session.region)
|
|
117
|
-
.replace('{namespaceName}', String((
|
|
117
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
118
118
|
var headers = this.createAuthorizedHeaders();
|
|
119
119
|
if (request.getRequestId()) {
|
|
120
120
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
121
121
|
}
|
|
122
122
|
var params = {
|
|
123
|
-
'contextStack': (
|
|
123
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
124
124
|
};
|
|
125
125
|
return axios_1.default.get(url, {
|
|
126
126
|
params: params,
|
|
@@ -132,27 +132,27 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
134
|
Gs2MoneyRestClient.prototype.updateNamespace = function (request) {
|
|
135
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
136
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
135
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
136
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
137
137
|
.replace('{service}', 'money')
|
|
138
138
|
.replace('{region}', this.session.region)
|
|
139
|
-
.replace('{namespaceName}', String((
|
|
139
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
140
140
|
var headers = this.createAuthorizedHeaders();
|
|
141
141
|
if (request.getRequestId()) {
|
|
142
142
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
143
143
|
}
|
|
144
144
|
var body = {
|
|
145
|
-
'contextStack': (
|
|
146
|
-
'description': (
|
|
147
|
-
'transactionSetting': (
|
|
148
|
-
'priority': (
|
|
149
|
-
'appleKey': (
|
|
150
|
-
'googleKey': (
|
|
151
|
-
'enableFakeReceipt': (
|
|
152
|
-
'createWalletScript': (
|
|
153
|
-
'depositScript': (
|
|
154
|
-
'withdrawScript': (
|
|
155
|
-
'logSetting': (
|
|
145
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
146
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
147
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
148
|
+
'priority': (_h = request.getPriority()) !== null && _h !== void 0 ? _h : null,
|
|
149
|
+
'appleKey': (_j = request.getAppleKey()) !== null && _j !== void 0 ? _j : null,
|
|
150
|
+
'googleKey': (_k = request.getGoogleKey()) !== null && _k !== void 0 ? _k : null,
|
|
151
|
+
'enableFakeReceipt': (_l = request.getEnableFakeReceipt()) !== null && _l !== void 0 ? _l : null,
|
|
152
|
+
'createWalletScript': (_o = (_m = request.getCreateWalletScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
|
|
153
|
+
'depositScript': (_q = (_p = request.getDepositScript()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
|
|
154
|
+
'withdrawScript': (_s = (_r = request.getWithdrawScript()) === null || _r === void 0 ? void 0 : _r.toDict()) !== null && _s !== void 0 ? _s : null,
|
|
155
|
+
'logSetting': (_u = (_t = request.getLogSetting()) === null || _t === void 0 ? void 0 : _t.toDict()) !== null && _u !== void 0 ? _u : null,
|
|
156
156
|
};
|
|
157
157
|
return axios_1.default.put(url, body, {
|
|
158
158
|
headers: headers,
|
|
@@ -168,17 +168,17 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
168
168
|
});
|
|
169
169
|
};
|
|
170
170
|
Gs2MoneyRestClient.prototype.deleteNamespace = function (request) {
|
|
171
|
-
var _a, _b, _c;
|
|
172
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
171
|
+
var _a, _b, _c, _d;
|
|
172
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}')
|
|
173
173
|
.replace('{service}', 'money')
|
|
174
174
|
.replace('{region}', this.session.region)
|
|
175
|
-
.replace('{namespaceName}', String((
|
|
175
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
176
176
|
var headers = this.createAuthorizedHeaders();
|
|
177
177
|
if (request.getRequestId()) {
|
|
178
178
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
179
179
|
}
|
|
180
180
|
var params = {
|
|
181
|
-
'contextStack': (
|
|
181
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
182
182
|
};
|
|
183
183
|
return axios_1.default.delete(url, {
|
|
184
184
|
params: params,
|
|
@@ -190,8 +190,8 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
192
|
Gs2MoneyRestClient.prototype.getServiceVersion = function (request) {
|
|
193
|
-
var _a;
|
|
194
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
193
|
+
var _a, _b;
|
|
194
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/version')
|
|
195
195
|
.replace('{service}', 'money')
|
|
196
196
|
.replace('{region}', this.session.region);
|
|
197
197
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -199,7 +199,7 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
199
199
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
200
200
|
}
|
|
201
201
|
var params = {
|
|
202
|
-
'contextStack': (
|
|
202
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
203
203
|
};
|
|
204
204
|
return axios_1.default.get(url, {
|
|
205
205
|
params: params,
|
|
@@ -211,20 +211,20 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
211
211
|
});
|
|
212
212
|
};
|
|
213
213
|
Gs2MoneyRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
214
|
-
var _a, _b, _c, _d;
|
|
215
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
214
|
+
var _a, _b, _c, _d, _e;
|
|
215
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
216
216
|
.replace('{service}', 'money')
|
|
217
217
|
.replace('{region}', this.session.region)
|
|
218
|
-
.replace('{userId}', String((
|
|
218
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
219
219
|
var headers = this.createAuthorizedHeaders();
|
|
220
220
|
if (request.getRequestId()) {
|
|
221
221
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
222
222
|
}
|
|
223
223
|
if (request.getTimeOffsetToken()) {
|
|
224
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
224
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
225
225
|
}
|
|
226
226
|
var body = {
|
|
227
|
-
'contextStack': (
|
|
227
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
228
228
|
};
|
|
229
229
|
return axios_1.default.post(url, body, {
|
|
230
230
|
headers: headers,
|
|
@@ -240,20 +240,20 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
240
240
|
});
|
|
241
241
|
};
|
|
242
242
|
Gs2MoneyRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
243
|
-
var _a, _b, _c, _d;
|
|
244
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
243
|
+
var _a, _b, _c, _d, _e;
|
|
244
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/dump/user/{userId}')
|
|
245
245
|
.replace('{service}', 'money')
|
|
246
246
|
.replace('{region}', this.session.region)
|
|
247
|
-
.replace('{userId}', String((
|
|
247
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
248
248
|
var headers = this.createAuthorizedHeaders();
|
|
249
249
|
if (request.getRequestId()) {
|
|
250
250
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
251
251
|
}
|
|
252
252
|
if (request.getTimeOffsetToken()) {
|
|
253
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
253
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
254
254
|
}
|
|
255
255
|
var params = {
|
|
256
|
-
'contextStack': (
|
|
256
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
257
257
|
};
|
|
258
258
|
return axios_1.default.get(url, {
|
|
259
259
|
params: params,
|
|
@@ -265,20 +265,20 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
Gs2MoneyRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
268
|
-
var _a, _b, _c, _d;
|
|
269
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
268
|
+
var _a, _b, _c, _d, _e;
|
|
269
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
270
270
|
.replace('{service}', 'money')
|
|
271
271
|
.replace('{region}', this.session.region)
|
|
272
|
-
.replace('{userId}', String((
|
|
272
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
273
273
|
var headers = this.createAuthorizedHeaders();
|
|
274
274
|
if (request.getRequestId()) {
|
|
275
275
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
276
276
|
}
|
|
277
277
|
if (request.getTimeOffsetToken()) {
|
|
278
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
278
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
279
279
|
}
|
|
280
280
|
var body = {
|
|
281
|
-
'contextStack': (
|
|
281
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
282
282
|
};
|
|
283
283
|
return axios_1.default.post(url, body, {
|
|
284
284
|
headers: headers,
|
|
@@ -294,20 +294,20 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
296
|
Gs2MoneyRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
297
|
-
var _a, _b, _c, _d;
|
|
298
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
297
|
+
var _a, _b, _c, _d, _e;
|
|
298
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/clean/user/{userId}')
|
|
299
299
|
.replace('{service}', 'money')
|
|
300
300
|
.replace('{region}', this.session.region)
|
|
301
|
-
.replace('{userId}', String((
|
|
301
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
302
302
|
var headers = this.createAuthorizedHeaders();
|
|
303
303
|
if (request.getRequestId()) {
|
|
304
304
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
305
305
|
}
|
|
306
306
|
if (request.getTimeOffsetToken()) {
|
|
307
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
307
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
308
308
|
}
|
|
309
309
|
var params = {
|
|
310
|
-
'contextStack': (
|
|
310
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
311
311
|
};
|
|
312
312
|
return axios_1.default.get(url, {
|
|
313
313
|
params: params,
|
|
@@ -319,20 +319,20 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
319
319
|
});
|
|
320
320
|
};
|
|
321
321
|
Gs2MoneyRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
322
|
-
var _a, _b, _c, _d;
|
|
323
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
322
|
+
var _a, _b, _c, _d, _e;
|
|
323
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/prepare')
|
|
324
324
|
.replace('{service}', 'money')
|
|
325
325
|
.replace('{region}', this.session.region)
|
|
326
|
-
.replace('{userId}', String((
|
|
326
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
327
327
|
var headers = this.createAuthorizedHeaders();
|
|
328
328
|
if (request.getRequestId()) {
|
|
329
329
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
330
330
|
}
|
|
331
331
|
if (request.getTimeOffsetToken()) {
|
|
332
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
332
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
333
333
|
}
|
|
334
334
|
var body = {
|
|
335
|
-
'contextStack': (
|
|
335
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
336
336
|
};
|
|
337
337
|
return axios_1.default.post(url, body, {
|
|
338
338
|
headers: headers,
|
|
@@ -348,21 +348,21 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
348
348
|
});
|
|
349
349
|
};
|
|
350
350
|
Gs2MoneyRestClient.prototype.importUserDataByUserId = function (request) {
|
|
351
|
-
var _a, _b, _c, _d, _e;
|
|
352
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
351
|
+
var _a, _b, _c, _d, _e, _f;
|
|
352
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}')
|
|
353
353
|
.replace('{service}', 'money')
|
|
354
354
|
.replace('{region}', this.session.region)
|
|
355
|
-
.replace('{userId}', String((
|
|
355
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
356
356
|
var headers = this.createAuthorizedHeaders();
|
|
357
357
|
if (request.getRequestId()) {
|
|
358
358
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
359
359
|
}
|
|
360
360
|
if (request.getTimeOffsetToken()) {
|
|
361
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
361
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
362
362
|
}
|
|
363
363
|
var body = {
|
|
364
|
-
'contextStack': (
|
|
365
|
-
'uploadToken': (
|
|
364
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
365
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
366
366
|
};
|
|
367
367
|
return axios_1.default.post(url, body, {
|
|
368
368
|
headers: headers,
|
|
@@ -378,21 +378,21 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
380
|
Gs2MoneyRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
381
|
-
var _a, _b, _c, _d, _e, _f;
|
|
382
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
381
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
382
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/system/import/user/{userId}/{uploadToken}')
|
|
383
383
|
.replace('{service}', 'money')
|
|
384
384
|
.replace('{region}', this.session.region)
|
|
385
|
-
.replace('{userId}', String((
|
|
386
|
-
.replace('{uploadToken}', String((
|
|
385
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
386
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
387
387
|
var headers = this.createAuthorizedHeaders();
|
|
388
388
|
if (request.getRequestId()) {
|
|
389
389
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
390
390
|
}
|
|
391
391
|
if (request.getTimeOffsetToken()) {
|
|
392
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
392
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
393
393
|
}
|
|
394
394
|
var params = {
|
|
395
|
-
'contextStack': (
|
|
395
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
396
396
|
};
|
|
397
397
|
return axios_1.default.get(url, {
|
|
398
398
|
params: params,
|
|
@@ -404,22 +404,22 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
Gs2MoneyRestClient.prototype.describeWallets = function (request) {
|
|
407
|
-
var _a, _b, _c, _d, _e, _f;
|
|
408
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/wallet')
|
|
407
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
408
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/wallet')
|
|
409
409
|
.replace('{service}', 'money')
|
|
410
410
|
.replace('{region}', this.session.region)
|
|
411
|
-
.replace('{namespaceName}', String((
|
|
411
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
412
412
|
var headers = this.createAuthorizedHeaders();
|
|
413
413
|
if (request.getRequestId()) {
|
|
414
414
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
415
415
|
}
|
|
416
416
|
if (request.getAccessToken()) {
|
|
417
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
417
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
418
418
|
}
|
|
419
419
|
var params = {
|
|
420
|
-
'contextStack': (
|
|
421
|
-
'pageToken': String((
|
|
422
|
-
'limit': String((
|
|
420
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
421
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
422
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
423
423
|
};
|
|
424
424
|
return axios_1.default.get(url, {
|
|
425
425
|
params: params,
|
|
@@ -431,23 +431,23 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
431
431
|
});
|
|
432
432
|
};
|
|
433
433
|
Gs2MoneyRestClient.prototype.describeWalletsByUserId = function (request) {
|
|
434
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
435
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/wallet')
|
|
434
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
435
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/wallet')
|
|
436
436
|
.replace('{service}', 'money')
|
|
437
437
|
.replace('{region}', this.session.region)
|
|
438
|
-
.replace('{namespaceName}', String((
|
|
439
|
-
.replace('{userId}', String((
|
|
438
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
439
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
440
440
|
var headers = this.createAuthorizedHeaders();
|
|
441
441
|
if (request.getRequestId()) {
|
|
442
442
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
443
443
|
}
|
|
444
444
|
if (request.getTimeOffsetToken()) {
|
|
445
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
445
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
446
446
|
}
|
|
447
447
|
var params = {
|
|
448
|
-
'contextStack': (
|
|
449
|
-
'pageToken': String((
|
|
450
|
-
'limit': String((
|
|
448
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
449
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
450
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
451
451
|
};
|
|
452
452
|
return axios_1.default.get(url, {
|
|
453
453
|
params: params,
|
|
@@ -459,21 +459,21 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
459
459
|
});
|
|
460
460
|
};
|
|
461
461
|
Gs2MoneyRestClient.prototype.getWallet = function (request) {
|
|
462
|
-
var _a, _b, _c, _d, _e, _f;
|
|
463
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/wallet/{slot}')
|
|
462
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
463
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/wallet/{slot}')
|
|
464
464
|
.replace('{service}', 'money')
|
|
465
465
|
.replace('{region}', this.session.region)
|
|
466
|
-
.replace('{namespaceName}', String((
|
|
467
|
-
.replace('{slot}', String((
|
|
466
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
467
|
+
.replace('{slot}', String((_d = request.getSlot()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getSlot()) !== null && _e !== void 0 ? _e : 'null'));
|
|
468
468
|
var headers = this.createAuthorizedHeaders();
|
|
469
469
|
if (request.getRequestId()) {
|
|
470
470
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
471
471
|
}
|
|
472
472
|
if (request.getAccessToken()) {
|
|
473
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
473
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
474
474
|
}
|
|
475
475
|
var params = {
|
|
476
|
-
'contextStack': (
|
|
476
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
477
477
|
};
|
|
478
478
|
return axios_1.default.get(url, {
|
|
479
479
|
params: params,
|
|
@@ -485,22 +485,22 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
485
485
|
});
|
|
486
486
|
};
|
|
487
487
|
Gs2MoneyRestClient.prototype.getWalletByUserId = function (request) {
|
|
488
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
489
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/wallet/{slot}')
|
|
488
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
489
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/wallet/{slot}')
|
|
490
490
|
.replace('{service}', 'money')
|
|
491
491
|
.replace('{region}', this.session.region)
|
|
492
|
-
.replace('{namespaceName}', String((
|
|
493
|
-
.replace('{userId}', String((
|
|
494
|
-
.replace('{slot}', String((
|
|
492
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
493
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
494
|
+
.replace('{slot}', String((_f = request.getSlot()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getSlot()) !== null && _g !== void 0 ? _g : 'null'));
|
|
495
495
|
var headers = this.createAuthorizedHeaders();
|
|
496
496
|
if (request.getRequestId()) {
|
|
497
497
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
498
498
|
}
|
|
499
499
|
if (request.getTimeOffsetToken()) {
|
|
500
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
500
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
501
501
|
}
|
|
502
502
|
var params = {
|
|
503
|
-
'contextStack': (
|
|
503
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
504
504
|
};
|
|
505
505
|
return axios_1.default.get(url, {
|
|
506
506
|
params: params,
|
|
@@ -512,27 +512,27 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
512
512
|
});
|
|
513
513
|
};
|
|
514
514
|
Gs2MoneyRestClient.prototype.depositByUserId = function (request) {
|
|
515
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
516
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/wallet/{slot}/deposit')
|
|
515
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
516
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/wallet/{slot}/deposit')
|
|
517
517
|
.replace('{service}', 'money')
|
|
518
518
|
.replace('{region}', this.session.region)
|
|
519
|
-
.replace('{namespaceName}', String((
|
|
520
|
-
.replace('{userId}', String((
|
|
521
|
-
.replace('{slot}', String((
|
|
519
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
520
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
521
|
+
.replace('{slot}', String((_f = request.getSlot()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getSlot()) !== null && _g !== void 0 ? _g : 'null'));
|
|
522
522
|
var headers = this.createAuthorizedHeaders();
|
|
523
523
|
if (request.getRequestId()) {
|
|
524
524
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
525
525
|
}
|
|
526
526
|
if (request.getDuplicationAvoider()) {
|
|
527
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
527
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
528
528
|
}
|
|
529
529
|
if (request.getTimeOffsetToken()) {
|
|
530
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
530
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
531
531
|
}
|
|
532
532
|
var body = {
|
|
533
|
-
'contextStack': (
|
|
534
|
-
'price': (
|
|
535
|
-
'count': (
|
|
533
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
534
|
+
'price': (_l = request.getPrice()) !== null && _l !== void 0 ? _l : null,
|
|
535
|
+
'count': (_m = request.getCount()) !== null && _m !== void 0 ? _m : null,
|
|
536
536
|
};
|
|
537
537
|
return axios_1.default.post(url, body, {
|
|
538
538
|
headers: headers,
|
|
@@ -548,26 +548,26 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
548
548
|
});
|
|
549
549
|
};
|
|
550
550
|
Gs2MoneyRestClient.prototype.withdraw = function (request) {
|
|
551
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
552
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/wallet/{slot}/withdraw')
|
|
551
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
552
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/me/wallet/{slot}/withdraw')
|
|
553
553
|
.replace('{service}', 'money')
|
|
554
554
|
.replace('{region}', this.session.region)
|
|
555
|
-
.replace('{namespaceName}', String((
|
|
556
|
-
.replace('{slot}', String((
|
|
555
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
556
|
+
.replace('{slot}', String((_d = request.getSlot()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getSlot()) !== null && _e !== void 0 ? _e : 'null'));
|
|
557
557
|
var headers = this.createAuthorizedHeaders();
|
|
558
558
|
if (request.getRequestId()) {
|
|
559
559
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
560
560
|
}
|
|
561
561
|
if (request.getAccessToken()) {
|
|
562
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
562
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
563
563
|
}
|
|
564
564
|
if (request.getDuplicationAvoider()) {
|
|
565
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
565
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
566
566
|
}
|
|
567
567
|
var body = {
|
|
568
|
-
'contextStack': (
|
|
569
|
-
'count': (
|
|
570
|
-
'paidOnly': (
|
|
568
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
569
|
+
'count': (_j = request.getCount()) !== null && _j !== void 0 ? _j : null,
|
|
570
|
+
'paidOnly': (_k = request.getPaidOnly()) !== null && _k !== void 0 ? _k : null,
|
|
571
571
|
};
|
|
572
572
|
return axios_1.default.post(url, body, {
|
|
573
573
|
headers: headers,
|
|
@@ -583,27 +583,27 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
583
583
|
});
|
|
584
584
|
};
|
|
585
585
|
Gs2MoneyRestClient.prototype.withdrawByUserId = function (request) {
|
|
586
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
587
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/wallet/{slot}/withdraw')
|
|
586
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
587
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/wallet/{slot}/withdraw')
|
|
588
588
|
.replace('{service}', 'money')
|
|
589
589
|
.replace('{region}', this.session.region)
|
|
590
|
-
.replace('{namespaceName}', String((
|
|
591
|
-
.replace('{userId}', String((
|
|
592
|
-
.replace('{slot}', String((
|
|
590
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
591
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
592
|
+
.replace('{slot}', String((_f = request.getSlot()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getSlot()) !== null && _g !== void 0 ? _g : 'null'));
|
|
593
593
|
var headers = this.createAuthorizedHeaders();
|
|
594
594
|
if (request.getRequestId()) {
|
|
595
595
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
596
596
|
}
|
|
597
597
|
if (request.getDuplicationAvoider()) {
|
|
598
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
598
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
599
599
|
}
|
|
600
600
|
if (request.getTimeOffsetToken()) {
|
|
601
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
601
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
602
602
|
}
|
|
603
603
|
var body = {
|
|
604
|
-
'contextStack': (
|
|
605
|
-
'count': (
|
|
606
|
-
'paidOnly': (
|
|
604
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
605
|
+
'count': (_l = request.getCount()) !== null && _l !== void 0 ? _l : null,
|
|
606
|
+
'paidOnly': (_m = request.getPaidOnly()) !== null && _m !== void 0 ? _m : null,
|
|
607
607
|
};
|
|
608
608
|
return axios_1.default.post(url, body, {
|
|
609
609
|
headers: headers,
|
|
@@ -619,8 +619,8 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
619
619
|
});
|
|
620
620
|
};
|
|
621
621
|
Gs2MoneyRestClient.prototype.depositByStampSheet = function (request) {
|
|
622
|
-
var _a, _b, _c;
|
|
623
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/deposit')
|
|
622
|
+
var _a, _b, _c, _d;
|
|
623
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/deposit')
|
|
624
624
|
.replace('{service}', 'money')
|
|
625
625
|
.replace('{region}', this.session.region);
|
|
626
626
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -628,9 +628,9 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
628
628
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
629
629
|
}
|
|
630
630
|
var body = {
|
|
631
|
-
'contextStack': (
|
|
632
|
-
'stampSheet': (
|
|
633
|
-
'keyId': (
|
|
631
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
632
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
633
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
634
634
|
};
|
|
635
635
|
return axios_1.default.post(url, body, {
|
|
636
636
|
headers: headers,
|
|
@@ -646,8 +646,8 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
646
646
|
});
|
|
647
647
|
};
|
|
648
648
|
Gs2MoneyRestClient.prototype.withdrawByStampTask = function (request) {
|
|
649
|
-
var _a, _b, _c;
|
|
650
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/withdraw')
|
|
649
|
+
var _a, _b, _c, _d;
|
|
650
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/withdraw')
|
|
651
651
|
.replace('{service}', 'money')
|
|
652
652
|
.replace('{region}', this.session.region);
|
|
653
653
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -655,9 +655,9 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
655
655
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
656
656
|
}
|
|
657
657
|
var body = {
|
|
658
|
-
'contextStack': (
|
|
659
|
-
'stampTask': (
|
|
660
|
-
'keyId': (
|
|
658
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
659
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
660
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
661
661
|
};
|
|
662
662
|
return axios_1.default.post(url, body, {
|
|
663
663
|
headers: headers,
|
|
@@ -673,26 +673,26 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
673
673
|
});
|
|
674
674
|
};
|
|
675
675
|
Gs2MoneyRestClient.prototype.describeReceipts = function (request) {
|
|
676
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
677
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/receipt')
|
|
676
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
677
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/receipt')
|
|
678
678
|
.replace('{service}', 'money')
|
|
679
679
|
.replace('{region}', this.session.region)
|
|
680
|
-
.replace('{namespaceName}', String((
|
|
680
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
681
681
|
var headers = this.createAuthorizedHeaders();
|
|
682
682
|
if (request.getRequestId()) {
|
|
683
683
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
684
684
|
}
|
|
685
685
|
if (request.getTimeOffsetToken()) {
|
|
686
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
686
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
687
687
|
}
|
|
688
688
|
var params = {
|
|
689
|
-
'contextStack': (
|
|
690
|
-
'userId': String((
|
|
691
|
-
'slot': String((
|
|
692
|
-
'begin': String((
|
|
693
|
-
'end': String((
|
|
694
|
-
'pageToken': String((
|
|
695
|
-
'limit': String((
|
|
689
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
690
|
+
'userId': String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : null),
|
|
691
|
+
'slot': String((_g = request.getSlot()) !== null && _g !== void 0 ? _g : null),
|
|
692
|
+
'begin': String((_h = request.getBegin()) !== null && _h !== void 0 ? _h : null),
|
|
693
|
+
'end': String((_j = request.getEnd()) !== null && _j !== void 0 ? _j : null),
|
|
694
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
695
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
696
696
|
};
|
|
697
697
|
return axios_1.default.get(url, {
|
|
698
698
|
params: params,
|
|
@@ -704,22 +704,22 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
704
704
|
});
|
|
705
705
|
};
|
|
706
706
|
Gs2MoneyRestClient.prototype.getByUserIdAndTransactionId = function (request) {
|
|
707
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
708
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/receipt/{transactionId}')
|
|
707
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
708
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/receipt/{transactionId}')
|
|
709
709
|
.replace('{service}', 'money')
|
|
710
710
|
.replace('{region}', this.session.region)
|
|
711
|
-
.replace('{namespaceName}', String((
|
|
712
|
-
.replace('{userId}', String((
|
|
713
|
-
.replace('{transactionId}', String((
|
|
711
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
712
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
713
|
+
.replace('{transactionId}', String((_f = request.getTransactionId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getTransactionId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
714
714
|
var headers = this.createAuthorizedHeaders();
|
|
715
715
|
if (request.getRequestId()) {
|
|
716
716
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
717
717
|
}
|
|
718
718
|
if (request.getTimeOffsetToken()) {
|
|
719
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
719
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
720
720
|
}
|
|
721
721
|
var params = {
|
|
722
|
-
'contextStack': (
|
|
722
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
723
723
|
};
|
|
724
724
|
return axios_1.default.get(url, {
|
|
725
725
|
params: params,
|
|
@@ -731,26 +731,26 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
731
731
|
});
|
|
732
732
|
};
|
|
733
733
|
Gs2MoneyRestClient.prototype.recordReceipt = function (request) {
|
|
734
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
735
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/receipt')
|
|
734
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
735
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/receipt')
|
|
736
736
|
.replace('{service}', 'money')
|
|
737
737
|
.replace('{region}', this.session.region)
|
|
738
|
-
.replace('{namespaceName}', String((
|
|
739
|
-
.replace('{userId}', String((
|
|
738
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
739
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
740
740
|
var headers = this.createAuthorizedHeaders();
|
|
741
741
|
if (request.getRequestId()) {
|
|
742
742
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
743
743
|
}
|
|
744
744
|
if (request.getDuplicationAvoider()) {
|
|
745
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
745
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
746
746
|
}
|
|
747
747
|
if (request.getTimeOffsetToken()) {
|
|
748
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
748
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
749
749
|
}
|
|
750
750
|
var body = {
|
|
751
|
-
'contextStack': (
|
|
752
|
-
'contentsId': (
|
|
753
|
-
'receipt': (
|
|
751
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
752
|
+
'contentsId': (_j = request.getContentsId()) !== null && _j !== void 0 ? _j : null,
|
|
753
|
+
'receipt': (_k = request.getReceipt()) !== null && _k !== void 0 ? _k : null,
|
|
754
754
|
};
|
|
755
755
|
return axios_1.default.post(url, body, {
|
|
756
756
|
headers: headers,
|
|
@@ -766,25 +766,25 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
766
766
|
});
|
|
767
767
|
};
|
|
768
768
|
Gs2MoneyRestClient.prototype.revertRecordReceipt = function (request) {
|
|
769
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
770
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/receipt/revert')
|
|
769
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
770
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/user/{userId}/receipt/revert')
|
|
771
771
|
.replace('{service}', 'money')
|
|
772
772
|
.replace('{region}', this.session.region)
|
|
773
|
-
.replace('{namespaceName}', String((
|
|
774
|
-
.replace('{userId}', String((
|
|
773
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
774
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
775
775
|
var headers = this.createAuthorizedHeaders();
|
|
776
776
|
if (request.getRequestId()) {
|
|
777
777
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
778
778
|
}
|
|
779
779
|
if (request.getDuplicationAvoider()) {
|
|
780
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
780
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
781
781
|
}
|
|
782
782
|
if (request.getTimeOffsetToken()) {
|
|
783
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
783
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
784
784
|
}
|
|
785
785
|
var body = {
|
|
786
|
-
'contextStack': (
|
|
787
|
-
'receipt': (
|
|
786
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
787
|
+
'receipt': (_j = request.getReceipt()) !== null && _j !== void 0 ? _j : null,
|
|
788
788
|
};
|
|
789
789
|
return axios_1.default.post(url, body, {
|
|
790
790
|
headers: headers,
|
|
@@ -800,8 +800,8 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
800
800
|
});
|
|
801
801
|
};
|
|
802
802
|
Gs2MoneyRestClient.prototype.recordReceiptByStampTask = function (request) {
|
|
803
|
-
var _a, _b, _c;
|
|
804
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/receipt/record')
|
|
803
|
+
var _a, _b, _c, _d;
|
|
804
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/receipt/record')
|
|
805
805
|
.replace('{service}', 'money')
|
|
806
806
|
.replace('{region}', this.session.region);
|
|
807
807
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -809,9 +809,9 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
809
809
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
810
810
|
}
|
|
811
811
|
var body = {
|
|
812
|
-
'contextStack': (
|
|
813
|
-
'stampTask': (
|
|
814
|
-
'keyId': (
|
|
812
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
813
|
+
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
814
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
815
815
|
};
|
|
816
816
|
return axios_1.default.post(url, body, {
|
|
817
817
|
headers: headers,
|
|
@@ -827,8 +827,8 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
827
827
|
});
|
|
828
828
|
};
|
|
829
829
|
Gs2MoneyRestClient.prototype.revertRecordReceiptByStampSheet = function (request) {
|
|
830
|
-
var _a, _b, _c;
|
|
831
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/stamp/receipt/record/revert')
|
|
830
|
+
var _a, _b, _c, _d;
|
|
831
|
+
var url = (((_a = Gs2MoneyRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/stamp/receipt/record/revert')
|
|
832
832
|
.replace('{service}', 'money')
|
|
833
833
|
.replace('{region}', this.session.region);
|
|
834
834
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -836,9 +836,9 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
836
836
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
837
837
|
}
|
|
838
838
|
var body = {
|
|
839
|
-
'contextStack': (
|
|
840
|
-
'stampSheet': (
|
|
841
|
-
'keyId': (
|
|
839
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
840
|
+
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
841
|
+
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
842
842
|
};
|
|
843
843
|
return axios_1.default.post(url, body, {
|
|
844
844
|
headers: headers,
|
|
@@ -853,6 +853,7 @@ var Gs2MoneyRestClient = /** @class */ (function (_super) {
|
|
|
853
853
|
}
|
|
854
854
|
});
|
|
855
855
|
};
|
|
856
|
+
Gs2MoneyRestClient.ENDPOINT_HOST = null;
|
|
856
857
|
return Gs2MoneyRestClient;
|
|
857
858
|
}(AbstractGs2RestClient_1.default));
|
|
858
859
|
exports.default = Gs2MoneyRestClient;
|