gs2-cdk 1.0.67 → 1.0.69
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/account/model/PlatformUser.d.ts +10 -0
- package/account/model/PlatformUser.js +24 -0
- package/account/model/PlatformUser.js.map +1 -0
- package/account/model/PlatformUser.ts +50 -0
- package/account/model/index.d.ts +3 -1
- package/account/model/index.js +3 -1
- package/account/model/index.js.map +1 -1
- package/account/model/index.ts +4 -0
- package/account/model/options/PlatformUserOptions.d.ts +2 -0
- package/account/model/options/PlatformUserOptions.js +18 -0
- package/account/model/options/PlatformUserOptions.js.map +1 -0
- package/account/model/options/PlatformUserOptions.ts +19 -0
- 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/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/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/index.d.ts +5 -1
- package/money2/model/index.js +5 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +8 -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/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/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 +1 -2
- package/money2/ref/NamespaceRef.js +3 -1
- package/money2/ref/NamespaceRef.js.map +1 -1
- package/money2/ref/NamespaceRef.ts +5 -1
- 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 +3 -1
- package/money2/ref/index.js +5 -1
- package/money2/ref/index.js.map +1 -1
- package/money2/ref/index.ts +4 -0
- package/money2/stampSheet/VerifyReceiptByUserId.d.ts +1 -2
- package/money2/stampSheet/VerifyReceiptByUserId.js +4 -3
- package/money2/stampSheet/VerifyReceiptByUserId.js.map +1 -1
- package/money2/stampSheet/VerifyReceiptByUserId.ts +5 -4
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
2
|
+
export default class PlatformUser {
|
|
3
|
+
private readonly type;
|
|
4
|
+
private readonly userIdentifier;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
constructor(type: number, userIdentifier: string, userId: string, options?: PlatformUserOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PlatformUser {
|
|
4
|
+
constructor(type, userIdentifier, userId, options = null) {
|
|
5
|
+
this.type = type;
|
|
6
|
+
this.userIdentifier = userIdentifier;
|
|
7
|
+
this.userId = userId;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.type != null) {
|
|
12
|
+
properties["type"] = this.type;
|
|
13
|
+
}
|
|
14
|
+
if (this.userIdentifier != null) {
|
|
15
|
+
properties["userIdentifier"] = this.userIdentifier;
|
|
16
|
+
}
|
|
17
|
+
if (this.userId != null) {
|
|
18
|
+
properties["userId"] = this.userId;
|
|
19
|
+
}
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = PlatformUser;
|
|
24
|
+
//# sourceMappingURL=PlatformUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlatformUser.js","sourceRoot":"","sources":["PlatformUser.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAK7B,YACI,IAAY,EACZ,cAAsB,EACtB,MAAc,EACd,UAAoC,IAAI;QAExC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,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,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,+BAgCC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
17
|
+
|
|
18
|
+
export default class PlatformUser {
|
|
19
|
+
private readonly type: number;
|
|
20
|
+
private readonly userIdentifier: string;
|
|
21
|
+
private readonly userId: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
type: number,
|
|
25
|
+
userIdentifier: string,
|
|
26
|
+
userId: string,
|
|
27
|
+
options: PlatformUserOptions|null = null,
|
|
28
|
+
) {
|
|
29
|
+
this.type = type;
|
|
30
|
+
this.userIdentifier = userIdentifier;
|
|
31
|
+
this.userId = userId;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public properties(
|
|
35
|
+
): {[name: string]: any} {
|
|
36
|
+
let properties: {[name: string]: any} = {};
|
|
37
|
+
|
|
38
|
+
if (this.type != null) {
|
|
39
|
+
properties["type"] = this.type;
|
|
40
|
+
}
|
|
41
|
+
if (this.userIdentifier != null) {
|
|
42
|
+
properties["userIdentifier"] = this.userIdentifier;
|
|
43
|
+
}
|
|
44
|
+
if (this.userId != null) {
|
|
45
|
+
properties["userId"] = this.userId;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return properties;
|
|
49
|
+
}
|
|
50
|
+
}
|
package/account/model/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
+
import PlatformUser from "./PlatformUser";
|
|
4
|
+
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
3
5
|
import BanStatus from "./BanStatus";
|
|
4
6
|
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
5
|
-
export { Namespace, NamespaceOptions, BanStatus, BanStatusOptions, };
|
|
7
|
+
export { Namespace, NamespaceOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, };
|
package/account/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BanStatus = exports.Namespace = void 0;
|
|
3
|
+
exports.BanStatus = exports.PlatformUser = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
|
+
const PlatformUser_1 = tslib_1.__importDefault(require("./PlatformUser"));
|
|
23
|
+
exports.PlatformUser = PlatformUser_1.default;
|
|
22
24
|
const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
|
|
23
25
|
exports.BanStatus = BanStatus_1.default;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAQhC,oBARG,mBAAS,CAQH;AANb,0EAA0C;AAQtC,uBARG,sBAAY,CAQH;AANhB,oEAAoC;AAQhC,oBARG,mBAAS,CAQH"}
|
package/account/model/index.ts
CHANGED
|
@@ -15,12 +15,16 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Namespace from "./Namespace";
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
+
import PlatformUser from "./PlatformUser";
|
|
19
|
+
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
18
20
|
import BanStatus from "./BanStatus";
|
|
19
21
|
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
20
22
|
|
|
21
23
|
export {
|
|
22
24
|
Namespace,
|
|
23
25
|
NamespaceOptions,
|
|
26
|
+
PlatformUser,
|
|
27
|
+
PlatformUserOptions,
|
|
24
28
|
BanStatus,
|
|
25
29
|
BanStatusOptions,
|
|
26
30
|
}
|
|
@@ -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=PlatformUserOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlatformUserOptions.js","sourceRoot":"","sources":["PlatformUserOptions.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 PlatformUserOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -9,6 +9,7 @@ export default class Namespace extends CdkResource {
|
|
|
9
9
|
private readonly description;
|
|
10
10
|
private readonly transactionSetting;
|
|
11
11
|
private readonly receiveScript;
|
|
12
|
+
private readonly overrideAcquireActionsScriptId;
|
|
12
13
|
private readonly logSetting;
|
|
13
14
|
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
14
15
|
alternateKeys(): string;
|
package/idle/model/Namespace.js
CHANGED
|
@@ -22,18 +22,20 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
|
22
22
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
23
23
|
class Namespace extends model_1.CdkResource {
|
|
24
24
|
constructor(stack, name, options = null) {
|
|
25
|
-
var _a, _b, _c, _d;
|
|
25
|
+
var _a, _b, _c, _d, _e;
|
|
26
26
|
super("Idle_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
28
|
this.transactionSetting = null;
|
|
29
29
|
this.receiveScript = null;
|
|
30
|
+
this.overrideAcquireActionsScriptId = null;
|
|
30
31
|
this.logSetting = null;
|
|
31
32
|
this.stack = stack;
|
|
32
33
|
this.name = name;
|
|
33
34
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
34
35
|
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
35
36
|
this.receiveScript = (_c = options === null || options === void 0 ? void 0 : options.receiveScript) !== null && _c !== void 0 ? _c : null;
|
|
36
|
-
this.
|
|
37
|
+
this.overrideAcquireActionsScriptId = (_d = options === null || options === void 0 ? void 0 : options.overrideAcquireActionsScriptId) !== null && _d !== void 0 ? _d : null;
|
|
38
|
+
this.logSetting = (_e = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _e !== void 0 ? _e : null;
|
|
37
39
|
stack.addResource(this);
|
|
38
40
|
}
|
|
39
41
|
alternateKeys() {
|
|
@@ -57,6 +59,9 @@ class Namespace extends model_1.CdkResource {
|
|
|
57
59
|
if (this.receiveScript != null) {
|
|
58
60
|
properties["ReceiveScript"] = (_b = this.receiveScript) === null || _b === void 0 ? void 0 : _b.properties();
|
|
59
61
|
}
|
|
62
|
+
if (this.overrideAcquireActionsScriptId != null) {
|
|
63
|
+
properties["OverrideAcquireActionsScriptId"] = this.overrideAcquireActionsScriptId;
|
|
64
|
+
}
|
|
60
65
|
if (this.logSetting != null) {
|
|
61
66
|
properties["LogSetting"] = (_c = this.logSetting) === null || _c === void 0 ? void 0 : _c.properties();
|
|
62
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAS9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,iBAAiB,GAAG,IAAI,CAC3B,CAAC;QAbW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,kBAAa,GAAuB,IAAI,CAAC;QACzC,mCAA8B,GAAgB,IAAI,CAAC;QACnD,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,8BAA8B,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,8BAA8B,mCAAI,IAAI,CAAC;QACtF,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,sBAAsB,CAAC;IAClC,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;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,8BAA8B,IAAI,IAAI,EAAE;YAC7C,UAAU,CAAC,gCAAgC,CAAC,GAAG,IAAI,CAAC,8BAA8B,CAAC;SACtF;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;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,cAA+B;QAE/B,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,cAAc,CACjB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAlGD,4BAkGC"}
|
package/idle/model/Namespace.ts
CHANGED
|
@@ -32,6 +32,7 @@ export default class Namespace extends CdkResource {
|
|
|
32
32
|
private readonly description: string|null = null;
|
|
33
33
|
private readonly transactionSetting: TransactionSetting|null = null;
|
|
34
34
|
private readonly receiveScript: ScriptSetting|null = null;
|
|
35
|
+
private readonly overrideAcquireActionsScriptId: string|null = null;
|
|
35
36
|
private readonly logSetting: LogSetting|null = null;
|
|
36
37
|
|
|
37
38
|
public constructor(
|
|
@@ -48,6 +49,7 @@ export default class Namespace extends CdkResource {
|
|
|
48
49
|
this.description = options?.description ?? null;
|
|
49
50
|
this.transactionSetting = options?.transactionSetting ?? null;
|
|
50
51
|
this.receiveScript = options?.receiveScript ?? null;
|
|
52
|
+
this.overrideAcquireActionsScriptId = options?.overrideAcquireActionsScriptId ?? null;
|
|
51
53
|
this.logSetting = options?.logSetting ?? null;
|
|
52
54
|
stack.addResource(
|
|
53
55
|
this,
|
|
@@ -83,6 +85,9 @@ export default class Namespace extends CdkResource {
|
|
|
83
85
|
properties["ReceiveScript"] = this.receiveScript?.properties(
|
|
84
86
|
);
|
|
85
87
|
}
|
|
88
|
+
if (this.overrideAcquireActionsScriptId != null) {
|
|
89
|
+
properties["OverrideAcquireActionsScriptId"] = this.overrideAcquireActionsScriptId;
|
|
90
|
+
}
|
|
86
91
|
if (this.logSetting != null) {
|
|
87
92
|
properties["LogSetting"] = this.logSetting?.properties(
|
|
88
93
|
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DailyTransactionHistoryOptions } from "./options/DailyTransactionHistoryOptions";
|
|
2
|
+
export default class DailyTransactionHistory {
|
|
3
|
+
private readonly year;
|
|
4
|
+
private readonly month;
|
|
5
|
+
private readonly day;
|
|
6
|
+
private readonly currency;
|
|
7
|
+
private readonly depositAmount;
|
|
8
|
+
private readonly withdrawAmount;
|
|
9
|
+
private readonly revision;
|
|
10
|
+
constructor(year: number, month: number, day: number, currency: string, depositAmount: number, withdrawAmount: number, options?: DailyTransactionHistoryOptions | null);
|
|
11
|
+
properties(): {
|
|
12
|
+
[name: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class DailyTransactionHistory {
|
|
4
|
+
constructor(year, month, day, currency, depositAmount, withdrawAmount, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.revision = null;
|
|
7
|
+
this.year = year;
|
|
8
|
+
this.month = month;
|
|
9
|
+
this.day = day;
|
|
10
|
+
this.currency = currency;
|
|
11
|
+
this.depositAmount = depositAmount;
|
|
12
|
+
this.withdrawAmount = withdrawAmount;
|
|
13
|
+
this.revision = (_a = options === null || options === void 0 ? void 0 : options.revision) !== null && _a !== void 0 ? _a : null;
|
|
14
|
+
}
|
|
15
|
+
properties() {
|
|
16
|
+
let properties = {};
|
|
17
|
+
if (this.year != null) {
|
|
18
|
+
properties["year"] = this.year;
|
|
19
|
+
}
|
|
20
|
+
if (this.month != null) {
|
|
21
|
+
properties["month"] = this.month;
|
|
22
|
+
}
|
|
23
|
+
if (this.day != null) {
|
|
24
|
+
properties["day"] = this.day;
|
|
25
|
+
}
|
|
26
|
+
if (this.currency != null) {
|
|
27
|
+
properties["currency"] = this.currency;
|
|
28
|
+
}
|
|
29
|
+
if (this.depositAmount != null) {
|
|
30
|
+
properties["depositAmount"] = this.depositAmount;
|
|
31
|
+
}
|
|
32
|
+
if (this.withdrawAmount != null) {
|
|
33
|
+
properties["withdrawAmount"] = this.withdrawAmount;
|
|
34
|
+
}
|
|
35
|
+
return properties;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = DailyTransactionHistory;
|
|
39
|
+
//# sourceMappingURL=DailyTransactionHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DailyTransactionHistory.js","sourceRoot":"","sources":["DailyTransactionHistory.ts"],"names":[],"mappings":";;AAiBA,MAAqB,uBAAuB;IASxC,YACI,IAAY,EACZ,KAAa,EACb,GAAW,EACX,QAAgB,EAChB,aAAqB,EACrB,cAAsB,EACtB,UAA+C,IAAI;;QATtC,aAAQ,GAAgB,IAAI,CAAC;QAW1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,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,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QACD,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;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,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AApDD,0CAoDC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { DailyTransactionHistoryOptions } from "./options/DailyTransactionHistoryOptions";
|
|
17
|
+
|
|
18
|
+
export default class DailyTransactionHistory {
|
|
19
|
+
private readonly year: number;
|
|
20
|
+
private readonly month: number;
|
|
21
|
+
private readonly day: number;
|
|
22
|
+
private readonly currency: string;
|
|
23
|
+
private readonly depositAmount: number;
|
|
24
|
+
private readonly withdrawAmount: number;
|
|
25
|
+
private readonly revision: number|null = null;
|
|
26
|
+
|
|
27
|
+
public constructor(
|
|
28
|
+
year: number,
|
|
29
|
+
month: number,
|
|
30
|
+
day: number,
|
|
31
|
+
currency: string,
|
|
32
|
+
depositAmount: number,
|
|
33
|
+
withdrawAmount: number,
|
|
34
|
+
options: DailyTransactionHistoryOptions|null = null,
|
|
35
|
+
) {
|
|
36
|
+
this.year = year;
|
|
37
|
+
this.month = month;
|
|
38
|
+
this.day = day;
|
|
39
|
+
this.currency = currency;
|
|
40
|
+
this.depositAmount = depositAmount;
|
|
41
|
+
this.withdrawAmount = withdrawAmount;
|
|
42
|
+
this.revision = options?.revision ?? null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public properties(
|
|
46
|
+
): {[name: string]: any} {
|
|
47
|
+
let properties: {[name: string]: any} = {};
|
|
48
|
+
|
|
49
|
+
if (this.year != null) {
|
|
50
|
+
properties["year"] = this.year;
|
|
51
|
+
}
|
|
52
|
+
if (this.month != null) {
|
|
53
|
+
properties["month"] = this.month;
|
|
54
|
+
}
|
|
55
|
+
if (this.day != null) {
|
|
56
|
+
properties["day"] = this.day;
|
|
57
|
+
}
|
|
58
|
+
if (this.currency != null) {
|
|
59
|
+
properties["currency"] = this.currency;
|
|
60
|
+
}
|
|
61
|
+
if (this.depositAmount != null) {
|
|
62
|
+
properties["depositAmount"] = this.depositAmount;
|
|
63
|
+
}
|
|
64
|
+
if (this.withdrawAmount != null) {
|
|
65
|
+
properties["withdrawAmount"] = this.withdrawAmount;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return properties;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -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
|
+
}
|
package/money2/model/index.d.ts
CHANGED
|
@@ -35,5 +35,9 @@ import AppleAppStoreContent from "./AppleAppStoreContent";
|
|
|
35
35
|
import { AppleAppStoreContentOptions } from "./options/AppleAppStoreContentOptions";
|
|
36
36
|
import GooglePlayContent from "./GooglePlayContent";
|
|
37
37
|
import { GooglePlayContentOptions } from "./options/GooglePlayContentOptions";
|
|
38
|
+
import DailyTransactionHistory from "./DailyTransactionHistory";
|
|
39
|
+
import { DailyTransactionHistoryOptions } from "./options/DailyTransactionHistoryOptions";
|
|
40
|
+
import UnusedBalance from "./UnusedBalance";
|
|
41
|
+
import { UnusedBalanceOptions } from "./options/UnusedBalanceOptions";
|
|
38
42
|
import CurrentMasterData from "./CurrentMasterData";
|
|
39
|
-
export { Namespace, NamespaceOptions, NamespaceCurrencyUsagePriority, StoreContentModel, StoreContentModelOptions, Receipt, ReceiptOptions, ReceiptStore, PlatformSetting, PlatformSettingOptions, AppleAppStoreSetting, AppleAppStoreSettingOptions, GooglePlaySetting, GooglePlaySettingOptions, FakeSetting, FakeSettingOptions, FakeSettingAcceptFakeReceipt, WalletSummary, WalletSummaryOptions, DepositTransaction, DepositTransactionOptions, VerifyReceiptEvent, VerifyReceiptEventOptions, VerifyReceiptEventPlatform, DepositEvent, DepositEventOptions, WithdrawEvent, WithdrawEventOptions, AppleAppStoreVerifyReceiptEvent, AppleAppStoreVerifyReceiptEventOptions, AppleAppStoreVerifyReceiptEventEnvironment, GooglePlayVerifyReceiptEvent, GooglePlayVerifyReceiptEventOptions, AppleAppStoreContent, AppleAppStoreContentOptions, GooglePlayContent, GooglePlayContentOptions, CurrentMasterData, };
|
|
43
|
+
export { Namespace, NamespaceOptions, NamespaceCurrencyUsagePriority, StoreContentModel, StoreContentModelOptions, Receipt, ReceiptOptions, ReceiptStore, PlatformSetting, PlatformSettingOptions, AppleAppStoreSetting, AppleAppStoreSettingOptions, GooglePlaySetting, GooglePlaySettingOptions, FakeSetting, FakeSettingOptions, FakeSettingAcceptFakeReceipt, WalletSummary, WalletSummaryOptions, DepositTransaction, DepositTransactionOptions, VerifyReceiptEvent, VerifyReceiptEventOptions, VerifyReceiptEventPlatform, DepositEvent, DepositEventOptions, WithdrawEvent, WithdrawEventOptions, AppleAppStoreVerifyReceiptEvent, AppleAppStoreVerifyReceiptEventOptions, AppleAppStoreVerifyReceiptEventEnvironment, GooglePlayVerifyReceiptEvent, GooglePlayVerifyReceiptEventOptions, AppleAppStoreContent, AppleAppStoreContentOptions, GooglePlayContent, GooglePlayContentOptions, DailyTransactionHistory, DailyTransactionHistoryOptions, UnusedBalance, UnusedBalanceOptions, CurrentMasterData, };
|
package/money2/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrentMasterData = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEventEnvironment = exports.AppleAppStoreVerifyReceiptEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEventPlatform = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSettingAcceptFakeReceipt = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.ReceiptStore = exports.Receipt = exports.StoreContentModel = exports.NamespaceCurrencyUsagePriority = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.UnusedBalance = exports.DailyTransactionHistory = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEventEnvironment = exports.AppleAppStoreVerifyReceiptEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEventPlatform = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSettingAcceptFakeReceipt = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.ReceiptStore = exports.Receipt = exports.StoreContentModel = exports.NamespaceCurrencyUsagePriority = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -59,6 +59,10 @@ const AppleAppStoreContent_1 = tslib_1.__importDefault(require("./AppleAppStoreC
|
|
|
59
59
|
exports.AppleAppStoreContent = AppleAppStoreContent_1.default;
|
|
60
60
|
const GooglePlayContent_1 = tslib_1.__importDefault(require("./GooglePlayContent"));
|
|
61
61
|
exports.GooglePlayContent = GooglePlayContent_1.default;
|
|
62
|
+
const DailyTransactionHistory_1 = tslib_1.__importDefault(require("./DailyTransactionHistory"));
|
|
63
|
+
exports.DailyTransactionHistory = DailyTransactionHistory_1.default;
|
|
64
|
+
const UnusedBalance_1 = tslib_1.__importDefault(require("./UnusedBalance"));
|
|
65
|
+
exports.UnusedBalance = UnusedBalance_1.default;
|
|
62
66
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
63
67
|
exports.CurrentMasterData = CurrentMasterData_1.default;
|
|
64
68
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AA4ChC,oBA5CG,mBAAS,CA4CH;AA1Cb,0FAAuF;AA4CnF,+GA5CK,+DAA8B,OA4CL;AA3ClC,oFAAoD;AA4ChD,4BA5CG,2BAAiB,CA4CH;AA1CrB,gEAAgC;AA4C5B,kBA5CG,iBAAO,CA4CH;AA1CX,sDAAmD;AA4C/C,6FA5CK,2BAAY,OA4CL;AA3ChB,gFAAgD;AA4C5C,0BA5CG,yBAAe,CA4CH;AA1CnB,0FAA0D;AA4CtD,+BA5CG,8BAAoB,CA4CH;AA1CxB,oFAAoD;AA4ChD,4BA5CG,2BAAiB,CA4CH;AA1CrB,wEAAwC;AA4CpC,sBA5CG,qBAAW,CA4CH;AA1Cf,sFAAmF;AA4C/E,6GA5CK,2DAA4B,OA4CL;AA3ChC,4EAA4C;AA4CxC,wBA5CG,uBAAa,CA4CH;AA1CjB,sFAAsD;AA4ClD,6BA5CG,4BAAkB,CA4CH;AA1CtB,sFAAsD;AA4ClD,6BA5CG,4BAAkB,CA4CH;AA1CtB,kFAA+E;AA4C3E,2GA5CK,uDAA0B,OA4CL;AA3C9B,0EAA0C;AA4CtC,uBA5CG,sBAAY,CA4CH;AA1ChB,4EAA4C;AA4CxC,wBA5CG,uBAAa,CA4CH;AA1CjB,gHAAgF;AA4C5E,0CA5CG,yCAA+B,CA4CH;AA1CnC,kHAA+G;AA4C3G,2HA5CK,uFAA0C,OA4CL;AA3C9C,0GAA0E;AA4CtE,uCA5CG,sCAA4B,CA4CH;AA1ChC,0FAA0D;AA4CtD,+BA5CG,8BAAoB,CA4CH;AA1CxB,oFAAoD;AA4ChD,4BA5CG,2BAAiB,CA4CH;AA1CrB,gGAAgE;AA4C5D,kCA5CG,iCAAuB,CA4CH;AA1C3B,4EAA4C;AA4CxC,wBA5CG,uBAAa,CA4CH;AA1CjB,oFAAoD;AA4ChD,4BA5CG,2BAAiB,CA4CH"}
|
package/money2/model/index.ts
CHANGED
|
@@ -50,6 +50,10 @@ import AppleAppStoreContent from "./AppleAppStoreContent";
|
|
|
50
50
|
import { AppleAppStoreContentOptions } from "./options/AppleAppStoreContentOptions";
|
|
51
51
|
import GooglePlayContent from "./GooglePlayContent";
|
|
52
52
|
import { GooglePlayContentOptions } from "./options/GooglePlayContentOptions";
|
|
53
|
+
import DailyTransactionHistory from "./DailyTransactionHistory";
|
|
54
|
+
import { DailyTransactionHistoryOptions } from "./options/DailyTransactionHistoryOptions";
|
|
55
|
+
import UnusedBalance from "./UnusedBalance";
|
|
56
|
+
import { UnusedBalanceOptions } from "./options/UnusedBalanceOptions";
|
|
53
57
|
import CurrentMasterData from "./CurrentMasterData";
|
|
54
58
|
|
|
55
59
|
export {
|
|
@@ -90,5 +94,9 @@ export {
|
|
|
90
94
|
AppleAppStoreContentOptions,
|
|
91
95
|
GooglePlayContent,
|
|
92
96
|
GooglePlayContentOptions,
|
|
97
|
+
DailyTransactionHistory,
|
|
98
|
+
DailyTransactionHistoryOptions,
|
|
99
|
+
UnusedBalance,
|
|
100
|
+
UnusedBalanceOptions,
|
|
93
101
|
CurrentMasterData,
|
|
94
102
|
}
|
|
@@ -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=DailyTransactionHistoryOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DailyTransactionHistoryOptions.js","sourceRoot":"","sources":["DailyTransactionHistoryOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 DailyTransactionHistoryOptions {
|
|
18
|
+
revision?: number|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -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=UnusedBalanceOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnusedBalanceOptions.js","sourceRoot":"","sources":["UnusedBalanceOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 UnusedBalanceOptions {
|
|
18
|
+
revision?: number|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default class DailyTransactionHistoryRef {
|
|
2
|
+
private readonly namespaceName;
|
|
3
|
+
private readonly year;
|
|
4
|
+
private readonly month;
|
|
5
|
+
private readonly day;
|
|
6
|
+
private readonly currency;
|
|
7
|
+
constructor(namespaceName: string, year: number, month: number, day: number, currency: string);
|
|
8
|
+
grn(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* deny overwrite
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
class DailyTransactionHistoryRef {
|
|
22
|
+
constructor(namespaceName, year, month, day, currency) {
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.year = year;
|
|
25
|
+
this.month = month;
|
|
26
|
+
this.day = day;
|
|
27
|
+
this.currency = currency;
|
|
28
|
+
}
|
|
29
|
+
grn() {
|
|
30
|
+
return new func_1.Join(":", [
|
|
31
|
+
"grn",
|
|
32
|
+
"gs2",
|
|
33
|
+
func_1.GetAttr.region().str(),
|
|
34
|
+
func_1.GetAttr.ownerId().str(),
|
|
35
|
+
"money2",
|
|
36
|
+
this.namespaceName,
|
|
37
|
+
"transaction",
|
|
38
|
+
"history",
|
|
39
|
+
"daily",
|
|
40
|
+
"" + this.year,
|
|
41
|
+
"" + this.month,
|
|
42
|
+
"" + this.day,
|
|
43
|
+
"currency",
|
|
44
|
+
this.currency,
|
|
45
|
+
]).str();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.default = DailyTransactionHistoryRef;
|
|
49
|
+
//# sourceMappingURL=DailyTransactionHistoryRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DailyTransactionHistoryRef.js","sourceRoot":"","sources":["DailyTransactionHistoryRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,0CAA8C;AAE9C,MAAqB,0BAA0B;IAO3C,YACI,aAAqB,EACrB,IAAY,EACZ,KAAa,EACb,GAAW,EACX,QAAgB;QAEhB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,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,aAAa;YACb,SAAS;YACT,OAAO;YACP,EAAE,GAAG,IAAI,CAAC,IAAI;YACd,EAAE,GAAG,IAAI,CAAC,KAAK;YACf,EAAE,GAAG,IAAI,CAAC,GAAG;YACb,UAAU;YACV,IAAI,CAAC,QAAQ;SAChB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAhDD,6CAgDC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* deny overwrite
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import {GetAttr, Join} from "../../core/func";
|
|
20
|
+
|
|
21
|
+
export default class DailyTransactionHistoryRef {
|
|
22
|
+
private readonly namespaceName: string;
|
|
23
|
+
private readonly year: number;
|
|
24
|
+
private readonly month: number;
|
|
25
|
+
private readonly day: number;
|
|
26
|
+
private readonly currency: string;
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
year: number,
|
|
31
|
+
month: number,
|
|
32
|
+
day: number,
|
|
33
|
+
currency: string,
|
|
34
|
+
) {
|
|
35
|
+
this.namespaceName = namespaceName;
|
|
36
|
+
this.year = year;
|
|
37
|
+
this.month = month;
|
|
38
|
+
this.day = day;
|
|
39
|
+
this.currency = currency;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public grn(
|
|
43
|
+
): string {
|
|
44
|
+
return new Join(
|
|
45
|
+
":",
|
|
46
|
+
[
|
|
47
|
+
"grn",
|
|
48
|
+
"gs2",
|
|
49
|
+
GetAttr.region(
|
|
50
|
+
).str(
|
|
51
|
+
),
|
|
52
|
+
GetAttr.ownerId(
|
|
53
|
+
).str(
|
|
54
|
+
),
|
|
55
|
+
"money2",
|
|
56
|
+
this.namespaceName,
|
|
57
|
+
"transaction",
|
|
58
|
+
"history",
|
|
59
|
+
"daily",
|
|
60
|
+
"" + this.year,
|
|
61
|
+
"" + this.month,
|
|
62
|
+
"" + this.day,
|
|
63
|
+
"currency",
|
|
64
|
+
this.currency,
|
|
65
|
+
],
|
|
66
|
+
).str(
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -3,13 +3,12 @@ import DepositByUserId from "../stampSheet/DepositByUserId";
|
|
|
3
3
|
import DepositTransaction from "../model/DepositTransaction";
|
|
4
4
|
import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
|
|
5
5
|
import VerifyReceiptByUserId from "../stampSheet/VerifyReceiptByUserId";
|
|
6
|
-
import Receipt from "../model/Receipt";
|
|
7
6
|
export default class NamespaceRef {
|
|
8
7
|
private readonly namespaceName;
|
|
9
8
|
constructor(namespaceName: string);
|
|
10
9
|
storeContentModel(contentName: string): StoreContentModelRef;
|
|
11
10
|
deposit(slot: number, depositTransactions: DepositTransaction[], userId?: string): DepositByUserId;
|
|
12
11
|
withdraw(slot: number, withdrawCount: number, paidOnly?: boolean | null, userId?: string): WithdrawByUserId;
|
|
13
|
-
verifyReceipt(contentName: string, receipt
|
|
12
|
+
verifyReceipt(contentName: string, receipt?: string, userId?: string): VerifyReceiptByUserId;
|
|
14
13
|
grn(): string;
|
|
15
14
|
}
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
14
|
* express or implied. See the License for the specific language governing
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
|
+
*
|
|
17
|
+
* deny overwrite
|
|
16
18
|
*/
|
|
17
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
20
|
const tslib_1 = require("tslib");
|
|
@@ -34,7 +36,7 @@ class NamespaceRef {
|
|
|
34
36
|
withdraw(slot, withdrawCount, paidOnly = null, userId = "#{userId}") {
|
|
35
37
|
return new WithdrawByUserId_1.default(this.namespaceName, slot, withdrawCount, paidOnly, userId);
|
|
36
38
|
}
|
|
37
|
-
verifyReceipt(contentName, receipt, userId = "#{userId}") {
|
|
39
|
+
verifyReceipt(contentName, receipt = "#{receipt}", userId = "#{userId}") {
|
|
38
40
|
return new VerifyReceiptByUserId_1.default(this.namespaceName, contentName, receipt, userId);
|
|
39
41
|
}
|
|
40
42
|
grn() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,0CAA8C;AAE9C,0FAA0D;AAE1D,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,UAAkB,YAAY,EAC9B,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"}
|
|
@@ -12,10 +12,14 @@
|
|
|
12
12
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* deny overwrite
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
19
|
import {GetAttr, Join} from "../../core/func";
|
|
20
|
+
import DailyTransactionHistoryRef from "./DailyTransactionHistoryRef";
|
|
18
21
|
import StoreContentModelRef from "./StoreContentModelRef";
|
|
22
|
+
import UnusedBalanceRef from "./UnusedBalanceRef";
|
|
19
23
|
import DepositByUserId from "../stampSheet/DepositByUserId";
|
|
20
24
|
import DepositTransaction from "../model/DepositTransaction";
|
|
21
25
|
import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
|
|
@@ -70,7 +74,7 @@ export default class NamespaceRef {
|
|
|
70
74
|
|
|
71
75
|
public verifyReceipt(
|
|
72
76
|
contentName: string,
|
|
73
|
-
receipt:
|
|
77
|
+
receipt: string = "#{receipt}",
|
|
74
78
|
userId: string = "#{userId}",
|
|
75
79
|
): VerifyReceiptByUserId {
|
|
76
80
|
return new VerifyReceiptByUserId(
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UnusedBalanceRef {
|
|
20
|
+
constructor(namespaceName, currency) {
|
|
21
|
+
this.namespaceName = namespaceName;
|
|
22
|
+
this.currency = currency;
|
|
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
|
+
"unused",
|
|
33
|
+
this.currency,
|
|
34
|
+
]).str();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = UnusedBalanceRef;
|
|
38
|
+
//# sourceMappingURL=UnusedBalanceRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnusedBalanceRef.js","sourceRoot":"","sources":["UnusedBalanceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,gBAAgB;IAIjC,YACI,aAAqB,EACrB,QAAgB;QAEhB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,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,QAAQ;YACR,IAAI,CAAC,QAAQ;SAChB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,mCAiCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 UnusedBalanceRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly currency: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
currency: string,
|
|
26
|
+
) {
|
|
27
|
+
this.namespaceName = namespaceName;
|
|
28
|
+
this.currency = currency;
|
|
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
|
+
"unused",
|
|
47
|
+
this.currency,
|
|
48
|
+
],
|
|
49
|
+
).str(
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
package/money2/ref/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import NamespaceRef from "./NamespaceRef";
|
|
2
2
|
import StoreContentModelRef from "./StoreContentModelRef";
|
|
3
|
-
|
|
3
|
+
import DailyTransactionHistoryRef from "./DailyTransactionHistoryRef";
|
|
4
|
+
import UnusedBalanceRef from "./UnusedBalanceRef";
|
|
5
|
+
export { NamespaceRef, StoreContentModelRef, DailyTransactionHistoryRef, UnusedBalanceRef, };
|
package/money2/ref/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StoreContentModelRef = exports.NamespaceRef = void 0;
|
|
3
|
+
exports.UnusedBalanceRef = exports.DailyTransactionHistoryRef = exports.StoreContentModelRef = exports.NamespaceRef = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -21,4 +21,8 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
|
21
21
|
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
22
|
const StoreContentModelRef_1 = tslib_1.__importDefault(require("./StoreContentModelRef"));
|
|
23
23
|
exports.StoreContentModelRef = StoreContentModelRef_1.default;
|
|
24
|
+
const DailyTransactionHistoryRef_1 = tslib_1.__importDefault(require("./DailyTransactionHistoryRef"));
|
|
25
|
+
exports.DailyTransactionHistoryRef = DailyTransactionHistoryRef_1.default;
|
|
26
|
+
const UnusedBalanceRef_1 = tslib_1.__importDefault(require("./UnusedBalanceRef"));
|
|
27
|
+
exports.UnusedBalanceRef = UnusedBalanceRef_1.default;
|
|
24
28
|
//# sourceMappingURL=index.js.map
|
package/money2/ref/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAMtC,uBANG,sBAAY,CAMH;AALhB,0FAA0D;AAMtD,+BANG,8BAAoB,CAMH;AALxB,sGAAsE;AAMlE,qCANG,oCAA0B,CAMH;AAL9B,kFAAkD;AAM9C,2BANG,0BAAgB,CAMH"}
|
package/money2/ref/index.ts
CHANGED
|
@@ -15,8 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import NamespaceRef from "./NamespaceRef";
|
|
17
17
|
import StoreContentModelRef from "./StoreContentModelRef";
|
|
18
|
+
import DailyTransactionHistoryRef from "./DailyTransactionHistoryRef";
|
|
19
|
+
import UnusedBalanceRef from "./UnusedBalanceRef";
|
|
18
20
|
|
|
19
21
|
export {
|
|
20
22
|
NamespaceRef,
|
|
21
23
|
StoreContentModelRef,
|
|
24
|
+
DailyTransactionHistoryRef,
|
|
25
|
+
UnusedBalanceRef,
|
|
22
26
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ConsumeAction } from "../../core/model";
|
|
2
|
-
import Receipt from "../model/Receipt";
|
|
3
2
|
export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
4
3
|
private readonly namespaceName;
|
|
5
4
|
private readonly userId;
|
|
6
5
|
private readonly contentName;
|
|
7
6
|
private readonly receipt;
|
|
8
7
|
private readonly timeOffsetToken;
|
|
9
|
-
constructor(namespaceName: string, contentName: string, receipt
|
|
8
|
+
constructor(namespaceName: string, contentName: string, receipt?: string, timeOffsetToken?: string | null, userId?: string);
|
|
10
9
|
request(): {
|
|
11
10
|
[name: string]: any;
|
|
12
11
|
};
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
14
|
* express or implied. See the License for the specific language governing
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
|
+
*
|
|
17
|
+
* deny overwrite
|
|
16
18
|
*/
|
|
17
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
20
|
const model_1 = require("../../core/model");
|
|
19
21
|
class VerifyReceiptByUserId extends model_1.ConsumeAction {
|
|
20
|
-
constructor(namespaceName, contentName, receipt, timeOffsetToken = null, userId = "#{userId}") {
|
|
22
|
+
constructor(namespaceName, contentName, receipt = "#{receipt}", timeOffsetToken = null, userId = "#{userId}") {
|
|
21
23
|
super();
|
|
22
24
|
this.timeOffsetToken = null;
|
|
23
25
|
this.namespaceName = namespaceName;
|
|
@@ -27,7 +29,6 @@ class VerifyReceiptByUserId extends model_1.ConsumeAction {
|
|
|
27
29
|
this.userId = userId;
|
|
28
30
|
}
|
|
29
31
|
request() {
|
|
30
|
-
var _a;
|
|
31
32
|
let properties = {};
|
|
32
33
|
if (this.namespaceName != null) {
|
|
33
34
|
properties["namespaceName"] = this.namespaceName;
|
|
@@ -39,7 +40,7 @@ class VerifyReceiptByUserId extends model_1.ConsumeAction {
|
|
|
39
40
|
properties["contentName"] = this.contentName;
|
|
40
41
|
}
|
|
41
42
|
if (this.receipt != null) {
|
|
42
|
-
properties["receipt"] =
|
|
43
|
+
properties["receipt"] = this.receipt;
|
|
43
44
|
}
|
|
44
45
|
if (this.timeOffsetToken != null) {
|
|
45
46
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyReceiptByUserId.js","sourceRoot":"","sources":["VerifyReceiptByUserId.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"VerifyReceiptByUserId.js","sourceRoot":"","sources":["VerifyReceiptByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,4CAA8D;AAG9D,MAAqB,qBAAsB,SAAQ,qBAAa;IAQ5D,YACI,aAAqB,EACrB,WAAmB,EACnB,UAAkB,YAAY,EAC9B,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,IAAI,CAAC,OAAO,CAAC;SACxC;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;AAlDD,wCAkDC"}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* deny overwrite
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
19
|
import {AcquireAction, ConsumeAction} from "../../core/model";
|
|
@@ -21,14 +23,14 @@ export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
|
21
23
|
private readonly namespaceName: string;
|
|
22
24
|
private readonly userId: string;
|
|
23
25
|
private readonly contentName: string;
|
|
24
|
-
private readonly receipt:
|
|
26
|
+
private readonly receipt: string;
|
|
25
27
|
private readonly timeOffsetToken: string|null = null;
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
public constructor(
|
|
29
31
|
namespaceName: string,
|
|
30
32
|
contentName: string,
|
|
31
|
-
receipt:
|
|
33
|
+
receipt: string = "#{receipt}",
|
|
32
34
|
timeOffsetToken: string|null = null,
|
|
33
35
|
userId: string = "#{userId}",
|
|
34
36
|
) {
|
|
@@ -55,8 +57,7 @@ export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
|
55
57
|
properties["contentName"] = this.contentName;
|
|
56
58
|
}
|
|
57
59
|
if (this.receipt != null) {
|
|
58
|
-
properties["receipt"] = this.receipt
|
|
59
|
-
);
|
|
60
|
+
properties["receipt"] = this.receipt;
|
|
60
61
|
}
|
|
61
62
|
if (this.timeOffsetToken != null) {
|
|
62
63
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|