gs2-cdk 1.0.65 → 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.
- package/buff/model/BuffEntryModel.d.ts +3 -3
- package/buff/model/BuffEntryModel.js +7 -7
- package/buff/model/BuffEntryModel.js.map +1 -1
- package/buff/model/BuffEntryModel.ts +9 -9
- package/buff/model/index.d.ts +2 -2
- package/buff/model/index.js +3 -3
- package/buff/model/index.ts +2 -2
- package/buff/model/options/BuffEntryModelOptions.ts +1 -1
- package/buff/model/options/BuffEntryModelTargetTypeIsActionOptions.ts +1 -1
- package/buff/model/options/BuffEntryModelTargetTypeIsModelOptions.ts +1 -1
- 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/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/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 +39 -0
- package/money2/model/index.js +64 -0
- package/money2/model/index.js.map +1 -0
- package/money2/model/index.ts +94 -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/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/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/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 +103 -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/index.d.ts +3 -0
- package/money2/ref/index.js +24 -0
- package/money2/ref/index.js.map +1 -0
- package/money2/ref/index.ts +22 -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 @@
|
|
|
1
|
+
{"version":3,"file":"StoreContentModelOptions.js","sourceRoot":"","sources":["StoreContentModelOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
19
|
+
export interface StoreContentModelOptions {
|
|
20
|
+
metadata?: string|null;
|
|
21
|
+
appleAppStore?: AppleAppStoreContent|null;
|
|
22
|
+
googlePlay?: GooglePlayContent|null;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import AppleAppStoreVerifyReceiptEvent from "../AppleAppStoreVerifyReceiptEvent";
|
|
2
|
+
import GooglePlayVerifyReceiptEvent from "../GooglePlayVerifyReceiptEvent";
|
|
3
|
+
export interface VerifyReceiptEventOptions {
|
|
4
|
+
appleAppStoreVerifyReceiptEvent?: AppleAppStoreVerifyReceiptEvent | null;
|
|
5
|
+
googlePlayVerifyReceiptEvent?: GooglePlayVerifyReceiptEvent | null;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyReceiptEventOptions.js","sourceRoot":"","sources":["VerifyReceiptEventOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 AppleAppStoreVerifyReceiptEvent from "../AppleAppStoreVerifyReceiptEvent";
|
|
17
|
+
import GooglePlayVerifyReceiptEvent from "../GooglePlayVerifyReceiptEvent";
|
|
18
|
+
import { VerifyReceiptEventPlatform } from "../enum/VerifyReceiptEventPlatform";
|
|
19
|
+
|
|
20
|
+
export interface VerifyReceiptEventOptions {
|
|
21
|
+
appleAppStoreVerifyReceiptEvent?: AppleAppStoreVerifyReceiptEvent|null;
|
|
22
|
+
googlePlayVerifyReceiptEvent?: GooglePlayVerifyReceiptEvent|null;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=WalletSummaryOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletSummaryOptions.js","sourceRoot":"","sources":["WalletSummaryOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface WalletSummaryOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawEventOptions.js","sourceRoot":"","sources":["WithdrawEventOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 DepositTransaction from "../DepositTransaction";
|
|
17
|
+
import WalletSummary from "../WalletSummary";
|
|
18
|
+
|
|
19
|
+
export interface WithdrawEventOptions {
|
|
20
|
+
withdrawDetails?: DepositTransaction[]|null;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import StoreContentModelRef from "./StoreContentModelRef";
|
|
2
|
+
import DepositByUserId from "../stampSheet/DepositByUserId";
|
|
3
|
+
import DepositTransaction from "../model/DepositTransaction";
|
|
4
|
+
import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
|
|
5
|
+
import VerifyReceiptByUserId from "../stampSheet/VerifyReceiptByUserId";
|
|
6
|
+
import Receipt from "../model/Receipt";
|
|
7
|
+
export default class NamespaceRef {
|
|
8
|
+
private readonly namespaceName;
|
|
9
|
+
constructor(namespaceName: string);
|
|
10
|
+
storeContentModel(contentName: string): StoreContentModelRef;
|
|
11
|
+
deposit(slot: number, depositTransactions: DepositTransaction[], userId?: string): DepositByUserId;
|
|
12
|
+
withdraw(slot: number, withdrawCount: number, paidOnly?: boolean | null, userId?: string): WithdrawByUserId;
|
|
13
|
+
verifyReceipt(contentName: string, receipt: Receipt, userId?: string): VerifyReceiptByUserId;
|
|
14
|
+
grn(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 func_1 = require("../../core/func");
|
|
20
|
+
const StoreContentModelRef_1 = tslib_1.__importDefault(require("./StoreContentModelRef"));
|
|
21
|
+
const DepositByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DepositByUserId"));
|
|
22
|
+
const WithdrawByUserId_1 = tslib_1.__importDefault(require("../stampSheet/WithdrawByUserId"));
|
|
23
|
+
const VerifyReceiptByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyReceiptByUserId"));
|
|
24
|
+
class NamespaceRef {
|
|
25
|
+
constructor(namespaceName) {
|
|
26
|
+
this.namespaceName = namespaceName;
|
|
27
|
+
}
|
|
28
|
+
storeContentModel(contentName) {
|
|
29
|
+
return new StoreContentModelRef_1.default(this.namespaceName, contentName);
|
|
30
|
+
}
|
|
31
|
+
deposit(slot, depositTransactions, userId = "#{userId}") {
|
|
32
|
+
return new DepositByUserId_1.default(this.namespaceName, slot, depositTransactions, userId);
|
|
33
|
+
}
|
|
34
|
+
withdraw(slot, withdrawCount, paidOnly = null, userId = "#{userId}") {
|
|
35
|
+
return new WithdrawByUserId_1.default(this.namespaceName, slot, withdrawCount, paidOnly, userId);
|
|
36
|
+
}
|
|
37
|
+
verifyReceipt(contentName, receipt, userId = "#{userId}") {
|
|
38
|
+
return new VerifyReceiptByUserId_1.default(this.namespaceName, contentName, receipt, userId);
|
|
39
|
+
}
|
|
40
|
+
grn() {
|
|
41
|
+
return new func_1.Join(":", [
|
|
42
|
+
"grn",
|
|
43
|
+
"gs2",
|
|
44
|
+
func_1.GetAttr.region().str(),
|
|
45
|
+
func_1.GetAttr.ownerId().str(),
|
|
46
|
+
"money2",
|
|
47
|
+
this.namespaceName,
|
|
48
|
+
]).str();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.default = NamespaceRef;
|
|
52
|
+
//# sourceMappingURL=NamespaceRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0FAA0D;AAC1D,4FAA4D;AAE5D,8FAA8D;AAC9D,wGAAwE;AAGxE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,WAAmB;QAEnB,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,OAAO,CACV,IAAY,EACZ,mBAAyC,EACzC,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,mBAAmB,EACnB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,IAAY,EACZ,aAAqB,EACrB,WAAyB,IAAI,EAC7B,SAAiB,WAAW;QAE5B,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,OAAgB,EAChB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,QAAQ;YACR,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA9ED,+BA8EC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import StoreContentModelRef from "./StoreContentModelRef";
|
|
19
|
+
import DepositByUserId from "../stampSheet/DepositByUserId";
|
|
20
|
+
import DepositTransaction from "../model/DepositTransaction";
|
|
21
|
+
import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
|
|
22
|
+
import VerifyReceiptByUserId from "../stampSheet/VerifyReceiptByUserId";
|
|
23
|
+
import Receipt from "../model/Receipt";
|
|
24
|
+
|
|
25
|
+
export default class NamespaceRef {
|
|
26
|
+
private readonly namespaceName: string;
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
) {
|
|
31
|
+
this.namespaceName = namespaceName;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public storeContentModel(
|
|
35
|
+
contentName: string,
|
|
36
|
+
): StoreContentModelRef {
|
|
37
|
+
return new StoreContentModelRef(
|
|
38
|
+
this.namespaceName,
|
|
39
|
+
contentName,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public deposit(
|
|
44
|
+
slot: number,
|
|
45
|
+
depositTransactions: DepositTransaction[],
|
|
46
|
+
userId: string = "#{userId}",
|
|
47
|
+
): DepositByUserId {
|
|
48
|
+
return new DepositByUserId(
|
|
49
|
+
this.namespaceName,
|
|
50
|
+
slot,
|
|
51
|
+
depositTransactions,
|
|
52
|
+
userId,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public withdraw(
|
|
57
|
+
slot: number,
|
|
58
|
+
withdrawCount: number,
|
|
59
|
+
paidOnly: boolean|null = null,
|
|
60
|
+
userId: string = "#{userId}",
|
|
61
|
+
): WithdrawByUserId {
|
|
62
|
+
return new WithdrawByUserId(
|
|
63
|
+
this.namespaceName,
|
|
64
|
+
slot,
|
|
65
|
+
withdrawCount,
|
|
66
|
+
paidOnly,
|
|
67
|
+
userId,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public verifyReceipt(
|
|
72
|
+
contentName: string,
|
|
73
|
+
receipt: Receipt,
|
|
74
|
+
userId: string = "#{userId}",
|
|
75
|
+
): VerifyReceiptByUserId {
|
|
76
|
+
return new VerifyReceiptByUserId(
|
|
77
|
+
this.namespaceName,
|
|
78
|
+
contentName,
|
|
79
|
+
receipt,
|
|
80
|
+
userId,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public grn(
|
|
85
|
+
): string {
|
|
86
|
+
return new Join(
|
|
87
|
+
":",
|
|
88
|
+
[
|
|
89
|
+
"grn",
|
|
90
|
+
"gs2",
|
|
91
|
+
GetAttr.region(
|
|
92
|
+
).str(
|
|
93
|
+
),
|
|
94
|
+
GetAttr.ownerId(
|
|
95
|
+
).str(
|
|
96
|
+
),
|
|
97
|
+
"money2",
|
|
98
|
+
this.namespaceName,
|
|
99
|
+
],
|
|
100
|
+
).str(
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 func_1 = require("../../core/func");
|
|
19
|
+
class StoreContentModelRef {
|
|
20
|
+
constructor(namespaceName, contentName) {
|
|
21
|
+
this.namespaceName = namespaceName;
|
|
22
|
+
this.contentName = contentName;
|
|
23
|
+
}
|
|
24
|
+
grn() {
|
|
25
|
+
return new func_1.Join(":", [
|
|
26
|
+
"grn",
|
|
27
|
+
"gs2",
|
|
28
|
+
func_1.GetAttr.region().str(),
|
|
29
|
+
func_1.GetAttr.ownerId().str(),
|
|
30
|
+
"money2",
|
|
31
|
+
this.namespaceName,
|
|
32
|
+
"model",
|
|
33
|
+
"content",
|
|
34
|
+
this.contentName,
|
|
35
|
+
]).str();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = StoreContentModelRef;
|
|
39
|
+
//# sourceMappingURL=StoreContentModelRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreContentModelRef.js","sourceRoot":"","sources":["StoreContentModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,oBAAoB;IAIrC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,QAAQ;YACR,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,SAAS;YACT,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAlCD,uCAkCC"}
|
|
@@ -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
|
+
|
|
17
|
+
import {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class StoreContentModelRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly contentName: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
contentName: string,
|
|
26
|
+
) {
|
|
27
|
+
this.namespaceName = namespaceName;
|
|
28
|
+
this.contentName = contentName;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public grn(
|
|
32
|
+
): string {
|
|
33
|
+
return new Join(
|
|
34
|
+
":",
|
|
35
|
+
[
|
|
36
|
+
"grn",
|
|
37
|
+
"gs2",
|
|
38
|
+
GetAttr.region(
|
|
39
|
+
).str(
|
|
40
|
+
),
|
|
41
|
+
GetAttr.ownerId(
|
|
42
|
+
).str(
|
|
43
|
+
),
|
|
44
|
+
"money2",
|
|
45
|
+
this.namespaceName,
|
|
46
|
+
"model",
|
|
47
|
+
"content",
|
|
48
|
+
this.contentName,
|
|
49
|
+
],
|
|
50
|
+
).str(
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreContentModelRef = exports.NamespaceRef = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
21
|
+
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
|
+
const StoreContentModelRef_1 = tslib_1.__importDefault(require("./StoreContentModelRef"));
|
|
23
|
+
exports.StoreContentModelRef = StoreContentModelRef_1.default;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,0FAA0D;AAItD,+BAJG,8BAAoB,CAIH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 NamespaceRef from "./NamespaceRef";
|
|
17
|
+
import StoreContentModelRef from "./StoreContentModelRef";
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
NamespaceRef,
|
|
21
|
+
StoreContentModelRef,
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
import DepositTransaction from "../model/DepositTransaction";
|
|
3
|
+
export default class DepositByUserId extends AcquireAction {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
private readonly slot;
|
|
7
|
+
private readonly depositTransactions;
|
|
8
|
+
private readonly timeOffsetToken;
|
|
9
|
+
constructor(namespaceName: string, slot: number, depositTransactions: DepositTransaction[], timeOffsetToken?: string | null, userId?: string);
|
|
10
|
+
request(): {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
};
|
|
13
|
+
action(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 model_1 = require("../../core/model");
|
|
19
|
+
class DepositByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, slot, depositTransactions, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.timeOffsetToken = null;
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.slot = slot;
|
|
25
|
+
this.depositTransactions = depositTransactions;
|
|
26
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
27
|
+
this.userId = userId;
|
|
28
|
+
}
|
|
29
|
+
request() {
|
|
30
|
+
let properties = {};
|
|
31
|
+
if (this.namespaceName != null) {
|
|
32
|
+
properties["namespaceName"] = this.namespaceName;
|
|
33
|
+
}
|
|
34
|
+
if (this.userId != null) {
|
|
35
|
+
properties["userId"] = this.userId;
|
|
36
|
+
}
|
|
37
|
+
if (this.slot != null) {
|
|
38
|
+
properties["slot"] = this.slot;
|
|
39
|
+
}
|
|
40
|
+
if (this.depositTransactions != null) {
|
|
41
|
+
properties["depositTransactions"] = this.depositTransactions.map(v => v.properties());
|
|
42
|
+
}
|
|
43
|
+
if (this.timeOffsetToken != null) {
|
|
44
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
45
|
+
}
|
|
46
|
+
return properties;
|
|
47
|
+
}
|
|
48
|
+
action() {
|
|
49
|
+
return "Gs2Money2:DepositByUserId";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = DepositByUserId;
|
|
53
|
+
//# sourceMappingURL=DepositByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepositByUserId.js","sourceRoot":"","sources":["DepositByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,eAAgB,SAAQ,qBAAa;IAQtD,YACI,aAAqB,EACrB,IAAY,EACZ,mBAAyC,EACzC,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAVK,oBAAe,GAAgB,IAAI,CAAC;QAYjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC7E,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,2BAA2B,CAAC;IACvC,CAAC;CACJ;AAnDD,kCAmDC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 {AcquireAction, ConsumeAction} from "../../core/model";
|
|
18
|
+
import DepositTransaction from "../model/DepositTransaction";
|
|
19
|
+
|
|
20
|
+
export default class DepositByUserId extends AcquireAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly slot: number;
|
|
24
|
+
private readonly depositTransactions: DepositTransaction[];
|
|
25
|
+
private readonly timeOffsetToken: string|null = null;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
slot: number,
|
|
31
|
+
depositTransactions: DepositTransaction[],
|
|
32
|
+
timeOffsetToken: string|null = null,
|
|
33
|
+
userId: string = "#{userId}",
|
|
34
|
+
) {
|
|
35
|
+
super();
|
|
36
|
+
|
|
37
|
+
this.namespaceName = namespaceName;
|
|
38
|
+
this.slot = slot;
|
|
39
|
+
this.depositTransactions = depositTransactions;
|
|
40
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
41
|
+
this.userId = userId;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public request(
|
|
45
|
+
): {[name: string]: any} {
|
|
46
|
+
let properties: {[name: string]: any} = {};
|
|
47
|
+
|
|
48
|
+
if (this.namespaceName != null) {
|
|
49
|
+
properties["namespaceName"] = this.namespaceName;
|
|
50
|
+
}
|
|
51
|
+
if (this.userId != null) {
|
|
52
|
+
properties["userId"] = this.userId;
|
|
53
|
+
}
|
|
54
|
+
if (this.slot != null) {
|
|
55
|
+
properties["slot"] = this.slot;
|
|
56
|
+
}
|
|
57
|
+
if (this.depositTransactions != null) {
|
|
58
|
+
properties["depositTransactions"] = this.depositTransactions.map(v => v.properties(
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
if (this.timeOffsetToken != null) {
|
|
62
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return properties;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public action(): string {
|
|
69
|
+
return "Gs2Money2:DepositByUserId";
|
|
70
|
+
}
|
|
71
|
+
}
|