gs2-cdk 1.0.66 → 1.0.68
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/idle/model/Namespace.d.ts +1 -0
- package/idle/model/Namespace.js +7 -2
- package/idle/model/Namespace.js.map +1 -1
- package/idle/model/Namespace.ts +5 -0
- package/idle/model/options/NamespaceOptions.d.ts +1 -0
- package/idle/model/options/NamespaceOptions.ts +1 -0
- package/money2/index.d.ts +12 -0
- package/money2/index.js +32 -0
- package/money2/index.js.map +1 -0
- package/money2/index.ts +36 -0
- package/money2/model/AppleAppStoreContent.d.ts +8 -0
- package/money2/model/AppleAppStoreContent.js +18 -0
- package/money2/model/AppleAppStoreContent.js.map +1 -0
- package/money2/model/AppleAppStoreContent.ts +37 -0
- package/money2/model/AppleAppStoreSetting.d.ts +8 -0
- package/money2/model/AppleAppStoreSetting.js +18 -0
- package/money2/model/AppleAppStoreSetting.js.map +1 -0
- package/money2/model/AppleAppStoreSetting.ts +37 -0
- package/money2/model/AppleAppStoreVerifyReceiptEvent.d.ts +9 -0
- package/money2/model/AppleAppStoreVerifyReceiptEvent.js +16 -0
- package/money2/model/AppleAppStoreVerifyReceiptEvent.js.map +1 -0
- package/money2/model/AppleAppStoreVerifyReceiptEvent.ts +39 -0
- package/money2/model/CurrentMasterData.d.ts +13 -0
- package/money2/model/CurrentMasterData.js +50 -0
- package/money2/model/CurrentMasterData.js.map +1 -0
- package/money2/model/CurrentMasterData.ts +70 -0
- package/money2/model/DailyTransactionHistory.d.ts +14 -0
- package/money2/model/DailyTransactionHistory.js +39 -0
- package/money2/model/DailyTransactionHistory.js.map +1 -0
- package/money2/model/DailyTransactionHistory.ts +70 -0
- package/money2/model/DepositEvent.d.ts +11 -0
- package/money2/model/DepositEvent.js +27 -0
- package/money2/model/DepositEvent.js.map +1 -0
- package/money2/model/DepositEvent.ts +53 -0
- package/money2/model/DepositTransaction.d.ts +11 -0
- package/money2/model/DepositTransaction.js +31 -0
- package/money2/model/DepositTransaction.js.map +1 -0
- package/money2/model/DepositTransaction.ts +54 -0
- package/money2/model/FakeSetting.d.ts +9 -0
- package/money2/model/FakeSetting.js +16 -0
- package/money2/model/FakeSetting.js.map +1 -0
- package/money2/model/FakeSetting.ts +39 -0
- package/money2/model/GooglePlayContent.d.ts +8 -0
- package/money2/model/GooglePlayContent.js +18 -0
- package/money2/model/GooglePlayContent.js.map +1 -0
- package/money2/model/GooglePlayContent.ts +37 -0
- package/money2/model/GooglePlaySetting.d.ts +9 -0
- package/money2/model/GooglePlaySetting.js +23 -0
- package/money2/model/GooglePlaySetting.js.map +1 -0
- package/money2/model/GooglePlaySetting.ts +42 -0
- package/money2/model/GooglePlayVerifyReceiptEvent.d.ts +8 -0
- package/money2/model/GooglePlayVerifyReceiptEvent.js +18 -0
- package/money2/model/GooglePlayVerifyReceiptEvent.js.map +1 -0
- package/money2/model/GooglePlayVerifyReceiptEvent.ts +37 -0
- package/money2/model/Namespace.d.ts +26 -0
- package/money2/model/Namespace.js +84 -0
- package/money2/model/Namespace.js.map +1 -0
- package/money2/model/Namespace.ts +136 -0
- package/money2/model/PlatformSetting.d.ts +10 -0
- package/money2/model/PlatformSetting.js +29 -0
- package/money2/model/PlatformSetting.js.map +1 -0
- package/money2/model/PlatformSetting.ts +53 -0
- package/money2/model/Receipt.d.ts +11 -0
- package/money2/model/Receipt.js +24 -0
- package/money2/model/Receipt.js.map +1 -0
- package/money2/model/Receipt.ts +51 -0
- package/money2/model/StoreContentModel.d.ts +11 -0
- package/money2/model/StoreContentModel.js +33 -0
- package/money2/model/StoreContentModel.js.map +1 -0
- package/money2/model/StoreContentModel.ts +57 -0
- package/money2/model/UnusedBalance.d.ts +10 -0
- package/money2/model/UnusedBalance.js +23 -0
- package/money2/model/UnusedBalance.js.map +1 -0
- package/money2/model/UnusedBalance.ts +46 -0
- package/money2/model/VerifyReceiptEvent.d.ts +12 -0
- package/money2/model/VerifyReceiptEvent.js +32 -0
- package/money2/model/VerifyReceiptEvent.js.map +1 -0
- package/money2/model/VerifyReceiptEvent.ts +59 -0
- package/money2/model/WalletSummary.d.ts +10 -0
- package/money2/model/WalletSummary.js +24 -0
- package/money2/model/WalletSummary.js.map +1 -0
- package/money2/model/WalletSummary.ts +50 -0
- package/money2/model/WithdrawEvent.d.ts +11 -0
- package/money2/model/WithdrawEvent.js +27 -0
- package/money2/model/WithdrawEvent.js.map +1 -0
- package/money2/model/WithdrawEvent.ts +53 -0
- package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.d.ts +5 -0
- package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.js +23 -0
- package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.js.map +1 -0
- package/money2/model/enum/AppleAppStoreVerifyReceiptEventEnvironment.ts +23 -0
- package/money2/model/enum/FakeSettingAcceptFakeReceipt.d.ts +5 -0
- package/money2/model/enum/FakeSettingAcceptFakeReceipt.js +23 -0
- package/money2/model/enum/FakeSettingAcceptFakeReceipt.js.map +1 -0
- package/money2/model/enum/FakeSettingAcceptFakeReceipt.ts +23 -0
- package/money2/model/enum/NamespaceCurrencyUsagePriority.d.ts +5 -0
- package/money2/model/enum/NamespaceCurrencyUsagePriority.js +23 -0
- package/money2/model/enum/NamespaceCurrencyUsagePriority.js.map +1 -0
- package/money2/model/enum/NamespaceCurrencyUsagePriority.ts +23 -0
- package/money2/model/enum/ReceiptStore.d.ts +6 -0
- package/money2/model/enum/ReceiptStore.js +24 -0
- package/money2/model/enum/ReceiptStore.js.map +1 -0
- package/money2/model/enum/ReceiptStore.ts +24 -0
- package/money2/model/enum/VerifyReceiptEventPlatform.d.ts +6 -0
- package/money2/model/enum/VerifyReceiptEventPlatform.js +24 -0
- package/money2/model/enum/VerifyReceiptEventPlatform.js.map +1 -0
- package/money2/model/enum/VerifyReceiptEventPlatform.ts +24 -0
- package/money2/model/index.d.ts +43 -0
- package/money2/model/index.js +68 -0
- package/money2/model/index.js.map +1 -0
- package/money2/model/index.ts +102 -0
- package/money2/model/options/AppleAppStoreContentOptions.d.ts +3 -0
- package/money2/model/options/AppleAppStoreContentOptions.js +18 -0
- package/money2/model/options/AppleAppStoreContentOptions.js.map +1 -0
- package/money2/model/options/AppleAppStoreContentOptions.ts +20 -0
- package/money2/model/options/AppleAppStoreSettingOptions.d.ts +3 -0
- package/money2/model/options/AppleAppStoreSettingOptions.js +18 -0
- package/money2/model/options/AppleAppStoreSettingOptions.js.map +1 -0
- package/money2/model/options/AppleAppStoreSettingOptions.ts +20 -0
- package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.d.ts +2 -0
- package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.js +3 -0
- package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.js.map +1 -0
- package/money2/model/options/AppleAppStoreVerifyReceiptEventOptions.ts +20 -0
- package/money2/model/options/DailyTransactionHistoryOptions.d.ts +3 -0
- package/money2/model/options/DailyTransactionHistoryOptions.js +18 -0
- package/money2/model/options/DailyTransactionHistoryOptions.js.map +1 -0
- package/money2/model/options/DailyTransactionHistoryOptions.ts +20 -0
- package/money2/model/options/DepositEventOptions.d.ts +4 -0
- package/money2/model/options/DepositEventOptions.js +3 -0
- package/money2/model/options/DepositEventOptions.js.map +1 -0
- package/money2/model/options/DepositEventOptions.ts +22 -0
- package/money2/model/options/DepositTransactionOptions.d.ts +4 -0
- package/money2/model/options/DepositTransactionOptions.js +18 -0
- package/money2/model/options/DepositTransactionOptions.js.map +1 -0
- package/money2/model/options/DepositTransactionOptions.ts +21 -0
- package/money2/model/options/FakeSettingOptions.d.ts +2 -0
- package/money2/model/options/FakeSettingOptions.js +3 -0
- package/money2/model/options/FakeSettingOptions.js.map +1 -0
- package/money2/model/options/FakeSettingOptions.ts +20 -0
- package/money2/model/options/GooglePlayContentOptions.d.ts +3 -0
- package/money2/model/options/GooglePlayContentOptions.js +18 -0
- package/money2/model/options/GooglePlayContentOptions.js.map +1 -0
- package/money2/model/options/GooglePlayContentOptions.ts +20 -0
- package/money2/model/options/GooglePlaySettingOptions.d.ts +4 -0
- package/money2/model/options/GooglePlaySettingOptions.js +18 -0
- package/money2/model/options/GooglePlaySettingOptions.js.map +1 -0
- package/money2/model/options/GooglePlaySettingOptions.ts +21 -0
- package/money2/model/options/GooglePlayVerifyReceiptEventOptions.d.ts +3 -0
- package/money2/model/options/GooglePlayVerifyReceiptEventOptions.js +18 -0
- package/money2/model/options/GooglePlayVerifyReceiptEventOptions.js.map +1 -0
- package/money2/model/options/GooglePlayVerifyReceiptEventOptions.ts +20 -0
- package/money2/model/options/NamespaceOptions.d.ts +7 -0
- package/money2/model/options/NamespaceOptions.js +3 -0
- package/money2/model/options/NamespaceOptions.js.map +1 -0
- package/money2/model/options/NamespaceOptions.ts +26 -0
- package/money2/model/options/PlatformSettingOptions.d.ts +8 -0
- package/money2/model/options/PlatformSettingOptions.js +3 -0
- package/money2/model/options/PlatformSettingOptions.js.map +1 -0
- package/money2/model/options/PlatformSettingOptions.ts +25 -0
- package/money2/model/options/ReceiptOptions.d.ts +2 -0
- package/money2/model/options/ReceiptOptions.js +3 -0
- package/money2/model/options/ReceiptOptions.js.map +1 -0
- package/money2/model/options/ReceiptOptions.ts +20 -0
- package/money2/model/options/StoreContentModelOptions.d.ts +7 -0
- package/money2/model/options/StoreContentModelOptions.js +3 -0
- package/money2/model/options/StoreContentModelOptions.js.map +1 -0
- package/money2/model/options/StoreContentModelOptions.ts +24 -0
- package/money2/model/options/UnusedBalanceOptions.d.ts +3 -0
- package/money2/model/options/UnusedBalanceOptions.js +18 -0
- package/money2/model/options/UnusedBalanceOptions.js.map +1 -0
- package/money2/model/options/UnusedBalanceOptions.ts +20 -0
- package/money2/model/options/VerifyReceiptEventOptions.d.ts +6 -0
- package/money2/model/options/VerifyReceiptEventOptions.js +3 -0
- package/money2/model/options/VerifyReceiptEventOptions.js.map +1 -0
- package/money2/model/options/VerifyReceiptEventOptions.ts +24 -0
- package/money2/model/options/WalletSummaryOptions.d.ts +2 -0
- package/money2/model/options/WalletSummaryOptions.js +18 -0
- package/money2/model/options/WalletSummaryOptions.js.map +1 -0
- package/money2/model/options/WalletSummaryOptions.ts +19 -0
- package/money2/model/options/WithdrawEventOptions.d.ts +4 -0
- package/money2/model/options/WithdrawEventOptions.js +3 -0
- package/money2/model/options/WithdrawEventOptions.js.map +1 -0
- package/money2/model/options/WithdrawEventOptions.ts +22 -0
- package/money2/ref/DailyTransactionHistoryRef.d.ts +9 -0
- package/money2/ref/DailyTransactionHistoryRef.js +49 -0
- package/money2/ref/DailyTransactionHistoryRef.js.map +1 -0
- package/money2/ref/DailyTransactionHistoryRef.ts +69 -0
- package/money2/ref/NamespaceRef.d.ts +15 -0
- package/money2/ref/NamespaceRef.js +52 -0
- package/money2/ref/NamespaceRef.js.map +1 -0
- package/money2/ref/NamespaceRef.ts +105 -0
- package/money2/ref/StoreContentModelRef.d.ts +6 -0
- package/money2/ref/StoreContentModelRef.js +39 -0
- package/money2/ref/StoreContentModelRef.js.map +1 -0
- package/money2/ref/StoreContentModelRef.ts +53 -0
- package/money2/ref/UnusedBalanceRef.d.ts +6 -0
- package/money2/ref/UnusedBalanceRef.js +38 -0
- package/money2/ref/UnusedBalanceRef.js.map +1 -0
- package/money2/ref/UnusedBalanceRef.ts +52 -0
- package/money2/ref/index.d.ts +5 -0
- package/money2/ref/index.js +28 -0
- package/money2/ref/index.js.map +1 -0
- package/money2/ref/index.ts +26 -0
- package/money2/stampSheet/DepositByUserId.d.ts +14 -0
- package/money2/stampSheet/DepositByUserId.js +53 -0
- package/money2/stampSheet/DepositByUserId.js.map +1 -0
- package/money2/stampSheet/DepositByUserId.ts +71 -0
- package/money2/stampSheet/VerifyReceiptByUserId.d.ts +14 -0
- package/money2/stampSheet/VerifyReceiptByUserId.js +54 -0
- package/money2/stampSheet/VerifyReceiptByUserId.js.map +1 -0
- package/money2/stampSheet/VerifyReceiptByUserId.ts +71 -0
- package/money2/stampSheet/WithdrawByUserId.d.ts +14 -0
- package/money2/stampSheet/WithdrawByUserId.js +58 -0
- package/money2/stampSheet/WithdrawByUserId.js.map +1 -0
- package/money2/stampSheet/WithdrawByUserId.ts +75 -0
- package/money2/stampSheet/index.d.ts +4 -0
- package/money2/stampSheet/index.js +26 -0
- package/money2/stampSheet/index.js.map +1 -0
- package/money2/stampSheet/index.ts +24 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Receipt {
|
|
4
|
+
constructor(store, transactionID, payload, options = null) {
|
|
5
|
+
this.store = store;
|
|
6
|
+
this.transactionID = transactionID;
|
|
7
|
+
this.payload = payload;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.store != null) {
|
|
12
|
+
properties["store"] = this.store;
|
|
13
|
+
}
|
|
14
|
+
if (this.transactionID != null) {
|
|
15
|
+
properties["transactionID"] = this.transactionID;
|
|
16
|
+
}
|
|
17
|
+
if (this.payload != null) {
|
|
18
|
+
properties["payload"] = this.payload;
|
|
19
|
+
}
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = Receipt;
|
|
24
|
+
//# sourceMappingURL=Receipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Receipt.js","sourceRoot":"","sources":["Receipt.ts"],"names":[],"mappings":";;AAkBA,MAAqB,OAAO;IAKxB,YACI,KAAmB,EACnB,aAAqB,EACrB,OAAe,EACf,UAA+B,IAAI;QAEnC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,0BAgCC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ReceiptOptions } from "./options/ReceiptOptions";
|
|
17
|
+
import { ReceiptStore } from "./enum/ReceiptStore";
|
|
18
|
+
|
|
19
|
+
export default class Receipt {
|
|
20
|
+
private readonly store: ReceiptStore;
|
|
21
|
+
private readonly transactionID: string;
|
|
22
|
+
private readonly payload: string;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
store: ReceiptStore,
|
|
26
|
+
transactionID: string,
|
|
27
|
+
payload: string,
|
|
28
|
+
options: ReceiptOptions|null = null,
|
|
29
|
+
) {
|
|
30
|
+
this.store = store;
|
|
31
|
+
this.transactionID = transactionID;
|
|
32
|
+
this.payload = payload;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public properties(
|
|
36
|
+
): {[name: string]: any} {
|
|
37
|
+
let properties: {[name: string]: any} = {};
|
|
38
|
+
|
|
39
|
+
if (this.store != null) {
|
|
40
|
+
properties["store"] = this.store;
|
|
41
|
+
}
|
|
42
|
+
if (this.transactionID != null) {
|
|
43
|
+
properties["transactionID"] = this.transactionID;
|
|
44
|
+
}
|
|
45
|
+
if (this.payload != null) {
|
|
46
|
+
properties["payload"] = this.payload;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return properties;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoreContentModelOptions } from "./options/StoreContentModelOptions";
|
|
2
|
+
export default class StoreContentModel {
|
|
3
|
+
private readonly name;
|
|
4
|
+
private readonly metadata;
|
|
5
|
+
private readonly appleAppStore;
|
|
6
|
+
private readonly googlePlay;
|
|
7
|
+
constructor(name: string, options?: StoreContentModelOptions | null);
|
|
8
|
+
properties(): {
|
|
9
|
+
[name: string]: any;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class StoreContentModel {
|
|
4
|
+
constructor(name, options = null) {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.appleAppStore = null;
|
|
8
|
+
this.googlePlay = null;
|
|
9
|
+
this.name = name;
|
|
10
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
this.appleAppStore = (_b = options === null || options === void 0 ? void 0 : options.appleAppStore) !== null && _b !== void 0 ? _b : null;
|
|
12
|
+
this.googlePlay = (_c = options === null || options === void 0 ? void 0 : options.googlePlay) !== null && _c !== void 0 ? _c : null;
|
|
13
|
+
}
|
|
14
|
+
properties() {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
let properties = {};
|
|
17
|
+
if (this.name != null) {
|
|
18
|
+
properties["name"] = this.name;
|
|
19
|
+
}
|
|
20
|
+
if (this.metadata != null) {
|
|
21
|
+
properties["metadata"] = this.metadata;
|
|
22
|
+
}
|
|
23
|
+
if (this.appleAppStore != null) {
|
|
24
|
+
properties["appleAppStore"] = (_a = this.appleAppStore) === null || _a === void 0 ? void 0 : _a.properties();
|
|
25
|
+
}
|
|
26
|
+
if (this.googlePlay != null) {
|
|
27
|
+
properties["googlePlay"] = (_b = this.googlePlay) === null || _b === void 0 ? void 0 : _b.properties();
|
|
28
|
+
}
|
|
29
|
+
return properties;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.default = StoreContentModel;
|
|
33
|
+
//# sourceMappingURL=StoreContentModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreContentModel.js","sourceRoot":"","sources":["StoreContentModel.ts"],"names":[],"mappings":";;AAmBA,MAAqB,iBAAiB;IAMlC,YACI,IAAY,EACZ,UAAyC,IAAI;;QANhC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,kBAAa,GAA8B,IAAI,CAAC;QAChD,eAAU,GAA2B,IAAI,CAAC;QAMvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,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;IAClD,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,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;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AArCD,oCAqCC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 AppleAppStoreContent from "./AppleAppStoreContent";
|
|
17
|
+
import GooglePlayContent from "./GooglePlayContent";
|
|
18
|
+
import { StoreContentModelOptions } from "./options/StoreContentModelOptions";
|
|
19
|
+
|
|
20
|
+
export default class StoreContentModel {
|
|
21
|
+
private readonly name: string;
|
|
22
|
+
private readonly metadata: string|null = null;
|
|
23
|
+
private readonly appleAppStore: AppleAppStoreContent|null = null;
|
|
24
|
+
private readonly googlePlay: GooglePlayContent|null = null;
|
|
25
|
+
|
|
26
|
+
public constructor(
|
|
27
|
+
name: string,
|
|
28
|
+
options: StoreContentModelOptions|null = null,
|
|
29
|
+
) {
|
|
30
|
+
this.name = name;
|
|
31
|
+
this.metadata = options?.metadata ?? null;
|
|
32
|
+
this.appleAppStore = options?.appleAppStore ?? null;
|
|
33
|
+
this.googlePlay = options?.googlePlay ?? null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public properties(
|
|
37
|
+
): {[name: string]: any} {
|
|
38
|
+
let properties: {[name: string]: any} = {};
|
|
39
|
+
|
|
40
|
+
if (this.name != null) {
|
|
41
|
+
properties["name"] = this.name;
|
|
42
|
+
}
|
|
43
|
+
if (this.metadata != null) {
|
|
44
|
+
properties["metadata"] = this.metadata;
|
|
45
|
+
}
|
|
46
|
+
if (this.appleAppStore != null) {
|
|
47
|
+
properties["appleAppStore"] = this.appleAppStore?.properties(
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
if (this.googlePlay != null) {
|
|
51
|
+
properties["googlePlay"] = this.googlePlay?.properties(
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return properties;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UnusedBalanceOptions } from "./options/UnusedBalanceOptions";
|
|
2
|
+
export default class UnusedBalance {
|
|
3
|
+
private readonly currency;
|
|
4
|
+
private readonly balance;
|
|
5
|
+
private readonly revision;
|
|
6
|
+
constructor(currency: string, balance: number, options?: UnusedBalanceOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class UnusedBalance {
|
|
4
|
+
constructor(currency, balance, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.revision = null;
|
|
7
|
+
this.currency = currency;
|
|
8
|
+
this.balance = balance;
|
|
9
|
+
this.revision = (_a = options === null || options === void 0 ? void 0 : options.revision) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
}
|
|
11
|
+
properties() {
|
|
12
|
+
let properties = {};
|
|
13
|
+
if (this.currency != null) {
|
|
14
|
+
properties["currency"] = this.currency;
|
|
15
|
+
}
|
|
16
|
+
if (this.balance != null) {
|
|
17
|
+
properties["balance"] = this.balance;
|
|
18
|
+
}
|
|
19
|
+
return properties;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = UnusedBalance;
|
|
23
|
+
//# sourceMappingURL=UnusedBalance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnusedBalance.js","sourceRoot":"","sources":["UnusedBalance.ts"],"names":[],"mappings":";;AAiBA,MAAqB,aAAa;IAK9B,YACI,QAAgB,EAChB,OAAe,EACf,UAAqC,IAAI;;QAL5B,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA5BD,gCA4BC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { UnusedBalanceOptions } from "./options/UnusedBalanceOptions";
|
|
17
|
+
|
|
18
|
+
export default class UnusedBalance {
|
|
19
|
+
private readonly currency: string;
|
|
20
|
+
private readonly balance: number;
|
|
21
|
+
private readonly revision: number|null = null;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
currency: string,
|
|
25
|
+
balance: number,
|
|
26
|
+
options: UnusedBalanceOptions|null = null,
|
|
27
|
+
) {
|
|
28
|
+
this.currency = currency;
|
|
29
|
+
this.balance = balance;
|
|
30
|
+
this.revision = options?.revision ?? null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public properties(
|
|
34
|
+
): {[name: string]: any} {
|
|
35
|
+
let properties: {[name: string]: any} = {};
|
|
36
|
+
|
|
37
|
+
if (this.currency != null) {
|
|
38
|
+
properties["currency"] = this.currency;
|
|
39
|
+
}
|
|
40
|
+
if (this.balance != null) {
|
|
41
|
+
properties["balance"] = this.balance;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return properties;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VerifyReceiptEventOptions } from "./options/VerifyReceiptEventOptions";
|
|
2
|
+
import { VerifyReceiptEventPlatform } from "./enum/VerifyReceiptEventPlatform";
|
|
3
|
+
export default class VerifyReceiptEvent {
|
|
4
|
+
private readonly contentName;
|
|
5
|
+
private readonly platform;
|
|
6
|
+
private readonly appleAppStoreVerifyReceiptEvent;
|
|
7
|
+
private readonly googlePlayVerifyReceiptEvent;
|
|
8
|
+
constructor(contentName: string, platform: VerifyReceiptEventPlatform, options?: VerifyReceiptEventOptions | null);
|
|
9
|
+
properties(): {
|
|
10
|
+
[name: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VerifyReceiptEvent {
|
|
4
|
+
constructor(contentName, platform, options = null) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
this.appleAppStoreVerifyReceiptEvent = null;
|
|
7
|
+
this.googlePlayVerifyReceiptEvent = null;
|
|
8
|
+
this.contentName = contentName;
|
|
9
|
+
this.platform = platform;
|
|
10
|
+
this.appleAppStoreVerifyReceiptEvent = (_a = options === null || options === void 0 ? void 0 : options.appleAppStoreVerifyReceiptEvent) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
this.googlePlayVerifyReceiptEvent = (_b = options === null || options === void 0 ? void 0 : options.googlePlayVerifyReceiptEvent) !== null && _b !== void 0 ? _b : null;
|
|
12
|
+
}
|
|
13
|
+
properties() {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
let properties = {};
|
|
16
|
+
if (this.contentName != null) {
|
|
17
|
+
properties["contentName"] = this.contentName;
|
|
18
|
+
}
|
|
19
|
+
if (this.platform != null) {
|
|
20
|
+
properties["platform"] = this.platform;
|
|
21
|
+
}
|
|
22
|
+
if (this.appleAppStoreVerifyReceiptEvent != null) {
|
|
23
|
+
properties["appleAppStoreVerifyReceiptEvent"] = (_a = this.appleAppStoreVerifyReceiptEvent) === null || _a === void 0 ? void 0 : _a.properties();
|
|
24
|
+
}
|
|
25
|
+
if (this.googlePlayVerifyReceiptEvent != null) {
|
|
26
|
+
properties["googlePlayVerifyReceiptEvent"] = (_b = this.googlePlayVerifyReceiptEvent) === null || _b === void 0 ? void 0 : _b.properties();
|
|
27
|
+
}
|
|
28
|
+
return properties;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = VerifyReceiptEvent;
|
|
32
|
+
//# sourceMappingURL=VerifyReceiptEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyReceiptEvent.js","sourceRoot":"","sources":["VerifyReceiptEvent.ts"],"names":[],"mappings":";;AAoBA,MAAqB,kBAAkB;IAMnC,YACI,WAAmB,EACnB,QAAoC,EACpC,UAA0C,IAAI;;QANjC,oCAA+B,GAAyC,IAAI,CAAC;QAC7E,iCAA4B,GAAsC,IAAI,CAAC;QAOpF,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,+BAA+B,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,+BAA+B,mCAAI,IAAI,CAAC;QACxF,IAAI,CAAC,4BAA4B,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,4BAA4B,mCAAI,IAAI,CAAC;IACtF,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,+BAA+B,IAAI,IAAI,EAAE;YAC9C,UAAU,CAAC,iCAAiC,CAAC,GAAG,MAAA,IAAI,CAAC,+BAA+B,0CAAE,UAAU,EAC/F,CAAC;SACL;QACD,IAAI,IAAI,CAAC,4BAA4B,IAAI,IAAI,EAAE;YAC3C,UAAU,CAAC,8BAA8B,CAAC,GAAG,MAAA,IAAI,CAAC,4BAA4B,0CAAE,UAAU,EACzF,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtCD,qCAsCC"}
|