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.
- 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":"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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConsumeAction } from "../../core/model";
|
|
2
|
+
import Receipt from "../model/Receipt";
|
|
3
|
+
export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
private readonly contentName;
|
|
7
|
+
private readonly receipt;
|
|
8
|
+
private readonly timeOffsetToken;
|
|
9
|
+
constructor(namespaceName: string, contentName: string, receipt: Receipt, timeOffsetToken?: string | null, userId?: string);
|
|
10
|
+
request(): {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
};
|
|
13
|
+
action(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 VerifyReceiptByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, contentName, receipt, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.timeOffsetToken = null;
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.contentName = contentName;
|
|
25
|
+
this.receipt = receipt;
|
|
26
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
27
|
+
this.userId = userId;
|
|
28
|
+
}
|
|
29
|
+
request() {
|
|
30
|
+
var _a;
|
|
31
|
+
let properties = {};
|
|
32
|
+
if (this.namespaceName != null) {
|
|
33
|
+
properties["namespaceName"] = this.namespaceName;
|
|
34
|
+
}
|
|
35
|
+
if (this.userId != null) {
|
|
36
|
+
properties["userId"] = this.userId;
|
|
37
|
+
}
|
|
38
|
+
if (this.contentName != null) {
|
|
39
|
+
properties["contentName"] = this.contentName;
|
|
40
|
+
}
|
|
41
|
+
if (this.receipt != null) {
|
|
42
|
+
properties["receipt"] = (_a = this.receipt) === null || _a === void 0 ? void 0 : _a.properties();
|
|
43
|
+
}
|
|
44
|
+
if (this.timeOffsetToken != null) {
|
|
45
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
46
|
+
}
|
|
47
|
+
return properties;
|
|
48
|
+
}
|
|
49
|
+
action() {
|
|
50
|
+
return "Gs2Money2:VerifyReceiptByUserId";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.default = VerifyReceiptByUserId;
|
|
54
|
+
//# sourceMappingURL=VerifyReceiptByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyReceiptByUserId.js","sourceRoot":"","sources":["VerifyReceiptByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,qBAAsB,SAAQ,qBAAa;IAQ5D,YACI,aAAqB,EACrB,WAAmB,EACnB,OAAgB,EAChB,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,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,EAC/C,CAAC;SACL;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,iCAAiC,CAAC;IAC7C,CAAC;CACJ;AAnDD,wCAmDC"}
|
|
@@ -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 Receipt from "../model/Receipt";
|
|
19
|
+
|
|
20
|
+
export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly contentName: string;
|
|
24
|
+
private readonly receipt: Receipt;
|
|
25
|
+
private readonly timeOffsetToken: string|null = null;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
contentName: string,
|
|
31
|
+
receipt: Receipt,
|
|
32
|
+
timeOffsetToken: string|null = null,
|
|
33
|
+
userId: string = "#{userId}",
|
|
34
|
+
) {
|
|
35
|
+
super();
|
|
36
|
+
|
|
37
|
+
this.namespaceName = namespaceName;
|
|
38
|
+
this.contentName = contentName;
|
|
39
|
+
this.receipt = receipt;
|
|
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.contentName != null) {
|
|
55
|
+
properties["contentName"] = this.contentName;
|
|
56
|
+
}
|
|
57
|
+
if (this.receipt != null) {
|
|
58
|
+
properties["receipt"] = this.receipt?.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:VerifyReceiptByUserId";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConsumeAction } from "../../core/model";
|
|
2
|
+
export default class WithdrawByUserId extends ConsumeAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly userId;
|
|
5
|
+
private readonly slot;
|
|
6
|
+
private readonly withdrawCount;
|
|
7
|
+
private readonly paidOnly;
|
|
8
|
+
private readonly timeOffsetToken;
|
|
9
|
+
constructor(namespaceName: string, slot: number, withdrawCount: number, paidOnly?: boolean | null, timeOffsetToken?: string | null, userId?: string);
|
|
10
|
+
request(): {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
};
|
|
13
|
+
action(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 WithdrawByUserId extends model_1.ConsumeAction {
|
|
20
|
+
constructor(namespaceName, slot, withdrawCount, paidOnly = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.paidOnly = null;
|
|
23
|
+
this.timeOffsetToken = null;
|
|
24
|
+
this.namespaceName = namespaceName;
|
|
25
|
+
this.slot = slot;
|
|
26
|
+
this.withdrawCount = withdrawCount;
|
|
27
|
+
this.paidOnly = paidOnly !== null && paidOnly !== void 0 ? paidOnly : null;
|
|
28
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
29
|
+
this.userId = userId;
|
|
30
|
+
}
|
|
31
|
+
request() {
|
|
32
|
+
let properties = {};
|
|
33
|
+
if (this.namespaceName != null) {
|
|
34
|
+
properties["namespaceName"] = this.namespaceName;
|
|
35
|
+
}
|
|
36
|
+
if (this.userId != null) {
|
|
37
|
+
properties["userId"] = this.userId;
|
|
38
|
+
}
|
|
39
|
+
if (this.slot != null) {
|
|
40
|
+
properties["slot"] = this.slot;
|
|
41
|
+
}
|
|
42
|
+
if (this.withdrawCount != null) {
|
|
43
|
+
properties["withdrawCount"] = this.withdrawCount;
|
|
44
|
+
}
|
|
45
|
+
if (this.paidOnly != null) {
|
|
46
|
+
properties["paidOnly"] = this.paidOnly;
|
|
47
|
+
}
|
|
48
|
+
if (this.timeOffsetToken != null) {
|
|
49
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
50
|
+
}
|
|
51
|
+
return properties;
|
|
52
|
+
}
|
|
53
|
+
action() {
|
|
54
|
+
return "Gs2Money2:WithdrawByUserId";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.default = WithdrawByUserId;
|
|
58
|
+
//# sourceMappingURL=WithdrawByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawByUserId.js","sourceRoot":"","sources":["WithdrawByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,gBAAiB,SAAQ,qBAAa;IASvD,YACI,aAAqB,EACrB,IAAY,EACZ,aAAqB,EACrB,WAAyB,IAAI,EAC7B,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAZK,aAAQ,GAAiB,IAAI,CAAC;QAC9B,oBAAe,GAAgB,IAAI,CAAC;QAajD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC;QACjC,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;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,4BAA4B,CAAC;IACxC,CAAC;CACJ;AAxDD,mCAwDC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
|
|
19
|
+
export default class WithdrawByUserId extends ConsumeAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly userId: string;
|
|
22
|
+
private readonly slot: number;
|
|
23
|
+
private readonly withdrawCount: number;
|
|
24
|
+
private readonly paidOnly: boolean|null = null;
|
|
25
|
+
private readonly timeOffsetToken: string|null = null;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
slot: number,
|
|
31
|
+
withdrawCount: number,
|
|
32
|
+
paidOnly: boolean|null = null,
|
|
33
|
+
timeOffsetToken: string|null = null,
|
|
34
|
+
userId: string = "#{userId}",
|
|
35
|
+
) {
|
|
36
|
+
super();
|
|
37
|
+
|
|
38
|
+
this.namespaceName = namespaceName;
|
|
39
|
+
this.slot = slot;
|
|
40
|
+
this.withdrawCount = withdrawCount;
|
|
41
|
+
this.paidOnly = paidOnly ?? null;
|
|
42
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
43
|
+
this.userId = userId;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public request(
|
|
47
|
+
): {[name: string]: any} {
|
|
48
|
+
let properties: {[name: string]: any} = {};
|
|
49
|
+
|
|
50
|
+
if (this.namespaceName != null) {
|
|
51
|
+
properties["namespaceName"] = this.namespaceName;
|
|
52
|
+
}
|
|
53
|
+
if (this.userId != null) {
|
|
54
|
+
properties["userId"] = this.userId;
|
|
55
|
+
}
|
|
56
|
+
if (this.slot != null) {
|
|
57
|
+
properties["slot"] = this.slot;
|
|
58
|
+
}
|
|
59
|
+
if (this.withdrawCount != null) {
|
|
60
|
+
properties["withdrawCount"] = this.withdrawCount;
|
|
61
|
+
}
|
|
62
|
+
if (this.paidOnly != null) {
|
|
63
|
+
properties["paidOnly"] = this.paidOnly;
|
|
64
|
+
}
|
|
65
|
+
if (this.timeOffsetToken != null) {
|
|
66
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return properties;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public action(): string {
|
|
73
|
+
return "Gs2Money2:WithdrawByUserId";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerifyReceiptByUserId = exports.WithdrawByUserId = exports.DepositByUserId = 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 DepositByUserId_1 = tslib_1.__importDefault(require("./DepositByUserId"));
|
|
21
|
+
exports.DepositByUserId = DepositByUserId_1.default;
|
|
22
|
+
const WithdrawByUserId_1 = tslib_1.__importDefault(require("./WithdrawByUserId"));
|
|
23
|
+
exports.WithdrawByUserId = WithdrawByUserId_1.default;
|
|
24
|
+
const VerifyReceiptByUserId_1 = tslib_1.__importDefault(require("./VerifyReceiptByUserId"));
|
|
25
|
+
exports.VerifyReceiptByUserId = VerifyReceiptByUserId_1.default;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gFAAgD;AAK5C,0BALG,yBAAe,CAKH;AAJnB,kFAAkD;AAK9C,2BALG,0BAAgB,CAKH;AAJpB,4FAA4D;AAKxD,gCALG,+BAAqB,CAKH"}
|
|
@@ -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 DepositByUserId from "./DepositByUserId";
|
|
17
|
+
import WithdrawByUserId from "./WithdrawByUserId";
|
|
18
|
+
import VerifyReceiptByUserId from "./VerifyReceiptByUserId";
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
DepositByUserId,
|
|
22
|
+
WithdrawByUserId,
|
|
23
|
+
VerifyReceiptByUserId,
|
|
24
|
+
}
|