gs2 1.4.55 → 1.4.57
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 +4 -4
- package/money2/model/AppleAppStoreSetting.js +9 -9
- package/money2/model/AppleAppStoreSetting.js.map +1 -1
- package/money2/model/AppleAppStoreSetting.ts +9 -9
- package/money2/model/AppleAppStoreSubscriptionContent.d.ts +13 -0
- package/money2/model/AppleAppStoreSubscriptionContent.js +48 -0
- package/money2/model/AppleAppStoreSubscriptionContent.js.map +1 -0
- package/money2/model/AppleAppStoreSubscriptionContent.ts +48 -0
- package/money2/model/GooglePlaySubscriptionContent.d.ts +13 -0
- package/money2/model/GooglePlaySubscriptionContent.js +48 -0
- package/money2/model/GooglePlaySubscriptionContent.js.map +1 -0
- package/money2/model/GooglePlaySubscriptionContent.ts +48 -0
- package/money2/model/StoreSubscriptionContentModel.d.ts +44 -0
- package/money2/model/StoreSubscriptionContentModel.js +202 -0
- package/money2/model/StoreSubscriptionContentModel.js.map +1 -0
- package/money2/model/StoreSubscriptionContentModel.ts +216 -0
- package/money2/model/StoreSubscriptionContentModelMaster.d.ts +60 -0
- package/money2/model/StoreSubscriptionContentModelMaster.js +258 -0
- package/money2/model/StoreSubscriptionContentModelMaster.js.map +1 -0
- package/money2/model/StoreSubscriptionContentModelMaster.ts +272 -0
- package/money2/model/SubscribeTransaction.d.ts +6 -5
- package/money2/model/SubscribeTransaction.js +36 -16
- package/money2/model/SubscribeTransaction.js.map +1 -1
- package/money2/model/SubscribeTransaction.ts +38 -15
- package/money2/model/SubscriptionStatus.d.ts +32 -0
- package/money2/model/SubscriptionStatus.js +119 -0
- package/money2/model/SubscriptionStatus.js.map +1 -0
- package/money2/model/SubscriptionStatus.ts +123 -0
- package/money2/model/index.d.ts +6 -1
- package/money2/model/index.js +11 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +10 -0
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.d.ts +50 -0
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.js +170 -0
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.js.map +1 -0
- package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.ts +174 -0
- package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.d.ts +25 -0
- package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.js +83 -0
- package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.js.map +1 -0
- package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.ts +90 -0
- package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.d.ts +29 -0
- package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.js +97 -0
- package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.js.map +1 -0
- package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.ts +104 -0
- package/money2/request/DescribeStoreSubscriptionContentModelsRequest.d.ts +21 -0
- package/money2/request/DescribeStoreSubscriptionContentModelsRequest.js +69 -0
- package/money2/request/DescribeStoreSubscriptionContentModelsRequest.js.map +1 -0
- package/money2/request/DescribeStoreSubscriptionContentModelsRequest.ts +76 -0
- package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.d.ts +29 -0
- package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.js +97 -0
- package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.js.map +1 -0
- package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.ts +104 -0
- package/money2/request/DescribeSubscriptionStatusesRequest.d.ts +25 -0
- package/money2/request/DescribeSubscriptionStatusesRequest.js +83 -0
- package/money2/request/DescribeSubscriptionStatusesRequest.js.map +1 -0
- package/money2/request/DescribeSubscriptionStatusesRequest.ts +90 -0
- package/money2/request/GetStoreSubscriptionContentModelMasterRequest.d.ts +25 -0
- package/money2/request/GetStoreSubscriptionContentModelMasterRequest.js +83 -0
- package/money2/request/GetStoreSubscriptionContentModelMasterRequest.js.map +1 -0
- package/money2/request/GetStoreSubscriptionContentModelMasterRequest.ts +90 -0
- package/money2/request/GetStoreSubscriptionContentModelRequest.d.ts +25 -0
- package/money2/request/GetStoreSubscriptionContentModelRequest.js +83 -0
- package/money2/request/GetStoreSubscriptionContentModelRequest.js.map +1 -0
- package/money2/request/GetStoreSubscriptionContentModelRequest.ts +90 -0
- package/money2/request/GetSubscriptionStatusByUserIdRequest.d.ts +33 -0
- package/money2/request/GetSubscriptionStatusByUserIdRequest.js +111 -0
- package/money2/request/GetSubscriptionStatusByUserIdRequest.js.map +1 -0
- package/money2/request/GetSubscriptionStatusByUserIdRequest.ts +118 -0
- package/money2/request/GetSubscriptionStatusRequest.d.ts +29 -0
- package/money2/request/GetSubscriptionStatusRequest.js +97 -0
- package/money2/request/GetSubscriptionStatusRequest.js.map +1 -0
- package/money2/request/GetSubscriptionStatusRequest.ts +104 -0
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.d.ts +50 -0
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.js +170 -0
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.js.map +1 -0
- package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.ts +174 -0
- package/money2/request/index.d.ts +12 -1
- package/money2/request/index.js +24 -1
- package/money2/request/index.js.map +1 -1
- package/money2/request/index.ts +22 -0
- package/money2/rest.d.ts +11 -0
- package/money2/rest.js +285 -0
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +329 -0
- package/money2/result/CreateStoreSubscriptionContentModelMasterResult.d.ts +14 -0
- package/money2/result/CreateStoreSubscriptionContentModelMasterResult.js +48 -0
- package/money2/result/CreateStoreSubscriptionContentModelMasterResult.js.map +1 -0
- package/money2/result/CreateStoreSubscriptionContentModelMasterResult.ts +47 -0
- package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.d.ts +14 -0
- package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.js +48 -0
- package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.js.map +1 -0
- package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.ts +47 -0
- package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.d.ts +18 -0
- package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.js +67 -0
- package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.js.map +1 -0
- package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.ts +72 -0
- package/money2/result/DescribeStoreSubscriptionContentModelsResult.d.ts +14 -0
- package/money2/result/DescribeStoreSubscriptionContentModelsResult.js +53 -0
- package/money2/result/DescribeStoreSubscriptionContentModelsResult.js.map +1 -0
- package/money2/result/DescribeStoreSubscriptionContentModelsResult.ts +55 -0
- package/money2/result/DescribeSubscriptionStatusesByUserIdResult.d.ts +14 -0
- package/money2/result/DescribeSubscriptionStatusesByUserIdResult.js +53 -0
- package/money2/result/DescribeSubscriptionStatusesByUserIdResult.js.map +1 -0
- package/money2/result/DescribeSubscriptionStatusesByUserIdResult.ts +55 -0
- package/money2/result/DescribeSubscriptionStatusesResult.d.ts +14 -0
- package/money2/result/DescribeSubscriptionStatusesResult.js +53 -0
- package/money2/result/DescribeSubscriptionStatusesResult.js.map +1 -0
- package/money2/result/DescribeSubscriptionStatusesResult.ts +55 -0
- package/money2/result/GetStoreSubscriptionContentModelMasterResult.d.ts +14 -0
- package/money2/result/GetStoreSubscriptionContentModelMasterResult.js +48 -0
- package/money2/result/GetStoreSubscriptionContentModelMasterResult.js.map +1 -0
- package/money2/result/GetStoreSubscriptionContentModelMasterResult.ts +47 -0
- package/money2/result/GetStoreSubscriptionContentModelResult.d.ts +14 -0
- package/money2/result/GetStoreSubscriptionContentModelResult.js +48 -0
- package/money2/result/GetStoreSubscriptionContentModelResult.js.map +1 -0
- package/money2/result/GetStoreSubscriptionContentModelResult.ts +47 -0
- package/money2/result/GetSubscriptionStatusByUserIdResult.d.ts +14 -0
- package/money2/result/GetSubscriptionStatusByUserIdResult.js +48 -0
- package/money2/result/GetSubscriptionStatusByUserIdResult.js.map +1 -0
- package/money2/result/GetSubscriptionStatusByUserIdResult.ts +47 -0
- package/money2/result/GetSubscriptionStatusResult.d.ts +14 -0
- package/money2/result/GetSubscriptionStatusResult.js +48 -0
- package/money2/result/GetSubscriptionStatusResult.js.map +1 -0
- package/money2/result/GetSubscriptionStatusResult.ts +47 -0
- package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.d.ts +14 -0
- package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.js +48 -0
- package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.js.map +1 -0
- package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.ts +47 -0
- package/money2/result/index.d.ts +12 -1
- package/money2/result/index.js +24 -1
- package/money2/result/index.js.map +1 -1
- package/money2/result/index.ts +22 -0
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
2
|
export default class AppleAppStoreSetting implements IModel {
|
|
3
3
|
private bundleId;
|
|
4
|
-
private
|
|
4
|
+
private issuerId;
|
|
5
5
|
private keyId;
|
|
6
6
|
private privateKeyPem;
|
|
7
7
|
getBundleId(): string | null;
|
|
8
8
|
setBundleId(bundleId: string | null): this;
|
|
9
9
|
withBundleId(bundleId: string | null): this;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
getIssuerId(): string | null;
|
|
11
|
+
setIssuerId(issuerId: string | null): this;
|
|
12
|
+
withIssuerId(issuerId: string | null): this;
|
|
13
13
|
getKeyId(): string | null;
|
|
14
14
|
setKeyId(keyId: string | null): this;
|
|
15
15
|
withKeyId(keyId: string | null): this;
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
var AppleAppStoreSetting = /** @class */ (function () {
|
|
19
19
|
function AppleAppStoreSetting() {
|
|
20
20
|
this.bundleId = null;
|
|
21
|
-
this.
|
|
21
|
+
this.issuerId = null;
|
|
22
22
|
this.keyId = null;
|
|
23
23
|
this.privateKeyPem = null;
|
|
24
24
|
}
|
|
@@ -33,15 +33,15 @@ var AppleAppStoreSetting = /** @class */ (function () {
|
|
|
33
33
|
this.bundleId = bundleId;
|
|
34
34
|
return this;
|
|
35
35
|
};
|
|
36
|
-
AppleAppStoreSetting.prototype.
|
|
37
|
-
return this.
|
|
36
|
+
AppleAppStoreSetting.prototype.getIssuerId = function () {
|
|
37
|
+
return this.issuerId;
|
|
38
38
|
};
|
|
39
|
-
AppleAppStoreSetting.prototype.
|
|
40
|
-
this.
|
|
39
|
+
AppleAppStoreSetting.prototype.setIssuerId = function (issuerId) {
|
|
40
|
+
this.issuerId = issuerId;
|
|
41
41
|
return this;
|
|
42
42
|
};
|
|
43
|
-
AppleAppStoreSetting.prototype.
|
|
44
|
-
this.
|
|
43
|
+
AppleAppStoreSetting.prototype.withIssuerId = function (issuerId) {
|
|
44
|
+
this.issuerId = issuerId;
|
|
45
45
|
return this;
|
|
46
46
|
};
|
|
47
47
|
AppleAppStoreSetting.prototype.getKeyId = function () {
|
|
@@ -72,14 +72,14 @@ var AppleAppStoreSetting = /** @class */ (function () {
|
|
|
72
72
|
}
|
|
73
73
|
return new AppleAppStoreSetting()
|
|
74
74
|
.withBundleId(data["bundleId"])
|
|
75
|
-
.
|
|
75
|
+
.withIssuerId(data["issuerId"])
|
|
76
76
|
.withKeyId(data["keyId"])
|
|
77
77
|
.withPrivateKeyPem(data["privateKeyPem"]);
|
|
78
78
|
};
|
|
79
79
|
AppleAppStoreSetting.prototype.toDict = function () {
|
|
80
80
|
return {
|
|
81
81
|
"bundleId": this.getBundleId(),
|
|
82
|
-
"
|
|
82
|
+
"issuerId": this.getIssuerId(),
|
|
83
83
|
"keyId": this.getKeyId(),
|
|
84
84
|
"privateKeyPem": this.getPrivateKeyPem(),
|
|
85
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppleAppStoreSetting.js","sourceRoot":"","sources":["AppleAppStoreSetting.ts"],"names":[],"m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AC;IAChB,CAAC;IACM,+CAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;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,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,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,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;SAC3C,CAAC;IACN,CAAC;IACL,2BAAC;AAAD,CAAC,AArED,IAqEC"}
|
|
@@ -20,7 +20,7 @@ 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
|
|
23
|
+
private issuerId: string|null = null;
|
|
24
24
|
private keyId: string|null = null;
|
|
25
25
|
private privateKeyPem: string|null = null;
|
|
26
26
|
public getBundleId(): string|null {
|
|
@@ -34,15 +34,15 @@ export default class AppleAppStoreSetting implements IModel {
|
|
|
34
34
|
this.bundleId = bundleId;
|
|
35
35
|
return this;
|
|
36
36
|
}
|
|
37
|
-
public
|
|
38
|
-
return this.
|
|
37
|
+
public getIssuerId(): string|null {
|
|
38
|
+
return this.issuerId;
|
|
39
39
|
}
|
|
40
|
-
public
|
|
41
|
-
this.
|
|
40
|
+
public setIssuerId(issuerId: string|null) {
|
|
41
|
+
this.issuerId = issuerId;
|
|
42
42
|
return this;
|
|
43
43
|
}
|
|
44
|
-
public
|
|
45
|
-
this.
|
|
44
|
+
public withIssuerId(issuerId: string|null): this {
|
|
45
|
+
this.issuerId = issuerId;
|
|
46
46
|
return this;
|
|
47
47
|
}
|
|
48
48
|
public getKeyId(): string|null {
|
|
@@ -74,7 +74,7 @@ export default class AppleAppStoreSetting implements IModel {
|
|
|
74
74
|
}
|
|
75
75
|
return new AppleAppStoreSetting()
|
|
76
76
|
.withBundleId(data["bundleId"])
|
|
77
|
-
.
|
|
77
|
+
.withIssuerId(data["issuerId"])
|
|
78
78
|
.withKeyId(data["keyId"])
|
|
79
79
|
.withPrivateKeyPem(data["privateKeyPem"]);
|
|
80
80
|
}
|
|
@@ -82,7 +82,7 @@ export default class AppleAppStoreSetting implements IModel {
|
|
|
82
82
|
public toDict(): {[key: string]: any} {
|
|
83
83
|
return {
|
|
84
84
|
"bundleId": this.getBundleId(),
|
|
85
|
-
"
|
|
85
|
+
"issuerId": this.getIssuerId(),
|
|
86
86
|
"keyId": this.getKeyId(),
|
|
87
87
|
"privateKeyPem": this.getPrivateKeyPem(),
|
|
88
88
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class AppleAppStoreSubscriptionContent implements IModel {
|
|
3
|
+
private subscriptionGroupIdentifier;
|
|
4
|
+
getSubscriptionGroupIdentifier(): string | null;
|
|
5
|
+
setSubscriptionGroupIdentifier(subscriptionGroupIdentifier: string | null): this;
|
|
6
|
+
withSubscriptionGroupIdentifier(subscriptionGroupIdentifier: string | null): this;
|
|
7
|
+
static fromDict(data: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}): AppleAppStoreSubscriptionContent | null;
|
|
10
|
+
toDict(): {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AppleAppStoreSubscriptionContent = /** @class */ (function () {
|
|
19
|
+
function AppleAppStoreSubscriptionContent() {
|
|
20
|
+
this.subscriptionGroupIdentifier = null;
|
|
21
|
+
}
|
|
22
|
+
AppleAppStoreSubscriptionContent.prototype.getSubscriptionGroupIdentifier = function () {
|
|
23
|
+
return this.subscriptionGroupIdentifier;
|
|
24
|
+
};
|
|
25
|
+
AppleAppStoreSubscriptionContent.prototype.setSubscriptionGroupIdentifier = function (subscriptionGroupIdentifier) {
|
|
26
|
+
this.subscriptionGroupIdentifier = subscriptionGroupIdentifier;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
AppleAppStoreSubscriptionContent.prototype.withSubscriptionGroupIdentifier = function (subscriptionGroupIdentifier) {
|
|
30
|
+
this.subscriptionGroupIdentifier = subscriptionGroupIdentifier;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
AppleAppStoreSubscriptionContent.fromDict = function (data) {
|
|
34
|
+
if (data == undefined || data == null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return new AppleAppStoreSubscriptionContent()
|
|
38
|
+
.withSubscriptionGroupIdentifier(data["subscriptionGroupIdentifier"]);
|
|
39
|
+
};
|
|
40
|
+
AppleAppStoreSubscriptionContent.prototype.toDict = function () {
|
|
41
|
+
return {
|
|
42
|
+
"subscriptionGroupIdentifier": this.getSubscriptionGroupIdentifier(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return AppleAppStoreSubscriptionContent;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = AppleAppStoreSubscriptionContent;
|
|
48
|
+
//# sourceMappingURL=AppleAppStoreSubscriptionContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppleAppStoreSubscriptionContent.js","sourceRoot":"","sources":["AppleAppStoreSubscriptionContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,gCAA2B,GAAgB,IAAI,CAAC;IA0B5D,CAAC;IAzBU,yEAA8B,GAArC;QACI,OAAO,IAAI,CAAC,2BAA2B,CAAC;IAC5C,CAAC;IACM,yEAA8B,GAArC,UAAsC,2BAAwC;QAC1E,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;QAC/D,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0EAA+B,GAAtC,UAAuC,2BAAwC;QAC3E,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;QAC/D,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,gCAAgC,EAAE;aACxC,+BAA+B,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC9E,CAAC;IAEM,iDAAM,GAAb;QACI,OAAO;YACH,6BAA6B,EAAE,IAAI,CAAC,8BAA8B,EAAE;SACvE,CAAC;IACN,CAAC;IACL,uCAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AppleAppStoreSubscriptionContent implements IModel {
|
|
22
|
+
private subscriptionGroupIdentifier: string|null = null;
|
|
23
|
+
public getSubscriptionGroupIdentifier(): string|null {
|
|
24
|
+
return this.subscriptionGroupIdentifier;
|
|
25
|
+
}
|
|
26
|
+
public setSubscriptionGroupIdentifier(subscriptionGroupIdentifier: string|null) {
|
|
27
|
+
this.subscriptionGroupIdentifier = subscriptionGroupIdentifier;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withSubscriptionGroupIdentifier(subscriptionGroupIdentifier: string|null): this {
|
|
31
|
+
this.subscriptionGroupIdentifier = subscriptionGroupIdentifier;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public static fromDict(data: {[key: string]: any}): AppleAppStoreSubscriptionContent|null {
|
|
36
|
+
if (data == undefined || data == null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return new AppleAppStoreSubscriptionContent()
|
|
40
|
+
.withSubscriptionGroupIdentifier(data["subscriptionGroupIdentifier"]);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"subscriptionGroupIdentifier": this.getSubscriptionGroupIdentifier(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class GooglePlaySubscriptionContent implements IModel {
|
|
3
|
+
private productId;
|
|
4
|
+
getProductId(): string | null;
|
|
5
|
+
setProductId(productId: string | null): this;
|
|
6
|
+
withProductId(productId: string | null): this;
|
|
7
|
+
static fromDict(data: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}): GooglePlaySubscriptionContent | null;
|
|
10
|
+
toDict(): {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 GooglePlaySubscriptionContent = /** @class */ (function () {
|
|
19
|
+
function GooglePlaySubscriptionContent() {
|
|
20
|
+
this.productId = null;
|
|
21
|
+
}
|
|
22
|
+
GooglePlaySubscriptionContent.prototype.getProductId = function () {
|
|
23
|
+
return this.productId;
|
|
24
|
+
};
|
|
25
|
+
GooglePlaySubscriptionContent.prototype.setProductId = function (productId) {
|
|
26
|
+
this.productId = productId;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
GooglePlaySubscriptionContent.prototype.withProductId = function (productId) {
|
|
30
|
+
this.productId = productId;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
GooglePlaySubscriptionContent.fromDict = function (data) {
|
|
34
|
+
if (data == undefined || data == null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return new GooglePlaySubscriptionContent()
|
|
38
|
+
.withProductId(data["productId"]);
|
|
39
|
+
};
|
|
40
|
+
GooglePlaySubscriptionContent.prototype.toDict = function () {
|
|
41
|
+
return {
|
|
42
|
+
"productId": this.getProductId(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return GooglePlaySubscriptionContent;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = GooglePlaySubscriptionContent;
|
|
48
|
+
//# sourceMappingURL=GooglePlaySubscriptionContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GooglePlaySubscriptionContent.js","sourceRoot":"","sources":["GooglePlaySubscriptionContent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,cAAS,GAAgB,IAAI,CAAC;IA0B1C,CAAC;IAzBU,oDAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IACM,oDAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,qDAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,6BAA6B,EAAE;aACrC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,8CAAM,GAAb;QACI,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;SACnC,CAAC;IACN,CAAC;IACL,oCAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 GooglePlaySubscriptionContent implements IModel {
|
|
22
|
+
private productId: string|null = null;
|
|
23
|
+
public getProductId(): string|null {
|
|
24
|
+
return this.productId;
|
|
25
|
+
}
|
|
26
|
+
public setProductId(productId: string|null) {
|
|
27
|
+
this.productId = productId;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withProductId(productId: string|null): this {
|
|
31
|
+
this.productId = productId;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public static fromDict(data: {[key: string]: any}): GooglePlaySubscriptionContent|null {
|
|
36
|
+
if (data == undefined || data == null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return new GooglePlaySubscriptionContent()
|
|
40
|
+
.withProductId(data["productId"]);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"productId": this.getProductId(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import * as Gs2Money2 from '../../money2/model';
|
|
3
|
+
export default class StoreSubscriptionContentModel implements IModel {
|
|
4
|
+
private storeSubscriptionContentModelId;
|
|
5
|
+
private name;
|
|
6
|
+
private metadata;
|
|
7
|
+
private scheduleNamespaceId;
|
|
8
|
+
private triggerName;
|
|
9
|
+
private appleAppStore;
|
|
10
|
+
private googlePlay;
|
|
11
|
+
static getRegion(grn: string): string | null;
|
|
12
|
+
static getOwnerId(grn: string): string | null;
|
|
13
|
+
static getNamespaceName(grn: string): string | null;
|
|
14
|
+
static getContentName(grn: string): string | null;
|
|
15
|
+
static isValid(grn: string): boolean;
|
|
16
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, contentName: string | null): string | null;
|
|
17
|
+
getStoreSubscriptionContentModelId(): string | null;
|
|
18
|
+
setStoreSubscriptionContentModelId(storeSubscriptionContentModelId: string | null): this;
|
|
19
|
+
withStoreSubscriptionContentModelId(storeSubscriptionContentModelId: string | null): this;
|
|
20
|
+
getName(): string | null;
|
|
21
|
+
setName(name: string | null): this;
|
|
22
|
+
withName(name: string | null): this;
|
|
23
|
+
getMetadata(): string | null;
|
|
24
|
+
setMetadata(metadata: string | null): this;
|
|
25
|
+
withMetadata(metadata: string | null): this;
|
|
26
|
+
getScheduleNamespaceId(): string | null;
|
|
27
|
+
setScheduleNamespaceId(scheduleNamespaceId: string | null): this;
|
|
28
|
+
withScheduleNamespaceId(scheduleNamespaceId: string | null): this;
|
|
29
|
+
getTriggerName(): string | null;
|
|
30
|
+
setTriggerName(triggerName: string | null): this;
|
|
31
|
+
withTriggerName(triggerName: string | null): this;
|
|
32
|
+
getAppleAppStore(): Gs2Money2.AppleAppStoreSubscriptionContent | null;
|
|
33
|
+
setAppleAppStore(appleAppStore: Gs2Money2.AppleAppStoreSubscriptionContent | null): this;
|
|
34
|
+
withAppleAppStore(appleAppStore: Gs2Money2.AppleAppStoreSubscriptionContent | null): this;
|
|
35
|
+
getGooglePlay(): Gs2Money2.GooglePlaySubscriptionContent | null;
|
|
36
|
+
setGooglePlay(googlePlay: Gs2Money2.GooglePlaySubscriptionContent | null): this;
|
|
37
|
+
withGooglePlay(googlePlay: Gs2Money2.GooglePlaySubscriptionContent | null): this;
|
|
38
|
+
static fromDict(data: {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}): StoreSubscriptionContentModel | null;
|
|
41
|
+
toDict(): {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
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 tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Money2 = tslib_1.__importStar(require("../../money2/model"));
|
|
20
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:model:subscription:content:{contentName}";
|
|
21
|
+
var StoreSubscriptionContentModel = /** @class */ (function () {
|
|
22
|
+
function StoreSubscriptionContentModel() {
|
|
23
|
+
this.storeSubscriptionContentModelId = null;
|
|
24
|
+
this.name = null;
|
|
25
|
+
this.metadata = null;
|
|
26
|
+
this.scheduleNamespaceId = null;
|
|
27
|
+
this.triggerName = null;
|
|
28
|
+
this.appleAppStore = null;
|
|
29
|
+
this.googlePlay = null;
|
|
30
|
+
}
|
|
31
|
+
StoreSubscriptionContentModel.getRegion = function (grn) {
|
|
32
|
+
var match = grn.match(grnFormat
|
|
33
|
+
.replace('{region}', '(.*)')
|
|
34
|
+
.replace('{ownerId}', '.*')
|
|
35
|
+
.replace('{namespaceName}', '.*')
|
|
36
|
+
.replace('{contentName}', '.*'));
|
|
37
|
+
if (match) {
|
|
38
|
+
return match[1];
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
};
|
|
42
|
+
StoreSubscriptionContentModel.getOwnerId = function (grn) {
|
|
43
|
+
var match = grn.match(grnFormat
|
|
44
|
+
.replace('{region}', '.*')
|
|
45
|
+
.replace('{ownerId}', '(.*)')
|
|
46
|
+
.replace('{namespaceName}', '.*')
|
|
47
|
+
.replace('{contentName}', '.*'));
|
|
48
|
+
if (match) {
|
|
49
|
+
return match[1];
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
};
|
|
53
|
+
StoreSubscriptionContentModel.getNamespaceName = function (grn) {
|
|
54
|
+
var match = grn.match(grnFormat
|
|
55
|
+
.replace('{region}', '.*')
|
|
56
|
+
.replace('{ownerId}', '.*')
|
|
57
|
+
.replace('{namespaceName}', '(.*)')
|
|
58
|
+
.replace('{contentName}', '.*'));
|
|
59
|
+
if (match) {
|
|
60
|
+
return match[1];
|
|
61
|
+
}
|
|
62
|
+
return null;
|
|
63
|
+
};
|
|
64
|
+
StoreSubscriptionContentModel.getContentName = function (grn) {
|
|
65
|
+
var match = grn.match(grnFormat
|
|
66
|
+
.replace('{region}', '.*')
|
|
67
|
+
.replace('{ownerId}', '.*')
|
|
68
|
+
.replace('{namespaceName}', '.*')
|
|
69
|
+
.replace('{contentName}', '(.*)'));
|
|
70
|
+
if (match) {
|
|
71
|
+
return match[1];
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
};
|
|
75
|
+
StoreSubscriptionContentModel.isValid = function (grn) {
|
|
76
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
if (this.getContentName(grn) == null || this.getContentName(grn) === '') {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
};
|
|
90
|
+
StoreSubscriptionContentModel.createGrn = function (region, ownerId, namespaceName, contentName) {
|
|
91
|
+
return grnFormat
|
|
92
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
93
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
94
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
95
|
+
.replace('{contentName}', contentName !== null && contentName !== void 0 ? contentName : '');
|
|
96
|
+
};
|
|
97
|
+
StoreSubscriptionContentModel.prototype.getStoreSubscriptionContentModelId = function () {
|
|
98
|
+
return this.storeSubscriptionContentModelId;
|
|
99
|
+
};
|
|
100
|
+
StoreSubscriptionContentModel.prototype.setStoreSubscriptionContentModelId = function (storeSubscriptionContentModelId) {
|
|
101
|
+
this.storeSubscriptionContentModelId = storeSubscriptionContentModelId;
|
|
102
|
+
return this;
|
|
103
|
+
};
|
|
104
|
+
StoreSubscriptionContentModel.prototype.withStoreSubscriptionContentModelId = function (storeSubscriptionContentModelId) {
|
|
105
|
+
this.storeSubscriptionContentModelId = storeSubscriptionContentModelId;
|
|
106
|
+
return this;
|
|
107
|
+
};
|
|
108
|
+
StoreSubscriptionContentModel.prototype.getName = function () {
|
|
109
|
+
return this.name;
|
|
110
|
+
};
|
|
111
|
+
StoreSubscriptionContentModel.prototype.setName = function (name) {
|
|
112
|
+
this.name = name;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
StoreSubscriptionContentModel.prototype.withName = function (name) {
|
|
116
|
+
this.name = name;
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
StoreSubscriptionContentModel.prototype.getMetadata = function () {
|
|
120
|
+
return this.metadata;
|
|
121
|
+
};
|
|
122
|
+
StoreSubscriptionContentModel.prototype.setMetadata = function (metadata) {
|
|
123
|
+
this.metadata = metadata;
|
|
124
|
+
return this;
|
|
125
|
+
};
|
|
126
|
+
StoreSubscriptionContentModel.prototype.withMetadata = function (metadata) {
|
|
127
|
+
this.metadata = metadata;
|
|
128
|
+
return this;
|
|
129
|
+
};
|
|
130
|
+
StoreSubscriptionContentModel.prototype.getScheduleNamespaceId = function () {
|
|
131
|
+
return this.scheduleNamespaceId;
|
|
132
|
+
};
|
|
133
|
+
StoreSubscriptionContentModel.prototype.setScheduleNamespaceId = function (scheduleNamespaceId) {
|
|
134
|
+
this.scheduleNamespaceId = scheduleNamespaceId;
|
|
135
|
+
return this;
|
|
136
|
+
};
|
|
137
|
+
StoreSubscriptionContentModel.prototype.withScheduleNamespaceId = function (scheduleNamespaceId) {
|
|
138
|
+
this.scheduleNamespaceId = scheduleNamespaceId;
|
|
139
|
+
return this;
|
|
140
|
+
};
|
|
141
|
+
StoreSubscriptionContentModel.prototype.getTriggerName = function () {
|
|
142
|
+
return this.triggerName;
|
|
143
|
+
};
|
|
144
|
+
StoreSubscriptionContentModel.prototype.setTriggerName = function (triggerName) {
|
|
145
|
+
this.triggerName = triggerName;
|
|
146
|
+
return this;
|
|
147
|
+
};
|
|
148
|
+
StoreSubscriptionContentModel.prototype.withTriggerName = function (triggerName) {
|
|
149
|
+
this.triggerName = triggerName;
|
|
150
|
+
return this;
|
|
151
|
+
};
|
|
152
|
+
StoreSubscriptionContentModel.prototype.getAppleAppStore = function () {
|
|
153
|
+
return this.appleAppStore;
|
|
154
|
+
};
|
|
155
|
+
StoreSubscriptionContentModel.prototype.setAppleAppStore = function (appleAppStore) {
|
|
156
|
+
this.appleAppStore = appleAppStore;
|
|
157
|
+
return this;
|
|
158
|
+
};
|
|
159
|
+
StoreSubscriptionContentModel.prototype.withAppleAppStore = function (appleAppStore) {
|
|
160
|
+
this.appleAppStore = appleAppStore;
|
|
161
|
+
return this;
|
|
162
|
+
};
|
|
163
|
+
StoreSubscriptionContentModel.prototype.getGooglePlay = function () {
|
|
164
|
+
return this.googlePlay;
|
|
165
|
+
};
|
|
166
|
+
StoreSubscriptionContentModel.prototype.setGooglePlay = function (googlePlay) {
|
|
167
|
+
this.googlePlay = googlePlay;
|
|
168
|
+
return this;
|
|
169
|
+
};
|
|
170
|
+
StoreSubscriptionContentModel.prototype.withGooglePlay = function (googlePlay) {
|
|
171
|
+
this.googlePlay = googlePlay;
|
|
172
|
+
return this;
|
|
173
|
+
};
|
|
174
|
+
StoreSubscriptionContentModel.fromDict = function (data) {
|
|
175
|
+
if (data == undefined || data == null) {
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
return new StoreSubscriptionContentModel()
|
|
179
|
+
.withStoreSubscriptionContentModelId(data["storeSubscriptionContentModelId"])
|
|
180
|
+
.withName(data["name"])
|
|
181
|
+
.withMetadata(data["metadata"])
|
|
182
|
+
.withScheduleNamespaceId(data["scheduleNamespaceId"])
|
|
183
|
+
.withTriggerName(data["triggerName"])
|
|
184
|
+
.withAppleAppStore(Gs2Money2.AppleAppStoreSubscriptionContent.fromDict(data["appleAppStore"]))
|
|
185
|
+
.withGooglePlay(Gs2Money2.GooglePlaySubscriptionContent.fromDict(data["googlePlay"]));
|
|
186
|
+
};
|
|
187
|
+
StoreSubscriptionContentModel.prototype.toDict = function () {
|
|
188
|
+
var _a, _b;
|
|
189
|
+
return {
|
|
190
|
+
"storeSubscriptionContentModelId": this.getStoreSubscriptionContentModelId(),
|
|
191
|
+
"name": this.getName(),
|
|
192
|
+
"metadata": this.getMetadata(),
|
|
193
|
+
"scheduleNamespaceId": this.getScheduleNamespaceId(),
|
|
194
|
+
"triggerName": this.getTriggerName(),
|
|
195
|
+
"appleAppStore": (_a = this.getAppleAppStore()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
196
|
+
"googlePlay": (_b = this.getGooglePlay()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
return StoreSubscriptionContentModel;
|
|
200
|
+
}());
|
|
201
|
+
exports.default = StoreSubscriptionContentModel;
|
|
202
|
+
//# sourceMappingURL=StoreSubscriptionContentModel.js.map
|
|
@@ -0,0 +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,GAA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