gs2 1.3.257 → 1.3.258
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/money2/model/DailyTransactionHistory.d.ts +54 -0
- package/money2/model/DailyTransactionHistory.js +293 -0
- package/money2/model/DailyTransactionHistory.js.map +1 -0
- package/money2/model/DailyTransactionHistory.ts +315 -0
- package/money2/model/UnusedBalance.d.ts +35 -0
- package/money2/model/UnusedBalance.js +171 -0
- package/money2/model/UnusedBalance.js.map +1 -0
- package/money2/model/UnusedBalance.ts +184 -0
- package/money2/model/index.d.ts +3 -1
- package/money2/model/index.js +5 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +4 -0
- package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.d.ts +41 -0
- package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.js +139 -0
- package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.js.map +1 -0
- package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.ts +146 -0
- package/money2/request/DescribeDailyTransactionHistoriesRequest.d.ts +41 -0
- package/money2/request/DescribeDailyTransactionHistoriesRequest.js +139 -0
- package/money2/request/DescribeDailyTransactionHistoriesRequest.js.map +1 -0
- package/money2/request/DescribeDailyTransactionHistoriesRequest.ts +146 -0
- package/money2/request/DescribeUnusedBalancesRequest.d.ts +29 -0
- package/money2/request/DescribeUnusedBalancesRequest.js +97 -0
- package/money2/request/DescribeUnusedBalancesRequest.js.map +1 -0
- package/money2/request/DescribeUnusedBalancesRequest.ts +104 -0
- package/money2/request/GetDailyTransactionHistoryRequest.d.ts +37 -0
- package/money2/request/GetDailyTransactionHistoryRequest.js +125 -0
- package/money2/request/GetDailyTransactionHistoryRequest.js.map +1 -0
- package/money2/request/GetDailyTransactionHistoryRequest.ts +132 -0
- package/money2/request/GetUnusedBalanceRequest.d.ts +25 -0
- package/money2/request/GetUnusedBalanceRequest.js +83 -0
- package/money2/request/GetUnusedBalanceRequest.js.map +1 -0
- package/money2/request/GetUnusedBalanceRequest.ts +90 -0
- package/money2/request/index.d.ts +6 -1
- package/money2/request/index.js +11 -1
- package/money2/request/index.js.map +1 -1
- package/money2/request/index.ts +10 -0
- package/money2/rest.d.ts +5 -0
- package/money2/rest.js +127 -0
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +147 -0
- package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.d.ts +18 -0
- package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.js +67 -0
- package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.js.map +1 -0
- package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.ts +72 -0
- package/money2/result/DescribeDailyTransactionHistoriesResult.d.ts +18 -0
- package/money2/result/DescribeDailyTransactionHistoriesResult.js +67 -0
- package/money2/result/DescribeDailyTransactionHistoriesResult.js.map +1 -0
- package/money2/result/DescribeDailyTransactionHistoriesResult.ts +72 -0
- package/money2/result/DescribeUnusedBalancesResult.d.ts +18 -0
- package/money2/result/DescribeUnusedBalancesResult.js +67 -0
- package/money2/result/DescribeUnusedBalancesResult.js.map +1 -0
- package/money2/result/DescribeUnusedBalancesResult.ts +72 -0
- package/money2/result/GetDailyTransactionHistoryResult.d.ts +14 -0
- package/money2/result/GetDailyTransactionHistoryResult.js +48 -0
- package/money2/result/GetDailyTransactionHistoryResult.js.map +1 -0
- package/money2/result/GetDailyTransactionHistoryResult.ts +47 -0
- package/money2/result/GetUnusedBalanceResult.d.ts +14 -0
- package/money2/result/GetUnusedBalanceResult.js +48 -0
- package/money2/result/GetUnusedBalanceResult.js.map +1 -0
- package/money2/result/GetUnusedBalanceResult.ts +47 -0
- package/money2/result/index.d.ts +6 -1
- package/money2/result/index.js +11 -1
- package/money2/result/index.js.map +1 -1
- package/money2/result/index.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class UnusedBalance implements IModel {
|
|
3
|
+
private unusedBalanceId;
|
|
4
|
+
private currency;
|
|
5
|
+
private balance;
|
|
6
|
+
private updatedAt;
|
|
7
|
+
private revision;
|
|
8
|
+
static getRegion(grn: string): string | null;
|
|
9
|
+
static getOwnerId(grn: string): string | null;
|
|
10
|
+
static getNamespaceName(grn: string): string | null;
|
|
11
|
+
static getCurrency(grn: string): string | null;
|
|
12
|
+
static isValid(grn: string): boolean;
|
|
13
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, currency: string | null): string | null;
|
|
14
|
+
getUnusedBalanceId(): string | null;
|
|
15
|
+
setUnusedBalanceId(unusedBalanceId: string | null): this;
|
|
16
|
+
withUnusedBalanceId(unusedBalanceId: string | null): this;
|
|
17
|
+
getCurrency(): string | null;
|
|
18
|
+
setCurrency(currency: string | null): this;
|
|
19
|
+
withCurrency(currency: string | null): this;
|
|
20
|
+
getBalance(): number | null;
|
|
21
|
+
setBalance(balance: number | null): this;
|
|
22
|
+
withBalance(balance: number | null): this;
|
|
23
|
+
getUpdatedAt(): number | null;
|
|
24
|
+
setUpdatedAt(updatedAt: number | null): this;
|
|
25
|
+
withUpdatedAt(updatedAt: number | null): this;
|
|
26
|
+
getRevision(): number | null;
|
|
27
|
+
setRevision(revision: number | null): this;
|
|
28
|
+
withRevision(revision: number | null): this;
|
|
29
|
+
static fromDict(data: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}): UnusedBalance | null;
|
|
32
|
+
toDict(): {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:unused:{currency}";
|
|
19
|
+
var UnusedBalance = /** @class */ (function () {
|
|
20
|
+
function UnusedBalance() {
|
|
21
|
+
this.unusedBalanceId = null;
|
|
22
|
+
this.currency = null;
|
|
23
|
+
this.balance = null;
|
|
24
|
+
this.updatedAt = null;
|
|
25
|
+
this.revision = null;
|
|
26
|
+
}
|
|
27
|
+
UnusedBalance.getRegion = function (grn) {
|
|
28
|
+
var match = grn.match(grnFormat
|
|
29
|
+
.replace('{region}', '(.*)')
|
|
30
|
+
.replace('{ownerId}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{currency}', '.*'));
|
|
33
|
+
if (match) {
|
|
34
|
+
return match[1];
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
38
|
+
UnusedBalance.getOwnerId = function (grn) {
|
|
39
|
+
var match = grn.match(grnFormat
|
|
40
|
+
.replace('{region}', '.*')
|
|
41
|
+
.replace('{ownerId}', '(.*)')
|
|
42
|
+
.replace('{namespaceName}', '.*')
|
|
43
|
+
.replace('{currency}', '.*'));
|
|
44
|
+
if (match) {
|
|
45
|
+
return match[1];
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
UnusedBalance.getNamespaceName = function (grn) {
|
|
50
|
+
var match = grn.match(grnFormat
|
|
51
|
+
.replace('{region}', '.*')
|
|
52
|
+
.replace('{ownerId}', '.*')
|
|
53
|
+
.replace('{namespaceName}', '(.*)')
|
|
54
|
+
.replace('{currency}', '.*'));
|
|
55
|
+
if (match) {
|
|
56
|
+
return match[1];
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
UnusedBalance.getCurrency = function (grn) {
|
|
61
|
+
var match = grn.match(grnFormat
|
|
62
|
+
.replace('{region}', '.*')
|
|
63
|
+
.replace('{ownerId}', '.*')
|
|
64
|
+
.replace('{namespaceName}', '.*')
|
|
65
|
+
.replace('{currency}', '(.*)'));
|
|
66
|
+
if (match) {
|
|
67
|
+
return match[1];
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
};
|
|
71
|
+
UnusedBalance.isValid = function (grn) {
|
|
72
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if (this.getCurrency(grn) == null || this.getCurrency(grn) === '') {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
};
|
|
86
|
+
UnusedBalance.createGrn = function (region, ownerId, namespaceName, currency) {
|
|
87
|
+
return grnFormat
|
|
88
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
89
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
90
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
91
|
+
.replace('{currency}', currency !== null && currency !== void 0 ? currency : '');
|
|
92
|
+
};
|
|
93
|
+
UnusedBalance.prototype.getUnusedBalanceId = function () {
|
|
94
|
+
return this.unusedBalanceId;
|
|
95
|
+
};
|
|
96
|
+
UnusedBalance.prototype.setUnusedBalanceId = function (unusedBalanceId) {
|
|
97
|
+
this.unusedBalanceId = unusedBalanceId;
|
|
98
|
+
return this;
|
|
99
|
+
};
|
|
100
|
+
UnusedBalance.prototype.withUnusedBalanceId = function (unusedBalanceId) {
|
|
101
|
+
this.unusedBalanceId = unusedBalanceId;
|
|
102
|
+
return this;
|
|
103
|
+
};
|
|
104
|
+
UnusedBalance.prototype.getCurrency = function () {
|
|
105
|
+
return this.currency;
|
|
106
|
+
};
|
|
107
|
+
UnusedBalance.prototype.setCurrency = function (currency) {
|
|
108
|
+
this.currency = currency;
|
|
109
|
+
return this;
|
|
110
|
+
};
|
|
111
|
+
UnusedBalance.prototype.withCurrency = function (currency) {
|
|
112
|
+
this.currency = currency;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
UnusedBalance.prototype.getBalance = function () {
|
|
116
|
+
return this.balance;
|
|
117
|
+
};
|
|
118
|
+
UnusedBalance.prototype.setBalance = function (balance) {
|
|
119
|
+
this.balance = balance;
|
|
120
|
+
return this;
|
|
121
|
+
};
|
|
122
|
+
UnusedBalance.prototype.withBalance = function (balance) {
|
|
123
|
+
this.balance = balance;
|
|
124
|
+
return this;
|
|
125
|
+
};
|
|
126
|
+
UnusedBalance.prototype.getUpdatedAt = function () {
|
|
127
|
+
return this.updatedAt;
|
|
128
|
+
};
|
|
129
|
+
UnusedBalance.prototype.setUpdatedAt = function (updatedAt) {
|
|
130
|
+
this.updatedAt = updatedAt;
|
|
131
|
+
return this;
|
|
132
|
+
};
|
|
133
|
+
UnusedBalance.prototype.withUpdatedAt = function (updatedAt) {
|
|
134
|
+
this.updatedAt = updatedAt;
|
|
135
|
+
return this;
|
|
136
|
+
};
|
|
137
|
+
UnusedBalance.prototype.getRevision = function () {
|
|
138
|
+
return this.revision;
|
|
139
|
+
};
|
|
140
|
+
UnusedBalance.prototype.setRevision = function (revision) {
|
|
141
|
+
this.revision = revision;
|
|
142
|
+
return this;
|
|
143
|
+
};
|
|
144
|
+
UnusedBalance.prototype.withRevision = function (revision) {
|
|
145
|
+
this.revision = revision;
|
|
146
|
+
return this;
|
|
147
|
+
};
|
|
148
|
+
UnusedBalance.fromDict = function (data) {
|
|
149
|
+
if (data == undefined || data == null) {
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
return new UnusedBalance()
|
|
153
|
+
.withUnusedBalanceId(data["unusedBalanceId"])
|
|
154
|
+
.withCurrency(data["currency"])
|
|
155
|
+
.withBalance(data["balance"])
|
|
156
|
+
.withUpdatedAt(data["updatedAt"])
|
|
157
|
+
.withRevision(data["revision"]);
|
|
158
|
+
};
|
|
159
|
+
UnusedBalance.prototype.toDict = function () {
|
|
160
|
+
return {
|
|
161
|
+
"unusedBalanceId": this.getUnusedBalanceId(),
|
|
162
|
+
"currency": this.getCurrency(),
|
|
163
|
+
"balance": this.getBalance(),
|
|
164
|
+
"updatedAt": this.getUpdatedAt(),
|
|
165
|
+
"revision": this.getRevision(),
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
return UnusedBalance;
|
|
169
|
+
}());
|
|
170
|
+
exports.default = UnusedBalance;
|
|
171
|
+
//# sourceMappingURL=UnusedBalance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnusedBalance.js","sourceRoot":"","sources":["UnusedBalance.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,qEAAqE,CAAC;AAEhG;IAAA;QACY,oBAAe,GAAgB,IAAI,CAAC;QACpC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,YAAO,GAAgB,IAAI,CAAC;QAC5B,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;IA+JzC,CAAC;IA7JiB,uBAAS,GAAvB,UAAwB,GAAW;QAC/B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC;aAC3B,OAAO,CAAC,WAAW,EAA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AAC;IACM,mCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,oCAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,aAAa,EAAE;aACrB,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAC5C,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC5B,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxC,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;YAC5B,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AApKD,IAoKC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:unused:{currency}";
|
|
19
|
+
|
|
20
|
+
export default class UnusedBalance implements IModel {
|
|
21
|
+
private unusedBalanceId: string|null = null;
|
|
22
|
+
private currency: string|null = null;
|
|
23
|
+
private balance: number|null = null;
|
|
24
|
+
private updatedAt: number|null = null;
|
|
25
|
+
private revision: number|null = null;
|
|
26
|
+
|
|
27
|
+
public static getRegion(grn: string): string|null {
|
|
28
|
+
const match = grn.match(grnFormat
|
|
29
|
+
.replace('{region}', '(.*)')
|
|
30
|
+
.replace('{ownerId}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{currency}', '.*')
|
|
33
|
+
);
|
|
34
|
+
if (match) {
|
|
35
|
+
return match[1];
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public static getOwnerId(grn: string): string|null {
|
|
41
|
+
const match = grn.match(grnFormat
|
|
42
|
+
.replace('{region}', '.*')
|
|
43
|
+
.replace('{ownerId}', '(.*)')
|
|
44
|
+
.replace('{namespaceName}', '.*')
|
|
45
|
+
.replace('{currency}', '.*')
|
|
46
|
+
);
|
|
47
|
+
if (match) {
|
|
48
|
+
return match[1];
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public static getNamespaceName(grn: string): string|null {
|
|
54
|
+
const match = grn.match(grnFormat
|
|
55
|
+
.replace('{region}', '.*')
|
|
56
|
+
.replace('{ownerId}', '.*')
|
|
57
|
+
.replace('{namespaceName}', '(.*)')
|
|
58
|
+
.replace('{currency}', '.*')
|
|
59
|
+
);
|
|
60
|
+
if (match) {
|
|
61
|
+
return match[1];
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public static getCurrency(grn: string): string|null {
|
|
67
|
+
const match = grn.match(grnFormat
|
|
68
|
+
.replace('{region}', '.*')
|
|
69
|
+
.replace('{ownerId}', '.*')
|
|
70
|
+
.replace('{namespaceName}', '.*')
|
|
71
|
+
.replace('{currency}', '(.*)')
|
|
72
|
+
);
|
|
73
|
+
if (match) {
|
|
74
|
+
return match[1];
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public static isValid(grn: string): boolean {
|
|
80
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
if (this.getCurrency(grn) == null || this.getCurrency(grn) === '') {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public static createGrn(
|
|
96
|
+
region: string|null,
|
|
97
|
+
ownerId: string|null,
|
|
98
|
+
namespaceName: string|null,
|
|
99
|
+
currency: string|null,
|
|
100
|
+
): string|null {
|
|
101
|
+
return grnFormat
|
|
102
|
+
.replace('{region}', region ?? '')
|
|
103
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
104
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
105
|
+
.replace('{currency}', currency ?? '');
|
|
106
|
+
}
|
|
107
|
+
public getUnusedBalanceId(): string|null {
|
|
108
|
+
return this.unusedBalanceId;
|
|
109
|
+
}
|
|
110
|
+
public setUnusedBalanceId(unusedBalanceId: string|null) {
|
|
111
|
+
this.unusedBalanceId = unusedBalanceId;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
public withUnusedBalanceId(unusedBalanceId: string|null): this {
|
|
115
|
+
this.unusedBalanceId = unusedBalanceId;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
public getCurrency(): string|null {
|
|
119
|
+
return this.currency;
|
|
120
|
+
}
|
|
121
|
+
public setCurrency(currency: string|null) {
|
|
122
|
+
this.currency = currency;
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
public withCurrency(currency: string|null): this {
|
|
126
|
+
this.currency = currency;
|
|
127
|
+
return this;
|
|
128
|
+
}
|
|
129
|
+
public getBalance(): number|null {
|
|
130
|
+
return this.balance;
|
|
131
|
+
}
|
|
132
|
+
public setBalance(balance: number|null) {
|
|
133
|
+
this.balance = balance;
|
|
134
|
+
return this;
|
|
135
|
+
}
|
|
136
|
+
public withBalance(balance: number|null): this {
|
|
137
|
+
this.balance = balance;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
public getUpdatedAt(): number|null {
|
|
141
|
+
return this.updatedAt;
|
|
142
|
+
}
|
|
143
|
+
public setUpdatedAt(updatedAt: number|null) {
|
|
144
|
+
this.updatedAt = updatedAt;
|
|
145
|
+
return this;
|
|
146
|
+
}
|
|
147
|
+
public withUpdatedAt(updatedAt: number|null): this {
|
|
148
|
+
this.updatedAt = updatedAt;
|
|
149
|
+
return this;
|
|
150
|
+
}
|
|
151
|
+
public getRevision(): number|null {
|
|
152
|
+
return this.revision;
|
|
153
|
+
}
|
|
154
|
+
public setRevision(revision: number|null) {
|
|
155
|
+
this.revision = revision;
|
|
156
|
+
return this;
|
|
157
|
+
}
|
|
158
|
+
public withRevision(revision: number|null): this {
|
|
159
|
+
this.revision = revision;
|
|
160
|
+
return this;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
public static fromDict(data: {[key: string]: any}): UnusedBalance|null {
|
|
164
|
+
if (data == undefined || data == null) {
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
return new UnusedBalance()
|
|
168
|
+
.withUnusedBalanceId(data["unusedBalanceId"])
|
|
169
|
+
.withCurrency(data["currency"])
|
|
170
|
+
.withBalance(data["balance"])
|
|
171
|
+
.withUpdatedAt(data["updatedAt"])
|
|
172
|
+
.withRevision(data["revision"]);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
public toDict(): {[key: string]: any} {
|
|
176
|
+
return {
|
|
177
|
+
"unusedBalanceId": this.getUnusedBalanceId(),
|
|
178
|
+
"currency": this.getCurrency(),
|
|
179
|
+
"balance": this.getBalance(),
|
|
180
|
+
"updatedAt": this.getUpdatedAt(),
|
|
181
|
+
"revision": this.getRevision(),
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
}
|
package/money2/model/index.d.ts
CHANGED
|
@@ -21,4 +21,6 @@ import GooglePlayContent from "./GooglePlayContent";
|
|
|
21
21
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
|
|
22
22
|
import ScriptSetting from "./ScriptSetting";
|
|
23
23
|
import LogSetting from "./LogSetting";
|
|
24
|
-
|
|
24
|
+
import DailyTransactionHistory from "./DailyTransactionHistory";
|
|
25
|
+
import UnusedBalance from "./UnusedBalance";
|
|
26
|
+
export { Namespace, Wallet, Event, StoreContentModel, StoreContentModelMaster, CurrentModelMaster, Receipt, PlatformSetting, AppleAppStoreSetting, GooglePlaySetting, FakeSetting, WalletSummary, DepositTransaction, VerifyReceiptEvent, DepositEvent, WithdrawEvent, AppleAppStoreVerifyReceiptEvent, GooglePlayVerifyReceiptEvent, AppleAppStoreContent, GooglePlayContent, GitHubCheckoutSetting, ScriptSetting, LogSetting, DailyTransactionHistory, UnusedBalance, };
|
package/money2/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.Receipt = exports.CurrentModelMaster = exports.StoreContentModelMaster = exports.StoreContentModel = exports.Event = exports.Wallet = exports.Namespace = void 0;
|
|
3
|
+
exports.UnusedBalance = exports.DailyTransactionHistory = exports.LogSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.Receipt = exports.CurrentModelMaster = exports.StoreContentModelMaster = exports.StoreContentModel = exports.Event = exports.Wallet = exports.Namespace = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -63,4 +63,8 @@ var ScriptSetting_1 = tslib_1.__importDefault(require("./ScriptSetting"));
|
|
|
63
63
|
exports.ScriptSetting = ScriptSetting_1.default;
|
|
64
64
|
var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
|
|
65
65
|
exports.LogSetting = LogSetting_1.default;
|
|
66
|
+
var DailyTransactionHistory_1 = tslib_1.__importDefault(require("./DailyTransactionHistory"));
|
|
67
|
+
exports.DailyTransactionHistory = DailyTransactionHistory_1.default;
|
|
68
|
+
var UnusedBalance_1 = tslib_1.__importDefault(require("./UnusedBalance"));
|
|
69
|
+
exports.UnusedBalance = UnusedBalance_1.default;
|
|
66
70
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AA2B/B,oBA3BG,mBAAS,CA2BH;AA1Bb,4DAA6B;AA2BzB,iBA3BG,gBAAM,CA2BH;AA1BV,0DAA2B;AA2BvB,gBA3BG,eAAK,CA2BH;AA1BT,kFAAmD;AA2B/C,4BA3BG,2BAAiB,CA2BH;AA1BrB,8FAA+D;AA2B3D,kCA3BG,iCAAuB,CA2BH;AA1B3B,oFAAqD;AA2BjD,6BA3BG,4BAAkB,CA2BH;AA1BtB,8DAA+B;AA2B3B,kBA3BG,iBAAO,CA2BH;AA1BX,8EAA+C;AA2B3C,0BA3BG,yBAAe,CA2BH;AA1BnB,wFAAyD;AA2BrD,+BA3BG,8BAAoB,CA2BH;AA1BxB,kFAAmD;AA2B/C,4BA3BG,2BAAiB,CA2BH;AA1BrB,sEAAuC;AA2BnC,sBA3BG,qBAAW,CA2BH;AA1Bf,0EAA2C;AA2BvC,wBA3BG,uBAAa,CA2BH;AA1BjB,oFAAqD;AA2BjD,6BA3BG,4BAAkB,CA2BH;AA1BtB,oFAAqD;AA2BjD,6BA3BG,4BAAkB,CA2BH;AA1BtB,wEAAyC;AA2BrC,uBA3BG,sBAAY,CA2BH;AA1BhB,0EAA2C;AA2BvC,wBA3BG,uBAAa,CA2BH;AA1BjB,8GAA+E;AA2B3E,0CA3BG,yCAA+B,CA2BH;AA1BnC,wGAAyE;AA2BrE,uCA3BG,sCAA4B,CA2BH;AA1BhC,wFAAyD;AA2BrD,+BA3BG,8BAAoB,CA2BH;AA1BxB,kFAAmD;AA2B/C,4BA3BG,2BAAiB,CA2BH;AA1BrB,0FAA2D;AA2BvD,gCA3BG,+BAAqB,CA2BH;AA1BzB,0EAA2C;AA2BvC,wBA3BG,uBAAa,CA2BH;AA1BjB,oEAAqC;AA2BjC,qBA3BG,oBAAU,CA2BH;AA1Bd,8FAA+D;AA2B3D,kCA3BG,iCAAuB,CA2BH;AA1B3B,0EAA2C;AA2BvC,wBA3BG,uBAAa,CA2BH"}
|
package/money2/model/index.ts
CHANGED
|
@@ -36,6 +36,8 @@ import GooglePlayContent from "./GooglePlayContent"
|
|
|
36
36
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
|
|
37
37
|
import ScriptSetting from "./ScriptSetting"
|
|
38
38
|
import LogSetting from "./LogSetting"
|
|
39
|
+
import DailyTransactionHistory from "./DailyTransactionHistory"
|
|
40
|
+
import UnusedBalance from "./UnusedBalance"
|
|
39
41
|
|
|
40
42
|
export {
|
|
41
43
|
Namespace,
|
|
@@ -61,4 +63,6 @@ export {
|
|
|
61
63
|
GitHubCheckoutSetting,
|
|
62
64
|
ScriptSetting,
|
|
63
65
|
LogSetting,
|
|
66
|
+
DailyTransactionHistory,
|
|
67
|
+
UnusedBalance,
|
|
64
68
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class DescribeDailyTransactionHistoriesByCurrencyRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private currency;
|
|
7
|
+
private year;
|
|
8
|
+
private month;
|
|
9
|
+
private pageToken;
|
|
10
|
+
private limit;
|
|
11
|
+
getRequestId(): string | null;
|
|
12
|
+
setRequestId(requestId: string | null): this;
|
|
13
|
+
withRequestId(requestId: string | null): this;
|
|
14
|
+
getContextStack(): string | null;
|
|
15
|
+
setContextStack(contextStack: string | null): this;
|
|
16
|
+
withContextStack(contextStack: string | null): this;
|
|
17
|
+
getNamespaceName(): string | null;
|
|
18
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
19
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
getCurrency(): string | null;
|
|
21
|
+
setCurrency(currency: string | null): this;
|
|
22
|
+
withCurrency(currency: string | null): this;
|
|
23
|
+
getYear(): number | null;
|
|
24
|
+
setYear(year: number | null): this;
|
|
25
|
+
withYear(year: number | null): this;
|
|
26
|
+
getMonth(): number | null;
|
|
27
|
+
setMonth(month: number | null): this;
|
|
28
|
+
withMonth(month: number | null): this;
|
|
29
|
+
getPageToken(): string | null;
|
|
30
|
+
setPageToken(pageToken: string | null): this;
|
|
31
|
+
withPageToken(pageToken: string | null): this;
|
|
32
|
+
getLimit(): number | null;
|
|
33
|
+
setLimit(limit: number | null): this;
|
|
34
|
+
withLimit(limit: number | null): this;
|
|
35
|
+
static fromDict(data: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}): DescribeDailyTransactionHistoriesByCurrencyRequest;
|
|
38
|
+
toDict(): {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var DescribeDailyTransactionHistoriesByCurrencyRequest = /** @class */ (function () {
|
|
19
|
+
function DescribeDailyTransactionHistoriesByCurrencyRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.currency = null;
|
|
24
|
+
this.year = null;
|
|
25
|
+
this.month = null;
|
|
26
|
+
this.pageToken = null;
|
|
27
|
+
this.limit = null;
|
|
28
|
+
}
|
|
29
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getRequestId = function () {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
};
|
|
32
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setRequestId = function (requestId) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withRequestId = function (requestId) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getContextStack = function () {
|
|
41
|
+
return this.contextStack;
|
|
42
|
+
};
|
|
43
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setContextStack = function (contextStack) {
|
|
44
|
+
this.contextStack = contextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withContextStack = function (contextStack) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getNamespaceName = function () {
|
|
52
|
+
return this.namespaceName;
|
|
53
|
+
};
|
|
54
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
55
|
+
this.namespaceName = namespaceName;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
59
|
+
this.namespaceName = namespaceName;
|
|
60
|
+
return this;
|
|
61
|
+
};
|
|
62
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getCurrency = function () {
|
|
63
|
+
return this.currency;
|
|
64
|
+
};
|
|
65
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setCurrency = function (currency) {
|
|
66
|
+
this.currency = currency;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withCurrency = function (currency) {
|
|
70
|
+
this.currency = currency;
|
|
71
|
+
return this;
|
|
72
|
+
};
|
|
73
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getYear = function () {
|
|
74
|
+
return this.year;
|
|
75
|
+
};
|
|
76
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setYear = function (year) {
|
|
77
|
+
this.year = year;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withYear = function (year) {
|
|
81
|
+
this.year = year;
|
|
82
|
+
return this;
|
|
83
|
+
};
|
|
84
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getMonth = function () {
|
|
85
|
+
return this.month;
|
|
86
|
+
};
|
|
87
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setMonth = function (month) {
|
|
88
|
+
this.month = month;
|
|
89
|
+
return this;
|
|
90
|
+
};
|
|
91
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withMonth = function (month) {
|
|
92
|
+
this.month = month;
|
|
93
|
+
return this;
|
|
94
|
+
};
|
|
95
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getPageToken = function () {
|
|
96
|
+
return this.pageToken;
|
|
97
|
+
};
|
|
98
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setPageToken = function (pageToken) {
|
|
99
|
+
this.pageToken = pageToken;
|
|
100
|
+
return this;
|
|
101
|
+
};
|
|
102
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withPageToken = function (pageToken) {
|
|
103
|
+
this.pageToken = pageToken;
|
|
104
|
+
return this;
|
|
105
|
+
};
|
|
106
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.getLimit = function () {
|
|
107
|
+
return this.limit;
|
|
108
|
+
};
|
|
109
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.setLimit = function (limit) {
|
|
110
|
+
this.limit = limit;
|
|
111
|
+
return this;
|
|
112
|
+
};
|
|
113
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.withLimit = function (limit) {
|
|
114
|
+
this.limit = limit;
|
|
115
|
+
return this;
|
|
116
|
+
};
|
|
117
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.fromDict = function (data) {
|
|
118
|
+
return new DescribeDailyTransactionHistoriesByCurrencyRequest()
|
|
119
|
+
.withNamespaceName(data["namespaceName"])
|
|
120
|
+
.withCurrency(data["currency"])
|
|
121
|
+
.withYear(data["year"])
|
|
122
|
+
.withMonth(data["month"])
|
|
123
|
+
.withPageToken(data["pageToken"])
|
|
124
|
+
.withLimit(data["limit"]);
|
|
125
|
+
};
|
|
126
|
+
DescribeDailyTransactionHistoriesByCurrencyRequest.prototype.toDict = function () {
|
|
127
|
+
return {
|
|
128
|
+
"namespaceName": this.getNamespaceName(),
|
|
129
|
+
"currency": this.getCurrency(),
|
|
130
|
+
"year": this.getYear(),
|
|
131
|
+
"month": this.getMonth(),
|
|
132
|
+
"pageToken": this.getPageToken(),
|
|
133
|
+
"limit": this.getLimit(),
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
return DescribeDailyTransactionHistoriesByCurrencyRequest;
|
|
137
|
+
}());
|
|
138
|
+
exports.default = DescribeDailyTransactionHistoriesByCurrencyRequest;
|
|
139
|
+
//# sourceMappingURL=DescribeDailyTransactionHistoriesByCurrencyRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeDailyTransactionHistoriesByCurrencyRequest.js","sourceRoot":"","sources":["DescribeDailyTransactionHistoriesByCurrencyRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,SAAI,GAAgB,IAAI,CAAC;QACzB,UAAK,GAAgB,IAAI,CAAC;QAC1B,cAAS,GAAgB,IAAI,CAAC;QAC9B,UAAK,GAAgB,IAAI,CAAC;IAoHtC,CAAC;IAlHU,yEAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,yEAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0EAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,4EAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,4EAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6EAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6EAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IACM,6EAAgB,GAAvB,UAAwB,aAA0B;QAC9C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,C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