gs2 1.4.54 → 1.4.55
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/AppleAppStoreSetting.d.ts +12 -0
- package/money2/model/AppleAppStoreSetting.js +43 -1
- package/money2/model/AppleAppStoreSetting.js.map +1 -1
- package/money2/model/AppleAppStoreSetting.ts +43 -1
- package/money2/model/Event.d.ts +4 -0
- package/money2/model/Event.js +15 -1
- package/money2/model/Event.js.map +1 -1
- package/money2/model/Event.ts +15 -0
- package/money2/model/GooglePlayRealtimeNotificationMessage.d.ts +21 -0
- package/money2/model/GooglePlayRealtimeNotificationMessage.js +76 -0
- package/money2/model/GooglePlayRealtimeNotificationMessage.js.map +1 -0
- package/money2/model/GooglePlayRealtimeNotificationMessage.ts +76 -0
- package/money2/model/GooglePlaySetting.d.ts +4 -0
- package/money2/model/GooglePlaySetting.js +15 -1
- package/money2/model/GooglePlaySetting.js.map +1 -1
- package/money2/model/GooglePlaySetting.ts +15 -1
- package/money2/model/RefundEvent.d.ts +26 -0
- package/money2/model/RefundEvent.js +93 -0
- package/money2/model/RefundEvent.js.map +1 -0
- package/money2/model/RefundEvent.ts +92 -0
- package/money2/model/SubscribeTransaction.d.ts +55 -0
- package/money2/model/SubscribeTransaction.js +241 -0
- package/money2/model/SubscribeTransaction.js.map +1 -0
- package/money2/model/SubscribeTransaction.ts +256 -0
- package/money2/model/index.d.ts +4 -1
- package/money2/model/index.js +7 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +6 -0
- package/package.json +1 -1
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
2
|
export default class AppleAppStoreSetting implements IModel {
|
|
3
3
|
private bundleId;
|
|
4
|
+
private teamId;
|
|
5
|
+
private keyId;
|
|
6
|
+
private privateKeyPem;
|
|
4
7
|
getBundleId(): string | null;
|
|
5
8
|
setBundleId(bundleId: string | null): this;
|
|
6
9
|
withBundleId(bundleId: string | null): this;
|
|
10
|
+
getTeamId(): string | null;
|
|
11
|
+
setTeamId(teamId: string | null): this;
|
|
12
|
+
withTeamId(teamId: string | null): this;
|
|
13
|
+
getKeyId(): string | null;
|
|
14
|
+
setKeyId(keyId: string | null): this;
|
|
15
|
+
withKeyId(keyId: string | null): this;
|
|
16
|
+
getPrivateKeyPem(): string | null;
|
|
17
|
+
setPrivateKeyPem(privateKeyPem: string | null): this;
|
|
18
|
+
withPrivateKeyPem(privateKeyPem: string | null): this;
|
|
7
19
|
static fromDict(data: {
|
|
8
20
|
[key: string]: any;
|
|
9
21
|
}): AppleAppStoreSetting | null;
|
|
@@ -18,6 +18,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
var AppleAppStoreSetting = /** @class */ (function () {
|
|
19
19
|
function AppleAppStoreSetting() {
|
|
20
20
|
this.bundleId = null;
|
|
21
|
+
this.teamId = null;
|
|
22
|
+
this.keyId = null;
|
|
23
|
+
this.privateKeyPem = null;
|
|
21
24
|
}
|
|
22
25
|
AppleAppStoreSetting.prototype.getBundleId = function () {
|
|
23
26
|
return this.bundleId;
|
|
@@ -30,16 +33,55 @@ var AppleAppStoreSetting = /** @class */ (function () {
|
|
|
30
33
|
this.bundleId = bundleId;
|
|
31
34
|
return this;
|
|
32
35
|
};
|
|
36
|
+
AppleAppStoreSetting.prototype.getTeamId = function () {
|
|
37
|
+
return this.teamId;
|
|
38
|
+
};
|
|
39
|
+
AppleAppStoreSetting.prototype.setTeamId = function (teamId) {
|
|
40
|
+
this.teamId = teamId;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
AppleAppStoreSetting.prototype.withTeamId = function (teamId) {
|
|
44
|
+
this.teamId = teamId;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
AppleAppStoreSetting.prototype.getKeyId = function () {
|
|
48
|
+
return this.keyId;
|
|
49
|
+
};
|
|
50
|
+
AppleAppStoreSetting.prototype.setKeyId = function (keyId) {
|
|
51
|
+
this.keyId = keyId;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
AppleAppStoreSetting.prototype.withKeyId = function (keyId) {
|
|
55
|
+
this.keyId = keyId;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
AppleAppStoreSetting.prototype.getPrivateKeyPem = function () {
|
|
59
|
+
return this.privateKeyPem;
|
|
60
|
+
};
|
|
61
|
+
AppleAppStoreSetting.prototype.setPrivateKeyPem = function (privateKeyPem) {
|
|
62
|
+
this.privateKeyPem = privateKeyPem;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
AppleAppStoreSetting.prototype.withPrivateKeyPem = function (privateKeyPem) {
|
|
66
|
+
this.privateKeyPem = privateKeyPem;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
33
69
|
AppleAppStoreSetting.fromDict = function (data) {
|
|
34
70
|
if (data == undefined || data == null) {
|
|
35
71
|
return null;
|
|
36
72
|
}
|
|
37
73
|
return new AppleAppStoreSetting()
|
|
38
|
-
.withBundleId(data["bundleId"])
|
|
74
|
+
.withBundleId(data["bundleId"])
|
|
75
|
+
.withTeamId(data["teamId"])
|
|
76
|
+
.withKeyId(data["keyId"])
|
|
77
|
+
.withPrivateKeyPem(data["privateKeyPem"]);
|
|
39
78
|
};
|
|
40
79
|
AppleAppStoreSetting.prototype.toDict = function () {
|
|
41
80
|
return {
|
|
42
81
|
"bundleId": this.getBundleId(),
|
|
82
|
+
"teamId": this.getTeamId(),
|
|
83
|
+
"keyId": this.getKeyId(),
|
|
84
|
+
"privateKeyPem": this.getPrivateKeyPem(),
|
|
43
85
|
};
|
|
44
86
|
};
|
|
45
87
|
return AppleAppStoreSetting;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppleAppStoreSetting.js","sourceRoot":"","sources":["AppleAppStoreSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,aAAQ,GAAgB,I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AC;IACM,+CAAgB,GAAvB,UAAwB,aAA0B;QAC9C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,gDAAiB,GAAxB,UAAyB,aAA0B;QAC/C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,6BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,oBAAoB,EAAE;aAC5B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxB,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,qCAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;SAC3C,CAAC;IACN,CAAC;IACL,2BAAC;AAAD,CAAC,AArED,IAqEC"}
|
|
@@ -20,6 +20,9 @@ import * as Gs2Money2 from '../../money2/model'
|
|
|
20
20
|
|
|
21
21
|
export default class AppleAppStoreSetting implements IModel {
|
|
22
22
|
private bundleId: string|null = null;
|
|
23
|
+
private teamId: string|null = null;
|
|
24
|
+
private keyId: string|null = null;
|
|
25
|
+
private privateKeyPem: string|null = null;
|
|
23
26
|
public getBundleId(): string|null {
|
|
24
27
|
return this.bundleId;
|
|
25
28
|
}
|
|
@@ -31,18 +34,57 @@ export default class AppleAppStoreSetting implements IModel {
|
|
|
31
34
|
this.bundleId = bundleId;
|
|
32
35
|
return this;
|
|
33
36
|
}
|
|
37
|
+
public getTeamId(): string|null {
|
|
38
|
+
return this.teamId;
|
|
39
|
+
}
|
|
40
|
+
public setTeamId(teamId: string|null) {
|
|
41
|
+
this.teamId = teamId;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
public withTeamId(teamId: string|null): this {
|
|
45
|
+
this.teamId = teamId;
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
public getKeyId(): string|null {
|
|
49
|
+
return this.keyId;
|
|
50
|
+
}
|
|
51
|
+
public setKeyId(keyId: string|null) {
|
|
52
|
+
this.keyId = keyId;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
public withKeyId(keyId: string|null): this {
|
|
56
|
+
this.keyId = keyId;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
public getPrivateKeyPem(): string|null {
|
|
60
|
+
return this.privateKeyPem;
|
|
61
|
+
}
|
|
62
|
+
public setPrivateKeyPem(privateKeyPem: string|null) {
|
|
63
|
+
this.privateKeyPem = privateKeyPem;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
public withPrivateKeyPem(privateKeyPem: string|null): this {
|
|
67
|
+
this.privateKeyPem = privateKeyPem;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
34
70
|
|
|
35
71
|
public static fromDict(data: {[key: string]: any}): AppleAppStoreSetting|null {
|
|
36
72
|
if (data == undefined || data == null) {
|
|
37
73
|
return null;
|
|
38
74
|
}
|
|
39
75
|
return new AppleAppStoreSetting()
|
|
40
|
-
.withBundleId(data["bundleId"])
|
|
76
|
+
.withBundleId(data["bundleId"])
|
|
77
|
+
.withTeamId(data["teamId"])
|
|
78
|
+
.withKeyId(data["keyId"])
|
|
79
|
+
.withPrivateKeyPem(data["privateKeyPem"]);
|
|
41
80
|
}
|
|
42
81
|
|
|
43
82
|
public toDict(): {[key: string]: any} {
|
|
44
83
|
return {
|
|
45
84
|
"bundleId": this.getBundleId(),
|
|
85
|
+
"teamId": this.getTeamId(),
|
|
86
|
+
"keyId": this.getKeyId(),
|
|
87
|
+
"privateKeyPem": this.getPrivateKeyPem(),
|
|
46
88
|
};
|
|
47
89
|
}
|
|
48
90
|
}
|
package/money2/model/Event.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default class Event implements IModel {
|
|
|
8
8
|
private verifyReceiptEvent;
|
|
9
9
|
private depositEvent;
|
|
10
10
|
private withdrawEvent;
|
|
11
|
+
private refundEvent;
|
|
11
12
|
private createdAt;
|
|
12
13
|
private revision;
|
|
13
14
|
static getRegion(grn: string): string | null;
|
|
@@ -37,6 +38,9 @@ export default class Event implements IModel {
|
|
|
37
38
|
getWithdrawEvent(): Gs2Money2.WithdrawEvent | null;
|
|
38
39
|
setWithdrawEvent(withdrawEvent: Gs2Money2.WithdrawEvent | null): this;
|
|
39
40
|
withWithdrawEvent(withdrawEvent: Gs2Money2.WithdrawEvent | null): this;
|
|
41
|
+
getRefundEvent(): Gs2Money2.RefundEvent | null;
|
|
42
|
+
setRefundEvent(refundEvent: Gs2Money2.RefundEvent | null): this;
|
|
43
|
+
withRefundEvent(refundEvent: Gs2Money2.RefundEvent | null): this;
|
|
40
44
|
getCreatedAt(): number | null;
|
|
41
45
|
setCreatedAt(createdAt: number | null): this;
|
|
42
46
|
withCreatedAt(createdAt: number | null): this;
|
package/money2/model/Event.js
CHANGED
|
@@ -27,6 +27,7 @@ var Event = /** @class */ (function () {
|
|
|
27
27
|
this.verifyReceiptEvent = null;
|
|
28
28
|
this.depositEvent = null;
|
|
29
29
|
this.withdrawEvent = null;
|
|
30
|
+
this.refundEvent = null;
|
|
30
31
|
this.createdAt = null;
|
|
31
32
|
this.revision = null;
|
|
32
33
|
}
|
|
@@ -173,6 +174,17 @@ var Event = /** @class */ (function () {
|
|
|
173
174
|
this.withdrawEvent = withdrawEvent;
|
|
174
175
|
return this;
|
|
175
176
|
};
|
|
177
|
+
Event.prototype.getRefundEvent = function () {
|
|
178
|
+
return this.refundEvent;
|
|
179
|
+
};
|
|
180
|
+
Event.prototype.setRefundEvent = function (refundEvent) {
|
|
181
|
+
this.refundEvent = refundEvent;
|
|
182
|
+
return this;
|
|
183
|
+
};
|
|
184
|
+
Event.prototype.withRefundEvent = function (refundEvent) {
|
|
185
|
+
this.refundEvent = refundEvent;
|
|
186
|
+
return this;
|
|
187
|
+
};
|
|
176
188
|
Event.prototype.getCreatedAt = function () {
|
|
177
189
|
return this.createdAt;
|
|
178
190
|
};
|
|
@@ -207,11 +219,12 @@ var Event = /** @class */ (function () {
|
|
|
207
219
|
.withVerifyReceiptEvent(Gs2Money2.VerifyReceiptEvent.fromDict(data["verifyReceiptEvent"]))
|
|
208
220
|
.withDepositEvent(Gs2Money2.DepositEvent.fromDict(data["depositEvent"]))
|
|
209
221
|
.withWithdrawEvent(Gs2Money2.WithdrawEvent.fromDict(data["withdrawEvent"]))
|
|
222
|
+
.withRefundEvent(Gs2Money2.RefundEvent.fromDict(data["refundEvent"]))
|
|
210
223
|
.withCreatedAt(data["createdAt"])
|
|
211
224
|
.withRevision(data["revision"]);
|
|
212
225
|
};
|
|
213
226
|
Event.prototype.toDict = function () {
|
|
214
|
-
var _a, _b, _c;
|
|
227
|
+
var _a, _b, _c, _d;
|
|
215
228
|
return {
|
|
216
229
|
"eventId": this.getEventId(),
|
|
217
230
|
"transactionId": this.getTransactionId(),
|
|
@@ -220,6 +233,7 @@ var Event = /** @class */ (function () {
|
|
|
220
233
|
"verifyReceiptEvent": (_a = this.getVerifyReceiptEvent()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
221
234
|
"depositEvent": (_b = this.getDepositEvent()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
222
235
|
"withdrawEvent": (_c = this.getWithdrawEvent()) === null || _c === void 0 ? void 0 : _c.toDict(),
|
|
236
|
+
"refundEvent": (_d = this.getRefundEvent()) === null || _d === void 0 ? void 0 : _d.toDict(),
|
|
223
237
|
"createdAt": this.getCreatedAt(),
|
|
224
238
|
"revision": this.getRevision(),
|
|
225
239
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,oEAA+C;
|
|
1
|
+
{"version":3,"file":"Event.js","sourceRoot":"","sources":["Event.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,oEAA+C;AAS/C,IAAM,SAAS,GAAW,yEAAyE,CAAC;AAEpG;IAAA;QACY,YAAO,GAAgB,IAAI,CAAC;QAC5B,kBAAa,GAAgB,IAAI,CAAC;QAClC,WAAM,GAAgB,IAAI,CAAC;QAC3B,cAAS,GAAgB,IAAI,CAAC;QAC9B,uBAAkB,GAAsC,IAAI,CAAC;QAC7D,iBAAY,GAAgC,IAAI,CAAC;QACjD,kBAAa,GAAiC,IAAI,CAAC;QACnD,gBAAW,GAA+B,IAAI,CAAC;QAC/C,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;IAgOzC,CAAC;IA9NiB,eAAS,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,iBAAiB,EAAE,IAAI,CAAC,CACpC,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,gBAAU,GAAxB,UAAyB,GAAW;QAChC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;aACzB,OAAO,CAAC,WAAW,EAAE,MA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AC5D,cAAc,EAAE,MAAA,IAAI,CAAC,eAAe,EAAE,0CAAE,MAAM,EAAE;YAChD,eAAe,EAAE,MAAA,IAAI,CAAC,gBAAgB,EAAE,0CAAE,MAAM,EAAE;YAClD,aAAa,EAAE,MAAA,IAAI,CAAC,cAAc,EAAE,0CAAE,MAAM,EAAE;YAC9C,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,YAAC;AAAD,CAAC,AA1OD,IA0OC"}
|
package/money2/model/Event.ts
CHANGED
|
@@ -24,6 +24,7 @@ import DepositTransaction from './DepositTransaction';
|
|
|
24
24
|
import WalletSummary from './WalletSummary';
|
|
25
25
|
import DepositEvent from './DepositEvent';
|
|
26
26
|
import WithdrawEvent from './WithdrawEvent';
|
|
27
|
+
import RefundEvent from './RefundEvent';
|
|
27
28
|
const grnFormat: string = "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:event:{transactionId}";
|
|
28
29
|
|
|
29
30
|
export default class Event implements IModel {
|
|
@@ -34,6 +35,7 @@ export default class Event implements IModel {
|
|
|
34
35
|
private verifyReceiptEvent: Gs2Money2.VerifyReceiptEvent|null = null;
|
|
35
36
|
private depositEvent: Gs2Money2.DepositEvent|null = null;
|
|
36
37
|
private withdrawEvent: Gs2Money2.WithdrawEvent|null = null;
|
|
38
|
+
private refundEvent: Gs2Money2.RefundEvent|null = null;
|
|
37
39
|
private createdAt: number|null = null;
|
|
38
40
|
private revision: number|null = null;
|
|
39
41
|
|
|
@@ -194,6 +196,17 @@ export default class Event implements IModel {
|
|
|
194
196
|
this.withdrawEvent = withdrawEvent;
|
|
195
197
|
return this;
|
|
196
198
|
}
|
|
199
|
+
public getRefundEvent(): Gs2Money2.RefundEvent|null {
|
|
200
|
+
return this.refundEvent;
|
|
201
|
+
}
|
|
202
|
+
public setRefundEvent(refundEvent: Gs2Money2.RefundEvent|null) {
|
|
203
|
+
this.refundEvent = refundEvent;
|
|
204
|
+
return this;
|
|
205
|
+
}
|
|
206
|
+
public withRefundEvent(refundEvent: Gs2Money2.RefundEvent|null): this {
|
|
207
|
+
this.refundEvent = refundEvent;
|
|
208
|
+
return this;
|
|
209
|
+
}
|
|
197
210
|
public getCreatedAt(): number|null {
|
|
198
211
|
return this.createdAt;
|
|
199
212
|
}
|
|
@@ -229,6 +242,7 @@ export default class Event implements IModel {
|
|
|
229
242
|
.withVerifyReceiptEvent(Gs2Money2.VerifyReceiptEvent.fromDict(data["verifyReceiptEvent"]))
|
|
230
243
|
.withDepositEvent(Gs2Money2.DepositEvent.fromDict(data["depositEvent"]))
|
|
231
244
|
.withWithdrawEvent(Gs2Money2.WithdrawEvent.fromDict(data["withdrawEvent"]))
|
|
245
|
+
.withRefundEvent(Gs2Money2.RefundEvent.fromDict(data["refundEvent"]))
|
|
232
246
|
.withCreatedAt(data["createdAt"])
|
|
233
247
|
.withRevision(data["revision"]);
|
|
234
248
|
}
|
|
@@ -242,6 +256,7 @@ export default class Event implements IModel {
|
|
|
242
256
|
"verifyReceiptEvent": this.getVerifyReceiptEvent()?.toDict(),
|
|
243
257
|
"depositEvent": this.getDepositEvent()?.toDict(),
|
|
244
258
|
"withdrawEvent": this.getWithdrawEvent()?.toDict(),
|
|
259
|
+
"refundEvent": this.getRefundEvent()?.toDict(),
|
|
245
260
|
"createdAt": this.getCreatedAt(),
|
|
246
261
|
"revision": this.getRevision(),
|
|
247
262
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class GooglePlayRealtimeNotificationMessage implements IModel {
|
|
3
|
+
private data;
|
|
4
|
+
private messageId;
|
|
5
|
+
private publishTime;
|
|
6
|
+
getData(): string | null;
|
|
7
|
+
setData(data: string | null): this;
|
|
8
|
+
withData(data: string | null): this;
|
|
9
|
+
getMessageId(): string | null;
|
|
10
|
+
setMessageId(messageId: string | null): this;
|
|
11
|
+
withMessageId(messageId: string | null): this;
|
|
12
|
+
getPublishTime(): string | null;
|
|
13
|
+
setPublishTime(publishTime: string | null): this;
|
|
14
|
+
withPublishTime(publishTime: string | null): this;
|
|
15
|
+
static fromDict(data: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}): GooglePlayRealtimeNotificationMessage | 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 GooglePlayRealtimeNotificationMessage = /** @class */ (function () {
|
|
19
|
+
function GooglePlayRealtimeNotificationMessage() {
|
|
20
|
+
this.data = null;
|
|
21
|
+
this.messageId = null;
|
|
22
|
+
this.publishTime = null;
|
|
23
|
+
}
|
|
24
|
+
GooglePlayRealtimeNotificationMessage.prototype.getData = function () {
|
|
25
|
+
return this.data;
|
|
26
|
+
};
|
|
27
|
+
GooglePlayRealtimeNotificationMessage.prototype.setData = function (data) {
|
|
28
|
+
this.data = data;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
GooglePlayRealtimeNotificationMessage.prototype.withData = function (data) {
|
|
32
|
+
this.data = data;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
GooglePlayRealtimeNotificationMessage.prototype.getMessageId = function () {
|
|
36
|
+
return this.messageId;
|
|
37
|
+
};
|
|
38
|
+
GooglePlayRealtimeNotificationMessage.prototype.setMessageId = function (messageId) {
|
|
39
|
+
this.messageId = messageId;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
GooglePlayRealtimeNotificationMessage.prototype.withMessageId = function (messageId) {
|
|
43
|
+
this.messageId = messageId;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
GooglePlayRealtimeNotificationMessage.prototype.getPublishTime = function () {
|
|
47
|
+
return this.publishTime;
|
|
48
|
+
};
|
|
49
|
+
GooglePlayRealtimeNotificationMessage.prototype.setPublishTime = function (publishTime) {
|
|
50
|
+
this.publishTime = publishTime;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
GooglePlayRealtimeNotificationMessage.prototype.withPublishTime = function (publishTime) {
|
|
54
|
+
this.publishTime = publishTime;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
GooglePlayRealtimeNotificationMessage.fromDict = function (data) {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new GooglePlayRealtimeNotificationMessage()
|
|
62
|
+
.withData(data["data"])
|
|
63
|
+
.withMessageId(data["messageId"])
|
|
64
|
+
.withPublishTime(data["publishTime"]);
|
|
65
|
+
};
|
|
66
|
+
GooglePlayRealtimeNotificationMessage.prototype.toDict = function () {
|
|
67
|
+
return {
|
|
68
|
+
"data": this.getData(),
|
|
69
|
+
"messageId": this.getMessageId(),
|
|
70
|
+
"publishTime": this.getPublishTime(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
return GooglePlayRealtimeNotificationMessage;
|
|
74
|
+
}());
|
|
75
|
+
exports.default = GooglePlayRealtimeNotificationMessage;
|
|
76
|
+
//# sourceMappingURL=GooglePlayRealtimeNotificationMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GooglePlayRealtimeNotificationMessage.js","sourceRoot":"","sources":["GooglePlayRealtimeNotificationMessage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,cAAS,GAAgB,IAAI,CAAC;QAC9B,gBAAW,GAAgB,IAAI,CAAC;IAoD5C,CAAC;IAnDU,uDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,uDAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,wDAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,4DAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IACM,4DAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6DAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8DAAc,GAArB;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IACM,8DAAc,GAArB,UAAsB,WAAwB;QAC1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+DAAe,GAAtB,UAAuB,WAAwB;QAC3C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,8CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,qCAAqC,EAAE;aAC7C,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IAC9C,CAAC;IAEM,sDAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;SACvC,CAAC;IACN,CAAC;IACL,4CAAC;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 GooglePlayRealtimeNotificationMessage implements IModel {
|
|
22
|
+
private data: string|null = null;
|
|
23
|
+
private messageId: string|null = null;
|
|
24
|
+
private publishTime: string|null = null;
|
|
25
|
+
public getData(): string|null {
|
|
26
|
+
return this.data;
|
|
27
|
+
}
|
|
28
|
+
public setData(data: string|null) {
|
|
29
|
+
this.data = data;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
public withData(data: string|null): this {
|
|
33
|
+
this.data = data;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
public getMessageId(): string|null {
|
|
37
|
+
return this.messageId;
|
|
38
|
+
}
|
|
39
|
+
public setMessageId(messageId: string|null) {
|
|
40
|
+
this.messageId = messageId;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
public withMessageId(messageId: string|null): this {
|
|
44
|
+
this.messageId = messageId;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
public getPublishTime(): string|null {
|
|
48
|
+
return this.publishTime;
|
|
49
|
+
}
|
|
50
|
+
public setPublishTime(publishTime: string|null) {
|
|
51
|
+
this.publishTime = publishTime;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
public withPublishTime(publishTime: string|null): this {
|
|
55
|
+
this.publishTime = publishTime;
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public static fromDict(data: {[key: string]: any}): GooglePlayRealtimeNotificationMessage|null {
|
|
60
|
+
if (data == undefined || data == null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return new GooglePlayRealtimeNotificationMessage()
|
|
64
|
+
.withData(data["data"])
|
|
65
|
+
.withMessageId(data["messageId"])
|
|
66
|
+
.withPublishTime(data["publishTime"]);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public toDict(): {[key: string]: any} {
|
|
70
|
+
return {
|
|
71
|
+
"data": this.getData(),
|
|
72
|
+
"messageId": this.getMessageId(),
|
|
73
|
+
"publishTime": this.getPublishTime(),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -2,12 +2,16 @@ import IModel from '../../core/interface/IModel';
|
|
|
2
2
|
export default class GooglePlaySetting implements IModel {
|
|
3
3
|
private packageName;
|
|
4
4
|
private publicKey;
|
|
5
|
+
private credentialsJSON;
|
|
5
6
|
getPackageName(): string | null;
|
|
6
7
|
setPackageName(packageName: string | null): this;
|
|
7
8
|
withPackageName(packageName: string | null): this;
|
|
8
9
|
getPublicKey(): string | null;
|
|
9
10
|
setPublicKey(publicKey: string | null): this;
|
|
10
11
|
withPublicKey(publicKey: string | null): this;
|
|
12
|
+
getCredentialsJSON(): string | null;
|
|
13
|
+
setCredentialsJSON(credentialsJSON: string | null): this;
|
|
14
|
+
withCredentialsJSON(credentialsJSON: string | null): this;
|
|
11
15
|
static fromDict(data: {
|
|
12
16
|
[key: string]: any;
|
|
13
17
|
}): GooglePlaySetting | null;
|
|
@@ -19,6 +19,7 @@ var GooglePlaySetting = /** @class */ (function () {
|
|
|
19
19
|
function GooglePlaySetting() {
|
|
20
20
|
this.packageName = null;
|
|
21
21
|
this.publicKey = null;
|
|
22
|
+
this.credentialsJSON = null;
|
|
22
23
|
}
|
|
23
24
|
GooglePlaySetting.prototype.getPackageName = function () {
|
|
24
25
|
return this.packageName;
|
|
@@ -42,18 +43,31 @@ var GooglePlaySetting = /** @class */ (function () {
|
|
|
42
43
|
this.publicKey = publicKey;
|
|
43
44
|
return this;
|
|
44
45
|
};
|
|
46
|
+
GooglePlaySetting.prototype.getCredentialsJSON = function () {
|
|
47
|
+
return this.credentialsJSON;
|
|
48
|
+
};
|
|
49
|
+
GooglePlaySetting.prototype.setCredentialsJSON = function (credentialsJSON) {
|
|
50
|
+
this.credentialsJSON = credentialsJSON;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
GooglePlaySetting.prototype.withCredentialsJSON = function (credentialsJSON) {
|
|
54
|
+
this.credentialsJSON = credentialsJSON;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
45
57
|
GooglePlaySetting.fromDict = function (data) {
|
|
46
58
|
if (data == undefined || data == null) {
|
|
47
59
|
return null;
|
|
48
60
|
}
|
|
49
61
|
return new GooglePlaySetting()
|
|
50
62
|
.withPackageName(data["packageName"])
|
|
51
|
-
.withPublicKey(data["publicKey"])
|
|
63
|
+
.withPublicKey(data["publicKey"])
|
|
64
|
+
.withCredentialsJSON(data["credentialsJSON"]);
|
|
52
65
|
};
|
|
53
66
|
GooglePlaySetting.prototype.toDict = function () {
|
|
54
67
|
return {
|
|
55
68
|
"packageName": this.getPackageName(),
|
|
56
69
|
"publicKey": this.getPublicKey(),
|
|
70
|
+
"credentialsJSON": this.getCredentialsJSON(),
|
|
57
71
|
};
|
|
58
72
|
};
|
|
59
73
|
return GooglePlaySetting;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GooglePlaySetting.js","sourceRoot":"","sources":["GooglePlaySetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,cAAS,GAAgB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"GooglePlaySetting.js","sourceRoot":"","sources":["GooglePlaySetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,cAAS,GAAgB,IAAI,CAAC;QAC9B,oBAAe,GAAgB,IAAI,CAAC;IAoDhD,CAAC;IAnDU,0CAAc,GAArB;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IACM,0CAAc,GAArB,UAAsB,WAAwB;QAC1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,2CAAe,GAAtB,UAAuB,WAAwB;QAC3C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,wCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IACM,wCAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8CAAkB,GAAzB;QACI,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IACM,8CAAkB,GAAzB,UAA0B,eAA4B;QAClD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+CAAmB,GAA1B,UAA2B,eAA4B;QACnD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,0BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,iBAAiB,EAAE;aACzB,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtD,CAAC;IAEM,kCAAM,GAAb;QACI,OAAO;YACH,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;SAC/C,CAAC;IACN,CAAC;IACL,wBAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
|
@@ -21,6 +21,7 @@ import * as Gs2Money2 from '../../money2/model'
|
|
|
21
21
|
export default class GooglePlaySetting implements IModel {
|
|
22
22
|
private packageName: string|null = null;
|
|
23
23
|
private publicKey: string|null = null;
|
|
24
|
+
private credentialsJSON: string|null = null;
|
|
24
25
|
public getPackageName(): string|null {
|
|
25
26
|
return this.packageName;
|
|
26
27
|
}
|
|
@@ -43,6 +44,17 @@ export default class GooglePlaySetting implements IModel {
|
|
|
43
44
|
this.publicKey = publicKey;
|
|
44
45
|
return this;
|
|
45
46
|
}
|
|
47
|
+
public getCredentialsJSON(): string|null {
|
|
48
|
+
return this.credentialsJSON;
|
|
49
|
+
}
|
|
50
|
+
public setCredentialsJSON(credentialsJSON: string|null) {
|
|
51
|
+
this.credentialsJSON = credentialsJSON;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
public withCredentialsJSON(credentialsJSON: string|null): this {
|
|
55
|
+
this.credentialsJSON = credentialsJSON;
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
46
58
|
|
|
47
59
|
public static fromDict(data: {[key: string]: any}): GooglePlaySetting|null {
|
|
48
60
|
if (data == undefined || data == null) {
|
|
@@ -50,13 +62,15 @@ export default class GooglePlaySetting implements IModel {
|
|
|
50
62
|
}
|
|
51
63
|
return new GooglePlaySetting()
|
|
52
64
|
.withPackageName(data["packageName"])
|
|
53
|
-
.withPublicKey(data["publicKey"])
|
|
65
|
+
.withPublicKey(data["publicKey"])
|
|
66
|
+
.withCredentialsJSON(data["credentialsJSON"]);
|
|
54
67
|
}
|
|
55
68
|
|
|
56
69
|
public toDict(): {[key: string]: any} {
|
|
57
70
|
return {
|
|
58
71
|
"packageName": this.getPackageName(),
|
|
59
72
|
"publicKey": this.getPublicKey(),
|
|
73
|
+
"credentialsJSON": this.getCredentialsJSON(),
|
|
60
74
|
};
|
|
61
75
|
}
|
|
62
76
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import * as Gs2Money2 from '../../money2/model';
|
|
3
|
+
export default class RefundEvent implements IModel {
|
|
4
|
+
private contentName;
|
|
5
|
+
private platform;
|
|
6
|
+
private appleAppStoreRefundEvent;
|
|
7
|
+
private googlePlayRefundEvent;
|
|
8
|
+
getContentName(): string | null;
|
|
9
|
+
setContentName(contentName: string | null): this;
|
|
10
|
+
withContentName(contentName: string | null): this;
|
|
11
|
+
getPlatform(): string | null;
|
|
12
|
+
setPlatform(platform: string | null): this;
|
|
13
|
+
withPlatform(platform: string | null): this;
|
|
14
|
+
getAppleAppStoreRefundEvent(): Gs2Money2.AppleAppStoreVerifyReceiptEvent | null;
|
|
15
|
+
setAppleAppStoreRefundEvent(appleAppStoreRefundEvent: Gs2Money2.AppleAppStoreVerifyReceiptEvent | null): this;
|
|
16
|
+
withAppleAppStoreRefundEvent(appleAppStoreRefundEvent: Gs2Money2.AppleAppStoreVerifyReceiptEvent | null): this;
|
|
17
|
+
getGooglePlayRefundEvent(): Gs2Money2.GooglePlayVerifyReceiptEvent | null;
|
|
18
|
+
setGooglePlayRefundEvent(googlePlayRefundEvent: Gs2Money2.GooglePlayVerifyReceiptEvent | null): this;
|
|
19
|
+
withGooglePlayRefundEvent(googlePlayRefundEvent: Gs2Money2.GooglePlayVerifyReceiptEvent | null): this;
|
|
20
|
+
static fromDict(data: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}): RefundEvent | null;
|
|
23
|
+
toDict(): {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
}
|