gs2-cdk 1.0.66 → 1.0.67

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 (189) hide show
  1. package/money2/index.d.ts +12 -0
  2. package/money2/index.js +32 -0
  3. package/money2/index.js.map +1 -0
  4. package/money2/index.ts +36 -0
  5. package/money2/model/AppleAppStoreContent.d.ts +8 -0
  6. package/money2/model/AppleAppStoreContent.js +18 -0
  7. package/money2/model/AppleAppStoreContent.js.map +1 -0
  8. package/money2/model/AppleAppStoreContent.ts +37 -0
  9. package/money2/model/AppleAppStoreSetting.d.ts +8 -0
  10. package/money2/model/AppleAppStoreSetting.js +18 -0
  11. package/money2/model/AppleAppStoreSetting.js.map +1 -0
  12. package/money2/model/AppleAppStoreSetting.ts +37 -0
  13. package/money2/model/AppleAppStoreVerifyReceiptEvent.d.ts +9 -0
  14. package/money2/model/AppleAppStoreVerifyReceiptEvent.js +16 -0
  15. package/money2/model/AppleAppStoreVerifyReceiptEvent.js.map +1 -0
  16. package/money2/model/AppleAppStoreVerifyReceiptEvent.ts +39 -0
  17. package/money2/model/CurrentMasterData.d.ts +13 -0
  18. package/money2/model/CurrentMasterData.js +50 -0
  19. package/money2/model/CurrentMasterData.js.map +1 -0
  20. package/money2/model/CurrentMasterData.ts +70 -0
  21. package/money2/model/DepositEvent.d.ts +11 -0
  22. package/money2/model/DepositEvent.js +27 -0
  23. package/money2/model/DepositEvent.js.map +1 -0
  24. package/money2/model/DepositEvent.ts +53 -0
  25. package/money2/model/DepositTransaction.d.ts +11 -0
  26. package/money2/model/DepositTransaction.js +31 -0
  27. package/money2/model/DepositTransaction.js.map +1 -0
  28. package/money2/model/DepositTransaction.ts +54 -0
  29. package/money2/model/FakeSetting.d.ts +9 -0
  30. package/money2/model/FakeSetting.js +16 -0
  31. package/money2/model/FakeSetting.js.map +1 -0
  32. package/money2/model/FakeSetting.ts +39 -0
  33. package/money2/model/GooglePlayContent.d.ts +8 -0
  34. package/money2/model/GooglePlayContent.js +18 -0
  35. package/money2/model/GooglePlayContent.js.map +1 -0
  36. package/money2/model/GooglePlayContent.ts +37 -0
  37. package/money2/model/GooglePlaySetting.d.ts +9 -0
  38. package/money2/model/GooglePlaySetting.js +23 -0
  39. package/money2/model/GooglePlaySetting.js.map +1 -0
  40. package/money2/model/GooglePlaySetting.ts +42 -0
  41. package/money2/model/GooglePlayVerifyReceiptEvent.d.ts +8 -0
  42. package/money2/model/GooglePlayVerifyReceiptEvent.js +18 -0
  43. package/money2/model/GooglePlayVerifyReceiptEvent.js.map +1 -0
  44. package/money2/model/GooglePlayVerifyReceiptEvent.ts +37 -0
  45. package/money2/model/Namespace.d.ts +26 -0
  46. package/money2/model/Namespace.js +84 -0
  47. package/money2/model/Namespace.js.map +1 -0
  48. package/money2/model/Namespace.ts +136 -0
  49. package/money2/model/PlatformSetting.d.ts +10 -0
  50. package/money2/model/PlatformSetting.js +29 -0
  51. package/money2/model/PlatformSetting.js.map +1 -0
  52. package/money2/model/PlatformSetting.ts +53 -0
  53. package/money2/model/Receipt.d.ts +11 -0
  54. package/money2/model/Receipt.js +24 -0
  55. package/money2/model/Receipt.js.map +1 -0
  56. package/money2/model/Receipt.ts +51 -0
  57. package/money2/model/StoreContentModel.d.ts +11 -0
  58. package/money2/model/StoreContentModel.js +33 -0
  59. package/money2/model/StoreContentModel.js.map +1 -0
  60. package/money2/model/StoreContentModel.ts +57 -0
  61. package/money2/model/VerifyReceiptEvent.d.ts +12 -0
  62. package/money2/model/VerifyReceiptEvent.js +32 -0
  63. package/money2/model/VerifyReceiptEvent.js.map +1 -0
  64. package/money2/model/VerifyReceiptEvent.ts +59 -0
  65. package/money2/model/WalletSummary.d.ts +10 -0
  66. package/money2/model/WalletSummary.js +24 -0
  67. package/money2/model/WalletSummary.js.map +1 -0
  68. package/money2/model/WalletSummary.ts +50 -0
  69. package/money2/model/WithdrawEvent.d.ts +11 -0
  70. package/money2/model/WithdrawEvent.js +27 -0
  71. package/money2/model/WithdrawEvent.js.map +1 -0
  72. package/money2/model/WithdrawEvent.ts +53 -0
  73. package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.d.ts +5 -0
  74. package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.js +23 -0
  75. package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.js.map +1 -0
  76. package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.ts +23 -0
  77. package/money2/model/enum/FakeSettingAcceptFakeReceipt.d.ts +5 -0
  78. package/money2/model/enum/FakeSettingAcceptFakeReceipt.js +23 -0
  79. package/money2/model/enum/FakeSettingAcceptFakeReceipt.js.map +1 -0
  80. package/money2/model/enum/FakeSettingAcceptFakeReceipt.ts +23 -0
  81. package/money2/model/enum/NamespaceCurrencyUsagePriority.d.ts +5 -0
  82. package/money2/model/enum/NamespaceCurrencyUsagePriority.js +23 -0
  83. package/money2/model/enum/NamespaceCurrencyUsagePriority.js.map +1 -0
  84. package/money2/model/enum/NamespaceCurrencyUsagePriority.ts +23 -0
  85. package/money2/model/enum/ReceiptStore.d.ts +6 -0
  86. package/money2/model/enum/ReceiptStore.js +24 -0
  87. package/money2/model/enum/ReceiptStore.js.map +1 -0
  88. package/money2/model/enum/ReceiptStore.ts +24 -0
  89. package/money2/model/enum/VerifyReceiptEventPlatform.d.ts +6 -0
  90. package/money2/model/enum/VerifyReceiptEventPlatform.js +24 -0
  91. package/money2/model/enum/VerifyReceiptEventPlatform.js.map +1 -0
  92. package/money2/model/enum/VerifyReceiptEventPlatform.ts +24 -0
  93. package/money2/model/index.d.ts +39 -0
  94. package/money2/model/index.js +64 -0
  95. package/money2/model/index.js.map +1 -0
  96. package/money2/model/index.ts +94 -0
  97. package/money2/model/options/AppleAppStoreContentOptions.d.ts +3 -0
  98. package/money2/model/options/AppleAppStoreContentOptions.js +18 -0
  99. package/money2/model/options/AppleAppStoreContentOptions.js.map +1 -0
  100. package/money2/model/options/AppleAppStoreContentOptions.ts +20 -0
  101. package/money2/model/options/AppleAppStoreSettingOptions.d.ts +3 -0
  102. package/money2/model/options/AppleAppStoreSettingOptions.js +18 -0
  103. package/money2/model/options/AppleAppStoreSettingOptions.js.map +1 -0
  104. package/money2/model/options/AppleAppStoreSettingOptions.ts +20 -0
  105. package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.d.ts +2 -0
  106. package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.js +3 -0
  107. package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.js.map +1 -0
  108. package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.ts +20 -0
  109. package/money2/model/options/DepositEventOptions.d.ts +4 -0
  110. package/money2/model/options/DepositEventOptions.js +3 -0
  111. package/money2/model/options/DepositEventOptions.js.map +1 -0
  112. package/money2/model/options/DepositEventOptions.ts +22 -0
  113. package/money2/model/options/DepositTransactionOptions.d.ts +4 -0
  114. package/money2/model/options/DepositTransactionOptions.js +18 -0
  115. package/money2/model/options/DepositTransactionOptions.js.map +1 -0
  116. package/money2/model/options/DepositTransactionOptions.ts +21 -0
  117. package/money2/model/options/FakeSettingOptions.d.ts +2 -0
  118. package/money2/model/options/FakeSettingOptions.js +3 -0
  119. package/money2/model/options/FakeSettingOptions.js.map +1 -0
  120. package/money2/model/options/FakeSettingOptions.ts +20 -0
  121. package/money2/model/options/GooglePlayContentOptions.d.ts +3 -0
  122. package/money2/model/options/GooglePlayContentOptions.js +18 -0
  123. package/money2/model/options/GooglePlayContentOptions.js.map +1 -0
  124. package/money2/model/options/GooglePlayContentOptions.ts +20 -0
  125. package/money2/model/options/GooglePlaySettingOptions.d.ts +4 -0
  126. package/money2/model/options/GooglePlaySettingOptions.js +18 -0
  127. package/money2/model/options/GooglePlaySettingOptions.js.map +1 -0
  128. package/money2/model/options/GooglePlaySettingOptions.ts +21 -0
  129. package/money2/model/options/GooglePlayVerifyReceiptEventOptions.d.ts +3 -0
  130. package/money2/model/options/GooglePlayVerifyReceiptEventOptions.js +18 -0
  131. package/money2/model/options/GooglePlayVerifyReceiptEventOptions.js.map +1 -0
  132. package/money2/model/options/GooglePlayVerifyReceiptEventOptions.ts +20 -0
  133. package/money2/model/options/NamespaceOptions.d.ts +7 -0
  134. package/money2/model/options/NamespaceOptions.js +3 -0
  135. package/money2/model/options/NamespaceOptions.js.map +1 -0
  136. package/money2/model/options/NamespaceOptions.ts +26 -0
  137. package/money2/model/options/PlatformSettingOptions.d.ts +8 -0
  138. package/money2/model/options/PlatformSettingOptions.js +3 -0
  139. package/money2/model/options/PlatformSettingOptions.js.map +1 -0
  140. package/money2/model/options/PlatformSettingOptions.ts +25 -0
  141. package/money2/model/options/ReceiptOptions.d.ts +2 -0
  142. package/money2/model/options/ReceiptOptions.js +3 -0
  143. package/money2/model/options/ReceiptOptions.js.map +1 -0
  144. package/money2/model/options/ReceiptOptions.ts +20 -0
  145. package/money2/model/options/StoreContentModelOptions.d.ts +7 -0
  146. package/money2/model/options/StoreContentModelOptions.js +3 -0
  147. package/money2/model/options/StoreContentModelOptions.js.map +1 -0
  148. package/money2/model/options/StoreContentModelOptions.ts +24 -0
  149. package/money2/model/options/VerifyReceiptEventOptions.d.ts +6 -0
  150. package/money2/model/options/VerifyReceiptEventOptions.js +3 -0
  151. package/money2/model/options/VerifyReceiptEventOptions.js.map +1 -0
  152. package/money2/model/options/VerifyReceiptEventOptions.ts +24 -0
  153. package/money2/model/options/WalletSummaryOptions.d.ts +2 -0
  154. package/money2/model/options/WalletSummaryOptions.js +18 -0
  155. package/money2/model/options/WalletSummaryOptions.js.map +1 -0
  156. package/money2/model/options/WalletSummaryOptions.ts +19 -0
  157. package/money2/model/options/WithdrawEventOptions.d.ts +4 -0
  158. package/money2/model/options/WithdrawEventOptions.js +3 -0
  159. package/money2/model/options/WithdrawEventOptions.js.map +1 -0
  160. package/money2/model/options/WithdrawEventOptions.ts +22 -0
  161. package/money2/ref/NamespaceRef.d.ts +15 -0
  162. package/money2/ref/NamespaceRef.js +52 -0
  163. package/money2/ref/NamespaceRef.js.map +1 -0
  164. package/money2/ref/NamespaceRef.ts +103 -0
  165. package/money2/ref/StoreContentModelRef.d.ts +6 -0
  166. package/money2/ref/StoreContentModelRef.js +39 -0
  167. package/money2/ref/StoreContentModelRef.js.map +1 -0
  168. package/money2/ref/StoreContentModelRef.ts +53 -0
  169. package/money2/ref/index.d.ts +3 -0
  170. package/money2/ref/index.js +24 -0
  171. package/money2/ref/index.js.map +1 -0
  172. package/money2/ref/index.ts +22 -0
  173. package/money2/stampSheet/DepositByUserId.d.ts +14 -0
  174. package/money2/stampSheet/DepositByUserId.js +53 -0
  175. package/money2/stampSheet/DepositByUserId.js.map +1 -0
  176. package/money2/stampSheet/DepositByUserId.ts +71 -0
  177. package/money2/stampSheet/VerifyReceiptByUserId.d.ts +14 -0
  178. package/money2/stampSheet/VerifyReceiptByUserId.js +54 -0
  179. package/money2/stampSheet/VerifyReceiptByUserId.js.map +1 -0
  180. package/money2/stampSheet/VerifyReceiptByUserId.ts +71 -0
  181. package/money2/stampSheet/WithdrawByUserId.d.ts +14 -0
  182. package/money2/stampSheet/WithdrawByUserId.js +58 -0
  183. package/money2/stampSheet/WithdrawByUserId.js.map +1 -0
  184. package/money2/stampSheet/WithdrawByUserId.ts +75 -0
  185. package/money2/stampSheet/index.d.ts +4 -0
  186. package/money2/stampSheet/index.js +26 -0
  187. package/money2/stampSheet/index.js.map +1 -0
  188. package/money2/stampSheet/index.ts +24 -0
  189. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class FakeSetting {
4
+ constructor(acceptFakeReceipt, options = null) {
5
+ this.acceptFakeReceipt = acceptFakeReceipt;
6
+ }
7
+ properties() {
8
+ let properties = {};
9
+ if (this.acceptFakeReceipt != null) {
10
+ properties["acceptFakeReceipt"] = this.acceptFakeReceipt;
11
+ }
12
+ return properties;
13
+ }
14
+ }
15
+ exports.default = FakeSetting;
16
+ //# sourceMappingURL=FakeSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FakeSetting.js","sourceRoot":"","sources":["FakeSetting.ts"],"names":[],"mappings":";;AAkBA,MAAqB,WAAW;IAG5B,YACI,iBAA+C,EAC/C,UAAmC,IAAI;QAEvC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AApBD,8BAoBC"}
@@ -0,0 +1,39 @@
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
+ import { FakeSettingOptions } from "./options/FakeSettingOptions";
17
+ import { FakeSettingAcceptFakeReceipt } from "./enum/FakeSettingAcceptFakeReceipt";
18
+
19
+ export default class FakeSetting {
20
+ private readonly acceptFakeReceipt: FakeSettingAcceptFakeReceipt;
21
+
22
+ public constructor(
23
+ acceptFakeReceipt: FakeSettingAcceptFakeReceipt,
24
+ options: FakeSettingOptions|null = null,
25
+ ) {
26
+ this.acceptFakeReceipt = acceptFakeReceipt;
27
+ }
28
+
29
+ public properties(
30
+ ): {[name: string]: any} {
31
+ let properties: {[name: string]: any} = {};
32
+
33
+ if (this.acceptFakeReceipt != null) {
34
+ properties["acceptFakeReceipt"] = this.acceptFakeReceipt;
35
+ }
36
+
37
+ return properties;
38
+ }
39
+ }
@@ -0,0 +1,8 @@
1
+ import { GooglePlayContentOptions } from "./options/GooglePlayContentOptions";
2
+ export default class GooglePlayContent {
3
+ private readonly productId;
4
+ constructor(options?: GooglePlayContentOptions | null);
5
+ properties(): {
6
+ [name: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GooglePlayContent {
4
+ constructor(options = null) {
5
+ var _a;
6
+ this.productId = null;
7
+ this.productId = (_a = options === null || options === void 0 ? void 0 : options.productId) !== null && _a !== void 0 ? _a : null;
8
+ }
9
+ properties() {
10
+ let properties = {};
11
+ if (this.productId != null) {
12
+ properties["productId"] = this.productId;
13
+ }
14
+ return properties;
15
+ }
16
+ }
17
+ exports.default = GooglePlayContent;
18
+ //# sourceMappingURL=GooglePlayContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GooglePlayContent.js","sourceRoot":"","sources":["GooglePlayContent.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;IAGlC,YACI,UAAyC,IAAI;;QAHhC,cAAS,GAAgB,IAAI,CAAC;QAK3C,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;IAChD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnBD,oCAmBC"}
@@ -0,0 +1,37 @@
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
+ import { GooglePlayContentOptions } from "./options/GooglePlayContentOptions";
17
+
18
+ export default class GooglePlayContent {
19
+ private readonly productId: string|null = null;
20
+
21
+ public constructor(
22
+ options: GooglePlayContentOptions|null = null,
23
+ ) {
24
+ this.productId = options?.productId ?? null;
25
+ }
26
+
27
+ public properties(
28
+ ): {[name: string]: any} {
29
+ let properties: {[name: string]: any} = {};
30
+
31
+ if (this.productId != null) {
32
+ properties["productId"] = this.productId;
33
+ }
34
+
35
+ return properties;
36
+ }
37
+ }
@@ -0,0 +1,9 @@
1
+ import { GooglePlaySettingOptions } from "./options/GooglePlaySettingOptions";
2
+ export default class GooglePlaySetting {
3
+ private readonly packageName;
4
+ private readonly publicKey;
5
+ constructor(options?: GooglePlaySettingOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GooglePlaySetting {
4
+ constructor(options = null) {
5
+ var _a, _b;
6
+ this.packageName = null;
7
+ this.publicKey = null;
8
+ this.packageName = (_a = options === null || options === void 0 ? void 0 : options.packageName) !== null && _a !== void 0 ? _a : null;
9
+ this.publicKey = (_b = options === null || options === void 0 ? void 0 : options.publicKey) !== null && _b !== void 0 ? _b : null;
10
+ }
11
+ properties() {
12
+ let properties = {};
13
+ if (this.packageName != null) {
14
+ properties["packageName"] = this.packageName;
15
+ }
16
+ if (this.publicKey != null) {
17
+ properties["publicKey"] = this.publicKey;
18
+ }
19
+ return properties;
20
+ }
21
+ }
22
+ exports.default = GooglePlaySetting;
23
+ //# sourceMappingURL=GooglePlaySetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GooglePlaySetting.js","sourceRoot":"","sources":["GooglePlaySetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,iBAAiB;IAIlC,YACI,UAAyC,IAAI;;QAJhC,gBAAW,GAAgB,IAAI,CAAC;QAChC,cAAS,GAAgB,IAAI,CAAC;QAK3C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;IAChD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxBD,oCAwBC"}
@@ -0,0 +1,42 @@
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
+ import { GooglePlaySettingOptions } from "./options/GooglePlaySettingOptions";
17
+
18
+ export default class GooglePlaySetting {
19
+ private readonly packageName: string|null = null;
20
+ private readonly publicKey: string|null = null;
21
+
22
+ public constructor(
23
+ options: GooglePlaySettingOptions|null = null,
24
+ ) {
25
+ this.packageName = options?.packageName ?? null;
26
+ this.publicKey = options?.publicKey ?? null;
27
+ }
28
+
29
+ public properties(
30
+ ): {[name: string]: any} {
31
+ let properties: {[name: string]: any} = {};
32
+
33
+ if (this.packageName != null) {
34
+ properties["packageName"] = this.packageName;
35
+ }
36
+ if (this.publicKey != null) {
37
+ properties["publicKey"] = this.publicKey;
38
+ }
39
+
40
+ return properties;
41
+ }
42
+ }
@@ -0,0 +1,8 @@
1
+ import { GooglePlayVerifyReceiptEventOptions } from "./options/GooglePlayVerifyReceiptEventOptions";
2
+ export default class GooglePlayVerifyReceiptEvent {
3
+ private readonly purchaseToken;
4
+ constructor(options?: GooglePlayVerifyReceiptEventOptions | null);
5
+ properties(): {
6
+ [name: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GooglePlayVerifyReceiptEvent {
4
+ constructor(options = null) {
5
+ var _a;
6
+ this.purchaseToken = null;
7
+ this.purchaseToken = (_a = options === null || options === void 0 ? void 0 : options.purchaseToken) !== null && _a !== void 0 ? _a : null;
8
+ }
9
+ properties() {
10
+ let properties = {};
11
+ if (this.purchaseToken != null) {
12
+ properties["purchaseToken"] = this.purchaseToken;
13
+ }
14
+ return properties;
15
+ }
16
+ }
17
+ exports.default = GooglePlayVerifyReceiptEvent;
18
+ //# sourceMappingURL=GooglePlayVerifyReceiptEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GooglePlayVerifyReceiptEvent.js","sourceRoot":"","sources":["GooglePlayVerifyReceiptEvent.ts"],"names":[],"mappings":";;AAiBA,MAAqB,4BAA4B;IAG7C,YACI,UAAoD,IAAI;;QAH3C,kBAAa,GAAgB,IAAI,CAAC;QAK/C,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;IACxD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnBD,+CAmBC"}
@@ -0,0 +1,37 @@
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
+ import { GooglePlayVerifyReceiptEventOptions } from "./options/GooglePlayVerifyReceiptEventOptions";
17
+
18
+ export default class GooglePlayVerifyReceiptEvent {
19
+ private readonly purchaseToken: string|null = null;
20
+
21
+ public constructor(
22
+ options: GooglePlayVerifyReceiptEventOptions|null = null,
23
+ ) {
24
+ this.purchaseToken = options?.purchaseToken ?? null;
25
+ }
26
+
27
+ public properties(
28
+ ): {[name: string]: any} {
29
+ let properties: {[name: string]: any} = {};
30
+
31
+ if (this.purchaseToken != null) {
32
+ properties["purchaseToken"] = this.purchaseToken;
33
+ }
34
+
35
+ return properties;
36
+ }
37
+ }
@@ -0,0 +1,26 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import { GetAttr } from "../../core/func";
3
+ import PlatformSetting from "./PlatformSetting";
4
+ import NamespaceRef from "../ref/NamespaceRef";
5
+ import StoreContentModel from "./StoreContentModel";
6
+ import { NamespaceCurrencyUsagePriority } from "./enum/NamespaceCurrencyUsagePriority";
7
+ import { NamespaceOptions } from "./options/NamespaceOptions";
8
+ export default class Namespace extends CdkResource {
9
+ private readonly stack;
10
+ private readonly name;
11
+ private readonly currencyUsagePriority;
12
+ private readonly sharedFreeCurrency;
13
+ private readonly platformSetting;
14
+ private readonly description;
15
+ private readonly changeBalanceScript;
16
+ private readonly logSetting;
17
+ constructor(stack: Stack, name: string, currencyUsagePriority: NamespaceCurrencyUsagePriority, sharedFreeCurrency: boolean, platformSetting: PlatformSetting, options?: NamespaceOptions | null);
18
+ alternateKeys(): string;
19
+ resourceType(): string;
20
+ properties(): {
21
+ [name: string]: any;
22
+ };
23
+ ref(): NamespaceRef;
24
+ getAttrNamespaceId(): GetAttr;
25
+ masterData(storeContentModels: StoreContentModel[]): Namespace;
26
+ }
@@ -0,0 +1,84 @@
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
+ const tslib_1 = require("tslib");
19
+ const model_1 = require("../../core/model");
20
+ const func_1 = require("../../core/func");
21
+ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
+ const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
23
+ class Namespace extends model_1.CdkResource {
24
+ constructor(stack, name, currencyUsagePriority, sharedFreeCurrency, platformSetting, options = null) {
25
+ var _a, _b, _c;
26
+ super("Money2_Namespace_" + name);
27
+ this.description = null;
28
+ this.changeBalanceScript = null;
29
+ this.logSetting = null;
30
+ this.stack = stack;
31
+ this.name = name;
32
+ this.currencyUsagePriority = currencyUsagePriority;
33
+ this.sharedFreeCurrency = sharedFreeCurrency;
34
+ this.platformSetting = platformSetting;
35
+ this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
36
+ this.changeBalanceScript = (_b = options === null || options === void 0 ? void 0 : options.changeBalanceScript) !== null && _b !== void 0 ? _b : null;
37
+ this.logSetting = (_c = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _c !== void 0 ? _c : null;
38
+ stack.addResource(this);
39
+ }
40
+ alternateKeys() {
41
+ return "name";
42
+ }
43
+ resourceType() {
44
+ return "GS2::Money2::Namespace";
45
+ }
46
+ properties() {
47
+ var _a, _b, _c;
48
+ let properties = {};
49
+ if (this.name != null) {
50
+ properties["Name"] = this.name;
51
+ }
52
+ if (this.currencyUsagePriority != null) {
53
+ properties["CurrencyUsagePriority"] = this.currencyUsagePriority;
54
+ }
55
+ if (this.description != null) {
56
+ properties["Description"] = this.description;
57
+ }
58
+ if (this.sharedFreeCurrency != null) {
59
+ properties["SharedFreeCurrency"] = this.sharedFreeCurrency;
60
+ }
61
+ if (this.platformSetting != null) {
62
+ properties["PlatformSetting"] = (_a = this.platformSetting) === null || _a === void 0 ? void 0 : _a.properties();
63
+ }
64
+ if (this.changeBalanceScript != null) {
65
+ properties["ChangeBalanceScript"] = (_b = this.changeBalanceScript) === null || _b === void 0 ? void 0 : _b.properties();
66
+ }
67
+ if (this.logSetting != null) {
68
+ properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
69
+ }
70
+ return properties;
71
+ }
72
+ ref() {
73
+ return new NamespaceRef_1.default(this.name);
74
+ }
75
+ getAttrNamespaceId() {
76
+ return new func_1.GetAttr(this, "Item.NamespaceId", null);
77
+ }
78
+ masterData(storeContentModels) {
79
+ new CurrentMasterData_1.default(this.stack, this.name, storeContentModels).addDependsOn(this);
80
+ return this;
81
+ }
82
+ }
83
+ exports.default = Namespace;
84
+ //# sourceMappingURL=Namespace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,136 @@
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 {CdkResource, Stack} from "../../core/model";
18
+ import {GetAttr} from "../../core/func";
19
+ import PlatformSetting from "./PlatformSetting";
20
+ import ScriptSetting from "../../core/model/ScriptSetting";
21
+ import LogSetting from "../../core/model/LogSetting";
22
+
23
+ import NamespaceRef from "../ref/NamespaceRef";
24
+ import CurrentMasterData from "./CurrentMasterData";
25
+ import StoreContentModel from "./StoreContentModel";
26
+ import { NamespaceCurrencyUsagePriority } from "./enum/NamespaceCurrencyUsagePriority";
27
+
28
+ import { NamespaceOptions } from "./options/NamespaceOptions";
29
+
30
+ export default class Namespace extends CdkResource {
31
+ private readonly stack: Stack;
32
+ private readonly name: string;
33
+ private readonly currencyUsagePriority: NamespaceCurrencyUsagePriority;
34
+ private readonly sharedFreeCurrency: boolean;
35
+ private readonly platformSetting: PlatformSetting;
36
+ private readonly description: string|null = null;
37
+ private readonly changeBalanceScript: ScriptSetting|null = null;
38
+ private readonly logSetting: LogSetting|null = null;
39
+
40
+ public constructor(
41
+ stack: Stack,
42
+ name: string,
43
+ currencyUsagePriority: NamespaceCurrencyUsagePriority,
44
+ sharedFreeCurrency: boolean,
45
+ platformSetting: PlatformSetting,
46
+ options: NamespaceOptions|null = null,
47
+ ) {
48
+ super(
49
+ "Money2_Namespace_" + name
50
+ );
51
+
52
+ this.stack = stack;
53
+ this.name = name;
54
+ this.currencyUsagePriority = currencyUsagePriority;
55
+ this.sharedFreeCurrency = sharedFreeCurrency;
56
+ this.platformSetting = platformSetting;
57
+ this.description = options?.description ?? null;
58
+ this.changeBalanceScript = options?.changeBalanceScript ?? null;
59
+ this.logSetting = options?.logSetting ?? null;
60
+ stack.addResource(
61
+ this,
62
+ );
63
+ }
64
+
65
+
66
+ public alternateKeys(
67
+ ) {
68
+ return "name";
69
+ }
70
+
71
+ public resourceType(
72
+ ): string {
73
+ return "GS2::Money2::Namespace";
74
+ }
75
+
76
+ public properties(
77
+ ): {[name: string]: any} {
78
+ let properties: {[name: string]: any} = {};
79
+
80
+ if (this.name != null) {
81
+ properties["Name"] = this.name;
82
+ }
83
+ if (this.currencyUsagePriority != null) {
84
+ properties["CurrencyUsagePriority"] = this.currencyUsagePriority;
85
+ }
86
+ if (this.description != null) {
87
+ properties["Description"] = this.description;
88
+ }
89
+ if (this.sharedFreeCurrency != null) {
90
+ properties["SharedFreeCurrency"] = this.sharedFreeCurrency;
91
+ }
92
+ if (this.platformSetting != null) {
93
+ properties["PlatformSetting"] = this.platformSetting?.properties(
94
+ );
95
+ }
96
+ if (this.changeBalanceScript != null) {
97
+ properties["ChangeBalanceScript"] = this.changeBalanceScript?.properties(
98
+ );
99
+ }
100
+ if (this.logSetting != null) {
101
+ properties["LogSetting"] = this.logSetting?.properties(
102
+ );
103
+ }
104
+
105
+ return properties;
106
+ }
107
+
108
+ public ref(
109
+ ): NamespaceRef {
110
+ return new NamespaceRef(
111
+ this.name!,
112
+ );
113
+ }
114
+
115
+ public getAttrNamespaceId(
116
+ ): GetAttr {
117
+ return new GetAttr(
118
+ this,
119
+ "Item.NamespaceId",
120
+ null,
121
+ );
122
+ }
123
+
124
+ public masterData(
125
+ storeContentModels: StoreContentModel[],
126
+ ): Namespace {
127
+ new CurrentMasterData(
128
+ this.stack,
129
+ this.name,
130
+ storeContentModels,
131
+ ).addDependsOn(
132
+ this,
133
+ );
134
+ return this;
135
+ }
136
+ }
@@ -0,0 +1,10 @@
1
+ import { PlatformSettingOptions } from "./options/PlatformSettingOptions";
2
+ export default class PlatformSetting {
3
+ private readonly appleAppStore;
4
+ private readonly googlePlay;
5
+ private readonly fake;
6
+ constructor(options?: PlatformSettingOptions | null);
7
+ properties(): {
8
+ [name: string]: any;
9
+ };
10
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class PlatformSetting {
4
+ constructor(options = null) {
5
+ var _a, _b, _c;
6
+ this.appleAppStore = null;
7
+ this.googlePlay = null;
8
+ this.fake = null;
9
+ this.appleAppStore = (_a = options === null || options === void 0 ? void 0 : options.appleAppStore) !== null && _a !== void 0 ? _a : null;
10
+ this.googlePlay = (_b = options === null || options === void 0 ? void 0 : options.googlePlay) !== null && _b !== void 0 ? _b : null;
11
+ this.fake = (_c = options === null || options === void 0 ? void 0 : options.fake) !== null && _c !== void 0 ? _c : null;
12
+ }
13
+ properties() {
14
+ var _a, _b, _c;
15
+ let properties = {};
16
+ if (this.appleAppStore != null) {
17
+ properties["appleAppStore"] = (_a = this.appleAppStore) === null || _a === void 0 ? void 0 : _a.properties();
18
+ }
19
+ if (this.googlePlay != null) {
20
+ properties["googlePlay"] = (_b = this.googlePlay) === null || _b === void 0 ? void 0 : _b.properties();
21
+ }
22
+ if (this.fake != null) {
23
+ properties["fake"] = (_c = this.fake) === null || _c === void 0 ? void 0 : _c.properties();
24
+ }
25
+ return properties;
26
+ }
27
+ }
28
+ exports.default = PlatformSetting;
29
+ //# sourceMappingURL=PlatformSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformSetting.js","sourceRoot":"","sources":["PlatformSetting.ts"],"names":[],"mappings":";;AAoBA,MAAqB,eAAe;IAKhC,YACI,UAAuC,IAAI;;QAL9B,kBAAa,GAA8B,IAAI,CAAC;QAChD,eAAU,GAA2B,IAAI,CAAC;QAC1C,SAAI,GAAqB,IAAI,CAAC;QAK3C,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC;IACtC,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,MAAA,IAAI,CAAC,aAAa,0CAAE,UAAU,EAC3D,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,MAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,EACzC,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,kCAgCC"}
@@ -0,0 +1,53 @@
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
+ import AppleAppStoreSetting from "./AppleAppStoreSetting";
17
+ import GooglePlaySetting from "./GooglePlaySetting";
18
+ import FakeSetting from "./FakeSetting";
19
+ import { PlatformSettingOptions } from "./options/PlatformSettingOptions";
20
+
21
+ export default class PlatformSetting {
22
+ private readonly appleAppStore: AppleAppStoreSetting|null = null;
23
+ private readonly googlePlay: GooglePlaySetting|null = null;
24
+ private readonly fake: FakeSetting|null = null;
25
+
26
+ public constructor(
27
+ options: PlatformSettingOptions|null = null,
28
+ ) {
29
+ this.appleAppStore = options?.appleAppStore ?? null;
30
+ this.googlePlay = options?.googlePlay ?? null;
31
+ this.fake = options?.fake ?? null;
32
+ }
33
+
34
+ public properties(
35
+ ): {[name: string]: any} {
36
+ let properties: {[name: string]: any} = {};
37
+
38
+ if (this.appleAppStore != null) {
39
+ properties["appleAppStore"] = this.appleAppStore?.properties(
40
+ );
41
+ }
42
+ if (this.googlePlay != null) {
43
+ properties["googlePlay"] = this.googlePlay?.properties(
44
+ );
45
+ }
46
+ if (this.fake != null) {
47
+ properties["fake"] = this.fake?.properties(
48
+ );
49
+ }
50
+
51
+ return properties;
52
+ }
53
+ }
@@ -0,0 +1,11 @@
1
+ import { ReceiptOptions } from "./options/ReceiptOptions";
2
+ import { ReceiptStore } from "./enum/ReceiptStore";
3
+ export default class Receipt {
4
+ private readonly store;
5
+ private readonly transactionID;
6
+ private readonly payload;
7
+ constructor(store: ReceiptStore, transactionID: string, payload: string, options?: ReceiptOptions | null);
8
+ properties(): {
9
+ [name: string]: any;
10
+ };
11
+ }