gs2 1.4.57 → 1.4.59
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/Namespace.d.ts +20 -0
- package/money2/model/Namespace.js +72 -2
- package/money2/model/Namespace.js.map +1 -1
- package/money2/model/Namespace.ts +71 -0
- package/money2/model/NotificationSetting.d.ts +21 -0
- package/money2/model/NotificationSetting.js +76 -0
- package/money2/model/NotificationSetting.js.map +1 -0
- package/money2/model/NotificationSetting.ts +76 -0
- package/money2/model/StoreSubscriptionContentModel.d.ts +4 -0
- package/money2/model/StoreSubscriptionContentModel.js +14 -0
- package/money2/model/StoreSubscriptionContentModel.js.map +1 -1
- package/money2/model/StoreSubscriptionContentModel.ts +14 -0
- package/money2/model/StoreSubscriptionContentModelMaster.d.ts +4 -0
- package/money2/model/StoreSubscriptionContentModelMaster.js +14 -0
- package/money2/model/StoreSubscriptionContentModelMaster.js.map +1 -1
- package/money2/model/StoreSubscriptionContentModelMaster.ts +14 -0
- package/money2/model/SubscribeTransaction.d.ts +4 -0
- package/money2/model/SubscribeTransaction.js +14 -0
- package/money2/model/SubscribeTransaction.js.map +1 -1
- package/money2/model/SubscribeTransaction.ts +14 -0
- package/money2/model/index.d.ts +2 -1
- package/money2/model/index.js +3 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +2 -0
- package/money2/request/AllocateSubscriptionStatusByUserIdRequest.d.ts +37 -0
- package/money2/request/AllocateSubscriptionStatusByUserIdRequest.js +123 -0
- package/money2/request/AllocateSubscriptionStatusByUserIdRequest.js.map +1 -0
- package/money2/request/AllocateSubscriptionStatusByUserIdRequest.ts +133 -0
- package/money2/request/AllocateSubscriptionStatusRequest.d.ts +33 -0
- package/money2/request/AllocateSubscriptionStatusRequest.js +109 -0
- package/money2/request/AllocateSubscriptionStatusRequest.js.map +1 -0
- package/money2/request/AllocateSubscriptionStatusRequest.ts +119 -0
- package/money2/request/CreateNamespaceRequest.d.ts +20 -0
- package/money2/request/CreateNamespaceRequest.js +72 -2
- package/money2/request/CreateNamespaceRequest.js.map +1 -1
- package/money2/request/CreateNamespaceRequest.ts +70 -0
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.d.ts +4 -0
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.js +14 -0
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.js.map +1 -1
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.ts +14 -0
- package/money2/request/TakeoverSubscriptionStatusByUserIdRequest.d.ts +37 -0
- package/money2/request/TakeoverSubscriptionStatusByUserIdRequest.js +123 -0
- package/money2/request/TakeoverSubscriptionStatusByUserIdRequest.js.map +1 -0
- package/money2/request/TakeoverSubscriptionStatusByUserIdRequest.ts +133 -0
- package/money2/request/TakeoverSubscriptionStatusRequest.d.ts +33 -0
- package/money2/request/TakeoverSubscriptionStatusRequest.js +109 -0
- package/money2/request/TakeoverSubscriptionStatusRequest.js.map +1 -0
- package/money2/request/TakeoverSubscriptionStatusRequest.ts +119 -0
- package/money2/request/UpdateNamespaceRequest.d.ts +20 -0
- package/money2/request/UpdateNamespaceRequest.js +72 -2
- package/money2/request/UpdateNamespaceRequest.js.map +1 -1
- package/money2/request/UpdateNamespaceRequest.ts +70 -0
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.d.ts +4 -0
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.js +14 -0
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.js.map +1 -1
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.ts +14 -0
- package/money2/request/index.d.ts +5 -1
- package/money2/request/index.js +10 -2
- package/money2/request/index.js.map +1 -1
- package/money2/request/index.ts +8 -0
- package/money2/rest.d.ts +4 -0
- package/money2/rest.js +156 -10
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +162 -0
- package/money2/result/AllocateSubscriptionStatusByUserIdResult.d.ts +14 -0
- package/money2/result/AllocateSubscriptionStatusByUserIdResult.js +48 -0
- package/money2/result/AllocateSubscriptionStatusByUserIdResult.js.map +1 -0
- package/money2/result/AllocateSubscriptionStatusByUserIdResult.ts +47 -0
- package/money2/result/AllocateSubscriptionStatusResult.d.ts +14 -0
- package/money2/result/AllocateSubscriptionStatusResult.js +48 -0
- package/money2/result/AllocateSubscriptionStatusResult.js.map +1 -0
- package/money2/result/AllocateSubscriptionStatusResult.ts +47 -0
- package/money2/result/TakeoverSubscriptionStatusByUserIdResult.d.ts +14 -0
- package/money2/result/TakeoverSubscriptionStatusByUserIdResult.js +48 -0
- package/money2/result/TakeoverSubscriptionStatusByUserIdResult.js.map +1 -0
- package/money2/result/TakeoverSubscriptionStatusByUserIdResult.ts +47 -0
- package/money2/result/TakeoverSubscriptionStatusResult.d.ts +14 -0
- package/money2/result/TakeoverSubscriptionStatusResult.js +48 -0
- package/money2/result/TakeoverSubscriptionStatusResult.js.map +1 -0
- package/money2/result/TakeoverSubscriptionStatusResult.ts +47 -0
- package/money2/result/index.d.ts +5 -1
- package/money2/result/index.js +10 -2
- package/money2/result/index.js.map +1 -1
- package/money2/result/index.ts +8 -0
- package/package.json +1 -1
|
@@ -9,6 +9,11 @@ export default class Namespace implements IModel {
|
|
|
9
9
|
private platformSetting;
|
|
10
10
|
private depositBalanceScript;
|
|
11
11
|
private withdrawBalanceScript;
|
|
12
|
+
private subscribeScript;
|
|
13
|
+
private renewScript;
|
|
14
|
+
private unsubscribeScript;
|
|
15
|
+
private takeOverScript;
|
|
16
|
+
private changeSubscriptionStatusNotification;
|
|
12
17
|
private logSetting;
|
|
13
18
|
private createdAt;
|
|
14
19
|
private updatedAt;
|
|
@@ -42,6 +47,21 @@ export default class Namespace implements IModel {
|
|
|
42
47
|
getWithdrawBalanceScript(): Gs2Money2.ScriptSetting | null;
|
|
43
48
|
setWithdrawBalanceScript(withdrawBalanceScript: Gs2Money2.ScriptSetting | null): this;
|
|
44
49
|
withWithdrawBalanceScript(withdrawBalanceScript: Gs2Money2.ScriptSetting | null): this;
|
|
50
|
+
getSubscribeScript(): string | null;
|
|
51
|
+
setSubscribeScript(subscribeScript: string | null): this;
|
|
52
|
+
withSubscribeScript(subscribeScript: string | null): this;
|
|
53
|
+
getRenewScript(): string | null;
|
|
54
|
+
setRenewScript(renewScript: string | null): this;
|
|
55
|
+
withRenewScript(renewScript: string | null): this;
|
|
56
|
+
getUnsubscribeScript(): string | null;
|
|
57
|
+
setUnsubscribeScript(unsubscribeScript: string | null): this;
|
|
58
|
+
withUnsubscribeScript(unsubscribeScript: string | null): this;
|
|
59
|
+
getTakeOverScript(): Gs2Money2.ScriptSetting | null;
|
|
60
|
+
setTakeOverScript(takeOverScript: Gs2Money2.ScriptSetting | null): this;
|
|
61
|
+
withTakeOverScript(takeOverScript: Gs2Money2.ScriptSetting | null): this;
|
|
62
|
+
getChangeSubscriptionStatusNotification(): Gs2Money2.NotificationSetting | null;
|
|
63
|
+
setChangeSubscriptionStatusNotification(changeSubscriptionStatusNotification: Gs2Money2.NotificationSetting | null): this;
|
|
64
|
+
withChangeSubscriptionStatusNotification(changeSubscriptionStatusNotification: Gs2Money2.NotificationSetting | null): this;
|
|
45
65
|
getLogSetting(): Gs2Money2.LogSetting | null;
|
|
46
66
|
setLogSetting(logSetting: Gs2Money2.LogSetting | null): this;
|
|
47
67
|
withLogSetting(logSetting: Gs2Money2.LogSetting | null): this;
|
|
@@ -28,6 +28,11 @@ var Namespace = /** @class */ (function () {
|
|
|
28
28
|
this.platformSetting = null;
|
|
29
29
|
this.depositBalanceScript = null;
|
|
30
30
|
this.withdrawBalanceScript = null;
|
|
31
|
+
this.subscribeScript = null;
|
|
32
|
+
this.renewScript = null;
|
|
33
|
+
this.unsubscribeScript = null;
|
|
34
|
+
this.takeOverScript = null;
|
|
35
|
+
this.changeSubscriptionStatusNotification = null;
|
|
31
36
|
this.logSetting = null;
|
|
32
37
|
this.createdAt = null;
|
|
33
38
|
this.updatedAt = null;
|
|
@@ -169,6 +174,61 @@ var Namespace = /** @class */ (function () {
|
|
|
169
174
|
this.withdrawBalanceScript = withdrawBalanceScript;
|
|
170
175
|
return this;
|
|
171
176
|
};
|
|
177
|
+
Namespace.prototype.getSubscribeScript = function () {
|
|
178
|
+
return this.subscribeScript;
|
|
179
|
+
};
|
|
180
|
+
Namespace.prototype.setSubscribeScript = function (subscribeScript) {
|
|
181
|
+
this.subscribeScript = subscribeScript;
|
|
182
|
+
return this;
|
|
183
|
+
};
|
|
184
|
+
Namespace.prototype.withSubscribeScript = function (subscribeScript) {
|
|
185
|
+
this.subscribeScript = subscribeScript;
|
|
186
|
+
return this;
|
|
187
|
+
};
|
|
188
|
+
Namespace.prototype.getRenewScript = function () {
|
|
189
|
+
return this.renewScript;
|
|
190
|
+
};
|
|
191
|
+
Namespace.prototype.setRenewScript = function (renewScript) {
|
|
192
|
+
this.renewScript = renewScript;
|
|
193
|
+
return this;
|
|
194
|
+
};
|
|
195
|
+
Namespace.prototype.withRenewScript = function (renewScript) {
|
|
196
|
+
this.renewScript = renewScript;
|
|
197
|
+
return this;
|
|
198
|
+
};
|
|
199
|
+
Namespace.prototype.getUnsubscribeScript = function () {
|
|
200
|
+
return this.unsubscribeScript;
|
|
201
|
+
};
|
|
202
|
+
Namespace.prototype.setUnsubscribeScript = function (unsubscribeScript) {
|
|
203
|
+
this.unsubscribeScript = unsubscribeScript;
|
|
204
|
+
return this;
|
|
205
|
+
};
|
|
206
|
+
Namespace.prototype.withUnsubscribeScript = function (unsubscribeScript) {
|
|
207
|
+
this.unsubscribeScript = unsubscribeScript;
|
|
208
|
+
return this;
|
|
209
|
+
};
|
|
210
|
+
Namespace.prototype.getTakeOverScript = function () {
|
|
211
|
+
return this.takeOverScript;
|
|
212
|
+
};
|
|
213
|
+
Namespace.prototype.setTakeOverScript = function (takeOverScript) {
|
|
214
|
+
this.takeOverScript = takeOverScript;
|
|
215
|
+
return this;
|
|
216
|
+
};
|
|
217
|
+
Namespace.prototype.withTakeOverScript = function (takeOverScript) {
|
|
218
|
+
this.takeOverScript = takeOverScript;
|
|
219
|
+
return this;
|
|
220
|
+
};
|
|
221
|
+
Namespace.prototype.getChangeSubscriptionStatusNotification = function () {
|
|
222
|
+
return this.changeSubscriptionStatusNotification;
|
|
223
|
+
};
|
|
224
|
+
Namespace.prototype.setChangeSubscriptionStatusNotification = function (changeSubscriptionStatusNotification) {
|
|
225
|
+
this.changeSubscriptionStatusNotification = changeSubscriptionStatusNotification;
|
|
226
|
+
return this;
|
|
227
|
+
};
|
|
228
|
+
Namespace.prototype.withChangeSubscriptionStatusNotification = function (changeSubscriptionStatusNotification) {
|
|
229
|
+
this.changeSubscriptionStatusNotification = changeSubscriptionStatusNotification;
|
|
230
|
+
return this;
|
|
231
|
+
};
|
|
172
232
|
Namespace.prototype.getLogSetting = function () {
|
|
173
233
|
return this.logSetting;
|
|
174
234
|
};
|
|
@@ -226,13 +286,18 @@ var Namespace = /** @class */ (function () {
|
|
|
226
286
|
.withPlatformSetting(Gs2Money2.PlatformSetting.fromDict(data["platformSetting"]))
|
|
227
287
|
.withDepositBalanceScript(Gs2Money2.ScriptSetting.fromDict(data["depositBalanceScript"]))
|
|
228
288
|
.withWithdrawBalanceScript(Gs2Money2.ScriptSetting.fromDict(data["withdrawBalanceScript"]))
|
|
289
|
+
.withSubscribeScript(data["subscribeScript"])
|
|
290
|
+
.withRenewScript(data["renewScript"])
|
|
291
|
+
.withUnsubscribeScript(data["unsubscribeScript"])
|
|
292
|
+
.withTakeOverScript(Gs2Money2.ScriptSetting.fromDict(data["takeOverScript"]))
|
|
293
|
+
.withChangeSubscriptionStatusNotification(Gs2Money2.NotificationSetting.fromDict(data["changeSubscriptionStatusNotification"]))
|
|
229
294
|
.withLogSetting(Gs2Money2.LogSetting.fromDict(data["logSetting"]))
|
|
230
295
|
.withCreatedAt(data["createdAt"])
|
|
231
296
|
.withUpdatedAt(data["updatedAt"])
|
|
232
297
|
.withRevision(data["revision"]);
|
|
233
298
|
};
|
|
234
299
|
Namespace.prototype.toDict = function () {
|
|
235
|
-
var _a, _b, _c, _d;
|
|
300
|
+
var _a, _b, _c, _d, _e, _f;
|
|
236
301
|
return {
|
|
237
302
|
"namespaceId": this.getNamespaceId(),
|
|
238
303
|
"name": this.getName(),
|
|
@@ -242,7 +307,12 @@ var Namespace = /** @class */ (function () {
|
|
|
242
307
|
"platformSetting": (_a = this.getPlatformSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
243
308
|
"depositBalanceScript": (_b = this.getDepositBalanceScript()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
244
309
|
"withdrawBalanceScript": (_c = this.getWithdrawBalanceScript()) === null || _c === void 0 ? void 0 : _c.toDict(),
|
|
245
|
-
"
|
|
310
|
+
"subscribeScript": this.getSubscribeScript(),
|
|
311
|
+
"renewScript": this.getRenewScript(),
|
|
312
|
+
"unsubscribeScript": this.getUnsubscribeScript(),
|
|
313
|
+
"takeOverScript": (_d = this.getTakeOverScript()) === null || _d === void 0 ? void 0 : _d.toDict(),
|
|
314
|
+
"changeSubscriptionStatusNotification": (_e = this.getChangeSubscriptionStatusNotification()) === null || _e === void 0 ? void 0 : _e.toDict(),
|
|
315
|
+
"logSetting": (_f = this.getLogSetting()) === null || _f === void 0 ? void 0 : _f.toDict(),
|
|
246
316
|
"createdAt": this.getCreatedAt(),
|
|
247
317
|
"updatedAt": this.getUpdatedAt(),
|
|
248
318
|
"revision": this.getRevision(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,oEAA+C;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,oEAA+C;AAQ/C,IAAM,SAAS,GAAW,mDAAmD,CAAC;AAE9E;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAAgB,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Setting from './FakeSetting';
|
|
23
23
|
import PlatformSetting from './PlatformSetting';
|
|
24
24
|
import ScriptSetting from './ScriptSetting';
|
|
25
|
+
import NotificationSetting from './NotificationSetting';
|
|
25
26
|
import LogSetting from './LogSetting';
|
|
26
27
|
const grnFormat: string = "grn:gs2:{region}:{ownerId}:money2:{namespaceName}";
|
|
27
28
|
|
|
@@ -34,6 +35,11 @@ export default class Namespace implements IModel {
|
|
|
34
35
|
private platformSetting: Gs2Money2.PlatformSetting|null = null;
|
|
35
36
|
private depositBalanceScript: Gs2Money2.ScriptSetting|null = null;
|
|
36
37
|
private withdrawBalanceScript: Gs2Money2.ScriptSetting|null = null;
|
|
38
|
+
private subscribeScript: string|null = null;
|
|
39
|
+
private renewScript: string|null = null;
|
|
40
|
+
private unsubscribeScript: string|null = null;
|
|
41
|
+
private takeOverScript: Gs2Money2.ScriptSetting|null = null;
|
|
42
|
+
private changeSubscriptionStatusNotification: Gs2Money2.NotificationSetting|null = null;
|
|
37
43
|
private logSetting: Gs2Money2.LogSetting|null = null;
|
|
38
44
|
private createdAt: number|null = null;
|
|
39
45
|
private updatedAt: number|null = null;
|
|
@@ -186,6 +192,61 @@ export default class Namespace implements IModel {
|
|
|
186
192
|
this.withdrawBalanceScript = withdrawBalanceScript;
|
|
187
193
|
return this;
|
|
188
194
|
}
|
|
195
|
+
public getSubscribeScript(): string|null {
|
|
196
|
+
return this.subscribeScript;
|
|
197
|
+
}
|
|
198
|
+
public setSubscribeScript(subscribeScript: string|null) {
|
|
199
|
+
this.subscribeScript = subscribeScript;
|
|
200
|
+
return this;
|
|
201
|
+
}
|
|
202
|
+
public withSubscribeScript(subscribeScript: string|null): this {
|
|
203
|
+
this.subscribeScript = subscribeScript;
|
|
204
|
+
return this;
|
|
205
|
+
}
|
|
206
|
+
public getRenewScript(): string|null {
|
|
207
|
+
return this.renewScript;
|
|
208
|
+
}
|
|
209
|
+
public setRenewScript(renewScript: string|null) {
|
|
210
|
+
this.renewScript = renewScript;
|
|
211
|
+
return this;
|
|
212
|
+
}
|
|
213
|
+
public withRenewScript(renewScript: string|null): this {
|
|
214
|
+
this.renewScript = renewScript;
|
|
215
|
+
return this;
|
|
216
|
+
}
|
|
217
|
+
public getUnsubscribeScript(): string|null {
|
|
218
|
+
return this.unsubscribeScript;
|
|
219
|
+
}
|
|
220
|
+
public setUnsubscribeScript(unsubscribeScript: string|null) {
|
|
221
|
+
this.unsubscribeScript = unsubscribeScript;
|
|
222
|
+
return this;
|
|
223
|
+
}
|
|
224
|
+
public withUnsubscribeScript(unsubscribeScript: string|null): this {
|
|
225
|
+
this.unsubscribeScript = unsubscribeScript;
|
|
226
|
+
return this;
|
|
227
|
+
}
|
|
228
|
+
public getTakeOverScript(): Gs2Money2.ScriptSetting|null {
|
|
229
|
+
return this.takeOverScript;
|
|
230
|
+
}
|
|
231
|
+
public setTakeOverScript(takeOverScript: Gs2Money2.ScriptSetting|null) {
|
|
232
|
+
this.takeOverScript = takeOverScript;
|
|
233
|
+
return this;
|
|
234
|
+
}
|
|
235
|
+
public withTakeOverScript(takeOverScript: Gs2Money2.ScriptSetting|null): this {
|
|
236
|
+
this.takeOverScript = takeOverScript;
|
|
237
|
+
return this;
|
|
238
|
+
}
|
|
239
|
+
public getChangeSubscriptionStatusNotification(): Gs2Money2.NotificationSetting|null {
|
|
240
|
+
return this.changeSubscriptionStatusNotification;
|
|
241
|
+
}
|
|
242
|
+
public setChangeSubscriptionStatusNotification(changeSubscriptionStatusNotification: Gs2Money2.NotificationSetting|null) {
|
|
243
|
+
this.changeSubscriptionStatusNotification = changeSubscriptionStatusNotification;
|
|
244
|
+
return this;
|
|
245
|
+
}
|
|
246
|
+
public withChangeSubscriptionStatusNotification(changeSubscriptionStatusNotification: Gs2Money2.NotificationSetting|null): this {
|
|
247
|
+
this.changeSubscriptionStatusNotification = changeSubscriptionStatusNotification;
|
|
248
|
+
return this;
|
|
249
|
+
}
|
|
189
250
|
public getLogSetting(): Gs2Money2.LogSetting|null {
|
|
190
251
|
return this.logSetting;
|
|
191
252
|
}
|
|
@@ -244,6 +305,11 @@ export default class Namespace implements IModel {
|
|
|
244
305
|
.withPlatformSetting(Gs2Money2.PlatformSetting.fromDict(data["platformSetting"]))
|
|
245
306
|
.withDepositBalanceScript(Gs2Money2.ScriptSetting.fromDict(data["depositBalanceScript"]))
|
|
246
307
|
.withWithdrawBalanceScript(Gs2Money2.ScriptSetting.fromDict(data["withdrawBalanceScript"]))
|
|
308
|
+
.withSubscribeScript(data["subscribeScript"])
|
|
309
|
+
.withRenewScript(data["renewScript"])
|
|
310
|
+
.withUnsubscribeScript(data["unsubscribeScript"])
|
|
311
|
+
.withTakeOverScript(Gs2Money2.ScriptSetting.fromDict(data["takeOverScript"]))
|
|
312
|
+
.withChangeSubscriptionStatusNotification(Gs2Money2.NotificationSetting.fromDict(data["changeSubscriptionStatusNotification"]))
|
|
247
313
|
.withLogSetting(Gs2Money2.LogSetting.fromDict(data["logSetting"]))
|
|
248
314
|
.withCreatedAt(data["createdAt"])
|
|
249
315
|
.withUpdatedAt(data["updatedAt"])
|
|
@@ -260,6 +326,11 @@ export default class Namespace implements IModel {
|
|
|
260
326
|
"platformSetting": this.getPlatformSetting()?.toDict(),
|
|
261
327
|
"depositBalanceScript": this.getDepositBalanceScript()?.toDict(),
|
|
262
328
|
"withdrawBalanceScript": this.getWithdrawBalanceScript()?.toDict(),
|
|
329
|
+
"subscribeScript": this.getSubscribeScript(),
|
|
330
|
+
"renewScript": this.getRenewScript(),
|
|
331
|
+
"unsubscribeScript": this.getUnsubscribeScript(),
|
|
332
|
+
"takeOverScript": this.getTakeOverScript()?.toDict(),
|
|
333
|
+
"changeSubscriptionStatusNotification": this.getChangeSubscriptionStatusNotification()?.toDict(),
|
|
263
334
|
"logSetting": this.getLogSetting()?.toDict(),
|
|
264
335
|
"createdAt": this.getCreatedAt(),
|
|
265
336
|
"updatedAt": this.getUpdatedAt(),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class NotificationSetting implements IModel {
|
|
3
|
+
private gatewayNamespaceId;
|
|
4
|
+
private enableTransferMobileNotification;
|
|
5
|
+
private sound;
|
|
6
|
+
getGatewayNamespaceId(): string | null;
|
|
7
|
+
setGatewayNamespaceId(gatewayNamespaceId: string | null): this;
|
|
8
|
+
withGatewayNamespaceId(gatewayNamespaceId: string | null): this;
|
|
9
|
+
getEnableTransferMobileNotification(): boolean | null;
|
|
10
|
+
setEnableTransferMobileNotification(enableTransferMobileNotification: boolean | null): this;
|
|
11
|
+
withEnableTransferMobileNotification(enableTransferMobileNotification: boolean | null): this;
|
|
12
|
+
getSound(): string | null;
|
|
13
|
+
setSound(sound: string | null): this;
|
|
14
|
+
withSound(sound: string | null): this;
|
|
15
|
+
static fromDict(data: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}): NotificationSetting | null;
|
|
18
|
+
toDict(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 NotificationSetting = /** @class */ (function () {
|
|
19
|
+
function NotificationSetting() {
|
|
20
|
+
this.gatewayNamespaceId = null;
|
|
21
|
+
this.enableTransferMobileNotification = null;
|
|
22
|
+
this.sound = null;
|
|
23
|
+
}
|
|
24
|
+
NotificationSetting.prototype.getGatewayNamespaceId = function () {
|
|
25
|
+
return this.gatewayNamespaceId;
|
|
26
|
+
};
|
|
27
|
+
NotificationSetting.prototype.setGatewayNamespaceId = function (gatewayNamespaceId) {
|
|
28
|
+
this.gatewayNamespaceId = gatewayNamespaceId;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
NotificationSetting.prototype.withGatewayNamespaceId = function (gatewayNamespaceId) {
|
|
32
|
+
this.gatewayNamespaceId = gatewayNamespaceId;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
NotificationSetting.prototype.getEnableTransferMobileNotification = function () {
|
|
36
|
+
return this.enableTransferMobileNotification;
|
|
37
|
+
};
|
|
38
|
+
NotificationSetting.prototype.setEnableTransferMobileNotification = function (enableTransferMobileNotification) {
|
|
39
|
+
this.enableTransferMobileNotification = enableTransferMobileNotification;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
NotificationSetting.prototype.withEnableTransferMobileNotification = function (enableTransferMobileNotification) {
|
|
43
|
+
this.enableTransferMobileNotification = enableTransferMobileNotification;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
NotificationSetting.prototype.getSound = function () {
|
|
47
|
+
return this.sound;
|
|
48
|
+
};
|
|
49
|
+
NotificationSetting.prototype.setSound = function (sound) {
|
|
50
|
+
this.sound = sound;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
NotificationSetting.prototype.withSound = function (sound) {
|
|
54
|
+
this.sound = sound;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
NotificationSetting.fromDict = function (data) {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new NotificationSetting()
|
|
62
|
+
.withGatewayNamespaceId(data["gatewayNamespaceId"])
|
|
63
|
+
.withEnableTransferMobileNotification(data["enableTransferMobileNotification"])
|
|
64
|
+
.withSound(data["sound"]);
|
|
65
|
+
};
|
|
66
|
+
NotificationSetting.prototype.toDict = function () {
|
|
67
|
+
return {
|
|
68
|
+
"gatewayNamespaceId": this.getGatewayNamespaceId(),
|
|
69
|
+
"enableTransferMobileNotification": this.getEnableTransferMobileNotification(),
|
|
70
|
+
"sound": this.getSound(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
return NotificationSetting;
|
|
74
|
+
}());
|
|
75
|
+
exports.default = NotificationSetting;
|
|
76
|
+
//# sourceMappingURL=NotificationSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["NotificationSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,uBAAkB,GAAgB,IAAI,CAAC;QACvC,qCAAgC,GAAiB,IAAI,CAAC;QACtD,UAAK,GAAgB,IAAI,CAAC;IAoDtC,CAAC;IAnDU,mDAAqB,GAA5B;QACI,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACnC,CAAC;IACM,mDAAqB,GAA5B,UAA6B,kBAA+B;QACxD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,oDAAsB,GAA7B,UAA8B,kBAA+B;QACzD,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iEAAmC,GAA1C;QACI,OAAO,IAAI,CAAC,gCAAgC,CAAC;IACjD,CAAC;IACM,iEAAmC,GAA1C,UAA2C,gCAA8C;QACrF,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QACzE,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kEAAoC,GAA3C,UAA4C,gCAA8C;QACtF,IAAI,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;QACzE,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,sCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACM,sCAAQ,GAAf,UAAgB,KAAkB;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,uCAAS,GAAhB,UAAiB,KAAkB;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,4BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,mBAAmB,EAAE;aAC3B,sBAAsB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;aAClD,oCAAoC,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;aAC9E,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,oCAAM,GAAb;QACI,OAAO;YACH,oBAAoB,EAAE,IAAI,CAAC,qBAAqB,EAAE;YAClD,kCAAkC,EAAE,IAAI,CAAC,mCAAmC,EAAE;YAC9E,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,0BAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
|
|
19
|
+
import * as Gs2Money2 from '../../money2/model'
|
|
20
|
+
|
|
21
|
+
export default class NotificationSetting implements IModel {
|
|
22
|
+
private gatewayNamespaceId: string|null = null;
|
|
23
|
+
private enableTransferMobileNotification: boolean|null = null;
|
|
24
|
+
private sound: string|null = null;
|
|
25
|
+
public getGatewayNamespaceId(): string|null {
|
|
26
|
+
return this.gatewayNamespaceId;
|
|
27
|
+
}
|
|
28
|
+
public setGatewayNamespaceId(gatewayNamespaceId: string|null) {
|
|
29
|
+
this.gatewayNamespaceId = gatewayNamespaceId;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
public withGatewayNamespaceId(gatewayNamespaceId: string|null): this {
|
|
33
|
+
this.gatewayNamespaceId = gatewayNamespaceId;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
public getEnableTransferMobileNotification(): boolean|null {
|
|
37
|
+
return this.enableTransferMobileNotification;
|
|
38
|
+
}
|
|
39
|
+
public setEnableTransferMobileNotification(enableTransferMobileNotification: boolean|null) {
|
|
40
|
+
this.enableTransferMobileNotification = enableTransferMobileNotification;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
public withEnableTransferMobileNotification(enableTransferMobileNotification: boolean|null): this {
|
|
44
|
+
this.enableTransferMobileNotification = enableTransferMobileNotification;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
public getSound(): string|null {
|
|
48
|
+
return this.sound;
|
|
49
|
+
}
|
|
50
|
+
public setSound(sound: string|null) {
|
|
51
|
+
this.sound = sound;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
public withSound(sound: string|null): this {
|
|
55
|
+
this.sound = sound;
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public static fromDict(data: {[key: string]: any}): NotificationSetting|null {
|
|
60
|
+
if (data == undefined || data == null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return new NotificationSetting()
|
|
64
|
+
.withGatewayNamespaceId(data["gatewayNamespaceId"])
|
|
65
|
+
.withEnableTransferMobileNotification(data["enableTransferMobileNotification"])
|
|
66
|
+
.withSound(data["sound"]);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public toDict(): {[key: string]: any} {
|
|
70
|
+
return {
|
|
71
|
+
"gatewayNamespaceId": this.getGatewayNamespaceId(),
|
|
72
|
+
"enableTransferMobileNotification": this.getEnableTransferMobileNotification(),
|
|
73
|
+
"sound": this.getSound(),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -6,6 +6,7 @@ export default class StoreSubscriptionContentModel implements IModel {
|
|
|
6
6
|
private metadata;
|
|
7
7
|
private scheduleNamespaceId;
|
|
8
8
|
private triggerName;
|
|
9
|
+
private reallocateSpanDays;
|
|
9
10
|
private appleAppStore;
|
|
10
11
|
private googlePlay;
|
|
11
12
|
static getRegion(grn: string): string | null;
|
|
@@ -29,6 +30,9 @@ export default class StoreSubscriptionContentModel implements IModel {
|
|
|
29
30
|
getTriggerName(): string | null;
|
|
30
31
|
setTriggerName(triggerName: string | null): this;
|
|
31
32
|
withTriggerName(triggerName: string | null): this;
|
|
33
|
+
getReallocateSpanDays(): number | null;
|
|
34
|
+
setReallocateSpanDays(reallocateSpanDays: number | null): this;
|
|
35
|
+
withReallocateSpanDays(reallocateSpanDays: number | null): this;
|
|
32
36
|
getAppleAppStore(): Gs2Money2.AppleAppStoreSubscriptionContent | null;
|
|
33
37
|
setAppleAppStore(appleAppStore: Gs2Money2.AppleAppStoreSubscriptionContent | null): this;
|
|
34
38
|
withAppleAppStore(appleAppStore: Gs2Money2.AppleAppStoreSubscriptionContent | null): this;
|
|
@@ -25,6 +25,7 @@ var StoreSubscriptionContentModel = /** @class */ (function () {
|
|
|
25
25
|
this.metadata = null;
|
|
26
26
|
this.scheduleNamespaceId = null;
|
|
27
27
|
this.triggerName = null;
|
|
28
|
+
this.reallocateSpanDays = null;
|
|
28
29
|
this.appleAppStore = null;
|
|
29
30
|
this.googlePlay = null;
|
|
30
31
|
}
|
|
@@ -149,6 +150,17 @@ var StoreSubscriptionContentModel = /** @class */ (function () {
|
|
|
149
150
|
this.triggerName = triggerName;
|
|
150
151
|
return this;
|
|
151
152
|
};
|
|
153
|
+
StoreSubscriptionContentModel.prototype.getReallocateSpanDays = function () {
|
|
154
|
+
return this.reallocateSpanDays;
|
|
155
|
+
};
|
|
156
|
+
StoreSubscriptionContentModel.prototype.setReallocateSpanDays = function (reallocateSpanDays) {
|
|
157
|
+
this.reallocateSpanDays = reallocateSpanDays;
|
|
158
|
+
return this;
|
|
159
|
+
};
|
|
160
|
+
StoreSubscriptionContentModel.prototype.withReallocateSpanDays = function (reallocateSpanDays) {
|
|
161
|
+
this.reallocateSpanDays = reallocateSpanDays;
|
|
162
|
+
return this;
|
|
163
|
+
};
|
|
152
164
|
StoreSubscriptionContentModel.prototype.getAppleAppStore = function () {
|
|
153
165
|
return this.appleAppStore;
|
|
154
166
|
};
|
|
@@ -181,6 +193,7 @@ var StoreSubscriptionContentModel = /** @class */ (function () {
|
|
|
181
193
|
.withMetadata(data["metadata"])
|
|
182
194
|
.withScheduleNamespaceId(data["scheduleNamespaceId"])
|
|
183
195
|
.withTriggerName(data["triggerName"])
|
|
196
|
+
.withReallocateSpanDays(data["reallocateSpanDays"])
|
|
184
197
|
.withAppleAppStore(Gs2Money2.AppleAppStoreSubscriptionContent.fromDict(data["appleAppStore"]))
|
|
185
198
|
.withGooglePlay(Gs2Money2.GooglePlaySubscriptionContent.fromDict(data["googlePlay"]));
|
|
186
199
|
};
|
|
@@ -192,6 +205,7 @@ var StoreSubscriptionContentModel = /** @class */ (function () {
|
|
|
192
205
|
"metadata": this.getMetadata(),
|
|
193
206
|
"scheduleNamespaceId": this.getScheduleNamespaceId(),
|
|
194
207
|
"triggerName": this.getTriggerName(),
|
|
208
|
+
"reallocateSpanDays": this.getReallocateSpanDays(),
|
|
195
209
|
"appleAppStore": (_a = this.getAppleAppStore()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
196
210
|
"googlePlay": (_b = this.getGooglePlay()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
197
211
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreSubscriptionContentModel.js","sourceRoot":"","sources":["StoreSubscriptionContentModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,oEAA+C;AAG/C,IAAM,SAAS,GAAW,4FAA4F,CAAC;AAEvH;IAAA;QACY,oCAA+B,GAAgB,IAAI,CAAC;QACpD,SAAI,GAAgB,IAAI,CAAC;QACzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,wBAAmB,GAAgB,IAAI,CAAC;QACxC,gBAAW,GAAgB,IAAI,CAAC;QAChC,kBAAa,GAAoD,IAAI,CAAC;QACtE,eAAU,GAAiD,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"StoreSubscriptionContentModel.js","sourceRoot":"","sources":["StoreSubscriptionContentModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,oEAA+C;AAG/C,IAAM,SAAS,GAAW,4FAA4F,CAAC;AAEvH;IAAA;QACY,oCAA+B,GAAgB,IAAI,CAAC;QACpD,SAAI,GAAgB,IAAI,CAAC;QACzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,wBAAmB,GAAgB,IAAI,CAAC;QACxC,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAAgB,IAAI,CAAC;QACvC,kBAAa,GAAoD,IAAI,CAAC;QACtE,eAAU,GAAiD,IAAI,CAAC;IAsM5E,CAAC;IApMiB,uCAAS,GAAvB,U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"}
|
|
@@ -27,6 +27,7 @@ export default class StoreSubscriptionContentModel implements IModel {
|
|
|
27
27
|
private metadata: string|null = null;
|
|
28
28
|
private scheduleNamespaceId: string|null = null;
|
|
29
29
|
private triggerName: string|null = null;
|
|
30
|
+
private reallocateSpanDays: number|null = null;
|
|
30
31
|
private appleAppStore: Gs2Money2.AppleAppStoreSubscriptionContent|null = null;
|
|
31
32
|
private googlePlay: Gs2Money2.GooglePlaySubscriptionContent|null = null;
|
|
32
33
|
|
|
@@ -165,6 +166,17 @@ export default class StoreSubscriptionContentModel implements IModel {
|
|
|
165
166
|
this.triggerName = triggerName;
|
|
166
167
|
return this;
|
|
167
168
|
}
|
|
169
|
+
public getReallocateSpanDays(): number|null {
|
|
170
|
+
return this.reallocateSpanDays;
|
|
171
|
+
}
|
|
172
|
+
public setReallocateSpanDays(reallocateSpanDays: number|null) {
|
|
173
|
+
this.reallocateSpanDays = reallocateSpanDays;
|
|
174
|
+
return this;
|
|
175
|
+
}
|
|
176
|
+
public withReallocateSpanDays(reallocateSpanDays: number|null): this {
|
|
177
|
+
this.reallocateSpanDays = reallocateSpanDays;
|
|
178
|
+
return this;
|
|
179
|
+
}
|
|
168
180
|
public getAppleAppStore(): Gs2Money2.AppleAppStoreSubscriptionContent|null {
|
|
169
181
|
return this.appleAppStore;
|
|
170
182
|
}
|
|
@@ -198,6 +210,7 @@ export default class StoreSubscriptionContentModel implements IModel {
|
|
|
198
210
|
.withMetadata(data["metadata"])
|
|
199
211
|
.withScheduleNamespaceId(data["scheduleNamespaceId"])
|
|
200
212
|
.withTriggerName(data["triggerName"])
|
|
213
|
+
.withReallocateSpanDays(data["reallocateSpanDays"])
|
|
201
214
|
.withAppleAppStore(Gs2Money2.AppleAppStoreSubscriptionContent.fromDict(data["appleAppStore"]))
|
|
202
215
|
.withGooglePlay(Gs2Money2.GooglePlaySubscriptionContent.fromDict(data["googlePlay"]));
|
|
203
216
|
}
|
|
@@ -209,6 +222,7 @@ export default class StoreSubscriptionContentModel implements IModel {
|
|
|
209
222
|
"metadata": this.getMetadata(),
|
|
210
223
|
"scheduleNamespaceId": this.getScheduleNamespaceId(),
|
|
211
224
|
"triggerName": this.getTriggerName(),
|
|
225
|
+
"reallocateSpanDays": this.getReallocateSpanDays(),
|
|
212
226
|
"appleAppStore": this.getAppleAppStore()?.toDict(),
|
|
213
227
|
"googlePlay": this.getGooglePlay()?.toDict(),
|
|
214
228
|
};
|
|
@@ -7,6 +7,7 @@ export default class StoreSubscriptionContentModelMaster implements IModel {
|
|
|
7
7
|
private metadata;
|
|
8
8
|
private scheduleNamespaceId;
|
|
9
9
|
private triggerName;
|
|
10
|
+
private reallocateSpanDays;
|
|
10
11
|
private appleAppStore;
|
|
11
12
|
private googlePlay;
|
|
12
13
|
private createdAt;
|
|
@@ -36,6 +37,9 @@ export default class StoreSubscriptionContentModelMaster implements IModel {
|
|
|
36
37
|
getTriggerName(): string | null;
|
|
37
38
|
setTriggerName(triggerName: string | null): this;
|
|
38
39
|
withTriggerName(triggerName: string | null): this;
|
|
40
|
+
getReallocateSpanDays(): number | null;
|
|
41
|
+
setReallocateSpanDays(reallocateSpanDays: number | null): this;
|
|
42
|
+
withReallocateSpanDays(reallocateSpanDays: number | null): this;
|
|
39
43
|
getAppleAppStore(): Gs2Money2.AppleAppStoreSubscriptionContent | null;
|
|
40
44
|
setAppleAppStore(appleAppStore: Gs2Money2.AppleAppStoreSubscriptionContent | null): this;
|
|
41
45
|
withAppleAppStore(appleAppStore: Gs2Money2.AppleAppStoreSubscriptionContent | null): this;
|
|
@@ -26,6 +26,7 @@ var StoreSubscriptionContentModelMaster = /** @class */ (function () {
|
|
|
26
26
|
this.metadata = null;
|
|
27
27
|
this.scheduleNamespaceId = null;
|
|
28
28
|
this.triggerName = null;
|
|
29
|
+
this.reallocateSpanDays = null;
|
|
29
30
|
this.appleAppStore = null;
|
|
30
31
|
this.googlePlay = null;
|
|
31
32
|
this.createdAt = null;
|
|
@@ -164,6 +165,17 @@ var StoreSubscriptionContentModelMaster = /** @class */ (function () {
|
|
|
164
165
|
this.triggerName = triggerName;
|
|
165
166
|
return this;
|
|
166
167
|
};
|
|
168
|
+
StoreSubscriptionContentModelMaster.prototype.getReallocateSpanDays = function () {
|
|
169
|
+
return this.reallocateSpanDays;
|
|
170
|
+
};
|
|
171
|
+
StoreSubscriptionContentModelMaster.prototype.setReallocateSpanDays = function (reallocateSpanDays) {
|
|
172
|
+
this.reallocateSpanDays = reallocateSpanDays;
|
|
173
|
+
return this;
|
|
174
|
+
};
|
|
175
|
+
StoreSubscriptionContentModelMaster.prototype.withReallocateSpanDays = function (reallocateSpanDays) {
|
|
176
|
+
this.reallocateSpanDays = reallocateSpanDays;
|
|
177
|
+
return this;
|
|
178
|
+
};
|
|
167
179
|
StoreSubscriptionContentModelMaster.prototype.getAppleAppStore = function () {
|
|
168
180
|
return this.appleAppStore;
|
|
169
181
|
};
|
|
@@ -230,6 +242,7 @@ var StoreSubscriptionContentModelMaster = /** @class */ (function () {
|
|
|
230
242
|
.withMetadata(data["metadata"])
|
|
231
243
|
.withScheduleNamespaceId(data["scheduleNamespaceId"])
|
|
232
244
|
.withTriggerName(data["triggerName"])
|
|
245
|
+
.withReallocateSpanDays(data["reallocateSpanDays"])
|
|
233
246
|
.withAppleAppStore(Gs2Money2.AppleAppStoreSubscriptionContent.fromDict(data["appleAppStore"]))
|
|
234
247
|
.withGooglePlay(Gs2Money2.GooglePlaySubscriptionContent.fromDict(data["googlePlay"]))
|
|
235
248
|
.withCreatedAt(data["createdAt"])
|
|
@@ -245,6 +258,7 @@ var StoreSubscriptionContentModelMaster = /** @class */ (function () {
|
|
|
245
258
|
"metadata": this.getMetadata(),
|
|
246
259
|
"scheduleNamespaceId": this.getScheduleNamespaceId(),
|
|
247
260
|
"triggerName": this.getTriggerName(),
|
|
261
|
+
"reallocateSpanDays": this.getReallocateSpanDays(),
|
|
248
262
|
"appleAppStore": (_a = this.getAppleAppStore()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
249
263
|
"googlePlay": (_b = this.getGooglePlay()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
250
264
|
"createdAt": this.getCreatedAt(),
|