gs2 1.3.257 → 1.3.259

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.
Files changed (80) hide show
  1. package/idle/model/Namespace.d.ts +4 -0
  2. package/idle/model/Namespace.js +14 -0
  3. package/idle/model/Namespace.js.map +1 -1
  4. package/idle/model/Namespace.ts +14 -0
  5. package/idle/request/CreateNamespaceRequest.d.ts +4 -0
  6. package/idle/request/CreateNamespaceRequest.js +14 -0
  7. package/idle/request/CreateNamespaceRequest.js.map +1 -1
  8. package/idle/request/CreateNamespaceRequest.ts +14 -0
  9. package/idle/request/UpdateNamespaceRequest.d.ts +4 -0
  10. package/idle/request/UpdateNamespaceRequest.js +14 -0
  11. package/idle/request/UpdateNamespaceRequest.js.map +1 -1
  12. package/idle/request/UpdateNamespaceRequest.ts +14 -0
  13. package/idle/rest.js +6 -4
  14. package/idle/rest.js.map +1 -1
  15. package/idle/rest.ts +2 -0
  16. package/money2/model/DailyTransactionHistory.d.ts +54 -0
  17. package/money2/model/DailyTransactionHistory.js +293 -0
  18. package/money2/model/DailyTransactionHistory.js.map +1 -0
  19. package/money2/model/DailyTransactionHistory.ts +315 -0
  20. package/money2/model/UnusedBalance.d.ts +35 -0
  21. package/money2/model/UnusedBalance.js +171 -0
  22. package/money2/model/UnusedBalance.js.map +1 -0
  23. package/money2/model/UnusedBalance.ts +184 -0
  24. package/money2/model/index.d.ts +3 -1
  25. package/money2/model/index.js +5 -1
  26. package/money2/model/index.js.map +1 -1
  27. package/money2/model/index.ts +4 -0
  28. package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.d.ts +41 -0
  29. package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.js +139 -0
  30. package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.js.map +1 -0
  31. package/money2/request/DescribeDailyTransactionHistoriesByCurrencyRequest.ts +146 -0
  32. package/money2/request/DescribeDailyTransactionHistoriesRequest.d.ts +41 -0
  33. package/money2/request/DescribeDailyTransactionHistoriesRequest.js +139 -0
  34. package/money2/request/DescribeDailyTransactionHistoriesRequest.js.map +1 -0
  35. package/money2/request/DescribeDailyTransactionHistoriesRequest.ts +146 -0
  36. package/money2/request/DescribeUnusedBalancesRequest.d.ts +29 -0
  37. package/money2/request/DescribeUnusedBalancesRequest.js +97 -0
  38. package/money2/request/DescribeUnusedBalancesRequest.js.map +1 -0
  39. package/money2/request/DescribeUnusedBalancesRequest.ts +104 -0
  40. package/money2/request/GetDailyTransactionHistoryRequest.d.ts +37 -0
  41. package/money2/request/GetDailyTransactionHistoryRequest.js +125 -0
  42. package/money2/request/GetDailyTransactionHistoryRequest.js.map +1 -0
  43. package/money2/request/GetDailyTransactionHistoryRequest.ts +132 -0
  44. package/money2/request/GetUnusedBalanceRequest.d.ts +25 -0
  45. package/money2/request/GetUnusedBalanceRequest.js +83 -0
  46. package/money2/request/GetUnusedBalanceRequest.js.map +1 -0
  47. package/money2/request/GetUnusedBalanceRequest.ts +90 -0
  48. package/money2/request/index.d.ts +6 -1
  49. package/money2/request/index.js +11 -1
  50. package/money2/request/index.js.map +1 -1
  51. package/money2/request/index.ts +10 -0
  52. package/money2/rest.d.ts +5 -0
  53. package/money2/rest.js +127 -0
  54. package/money2/rest.js.map +1 -1
  55. package/money2/rest.ts +147 -0
  56. package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.d.ts +18 -0
  57. package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.js +67 -0
  58. package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.js.map +1 -0
  59. package/money2/result/DescribeDailyTransactionHistoriesByCurrencyResult.ts +72 -0
  60. package/money2/result/DescribeDailyTransactionHistoriesResult.d.ts +18 -0
  61. package/money2/result/DescribeDailyTransactionHistoriesResult.js +67 -0
  62. package/money2/result/DescribeDailyTransactionHistoriesResult.js.map +1 -0
  63. package/money2/result/DescribeDailyTransactionHistoriesResult.ts +72 -0
  64. package/money2/result/DescribeUnusedBalancesResult.d.ts +18 -0
  65. package/money2/result/DescribeUnusedBalancesResult.js +67 -0
  66. package/money2/result/DescribeUnusedBalancesResult.js.map +1 -0
  67. package/money2/result/DescribeUnusedBalancesResult.ts +72 -0
  68. package/money2/result/GetDailyTransactionHistoryResult.d.ts +14 -0
  69. package/money2/result/GetDailyTransactionHistoryResult.js +48 -0
  70. package/money2/result/GetDailyTransactionHistoryResult.js.map +1 -0
  71. package/money2/result/GetDailyTransactionHistoryResult.ts +47 -0
  72. package/money2/result/GetUnusedBalanceResult.d.ts +14 -0
  73. package/money2/result/GetUnusedBalanceResult.js +48 -0
  74. package/money2/result/GetUnusedBalanceResult.js.map +1 -0
  75. package/money2/result/GetUnusedBalanceResult.ts +47 -0
  76. package/money2/result/index.d.ts +6 -1
  77. package/money2/result/index.js +11 -1
  78. package/money2/result/index.js.map +1 -1
  79. package/money2/result/index.ts +10 -0
  80. package/package.json +1 -1
@@ -0,0 +1,315 @@
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}:transaction:history:daily:{year}:{month}:{day}:currency:{currency}";
19
+
20
+ export default class DailyTransactionHistory implements IModel {
21
+ private dailyTransactionHistoryId: string|null = null;
22
+ private year: number|null = null;
23
+ private month: number|null = null;
24
+ private day: number|null = null;
25
+ private currency: string|null = null;
26
+ private depositAmount: number|null = null;
27
+ private withdrawAmount: number|null = null;
28
+ private updatedAt: number|null = null;
29
+ private revision: number|null = null;
30
+
31
+ public static getRegion(grn: string): string|null {
32
+ const match = grn.match(grnFormat
33
+ .replace('{region}', '(.*)')
34
+ .replace('{ownerId}', '.*')
35
+ .replace('{namespaceName}', '.*')
36
+ .replace('{year}', '.*')
37
+ .replace('{month}', '.*')
38
+ .replace('{day}', '.*')
39
+ .replace('{currency}', '.*')
40
+ );
41
+ if (match) {
42
+ return match[1];
43
+ }
44
+ return null;
45
+ }
46
+
47
+ public static getOwnerId(grn: string): string|null {
48
+ const match = grn.match(grnFormat
49
+ .replace('{region}', '.*')
50
+ .replace('{ownerId}', '(.*)')
51
+ .replace('{namespaceName}', '.*')
52
+ .replace('{year}', '.*')
53
+ .replace('{month}', '.*')
54
+ .replace('{day}', '.*')
55
+ .replace('{currency}', '.*')
56
+ );
57
+ if (match) {
58
+ return match[1];
59
+ }
60
+ return null;
61
+ }
62
+
63
+ public static getNamespaceName(grn: string): string|null {
64
+ const match = grn.match(grnFormat
65
+ .replace('{region}', '.*')
66
+ .replace('{ownerId}', '.*')
67
+ .replace('{namespaceName}', '(.*)')
68
+ .replace('{year}', '.*')
69
+ .replace('{month}', '.*')
70
+ .replace('{day}', '.*')
71
+ .replace('{currency}', '.*')
72
+ );
73
+ if (match) {
74
+ return match[1];
75
+ }
76
+ return null;
77
+ }
78
+
79
+ public static getYear(grn: string): string|null {
80
+ const match = grn.match(grnFormat
81
+ .replace('{region}', '.*')
82
+ .replace('{ownerId}', '.*')
83
+ .replace('{namespaceName}', '.*')
84
+ .replace('{year}', '(.*)')
85
+ .replace('{month}', '.*')
86
+ .replace('{day}', '.*')
87
+ .replace('{currency}', '.*')
88
+ );
89
+ if (match) {
90
+ return match[1];
91
+ }
92
+ return null;
93
+ }
94
+
95
+ public static getMonth(grn: string): string|null {
96
+ const match = grn.match(grnFormat
97
+ .replace('{region}', '.*')
98
+ .replace('{ownerId}', '.*')
99
+ .replace('{namespaceName}', '.*')
100
+ .replace('{year}', '.*')
101
+ .replace('{month}', '(.*)')
102
+ .replace('{day}', '.*')
103
+ .replace('{currency}', '.*')
104
+ );
105
+ if (match) {
106
+ return match[1];
107
+ }
108
+ return null;
109
+ }
110
+
111
+ public static getDay(grn: string): string|null {
112
+ const match = grn.match(grnFormat
113
+ .replace('{region}', '.*')
114
+ .replace('{ownerId}', '.*')
115
+ .replace('{namespaceName}', '.*')
116
+ .replace('{year}', '.*')
117
+ .replace('{month}', '.*')
118
+ .replace('{day}', '(.*)')
119
+ .replace('{currency}', '.*')
120
+ );
121
+ if (match) {
122
+ return match[1];
123
+ }
124
+ return null;
125
+ }
126
+
127
+ public static getCurrency(grn: string): string|null {
128
+ const match = grn.match(grnFormat
129
+ .replace('{region}', '.*')
130
+ .replace('{ownerId}', '.*')
131
+ .replace('{namespaceName}', '.*')
132
+ .replace('{year}', '.*')
133
+ .replace('{month}', '.*')
134
+ .replace('{day}', '.*')
135
+ .replace('{currency}', '(.*)')
136
+ );
137
+ if (match) {
138
+ return match[1];
139
+ }
140
+ return null;
141
+ }
142
+
143
+ public static isValid(grn: string): boolean {
144
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
145
+ return false;
146
+ }
147
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
148
+ return false;
149
+ }
150
+ if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
151
+ return false;
152
+ }
153
+ if (this.getYear(grn) == null || this.getYear(grn) === '') {
154
+ return false;
155
+ }
156
+ if (this.getMonth(grn) == null || this.getMonth(grn) === '') {
157
+ return false;
158
+ }
159
+ if (this.getDay(grn) == null || this.getDay(grn) === '') {
160
+ return false;
161
+ }
162
+ if (this.getCurrency(grn) == null || this.getCurrency(grn) === '') {
163
+ return false;
164
+ }
165
+ return true;
166
+ }
167
+
168
+ public static createGrn(
169
+ region: string|null,
170
+ ownerId: string|null,
171
+ namespaceName: string|null,
172
+ year: string|null,
173
+ month: string|null,
174
+ day: string|null,
175
+ currency: string|null,
176
+ ): string|null {
177
+ return grnFormat
178
+ .replace('{region}', region ?? '')
179
+ .replace('{ownerId}', ownerId ?? '')
180
+ .replace('{namespaceName}', namespaceName ?? '')
181
+ .replace('{year}', year ?? '')
182
+ .replace('{month}', month ?? '')
183
+ .replace('{day}', day ?? '')
184
+ .replace('{currency}', currency ?? '');
185
+ }
186
+ public getDailyTransactionHistoryId(): string|null {
187
+ return this.dailyTransactionHistoryId;
188
+ }
189
+ public setDailyTransactionHistoryId(dailyTransactionHistoryId: string|null) {
190
+ this.dailyTransactionHistoryId = dailyTransactionHistoryId;
191
+ return this;
192
+ }
193
+ public withDailyTransactionHistoryId(dailyTransactionHistoryId: string|null): this {
194
+ this.dailyTransactionHistoryId = dailyTransactionHistoryId;
195
+ return this;
196
+ }
197
+ public getYear(): number|null {
198
+ return this.year;
199
+ }
200
+ public setYear(year: number|null) {
201
+ this.year = year;
202
+ return this;
203
+ }
204
+ public withYear(year: number|null): this {
205
+ this.year = year;
206
+ return this;
207
+ }
208
+ public getMonth(): number|null {
209
+ return this.month;
210
+ }
211
+ public setMonth(month: number|null) {
212
+ this.month = month;
213
+ return this;
214
+ }
215
+ public withMonth(month: number|null): this {
216
+ this.month = month;
217
+ return this;
218
+ }
219
+ public getDay(): number|null {
220
+ return this.day;
221
+ }
222
+ public setDay(day: number|null) {
223
+ this.day = day;
224
+ return this;
225
+ }
226
+ public withDay(day: number|null): this {
227
+ this.day = day;
228
+ return this;
229
+ }
230
+ public getCurrency(): string|null {
231
+ return this.currency;
232
+ }
233
+ public setCurrency(currency: string|null) {
234
+ this.currency = currency;
235
+ return this;
236
+ }
237
+ public withCurrency(currency: string|null): this {
238
+ this.currency = currency;
239
+ return this;
240
+ }
241
+ public getDepositAmount(): number|null {
242
+ return this.depositAmount;
243
+ }
244
+ public setDepositAmount(depositAmount: number|null) {
245
+ this.depositAmount = depositAmount;
246
+ return this;
247
+ }
248
+ public withDepositAmount(depositAmount: number|null): this {
249
+ this.depositAmount = depositAmount;
250
+ return this;
251
+ }
252
+ public getWithdrawAmount(): number|null {
253
+ return this.withdrawAmount;
254
+ }
255
+ public setWithdrawAmount(withdrawAmount: number|null) {
256
+ this.withdrawAmount = withdrawAmount;
257
+ return this;
258
+ }
259
+ public withWithdrawAmount(withdrawAmount: number|null): this {
260
+ this.withdrawAmount = withdrawAmount;
261
+ return this;
262
+ }
263
+ public getUpdatedAt(): number|null {
264
+ return this.updatedAt;
265
+ }
266
+ public setUpdatedAt(updatedAt: number|null) {
267
+ this.updatedAt = updatedAt;
268
+ return this;
269
+ }
270
+ public withUpdatedAt(updatedAt: number|null): this {
271
+ this.updatedAt = updatedAt;
272
+ return this;
273
+ }
274
+ public getRevision(): number|null {
275
+ return this.revision;
276
+ }
277
+ public setRevision(revision: number|null) {
278
+ this.revision = revision;
279
+ return this;
280
+ }
281
+ public withRevision(revision: number|null): this {
282
+ this.revision = revision;
283
+ return this;
284
+ }
285
+
286
+ public static fromDict(data: {[key: string]: any}): DailyTransactionHistory|null {
287
+ if (data == undefined || data == null) {
288
+ return null;
289
+ }
290
+ return new DailyTransactionHistory()
291
+ .withDailyTransactionHistoryId(data["dailyTransactionHistoryId"])
292
+ .withYear(data["year"])
293
+ .withMonth(data["month"])
294
+ .withDay(data["day"])
295
+ .withCurrency(data["currency"])
296
+ .withDepositAmount(data["depositAmount"])
297
+ .withWithdrawAmount(data["withdrawAmount"])
298
+ .withUpdatedAt(data["updatedAt"])
299
+ .withRevision(data["revision"]);
300
+ }
301
+
302
+ public toDict(): {[key: string]: any} {
303
+ return {
304
+ "dailyTransactionHistoryId": this.getDailyTransactionHistoryId(),
305
+ "year": this.getYear(),
306
+ "month": this.getMonth(),
307
+ "day": this.getDay(),
308
+ "currency": this.getCurrency(),
309
+ "depositAmount": this.getDepositAmount(),
310
+ "withdrawAmount": this.getWithdrawAmount(),
311
+ "updatedAt": this.getUpdatedAt(),
312
+ "revision": this.getRevision(),
313
+ };
314
+ }
315
+ }
@@ -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,EAAE,IAAI,CAAC;aAC1B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAC/B,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAU,GAAxB,UAAyB,GAA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