gs2 1.4.62 → 1.4.63
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/model/RefundHistory.d.ts +48 -0
- package/money2/model/RefundHistory.js +216 -0
- package/money2/model/RefundHistory.js.map +1 -0
- package/money2/model/RefundHistory.ts +231 -0
- package/money2/model/index.d.ts +2 -1
- package/money2/model/index.js +3 -1
- package/money2/model/index.js.map +1 -1
- package/money2/model/index.ts +2 -0
- package/money2/request/DescribeRefundHistoriesByDateRequest.d.ts +41 -0
- package/money2/request/DescribeRefundHistoriesByDateRequest.js +139 -0
- package/money2/request/DescribeRefundHistoriesByDateRequest.js.map +1 -0
- package/money2/request/DescribeRefundHistoriesByDateRequest.ts +146 -0
- package/money2/request/DescribeRefundHistoriesByUserIdRequest.d.ts +37 -0
- package/money2/request/DescribeRefundHistoriesByUserIdRequest.js +125 -0
- package/money2/request/DescribeRefundHistoriesByUserIdRequest.js.map +1 -0
- package/money2/request/DescribeRefundHistoriesByUserIdRequest.ts +132 -0
- package/money2/request/GetRefundHistoryRequest.d.ts +25 -0
- package/money2/request/GetRefundHistoryRequest.js +83 -0
- package/money2/request/GetRefundHistoryRequest.js.map +1 -0
- package/money2/request/GetRefundHistoryRequest.ts +90 -0
- package/money2/request/index.d.ts +4 -1
- package/money2/request/index.js +8 -2
- package/money2/request/index.js.map +1 -1
- package/money2/request/index.ts +6 -0
- package/money2/rest.d.ts +3 -0
- package/money2/rest.js +78 -0
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +90 -0
- package/money2/result/DescribeRefundHistoriesByDateResult.d.ts +18 -0
- package/money2/result/DescribeRefundHistoriesByDateResult.js +67 -0
- package/money2/result/DescribeRefundHistoriesByDateResult.js.map +1 -0
- package/money2/result/DescribeRefundHistoriesByDateResult.ts +72 -0
- package/money2/result/DescribeRefundHistoriesByUserIdResult.d.ts +18 -0
- package/money2/result/DescribeRefundHistoriesByUserIdResult.js +67 -0
- package/money2/result/DescribeRefundHistoriesByUserIdResult.js.map +1 -0
- package/money2/result/DescribeRefundHistoriesByUserIdResult.ts +72 -0
- package/money2/result/GetRefundHistoryResult.d.ts +14 -0
- package/money2/result/GetRefundHistoryResult.js +48 -0
- package/money2/result/GetRefundHistoryResult.js.map +1 -0
- package/money2/result/GetRefundHistoryResult.ts +47 -0
- package/money2/result/index.d.ts +4 -1
- package/money2/result/index.js +8 -2
- package/money2/result/index.js.map +1 -1
- package/money2/result/index.ts +6 -0
- package/package.json +1 -1
- package/schedule/model/Trigger.d.ts +8 -4
- package/schedule/model/Trigger.js +23 -9
- package/schedule/model/Trigger.js.map +1 -1
- package/schedule/model/Trigger.ts +23 -9
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import * as Gs2Money2 from '../../money2/model';
|
|
3
|
+
export default class RefundHistory implements IModel {
|
|
4
|
+
private refundHistoryId;
|
|
5
|
+
private transactionId;
|
|
6
|
+
private year;
|
|
7
|
+
private month;
|
|
8
|
+
private day;
|
|
9
|
+
private userId;
|
|
10
|
+
private detail;
|
|
11
|
+
private createdAt;
|
|
12
|
+
static getRegion(grn: string): string | null;
|
|
13
|
+
static getOwnerId(grn: string): string | null;
|
|
14
|
+
static getNamespaceName(grn: string): string | null;
|
|
15
|
+
static getTransactionId(grn: string): string | null;
|
|
16
|
+
static isValid(grn: string): boolean;
|
|
17
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, transactionId: string | null): string | null;
|
|
18
|
+
getRefundHistoryId(): string | null;
|
|
19
|
+
setRefundHistoryId(refundHistoryId: string | null): this;
|
|
20
|
+
withRefundHistoryId(refundHistoryId: string | null): this;
|
|
21
|
+
getTransactionId(): string | null;
|
|
22
|
+
setTransactionId(transactionId: string | null): this;
|
|
23
|
+
withTransactionId(transactionId: string | null): this;
|
|
24
|
+
getYear(): number | null;
|
|
25
|
+
setYear(year: number | null): this;
|
|
26
|
+
withYear(year: number | null): this;
|
|
27
|
+
getMonth(): number | null;
|
|
28
|
+
setMonth(month: number | null): this;
|
|
29
|
+
withMonth(month: number | null): this;
|
|
30
|
+
getDay(): number | null;
|
|
31
|
+
setDay(day: number | null): this;
|
|
32
|
+
withDay(day: number | null): this;
|
|
33
|
+
getUserId(): string | null;
|
|
34
|
+
setUserId(userId: string | null): this;
|
|
35
|
+
withUserId(userId: string | null): this;
|
|
36
|
+
getDetail(): Gs2Money2.RefundEvent | null;
|
|
37
|
+
setDetail(detail: Gs2Money2.RefundEvent | null): this;
|
|
38
|
+
withDetail(detail: Gs2Money2.RefundEvent | null): this;
|
|
39
|
+
getCreatedAt(): number | null;
|
|
40
|
+
setCreatedAt(createdAt: number | null): this;
|
|
41
|
+
withCreatedAt(createdAt: number | null): this;
|
|
42
|
+
static fromDict(data: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}): RefundHistory | null;
|
|
45
|
+
toDict(): {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Money2 = tslib_1.__importStar(require("../../money2/model"));
|
|
20
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:refundHistory:{transactionId}";
|
|
21
|
+
var RefundHistory = /** @class */ (function () {
|
|
22
|
+
function RefundHistory() {
|
|
23
|
+
this.refundHistoryId = null;
|
|
24
|
+
this.transactionId = null;
|
|
25
|
+
this.year = null;
|
|
26
|
+
this.month = null;
|
|
27
|
+
this.day = null;
|
|
28
|
+
this.userId = null;
|
|
29
|
+
this.detail = null;
|
|
30
|
+
this.createdAt = null;
|
|
31
|
+
}
|
|
32
|
+
RefundHistory.getRegion = function (grn) {
|
|
33
|
+
var match = grn.match(grnFormat
|
|
34
|
+
.replace('{region}', '(.*)')
|
|
35
|
+
.replace('{ownerId}', '.*')
|
|
36
|
+
.replace('{namespaceName}', '.*')
|
|
37
|
+
.replace('{transactionId}', '.*'));
|
|
38
|
+
if (match) {
|
|
39
|
+
return match[1];
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
};
|
|
43
|
+
RefundHistory.getOwnerId = function (grn) {
|
|
44
|
+
var match = grn.match(grnFormat
|
|
45
|
+
.replace('{region}', '.*')
|
|
46
|
+
.replace('{ownerId}', '(.*)')
|
|
47
|
+
.replace('{namespaceName}', '.*')
|
|
48
|
+
.replace('{transactionId}', '.*'));
|
|
49
|
+
if (match) {
|
|
50
|
+
return match[1];
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
};
|
|
54
|
+
RefundHistory.getNamespaceName = function (grn) {
|
|
55
|
+
var match = grn.match(grnFormat
|
|
56
|
+
.replace('{region}', '.*')
|
|
57
|
+
.replace('{ownerId}', '.*')
|
|
58
|
+
.replace('{namespaceName}', '(.*)')
|
|
59
|
+
.replace('{transactionId}', '.*'));
|
|
60
|
+
if (match) {
|
|
61
|
+
return match[1];
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
};
|
|
65
|
+
RefundHistory.getTransactionId = function (grn) {
|
|
66
|
+
var match = grn.match(grnFormat
|
|
67
|
+
.replace('{region}', '.*')
|
|
68
|
+
.replace('{ownerId}', '.*')
|
|
69
|
+
.replace('{namespaceName}', '.*')
|
|
70
|
+
.replace('{transactionId}', '(.*)'));
|
|
71
|
+
if (match) {
|
|
72
|
+
return match[1];
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
};
|
|
76
|
+
RefundHistory.isValid = function (grn) {
|
|
77
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (this.getTransactionId(grn) == null || this.getTransactionId(grn) === '') {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
return true;
|
|
90
|
+
};
|
|
91
|
+
RefundHistory.createGrn = function (region, ownerId, namespaceName, transactionId) {
|
|
92
|
+
return grnFormat
|
|
93
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
94
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
95
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
96
|
+
.replace('{transactionId}', transactionId !== null && transactionId !== void 0 ? transactionId : '');
|
|
97
|
+
};
|
|
98
|
+
RefundHistory.prototype.getRefundHistoryId = function () {
|
|
99
|
+
return this.refundHistoryId;
|
|
100
|
+
};
|
|
101
|
+
RefundHistory.prototype.setRefundHistoryId = function (refundHistoryId) {
|
|
102
|
+
this.refundHistoryId = refundHistoryId;
|
|
103
|
+
return this;
|
|
104
|
+
};
|
|
105
|
+
RefundHistory.prototype.withRefundHistoryId = function (refundHistoryId) {
|
|
106
|
+
this.refundHistoryId = refundHistoryId;
|
|
107
|
+
return this;
|
|
108
|
+
};
|
|
109
|
+
RefundHistory.prototype.getTransactionId = function () {
|
|
110
|
+
return this.transactionId;
|
|
111
|
+
};
|
|
112
|
+
RefundHistory.prototype.setTransactionId = function (transactionId) {
|
|
113
|
+
this.transactionId = transactionId;
|
|
114
|
+
return this;
|
|
115
|
+
};
|
|
116
|
+
RefundHistory.prototype.withTransactionId = function (transactionId) {
|
|
117
|
+
this.transactionId = transactionId;
|
|
118
|
+
return this;
|
|
119
|
+
};
|
|
120
|
+
RefundHistory.prototype.getYear = function () {
|
|
121
|
+
return this.year;
|
|
122
|
+
};
|
|
123
|
+
RefundHistory.prototype.setYear = function (year) {
|
|
124
|
+
this.year = year;
|
|
125
|
+
return this;
|
|
126
|
+
};
|
|
127
|
+
RefundHistory.prototype.withYear = function (year) {
|
|
128
|
+
this.year = year;
|
|
129
|
+
return this;
|
|
130
|
+
};
|
|
131
|
+
RefundHistory.prototype.getMonth = function () {
|
|
132
|
+
return this.month;
|
|
133
|
+
};
|
|
134
|
+
RefundHistory.prototype.setMonth = function (month) {
|
|
135
|
+
this.month = month;
|
|
136
|
+
return this;
|
|
137
|
+
};
|
|
138
|
+
RefundHistory.prototype.withMonth = function (month) {
|
|
139
|
+
this.month = month;
|
|
140
|
+
return this;
|
|
141
|
+
};
|
|
142
|
+
RefundHistory.prototype.getDay = function () {
|
|
143
|
+
return this.day;
|
|
144
|
+
};
|
|
145
|
+
RefundHistory.prototype.setDay = function (day) {
|
|
146
|
+
this.day = day;
|
|
147
|
+
return this;
|
|
148
|
+
};
|
|
149
|
+
RefundHistory.prototype.withDay = function (day) {
|
|
150
|
+
this.day = day;
|
|
151
|
+
return this;
|
|
152
|
+
};
|
|
153
|
+
RefundHistory.prototype.getUserId = function () {
|
|
154
|
+
return this.userId;
|
|
155
|
+
};
|
|
156
|
+
RefundHistory.prototype.setUserId = function (userId) {
|
|
157
|
+
this.userId = userId;
|
|
158
|
+
return this;
|
|
159
|
+
};
|
|
160
|
+
RefundHistory.prototype.withUserId = function (userId) {
|
|
161
|
+
this.userId = userId;
|
|
162
|
+
return this;
|
|
163
|
+
};
|
|
164
|
+
RefundHistory.prototype.getDetail = function () {
|
|
165
|
+
return this.detail;
|
|
166
|
+
};
|
|
167
|
+
RefundHistory.prototype.setDetail = function (detail) {
|
|
168
|
+
this.detail = detail;
|
|
169
|
+
return this;
|
|
170
|
+
};
|
|
171
|
+
RefundHistory.prototype.withDetail = function (detail) {
|
|
172
|
+
this.detail = detail;
|
|
173
|
+
return this;
|
|
174
|
+
};
|
|
175
|
+
RefundHistory.prototype.getCreatedAt = function () {
|
|
176
|
+
return this.createdAt;
|
|
177
|
+
};
|
|
178
|
+
RefundHistory.prototype.setCreatedAt = function (createdAt) {
|
|
179
|
+
this.createdAt = createdAt;
|
|
180
|
+
return this;
|
|
181
|
+
};
|
|
182
|
+
RefundHistory.prototype.withCreatedAt = function (createdAt) {
|
|
183
|
+
this.createdAt = createdAt;
|
|
184
|
+
return this;
|
|
185
|
+
};
|
|
186
|
+
RefundHistory.fromDict = function (data) {
|
|
187
|
+
if (data == undefined || data == null) {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
return new RefundHistory()
|
|
191
|
+
.withRefundHistoryId(data["refundHistoryId"])
|
|
192
|
+
.withTransactionId(data["transactionId"])
|
|
193
|
+
.withYear(data["year"])
|
|
194
|
+
.withMonth(data["month"])
|
|
195
|
+
.withDay(data["day"])
|
|
196
|
+
.withUserId(data["userId"])
|
|
197
|
+
.withDetail(Gs2Money2.RefundEvent.fromDict(data["detail"]))
|
|
198
|
+
.withCreatedAt(data["createdAt"]);
|
|
199
|
+
};
|
|
200
|
+
RefundHistory.prototype.toDict = function () {
|
|
201
|
+
var _a;
|
|
202
|
+
return {
|
|
203
|
+
"refundHistoryId": this.getRefundHistoryId(),
|
|
204
|
+
"transactionId": this.getTransactionId(),
|
|
205
|
+
"year": this.getYear(),
|
|
206
|
+
"month": this.getMonth(),
|
|
207
|
+
"day": this.getDay(),
|
|
208
|
+
"userId": this.getUserId(),
|
|
209
|
+
"detail": (_a = this.getDetail()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
210
|
+
"createdAt": this.getCreatedAt(),
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
return RefundHistory;
|
|
214
|
+
}());
|
|
215
|
+
exports.default = RefundHistory;
|
|
216
|
+
//# sourceMappingURL=RefundHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefundHistory.js","sourceRoot":"","sources":["RefundHistory.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,oEAA+C;AAI/C,IAAM,SAAS,GAAW,iFAAiF,CAAC;AAE5G;IAAA;QACY,oBAAe,GAAgB,IAAI,CAAC;QACpC,kBAAa,GAAgB,IAAI,CAAC;QAClC,SAAI,GAAgB,IAAI,CAAC;QACzB,UAAK,GAAgB,IAAI,CAAC;QAC1B,QAAG,GAAgB,IAAI,CAAC;QACxB,WAAM,GAAgB,IAAI,CAAC;QAC3B,WAAM,GAA+B,IAAI,CAAC;QAC1C,cAAS,GAAgB,IAAI,CAAC;IAsM1C,CAAC;IApMiB,uBAAS,GAAvB,UAAwB,GAAW;QAC/B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC;aAC3B,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC;aAC1B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CACpC,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAU,GAAxB,UAAyB,GAAW;QAChC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;aACzB,OAAO,C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AAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;aAC1D,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,8BAAM,GAAb;;QACI,OAAO;YACH,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACpB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,QAAQ,EAAE,MAAA,IAAI,CAAC,SAAS,EAAE,0CAAE,MAAM,EAAE;YACpC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;SACnC,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AA9MD,IA8MC"}
|
|
@@ -0,0 +1,231 @@
|
|
|
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 IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Money2 from '../../money2/model'
|
|
20
|
+
import AppleAppStoreVerifyReceiptEvent from './AppleAppStoreVerifyReceiptEvent';
|
|
21
|
+
import GooglePlayVerifyReceiptEvent from './GooglePlayVerifyReceiptEvent';
|
|
22
|
+
import RefundEvent from './RefundEvent';
|
|
23
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:refundHistory:{transactionId}";
|
|
24
|
+
|
|
25
|
+
export default class RefundHistory implements IModel {
|
|
26
|
+
private refundHistoryId: string|null = null;
|
|
27
|
+
private transactionId: string|null = null;
|
|
28
|
+
private year: number|null = null;
|
|
29
|
+
private month: number|null = null;
|
|
30
|
+
private day: number|null = null;
|
|
31
|
+
private userId: string|null = null;
|
|
32
|
+
private detail: Gs2Money2.RefundEvent|null = null;
|
|
33
|
+
private createdAt: number|null = null;
|
|
34
|
+
|
|
35
|
+
public static getRegion(grn: string): string|null {
|
|
36
|
+
const match = grn.match(grnFormat
|
|
37
|
+
.replace('{region}', '(.*)')
|
|
38
|
+
.replace('{ownerId}', '.*')
|
|
39
|
+
.replace('{namespaceName}', '.*')
|
|
40
|
+
.replace('{transactionId}', '.*')
|
|
41
|
+
);
|
|
42
|
+
if (match) {
|
|
43
|
+
return match[1];
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public static getOwnerId(grn: string): string|null {
|
|
49
|
+
const match = grn.match(grnFormat
|
|
50
|
+
.replace('{region}', '.*')
|
|
51
|
+
.replace('{ownerId}', '(.*)')
|
|
52
|
+
.replace('{namespaceName}', '.*')
|
|
53
|
+
.replace('{transactionId}', '.*')
|
|
54
|
+
);
|
|
55
|
+
if (match) {
|
|
56
|
+
return match[1];
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public static getNamespaceName(grn: string): string|null {
|
|
62
|
+
const match = grn.match(grnFormat
|
|
63
|
+
.replace('{region}', '.*')
|
|
64
|
+
.replace('{ownerId}', '.*')
|
|
65
|
+
.replace('{namespaceName}', '(.*)')
|
|
66
|
+
.replace('{transactionId}', '.*')
|
|
67
|
+
);
|
|
68
|
+
if (match) {
|
|
69
|
+
return match[1];
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
public static getTransactionId(grn: string): string|null {
|
|
75
|
+
const match = grn.match(grnFormat
|
|
76
|
+
.replace('{region}', '.*')
|
|
77
|
+
.replace('{ownerId}', '.*')
|
|
78
|
+
.replace('{namespaceName}', '.*')
|
|
79
|
+
.replace('{transactionId}', '(.*)')
|
|
80
|
+
);
|
|
81
|
+
if (match) {
|
|
82
|
+
return match[1];
|
|
83
|
+
}
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public static isValid(grn: string): boolean {
|
|
88
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
if (this.getTransactionId(grn) == null || this.getTransactionId(grn) === '') {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public static createGrn(
|
|
104
|
+
region: string|null,
|
|
105
|
+
ownerId: string|null,
|
|
106
|
+
namespaceName: string|null,
|
|
107
|
+
transactionId: string|null,
|
|
108
|
+
): string|null {
|
|
109
|
+
return grnFormat
|
|
110
|
+
.replace('{region}', region ?? '')
|
|
111
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
112
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
113
|
+
.replace('{transactionId}', transactionId ?? '');
|
|
114
|
+
}
|
|
115
|
+
public getRefundHistoryId(): string|null {
|
|
116
|
+
return this.refundHistoryId;
|
|
117
|
+
}
|
|
118
|
+
public setRefundHistoryId(refundHistoryId: string|null) {
|
|
119
|
+
this.refundHistoryId = refundHistoryId;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
public withRefundHistoryId(refundHistoryId: string|null): this {
|
|
123
|
+
this.refundHistoryId = refundHistoryId;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
public getTransactionId(): string|null {
|
|
127
|
+
return this.transactionId;
|
|
128
|
+
}
|
|
129
|
+
public setTransactionId(transactionId: string|null) {
|
|
130
|
+
this.transactionId = transactionId;
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
public withTransactionId(transactionId: string|null): this {
|
|
134
|
+
this.transactionId = transactionId;
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
public getYear(): number|null {
|
|
138
|
+
return this.year;
|
|
139
|
+
}
|
|
140
|
+
public setYear(year: number|null) {
|
|
141
|
+
this.year = year;
|
|
142
|
+
return this;
|
|
143
|
+
}
|
|
144
|
+
public withYear(year: number|null): this {
|
|
145
|
+
this.year = year;
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
public getMonth(): number|null {
|
|
149
|
+
return this.month;
|
|
150
|
+
}
|
|
151
|
+
public setMonth(month: number|null) {
|
|
152
|
+
this.month = month;
|
|
153
|
+
return this;
|
|
154
|
+
}
|
|
155
|
+
public withMonth(month: number|null): this {
|
|
156
|
+
this.month = month;
|
|
157
|
+
return this;
|
|
158
|
+
}
|
|
159
|
+
public getDay(): number|null {
|
|
160
|
+
return this.day;
|
|
161
|
+
}
|
|
162
|
+
public setDay(day: number|null) {
|
|
163
|
+
this.day = day;
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
166
|
+
public withDay(day: number|null): this {
|
|
167
|
+
this.day = day;
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
public getUserId(): string|null {
|
|
171
|
+
return this.userId;
|
|
172
|
+
}
|
|
173
|
+
public setUserId(userId: string|null) {
|
|
174
|
+
this.userId = userId;
|
|
175
|
+
return this;
|
|
176
|
+
}
|
|
177
|
+
public withUserId(userId: string|null): this {
|
|
178
|
+
this.userId = userId;
|
|
179
|
+
return this;
|
|
180
|
+
}
|
|
181
|
+
public getDetail(): Gs2Money2.RefundEvent|null {
|
|
182
|
+
return this.detail;
|
|
183
|
+
}
|
|
184
|
+
public setDetail(detail: Gs2Money2.RefundEvent|null) {
|
|
185
|
+
this.detail = detail;
|
|
186
|
+
return this;
|
|
187
|
+
}
|
|
188
|
+
public withDetail(detail: Gs2Money2.RefundEvent|null): this {
|
|
189
|
+
this.detail = detail;
|
|
190
|
+
return this;
|
|
191
|
+
}
|
|
192
|
+
public getCreatedAt(): number|null {
|
|
193
|
+
return this.createdAt;
|
|
194
|
+
}
|
|
195
|
+
public setCreatedAt(createdAt: number|null) {
|
|
196
|
+
this.createdAt = createdAt;
|
|
197
|
+
return this;
|
|
198
|
+
}
|
|
199
|
+
public withCreatedAt(createdAt: number|null): this {
|
|
200
|
+
this.createdAt = createdAt;
|
|
201
|
+
return this;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
public static fromDict(data: {[key: string]: any}): RefundHistory|null {
|
|
205
|
+
if (data == undefined || data == null) {
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
return new RefundHistory()
|
|
209
|
+
.withRefundHistoryId(data["refundHistoryId"])
|
|
210
|
+
.withTransactionId(data["transactionId"])
|
|
211
|
+
.withYear(data["year"])
|
|
212
|
+
.withMonth(data["month"])
|
|
213
|
+
.withDay(data["day"])
|
|
214
|
+
.withUserId(data["userId"])
|
|
215
|
+
.withDetail(Gs2Money2.RefundEvent.fromDict(data["detail"]))
|
|
216
|
+
.withCreatedAt(data["createdAt"]);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
public toDict(): {[key: string]: any} {
|
|
220
|
+
return {
|
|
221
|
+
"refundHistoryId": this.getRefundHistoryId(),
|
|
222
|
+
"transactionId": this.getTransactionId(),
|
|
223
|
+
"year": this.getYear(),
|
|
224
|
+
"month": this.getMonth(),
|
|
225
|
+
"day": this.getDay(),
|
|
226
|
+
"userId": this.getUserId(),
|
|
227
|
+
"detail": this.getDetail()?.toDict(),
|
|
228
|
+
"createdAt": this.getCreatedAt(),
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
}
|
package/money2/model/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import Wallet from "./Wallet";
|
|
|
3
3
|
import Event from "./Event";
|
|
4
4
|
import SubscribeTransaction from "./SubscribeTransaction";
|
|
5
5
|
import SubscriptionStatus from "./SubscriptionStatus";
|
|
6
|
+
import RefundHistory from "./RefundHistory";
|
|
6
7
|
import StoreContentModel from "./StoreContentModel";
|
|
7
8
|
import StoreContentModelMaster from "./StoreContentModelMaster";
|
|
8
9
|
import StoreSubscriptionContentModel from "./StoreSubscriptionContentModel";
|
|
@@ -32,4 +33,4 @@ import NotificationSetting from "./NotificationSetting";
|
|
|
32
33
|
import LogSetting from "./LogSetting";
|
|
33
34
|
import DailyTransactionHistory from "./DailyTransactionHistory";
|
|
34
35
|
import UnusedBalance from "./UnusedBalance";
|
|
35
|
-
export { Namespace, Wallet, Event, SubscribeTransaction, SubscriptionStatus, StoreContentModel, StoreContentModelMaster, StoreSubscriptionContentModel, StoreSubscriptionContentModelMaster, CurrentModelMaster, Receipt, PlatformSetting, AppleAppStoreSetting, GooglePlaySetting, FakeSetting, WalletSummary, DepositTransaction, VerifyReceiptEvent, DepositEvent, WithdrawEvent, RefundEvent, AppleAppStoreVerifyReceiptEvent, GooglePlayVerifyReceiptEvent, AppleAppStoreContent, GooglePlayContent, AppleAppStoreSubscriptionContent, GooglePlaySubscriptionContent, GooglePlayRealtimeNotificationMessage, GitHubCheckoutSetting, ScriptSetting, NotificationSetting, LogSetting, DailyTransactionHistory, UnusedBalance, };
|
|
36
|
+
export { Namespace, Wallet, Event, SubscribeTransaction, SubscriptionStatus, RefundHistory, StoreContentModel, StoreContentModelMaster, StoreSubscriptionContentModel, StoreSubscriptionContentModelMaster, CurrentModelMaster, Receipt, PlatformSetting, AppleAppStoreSetting, GooglePlaySetting, FakeSetting, WalletSummary, DepositTransaction, VerifyReceiptEvent, DepositEvent, WithdrawEvent, RefundEvent, AppleAppStoreVerifyReceiptEvent, GooglePlayVerifyReceiptEvent, AppleAppStoreContent, GooglePlayContent, AppleAppStoreSubscriptionContent, GooglePlaySubscriptionContent, GooglePlayRealtimeNotificationMessage, GitHubCheckoutSetting, ScriptSetting, NotificationSetting, LogSetting, DailyTransactionHistory, UnusedBalance, };
|
package/money2/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnusedBalance = exports.DailyTransactionHistory = exports.LogSetting = exports.NotificationSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.GooglePlayRealtimeNotificationMessage = exports.GooglePlaySubscriptionContent = exports.AppleAppStoreSubscriptionContent = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEvent = exports.RefundEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.Receipt = exports.CurrentModelMaster = exports.StoreSubscriptionContentModelMaster = exports.StoreSubscriptionContentModel = exports.StoreContentModelMaster = exports.StoreContentModel = exports.SubscriptionStatus = exports.SubscribeTransaction = exports.Event = exports.Wallet = exports.Namespace = void 0;
|
|
3
|
+
exports.UnusedBalance = exports.DailyTransactionHistory = exports.LogSetting = exports.NotificationSetting = exports.ScriptSetting = exports.GitHubCheckoutSetting = exports.GooglePlayRealtimeNotificationMessage = exports.GooglePlaySubscriptionContent = exports.AppleAppStoreSubscriptionContent = exports.GooglePlayContent = exports.AppleAppStoreContent = exports.GooglePlayVerifyReceiptEvent = exports.AppleAppStoreVerifyReceiptEvent = exports.RefundEvent = exports.WithdrawEvent = exports.DepositEvent = exports.VerifyReceiptEvent = exports.DepositTransaction = exports.WalletSummary = exports.FakeSetting = exports.GooglePlaySetting = exports.AppleAppStoreSetting = exports.PlatformSetting = exports.Receipt = exports.CurrentModelMaster = exports.StoreSubscriptionContentModelMaster = exports.StoreSubscriptionContentModel = exports.StoreContentModelMaster = exports.StoreContentModel = exports.RefundHistory = exports.SubscriptionStatus = exports.SubscribeTransaction = exports.Event = exports.Wallet = exports.Namespace = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -27,6 +27,8 @@ var SubscribeTransaction_1 = tslib_1.__importDefault(require("./SubscribeTransac
|
|
|
27
27
|
exports.SubscribeTransaction = SubscribeTransaction_1.default;
|
|
28
28
|
var SubscriptionStatus_1 = tslib_1.__importDefault(require("./SubscriptionStatus"));
|
|
29
29
|
exports.SubscriptionStatus = SubscriptionStatus_1.default;
|
|
30
|
+
var RefundHistory_1 = tslib_1.__importDefault(require("./RefundHistory"));
|
|
31
|
+
exports.RefundHistory = RefundHistory_1.default;
|
|
30
32
|
var StoreContentModel_1 = tslib_1.__importDefault(require("./StoreContentModel"));
|
|
31
33
|
exports.StoreContentModel = StoreContentModel_1.default;
|
|
32
34
|
var StoreContentModelMaster_1 = tslib_1.__importDefault(require("./StoreContentModelMaster"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAqC/B,oBArCG,mBAAS,CAqCH;AApCb,4DAA6B;AAqCzB,iBArCG,gBAAM,CAqCH;AApCV,0DAA2B;AAqCvB,g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AA2D;AAqCvD,gCArCG,+BAAqB,CAqCH;AApCzB,0EAA2C;AAqCvC,wBArCG,uBAAa,CAqCH;AApCjB,sFAAuD;AAqCnD,8BArCG,6BAAmB,CAqCH;AApCvB,oEAAqC;AAqCjC,qBArCG,oBAAU,CAqCH;AApCd,8FAA+D;AAqC3D,kCArCG,iCAAuB,CAqCH;AApC3B,0EAA2C;AAqCvC,wBArCG,uBAAa,CAqCH"}
|
package/money2/model/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ import Wallet from "./Wallet"
|
|
|
18
18
|
import Event from "./Event"
|
|
19
19
|
import SubscribeTransaction from "./SubscribeTransaction"
|
|
20
20
|
import SubscriptionStatus from "./SubscriptionStatus"
|
|
21
|
+
import RefundHistory from "./RefundHistory"
|
|
21
22
|
import StoreContentModel from "./StoreContentModel"
|
|
22
23
|
import StoreContentModelMaster from "./StoreContentModelMaster"
|
|
23
24
|
import StoreSubscriptionContentModel from "./StoreSubscriptionContentModel"
|
|
@@ -54,6 +55,7 @@ export {
|
|
|
54
55
|
Event,
|
|
55
56
|
SubscribeTransaction,
|
|
56
57
|
SubscriptionStatus,
|
|
58
|
+
RefundHistory,
|
|
57
59
|
StoreContentModel,
|
|
58
60
|
StoreContentModelMaster,
|
|
59
61
|
StoreSubscriptionContentModel,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class DescribeRefundHistoriesByDateRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private year;
|
|
7
|
+
private month;
|
|
8
|
+
private day;
|
|
9
|
+
private pageToken;
|
|
10
|
+
private limit;
|
|
11
|
+
getRequestId(): string | null;
|
|
12
|
+
setRequestId(requestId: string | null): this;
|
|
13
|
+
withRequestId(requestId: string | null): this;
|
|
14
|
+
getContextStack(): string | null;
|
|
15
|
+
setContextStack(contextStack: string | null): this;
|
|
16
|
+
withContextStack(contextStack: string | null): this;
|
|
17
|
+
getNamespaceName(): string | null;
|
|
18
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
19
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
getYear(): number | null;
|
|
21
|
+
setYear(year: number | null): this;
|
|
22
|
+
withYear(year: number | null): this;
|
|
23
|
+
getMonth(): number | null;
|
|
24
|
+
setMonth(month: number | null): this;
|
|
25
|
+
withMonth(month: number | null): this;
|
|
26
|
+
getDay(): number | null;
|
|
27
|
+
setDay(day: number | null): this;
|
|
28
|
+
withDay(day: number | null): this;
|
|
29
|
+
getPageToken(): string | null;
|
|
30
|
+
setPageToken(pageToken: string | null): this;
|
|
31
|
+
withPageToken(pageToken: string | null): this;
|
|
32
|
+
getLimit(): number | null;
|
|
33
|
+
setLimit(limit: number | null): this;
|
|
34
|
+
withLimit(limit: number | null): this;
|
|
35
|
+
static fromDict(data: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}): DescribeRefundHistoriesByDateRequest;
|
|
38
|
+
toDict(): {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
}
|