gs2 1.4.56 → 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.
Files changed (129) hide show
  1. package/money2/model/AppleAppStoreSubscriptionContent.d.ts +13 -0
  2. package/money2/model/AppleAppStoreSubscriptionContent.js +48 -0
  3. package/money2/model/AppleAppStoreSubscriptionContent.js.map +1 -0
  4. package/money2/model/AppleAppStoreSubscriptionContent.ts +48 -0
  5. package/money2/model/GooglePlaySubscriptionContent.d.ts +13 -0
  6. package/money2/model/GooglePlaySubscriptionContent.js +48 -0
  7. package/money2/model/GooglePlaySubscriptionContent.js.map +1 -0
  8. package/money2/model/GooglePlaySubscriptionContent.ts +48 -0
  9. package/money2/model/StoreSubscriptionContentModel.d.ts +44 -0
  10. package/money2/model/StoreSubscriptionContentModel.js +202 -0
  11. package/money2/model/StoreSubscriptionContentModel.js.map +1 -0
  12. package/money2/model/StoreSubscriptionContentModel.ts +216 -0
  13. package/money2/model/StoreSubscriptionContentModelMaster.d.ts +60 -0
  14. package/money2/model/StoreSubscriptionContentModelMaster.js +258 -0
  15. package/money2/model/StoreSubscriptionContentModelMaster.js.map +1 -0
  16. package/money2/model/StoreSubscriptionContentModelMaster.ts +272 -0
  17. package/money2/model/SubscribeTransaction.d.ts +6 -5
  18. package/money2/model/SubscribeTransaction.js +36 -16
  19. package/money2/model/SubscribeTransaction.js.map +1 -1
  20. package/money2/model/SubscribeTransaction.ts +38 -15
  21. package/money2/model/SubscriptionStatus.d.ts +32 -0
  22. package/money2/model/SubscriptionStatus.js +119 -0
  23. package/money2/model/SubscriptionStatus.js.map +1 -0
  24. package/money2/model/SubscriptionStatus.ts +123 -0
  25. package/money2/model/index.d.ts +6 -1
  26. package/money2/model/index.js +11 -1
  27. package/money2/model/index.js.map +1 -1
  28. package/money2/model/index.ts +10 -0
  29. package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.d.ts +50 -0
  30. package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.js +170 -0
  31. package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.js.map +1 -0
  32. package/money2/request/CreateStoreSubscriptionContentModelMasterRequest.ts +174 -0
  33. package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.d.ts +25 -0
  34. package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.js +83 -0
  35. package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.js.map +1 -0
  36. package/money2/request/DeleteStoreSubscriptionContentModelMasterRequest.ts +90 -0
  37. package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.d.ts +29 -0
  38. package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.js +97 -0
  39. package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.js.map +1 -0
  40. package/money2/request/DescribeStoreSubscriptionContentModelMastersRequest.ts +104 -0
  41. package/money2/request/DescribeStoreSubscriptionContentModelsRequest.d.ts +21 -0
  42. package/money2/request/DescribeStoreSubscriptionContentModelsRequest.js +69 -0
  43. package/money2/request/DescribeStoreSubscriptionContentModelsRequest.js.map +1 -0
  44. package/money2/request/DescribeStoreSubscriptionContentModelsRequest.ts +76 -0
  45. package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.d.ts +29 -0
  46. package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.js +97 -0
  47. package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.js.map +1 -0
  48. package/money2/request/DescribeSubscriptionStatusesByUserIdRequest.ts +104 -0
  49. package/money2/request/DescribeSubscriptionStatusesRequest.d.ts +25 -0
  50. package/money2/request/DescribeSubscriptionStatusesRequest.js +83 -0
  51. package/money2/request/DescribeSubscriptionStatusesRequest.js.map +1 -0
  52. package/money2/request/DescribeSubscriptionStatusesRequest.ts +90 -0
  53. package/money2/request/GetStoreSubscriptionContentModelMasterRequest.d.ts +25 -0
  54. package/money2/request/GetStoreSubscriptionContentModelMasterRequest.js +83 -0
  55. package/money2/request/GetStoreSubscriptionContentModelMasterRequest.js.map +1 -0
  56. package/money2/request/GetStoreSubscriptionContentModelMasterRequest.ts +90 -0
  57. package/money2/request/GetStoreSubscriptionContentModelRequest.d.ts +25 -0
  58. package/money2/request/GetStoreSubscriptionContentModelRequest.js +83 -0
  59. package/money2/request/GetStoreSubscriptionContentModelRequest.js.map +1 -0
  60. package/money2/request/GetStoreSubscriptionContentModelRequest.ts +90 -0
  61. package/money2/request/GetSubscriptionStatusByUserIdRequest.d.ts +33 -0
  62. package/money2/request/GetSubscriptionStatusByUserIdRequest.js +111 -0
  63. package/money2/request/GetSubscriptionStatusByUserIdRequest.js.map +1 -0
  64. package/money2/request/GetSubscriptionStatusByUserIdRequest.ts +118 -0
  65. package/money2/request/GetSubscriptionStatusRequest.d.ts +29 -0
  66. package/money2/request/GetSubscriptionStatusRequest.js +97 -0
  67. package/money2/request/GetSubscriptionStatusRequest.js.map +1 -0
  68. package/money2/request/GetSubscriptionStatusRequest.ts +104 -0
  69. package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.d.ts +50 -0
  70. package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.js +170 -0
  71. package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.js.map +1 -0
  72. package/money2/request/UpdateStoreSubscriptionContentModelMasterRequest.ts +174 -0
  73. package/money2/request/index.d.ts +12 -1
  74. package/money2/request/index.js +24 -1
  75. package/money2/request/index.js.map +1 -1
  76. package/money2/request/index.ts +22 -0
  77. package/money2/rest.d.ts +11 -0
  78. package/money2/rest.js +285 -0
  79. package/money2/rest.js.map +1 -1
  80. package/money2/rest.ts +329 -0
  81. package/money2/result/CreateStoreSubscriptionContentModelMasterResult.d.ts +14 -0
  82. package/money2/result/CreateStoreSubscriptionContentModelMasterResult.js +48 -0
  83. package/money2/result/CreateStoreSubscriptionContentModelMasterResult.js.map +1 -0
  84. package/money2/result/CreateStoreSubscriptionContentModelMasterResult.ts +47 -0
  85. package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.d.ts +14 -0
  86. package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.js +48 -0
  87. package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.js.map +1 -0
  88. package/money2/result/DeleteStoreSubscriptionContentModelMasterResult.ts +47 -0
  89. package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.d.ts +18 -0
  90. package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.js +67 -0
  91. package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.js.map +1 -0
  92. package/money2/result/DescribeStoreSubscriptionContentModelMastersResult.ts +72 -0
  93. package/money2/result/DescribeStoreSubscriptionContentModelsResult.d.ts +14 -0
  94. package/money2/result/DescribeStoreSubscriptionContentModelsResult.js +53 -0
  95. package/money2/result/DescribeStoreSubscriptionContentModelsResult.js.map +1 -0
  96. package/money2/result/DescribeStoreSubscriptionContentModelsResult.ts +55 -0
  97. package/money2/result/DescribeSubscriptionStatusesByUserIdResult.d.ts +14 -0
  98. package/money2/result/DescribeSubscriptionStatusesByUserIdResult.js +53 -0
  99. package/money2/result/DescribeSubscriptionStatusesByUserIdResult.js.map +1 -0
  100. package/money2/result/DescribeSubscriptionStatusesByUserIdResult.ts +55 -0
  101. package/money2/result/DescribeSubscriptionStatusesResult.d.ts +14 -0
  102. package/money2/result/DescribeSubscriptionStatusesResult.js +53 -0
  103. package/money2/result/DescribeSubscriptionStatusesResult.js.map +1 -0
  104. package/money2/result/DescribeSubscriptionStatusesResult.ts +55 -0
  105. package/money2/result/GetStoreSubscriptionContentModelMasterResult.d.ts +14 -0
  106. package/money2/result/GetStoreSubscriptionContentModelMasterResult.js +48 -0
  107. package/money2/result/GetStoreSubscriptionContentModelMasterResult.js.map +1 -0
  108. package/money2/result/GetStoreSubscriptionContentModelMasterResult.ts +47 -0
  109. package/money2/result/GetStoreSubscriptionContentModelResult.d.ts +14 -0
  110. package/money2/result/GetStoreSubscriptionContentModelResult.js +48 -0
  111. package/money2/result/GetStoreSubscriptionContentModelResult.js.map +1 -0
  112. package/money2/result/GetStoreSubscriptionContentModelResult.ts +47 -0
  113. package/money2/result/GetSubscriptionStatusByUserIdResult.d.ts +14 -0
  114. package/money2/result/GetSubscriptionStatusByUserIdResult.js +48 -0
  115. package/money2/result/GetSubscriptionStatusByUserIdResult.js.map +1 -0
  116. package/money2/result/GetSubscriptionStatusByUserIdResult.ts +47 -0
  117. package/money2/result/GetSubscriptionStatusResult.d.ts +14 -0
  118. package/money2/result/GetSubscriptionStatusResult.js +48 -0
  119. package/money2/result/GetSubscriptionStatusResult.js.map +1 -0
  120. package/money2/result/GetSubscriptionStatusResult.ts +47 -0
  121. package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.d.ts +14 -0
  122. package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.js +48 -0
  123. package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.js.map +1 -0
  124. package/money2/result/UpdateStoreSubscriptionContentModelMasterResult.ts +47 -0
  125. package/money2/result/index.d.ts +12 -1
  126. package/money2/result/index.js +24 -1
  127. package/money2/result/index.js.map +1 -1
  128. package/money2/result/index.ts +22 -0
  129. package/package.json +1 -1
@@ -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,GAAoD,IAAI,CAAC;QACtE,eAAU,GAAiD,IAAI,CAAC;IAyL5E,CAA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