gs2 1.3.140 → 1.3.142
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/exchange/model/IncrementalRateModel.d.ts +57 -0
- package/exchange/model/IncrementalRateModel.js +251 -0
- package/exchange/model/IncrementalRateModel.js.map +1 -0
- package/exchange/model/IncrementalRateModel.ts +264 -0
- package/exchange/model/IncrementalRateModelMaster.d.ts +69 -0
- package/exchange/model/IncrementalRateModelMaster.js +293 -0
- package/exchange/model/IncrementalRateModelMaster.js.map +1 -0
- package/exchange/model/IncrementalRateModelMaster.ts +306 -0
- package/exchange/model/index.d.ts +3 -1
- package/exchange/model/index.js +5 -1
- package/exchange/model/index.js.map +1 -1
- package/exchange/model/index.ts +4 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.d.ts +62 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.js +218 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.ts +224 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.d.ts +25 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.js +83 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.ts +90 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.d.ts +29 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.js +97 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.js.map +1 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.ts +104 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.d.ts +21 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.js +69 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.js.map +1 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.ts +76 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.d.ts +25 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.js +83 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.ts +90 -0
- package/exchange/request/GetIncrementalRateModelRequest.d.ts +25 -0
- package/exchange/request/GetIncrementalRateModelRequest.js +83 -0
- package/exchange/request/GetIncrementalRateModelRequest.js.map +1 -0
- package/exchange/request/GetIncrementalRateModelRequest.ts +90 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.d.ts +25 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.js +83 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.js.map +1 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.ts +90 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.d.ts +42 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.js +145 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.js.map +1 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.ts +155 -0
- package/exchange/request/IncrementalExchangeRequest.d.ts +42 -0
- package/exchange/request/IncrementalExchangeRequest.js +145 -0
- package/exchange/request/IncrementalExchangeRequest.js.map +1 -0
- package/exchange/request/IncrementalExchangeRequest.ts +155 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.d.ts +25 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.js +83 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.js.map +1 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.ts +90 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.d.ts +37 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.js +123 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.js.map +1 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.ts +133 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.d.ts +62 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.js +218 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.ts +224 -0
- package/exchange/request/index.d.ts +13 -1
- package/exchange/request/index.js +25 -1
- package/exchange/request/index.js.map +1 -1
- package/exchange/request/index.ts +24 -0
- package/exchange/rest.d.ts +12 -0
- package/exchange/rest.js +341 -0
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +389 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.d.ts +18 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.js +67 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.js.map +1 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.ts +73 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.d.ts +14 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.js +53 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.js.map +1 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.ts +56 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/GetIncrementalRateModelResult.d.ts +14 -0
- package/exchange/result/GetIncrementalRateModelResult.js +48 -0
- package/exchange/result/GetIncrementalRateModelResult.js.map +1 -0
- package/exchange/result/GetIncrementalRateModelResult.ts +48 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.d.ts +30 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.js +104 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.js.map +1 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.ts +116 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.d.ts +30 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.js +104 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.js.map +1 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.ts +116 -0
- package/exchange/result/IncrementalExchangeResult.d.ts +30 -0
- package/exchange/result/IncrementalExchangeResult.js +104 -0
- package/exchange/result/IncrementalExchangeResult.js.map +1 -0
- package/exchange/result/IncrementalExchangeResult.ts +116 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.d.ts +14 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.js +48 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.js.map +1 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.ts +48 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.d.ts +14 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.js +48 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.js.map +1 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.ts +48 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/index.d.ts +13 -1
- package/exchange/result/index.js +25 -1
- package/exchange/result/index.js.map +1 -1
- package/exchange/result/index.ts +24 -0
- package/idle/request/DescribeStatusesByUserIdRequest.d.ts +0 -4
- package/idle/request/DescribeStatusesByUserIdRequest.js +0 -14
- package/idle/request/DescribeStatusesByUserIdRequest.js.map +1 -1
- package/idle/request/DescribeStatusesByUserIdRequest.ts +0 -14
- package/idle/request/DescribeStatusesRequest.d.ts +0 -4
- package/idle/request/DescribeStatusesRequest.js +0 -14
- package/idle/request/DescribeStatusesRequest.js.map +1 -1
- package/idle/request/DescribeStatusesRequest.ts +0 -14
- package/idle/request/GetCurrentCategoryMasterRequest.d.ts +21 -0
- package/idle/request/GetCurrentCategoryMasterRequest.js +69 -0
- package/idle/request/GetCurrentCategoryMasterRequest.js.map +1 -0
- package/idle/request/GetCurrentCategoryMasterRequest.ts +76 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.d.ts +26 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.js +86 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.js.map +1 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.ts +90 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.d.ts +25 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.js +83 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.js.map +1 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.ts +90 -0
- package/idle/request/index.d.ts +4 -4
- package/idle/request/index.js +7 -7
- package/idle/request/index.js.map +1 -1
- package/idle/request/index.ts +6 -6
- package/idle/rest.d.ts +3 -3
- package/idle/rest.js +12 -14
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +6 -8
- package/idle/result/GetCurrentCategoryMasterResult.d.ts +14 -0
- package/idle/result/GetCurrentCategoryMasterResult.js +48 -0
- package/idle/result/GetCurrentCategoryMasterResult.js.map +1 -0
- package/idle/result/GetCurrentCategoryMasterResult.ts +48 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.d.ts +14 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.js +48 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.js.map +1 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.ts +48 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.d.ts +14 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.js +48 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.js.map +1 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.ts +48 -0
- package/idle/result/index.d.ts +4 -4
- package/idle/result/index.js +7 -7
- package/idle/result/index.js.map +1 -1
- package/idle/result/index.ts +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Exchange from '../model';
|
|
3
|
+
export default class CreateIncrementalRateModelMasterRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private name;
|
|
8
|
+
private description;
|
|
9
|
+
private metadata;
|
|
10
|
+
private consumeAction;
|
|
11
|
+
private calculateType;
|
|
12
|
+
private baseValue;
|
|
13
|
+
private coefficientValue;
|
|
14
|
+
private calculateScriptId;
|
|
15
|
+
private exchangeCountId;
|
|
16
|
+
private acquireActions;
|
|
17
|
+
getRequestId(): string | null;
|
|
18
|
+
setRequestId(requestId: string | null): this;
|
|
19
|
+
withRequestId(requestId: string | null): this;
|
|
20
|
+
getContextStack(): string | null;
|
|
21
|
+
setContextStack(contextStack: string | null): this;
|
|
22
|
+
withContextStack(contextStack: string | null): this;
|
|
23
|
+
getNamespaceName(): string | null;
|
|
24
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
25
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
26
|
+
getName(): string | null;
|
|
27
|
+
setName(name: string | null): this;
|
|
28
|
+
withName(name: string | null): this;
|
|
29
|
+
getDescription(): string | null;
|
|
30
|
+
setDescription(description: string | null): this;
|
|
31
|
+
withDescription(description: string | null): this;
|
|
32
|
+
getMetadata(): string | null;
|
|
33
|
+
setMetadata(metadata: string | null): this;
|
|
34
|
+
withMetadata(metadata: string | null): this;
|
|
35
|
+
getConsumeAction(): Gs2Exchange.ConsumeAction | null;
|
|
36
|
+
setConsumeAction(consumeAction: Gs2Exchange.ConsumeAction | null): this;
|
|
37
|
+
withConsumeAction(consumeAction: Gs2Exchange.ConsumeAction | null): this;
|
|
38
|
+
getCalculateType(): string | null;
|
|
39
|
+
setCalculateType(calculateType: string | null): this;
|
|
40
|
+
withCalculateType(calculateType: string | null): this;
|
|
41
|
+
getBaseValue(): number | null;
|
|
42
|
+
setBaseValue(baseValue: number | null): this;
|
|
43
|
+
withBaseValue(baseValue: number | null): this;
|
|
44
|
+
getCoefficientValue(): number | null;
|
|
45
|
+
setCoefficientValue(coefficientValue: number | null): this;
|
|
46
|
+
withCoefficientValue(coefficientValue: number | null): this;
|
|
47
|
+
getCalculateScriptId(): string | null;
|
|
48
|
+
setCalculateScriptId(calculateScriptId: string | null): this;
|
|
49
|
+
withCalculateScriptId(calculateScriptId: string | null): this;
|
|
50
|
+
getExchangeCountId(): string | null;
|
|
51
|
+
setExchangeCountId(exchangeCountId: string | null): this;
|
|
52
|
+
withExchangeCountId(exchangeCountId: string | null): this;
|
|
53
|
+
getAcquireActions(): Gs2Exchange.AcquireAction[] | null;
|
|
54
|
+
setAcquireActions(acquireActions: Gs2Exchange.AcquireAction[] | null): this;
|
|
55
|
+
withAcquireActions(acquireActions: Gs2Exchange.AcquireAction[] | null): this;
|
|
56
|
+
static fromDict(data: {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}): CreateIncrementalRateModelMasterRequest;
|
|
59
|
+
toDict(): {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
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 Gs2Exchange = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var CreateIncrementalRateModelMasterRequest = /** @class */ (function () {
|
|
21
|
+
function CreateIncrementalRateModelMasterRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.name = null;
|
|
26
|
+
this.description = null;
|
|
27
|
+
this.metadata = null;
|
|
28
|
+
this.consumeAction = null;
|
|
29
|
+
this.calculateType = null;
|
|
30
|
+
this.baseValue = null;
|
|
31
|
+
this.coefficientValue = null;
|
|
32
|
+
this.calculateScriptId = null;
|
|
33
|
+
this.exchangeCountId = null;
|
|
34
|
+
this.acquireActions = null;
|
|
35
|
+
}
|
|
36
|
+
CreateIncrementalRateModelMasterRequest.prototype.getRequestId = function () {
|
|
37
|
+
return this.requestId;
|
|
38
|
+
};
|
|
39
|
+
CreateIncrementalRateModelMasterRequest.prototype.setRequestId = function (requestId) {
|
|
40
|
+
this.requestId = requestId;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
CreateIncrementalRateModelMasterRequest.prototype.withRequestId = function (requestId) {
|
|
44
|
+
this.requestId = requestId;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
CreateIncrementalRateModelMasterRequest.prototype.getContextStack = function () {
|
|
48
|
+
return this.contextStack;
|
|
49
|
+
};
|
|
50
|
+
CreateIncrementalRateModelMasterRequest.prototype.setContextStack = function (contextStack) {
|
|
51
|
+
this.contextStack = contextStack;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
CreateIncrementalRateModelMasterRequest.prototype.withContextStack = function (contextStack) {
|
|
55
|
+
this.contextStack = contextStack;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
CreateIncrementalRateModelMasterRequest.prototype.getNamespaceName = function () {
|
|
59
|
+
return this.namespaceName;
|
|
60
|
+
};
|
|
61
|
+
CreateIncrementalRateModelMasterRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
62
|
+
this.namespaceName = namespaceName;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
CreateIncrementalRateModelMasterRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
66
|
+
this.namespaceName = namespaceName;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
CreateIncrementalRateModelMasterRequest.prototype.getName = function () {
|
|
70
|
+
return this.name;
|
|
71
|
+
};
|
|
72
|
+
CreateIncrementalRateModelMasterRequest.prototype.setName = function (name) {
|
|
73
|
+
this.name = name;
|
|
74
|
+
return this;
|
|
75
|
+
};
|
|
76
|
+
CreateIncrementalRateModelMasterRequest.prototype.withName = function (name) {
|
|
77
|
+
this.name = name;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
CreateIncrementalRateModelMasterRequest.prototype.getDescription = function () {
|
|
81
|
+
return this.description;
|
|
82
|
+
};
|
|
83
|
+
CreateIncrementalRateModelMasterRequest.prototype.setDescription = function (description) {
|
|
84
|
+
this.description = description;
|
|
85
|
+
return this;
|
|
86
|
+
};
|
|
87
|
+
CreateIncrementalRateModelMasterRequest.prototype.withDescription = function (description) {
|
|
88
|
+
this.description = description;
|
|
89
|
+
return this;
|
|
90
|
+
};
|
|
91
|
+
CreateIncrementalRateModelMasterRequest.prototype.getMetadata = function () {
|
|
92
|
+
return this.metadata;
|
|
93
|
+
};
|
|
94
|
+
CreateIncrementalRateModelMasterRequest.prototype.setMetadata = function (metadata) {
|
|
95
|
+
this.metadata = metadata;
|
|
96
|
+
return this;
|
|
97
|
+
};
|
|
98
|
+
CreateIncrementalRateModelMasterRequest.prototype.withMetadata = function (metadata) {
|
|
99
|
+
this.metadata = metadata;
|
|
100
|
+
return this;
|
|
101
|
+
};
|
|
102
|
+
CreateIncrementalRateModelMasterRequest.prototype.getConsumeAction = function () {
|
|
103
|
+
return this.consumeAction;
|
|
104
|
+
};
|
|
105
|
+
CreateIncrementalRateModelMasterRequest.prototype.setConsumeAction = function (consumeAction) {
|
|
106
|
+
this.consumeAction = consumeAction;
|
|
107
|
+
return this;
|
|
108
|
+
};
|
|
109
|
+
CreateIncrementalRateModelMasterRequest.prototype.withConsumeAction = function (consumeAction) {
|
|
110
|
+
this.consumeAction = consumeAction;
|
|
111
|
+
return this;
|
|
112
|
+
};
|
|
113
|
+
CreateIncrementalRateModelMasterRequest.prototype.getCalculateType = function () {
|
|
114
|
+
return this.calculateType;
|
|
115
|
+
};
|
|
116
|
+
CreateIncrementalRateModelMasterRequest.prototype.setCalculateType = function (calculateType) {
|
|
117
|
+
this.calculateType = calculateType;
|
|
118
|
+
return this;
|
|
119
|
+
};
|
|
120
|
+
CreateIncrementalRateModelMasterRequest.prototype.withCalculateType = function (calculateType) {
|
|
121
|
+
this.calculateType = calculateType;
|
|
122
|
+
return this;
|
|
123
|
+
};
|
|
124
|
+
CreateIncrementalRateModelMasterRequest.prototype.getBaseValue = function () {
|
|
125
|
+
return this.baseValue;
|
|
126
|
+
};
|
|
127
|
+
CreateIncrementalRateModelMasterRequest.prototype.setBaseValue = function (baseValue) {
|
|
128
|
+
this.baseValue = baseValue;
|
|
129
|
+
return this;
|
|
130
|
+
};
|
|
131
|
+
CreateIncrementalRateModelMasterRequest.prototype.withBaseValue = function (baseValue) {
|
|
132
|
+
this.baseValue = baseValue;
|
|
133
|
+
return this;
|
|
134
|
+
};
|
|
135
|
+
CreateIncrementalRateModelMasterRequest.prototype.getCoefficientValue = function () {
|
|
136
|
+
return this.coefficientValue;
|
|
137
|
+
};
|
|
138
|
+
CreateIncrementalRateModelMasterRequest.prototype.setCoefficientValue = function (coefficientValue) {
|
|
139
|
+
this.coefficientValue = coefficientValue;
|
|
140
|
+
return this;
|
|
141
|
+
};
|
|
142
|
+
CreateIncrementalRateModelMasterRequest.prototype.withCoefficientValue = function (coefficientValue) {
|
|
143
|
+
this.coefficientValue = coefficientValue;
|
|
144
|
+
return this;
|
|
145
|
+
};
|
|
146
|
+
CreateIncrementalRateModelMasterRequest.prototype.getCalculateScriptId = function () {
|
|
147
|
+
return this.calculateScriptId;
|
|
148
|
+
};
|
|
149
|
+
CreateIncrementalRateModelMasterRequest.prototype.setCalculateScriptId = function (calculateScriptId) {
|
|
150
|
+
this.calculateScriptId = calculateScriptId;
|
|
151
|
+
return this;
|
|
152
|
+
};
|
|
153
|
+
CreateIncrementalRateModelMasterRequest.prototype.withCalculateScriptId = function (calculateScriptId) {
|
|
154
|
+
this.calculateScriptId = calculateScriptId;
|
|
155
|
+
return this;
|
|
156
|
+
};
|
|
157
|
+
CreateIncrementalRateModelMasterRequest.prototype.getExchangeCountId = function () {
|
|
158
|
+
return this.exchangeCountId;
|
|
159
|
+
};
|
|
160
|
+
CreateIncrementalRateModelMasterRequest.prototype.setExchangeCountId = function (exchangeCountId) {
|
|
161
|
+
this.exchangeCountId = exchangeCountId;
|
|
162
|
+
return this;
|
|
163
|
+
};
|
|
164
|
+
CreateIncrementalRateModelMasterRequest.prototype.withExchangeCountId = function (exchangeCountId) {
|
|
165
|
+
this.exchangeCountId = exchangeCountId;
|
|
166
|
+
return this;
|
|
167
|
+
};
|
|
168
|
+
CreateIncrementalRateModelMasterRequest.prototype.getAcquireActions = function () {
|
|
169
|
+
return this.acquireActions;
|
|
170
|
+
};
|
|
171
|
+
CreateIncrementalRateModelMasterRequest.prototype.setAcquireActions = function (acquireActions) {
|
|
172
|
+
this.acquireActions = acquireActions;
|
|
173
|
+
return this;
|
|
174
|
+
};
|
|
175
|
+
CreateIncrementalRateModelMasterRequest.prototype.withAcquireActions = function (acquireActions) {
|
|
176
|
+
this.acquireActions = acquireActions;
|
|
177
|
+
return this;
|
|
178
|
+
};
|
|
179
|
+
CreateIncrementalRateModelMasterRequest.fromDict = function (data) {
|
|
180
|
+
return new CreateIncrementalRateModelMasterRequest()
|
|
181
|
+
.withNamespaceName(data["namespaceName"])
|
|
182
|
+
.withName(data["name"])
|
|
183
|
+
.withDescription(data["description"])
|
|
184
|
+
.withMetadata(data["metadata"])
|
|
185
|
+
.withConsumeAction(Gs2Exchange.ConsumeAction.fromDict(data["consumeAction"]))
|
|
186
|
+
.withCalculateType(data["calculateType"])
|
|
187
|
+
.withBaseValue(data["baseValue"])
|
|
188
|
+
.withCoefficientValue(data["coefficientValue"])
|
|
189
|
+
.withCalculateScriptId(data["calculateScriptId"])
|
|
190
|
+
.withExchangeCountId(data["exchangeCountId"])
|
|
191
|
+
.withAcquireActions(data.acquireActions ?
|
|
192
|
+
data.acquireActions.map(function (item) {
|
|
193
|
+
return Gs2Exchange.AcquireAction.fromDict(item);
|
|
194
|
+
}) : []);
|
|
195
|
+
};
|
|
196
|
+
CreateIncrementalRateModelMasterRequest.prototype.toDict = function () {
|
|
197
|
+
var _a;
|
|
198
|
+
return {
|
|
199
|
+
"namespaceName": this.getNamespaceName(),
|
|
200
|
+
"name": this.getName(),
|
|
201
|
+
"description": this.getDescription(),
|
|
202
|
+
"metadata": this.getMetadata(),
|
|
203
|
+
"consumeAction": (_a = this.getConsumeAction()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
204
|
+
"calculateType": this.getCalculateType(),
|
|
205
|
+
"baseValue": this.getBaseValue(),
|
|
206
|
+
"coefficientValue": this.getCoefficientValue(),
|
|
207
|
+
"calculateScriptId": this.getCalculateScriptId(),
|
|
208
|
+
"exchangeCountId": this.getExchangeCountId(),
|
|
209
|
+
"acquireActions": this.getAcquireActions() ?
|
|
210
|
+
this.getAcquireActions().map(function (item) {
|
|
211
|
+
return item.toDict();
|
|
212
|
+
}) : [],
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
return CreateIncrementalRateModelMasterRequest;
|
|
216
|
+
}());
|
|
217
|
+
exports.default = CreateIncrementalRateModelMasterRequest;
|
|
218
|
+
//# sourceMappingURL=CreateIncrementalRateModelMasterRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateIncrementalRateModelMasterRequest.js","sourceRoot":"","sources":["CreateIncrementalRateModelMasterRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,SAAI,GAAgB,IAAI,CAAC;QACzB,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,kBAAa,GAAmC,IAAI,CAAC;QACrD,kBAAa,GAAgB,IAAI,CAAC;QAClC,cAAS,GAAgB,IAAI,CAAC;QAC9B,qBAAgB,GAAgB,IAAI,CAAC;QACrC,sBAAiB,GAAgB,IAAI,CAAC;QACtC,oBAAe,GAAgB,IAAI,CAAC;QACpC,mBAAc,GAAqC,IAAI,CAAC;IA6LpE,CAAC;IA3LU,8DAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,8DAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+DAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iEAAe,GAAtB;Q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E,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;gBACxC,IAAI,CAAC,iBAAiB,EAAG,CAAC,GAAG,CAAC,UAAC,IAA+B;oBAC1D,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,8CAAC;AAAD,CAAC,AA3MD,IA2MC"}
|
|
@@ -0,0 +1,224 @@
|
|
|
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 IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Exchange from '../model'
|
|
20
|
+
|
|
21
|
+
export default class CreateIncrementalRateModelMasterRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private name: string|null = null;
|
|
27
|
+
private description: string|null = null;
|
|
28
|
+
private metadata: string|null = null;
|
|
29
|
+
private consumeAction: Gs2Exchange.ConsumeAction|null = null;
|
|
30
|
+
private calculateType: string|null = null;
|
|
31
|
+
private baseValue: number|null = null;
|
|
32
|
+
private coefficientValue: number|null = null;
|
|
33
|
+
private calculateScriptId: string|null = null;
|
|
34
|
+
private exchangeCountId: string|null = null;
|
|
35
|
+
private acquireActions: Gs2Exchange.AcquireAction[]|null = null;
|
|
36
|
+
|
|
37
|
+
public getRequestId(): string|null {
|
|
38
|
+
return this.requestId;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public setRequestId(requestId: string|null) {
|
|
42
|
+
this.requestId = requestId;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public withRequestId(requestId: string|null): this {
|
|
47
|
+
this.requestId = requestId;
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public getContextStack(): string|null {
|
|
52
|
+
return this.contextStack;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public setContextStack(contextStack: string|null) {
|
|
56
|
+
this.contextStack = contextStack;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public withContextStack(contextStack: string|null): this {
|
|
61
|
+
this.contextStack = contextStack;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
public getNamespaceName(): string|null {
|
|
65
|
+
return this.namespaceName;
|
|
66
|
+
}
|
|
67
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
68
|
+
this.namespaceName = namespaceName;
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
72
|
+
this.namespaceName = namespaceName;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
public getName(): string|null {
|
|
76
|
+
return this.name;
|
|
77
|
+
}
|
|
78
|
+
public setName(name: string|null) {
|
|
79
|
+
this.name = name;
|
|
80
|
+
return this;
|
|
81
|
+
}
|
|
82
|
+
public withName(name: string|null): this {
|
|
83
|
+
this.name = name;
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
public getDescription(): string|null {
|
|
87
|
+
return this.description;
|
|
88
|
+
}
|
|
89
|
+
public setDescription(description: string|null) {
|
|
90
|
+
this.description = description;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
public withDescription(description: string|null): this {
|
|
94
|
+
this.description = description;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
public getMetadata(): string|null {
|
|
98
|
+
return this.metadata;
|
|
99
|
+
}
|
|
100
|
+
public setMetadata(metadata: string|null) {
|
|
101
|
+
this.metadata = metadata;
|
|
102
|
+
return this;
|
|
103
|
+
}
|
|
104
|
+
public withMetadata(metadata: string|null): this {
|
|
105
|
+
this.metadata = metadata;
|
|
106
|
+
return this;
|
|
107
|
+
}
|
|
108
|
+
public getConsumeAction(): Gs2Exchange.ConsumeAction|null {
|
|
109
|
+
return this.consumeAction;
|
|
110
|
+
}
|
|
111
|
+
public setConsumeAction(consumeAction: Gs2Exchange.ConsumeAction|null) {
|
|
112
|
+
this.consumeAction = consumeAction;
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
public withConsumeAction(consumeAction: Gs2Exchange.ConsumeAction|null): this {
|
|
116
|
+
this.consumeAction = consumeAction;
|
|
117
|
+
return this;
|
|
118
|
+
}
|
|
119
|
+
public getCalculateType(): string|null {
|
|
120
|
+
return this.calculateType;
|
|
121
|
+
}
|
|
122
|
+
public setCalculateType(calculateType: string|null) {
|
|
123
|
+
this.calculateType = calculateType;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
public withCalculateType(calculateType: string|null): this {
|
|
127
|
+
this.calculateType = calculateType;
|
|
128
|
+
return this;
|
|
129
|
+
}
|
|
130
|
+
public getBaseValue(): number|null {
|
|
131
|
+
return this.baseValue;
|
|
132
|
+
}
|
|
133
|
+
public setBaseValue(baseValue: number|null) {
|
|
134
|
+
this.baseValue = baseValue;
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
public withBaseValue(baseValue: number|null): this {
|
|
138
|
+
this.baseValue = baseValue;
|
|
139
|
+
return this;
|
|
140
|
+
}
|
|
141
|
+
public getCoefficientValue(): number|null {
|
|
142
|
+
return this.coefficientValue;
|
|
143
|
+
}
|
|
144
|
+
public setCoefficientValue(coefficientValue: number|null) {
|
|
145
|
+
this.coefficientValue = coefficientValue;
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
public withCoefficientValue(coefficientValue: number|null): this {
|
|
149
|
+
this.coefficientValue = coefficientValue;
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
public getCalculateScriptId(): string|null {
|
|
153
|
+
return this.calculateScriptId;
|
|
154
|
+
}
|
|
155
|
+
public setCalculateScriptId(calculateScriptId: string|null) {
|
|
156
|
+
this.calculateScriptId = calculateScriptId;
|
|
157
|
+
return this;
|
|
158
|
+
}
|
|
159
|
+
public withCalculateScriptId(calculateScriptId: string|null): this {
|
|
160
|
+
this.calculateScriptId = calculateScriptId;
|
|
161
|
+
return this;
|
|
162
|
+
}
|
|
163
|
+
public getExchangeCountId(): string|null {
|
|
164
|
+
return this.exchangeCountId;
|
|
165
|
+
}
|
|
166
|
+
public setExchangeCountId(exchangeCountId: string|null) {
|
|
167
|
+
this.exchangeCountId = exchangeCountId;
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
public withExchangeCountId(exchangeCountId: string|null): this {
|
|
171
|
+
this.exchangeCountId = exchangeCountId;
|
|
172
|
+
return this;
|
|
173
|
+
}
|
|
174
|
+
public getAcquireActions(): Gs2Exchange.AcquireAction[]|null {
|
|
175
|
+
return this.acquireActions;
|
|
176
|
+
}
|
|
177
|
+
public setAcquireActions(acquireActions: Gs2Exchange.AcquireAction[]|null) {
|
|
178
|
+
this.acquireActions = acquireActions;
|
|
179
|
+
return this;
|
|
180
|
+
}
|
|
181
|
+
public withAcquireActions(acquireActions: Gs2Exchange.AcquireAction[]|null): this {
|
|
182
|
+
this.acquireActions = acquireActions;
|
|
183
|
+
return this;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
public static fromDict(data: {[key: string]: any}): CreateIncrementalRateModelMasterRequest {
|
|
187
|
+
return new CreateIncrementalRateModelMasterRequest()
|
|
188
|
+
.withNamespaceName(data["namespaceName"])
|
|
189
|
+
.withName(data["name"])
|
|
190
|
+
.withDescription(data["description"])
|
|
191
|
+
.withMetadata(data["metadata"])
|
|
192
|
+
.withConsumeAction(Gs2Exchange.ConsumeAction.fromDict(data["consumeAction"]))
|
|
193
|
+
.withCalculateType(data["calculateType"])
|
|
194
|
+
.withBaseValue(data["baseValue"])
|
|
195
|
+
.withCoefficientValue(data["coefficientValue"])
|
|
196
|
+
.withCalculateScriptId(data["calculateScriptId"])
|
|
197
|
+
.withExchangeCountId(data["exchangeCountId"])
|
|
198
|
+
.withAcquireActions(data.acquireActions ?
|
|
199
|
+
data.acquireActions.map((item: {[key: string]: any}) => {
|
|
200
|
+
return Gs2Exchange.AcquireAction.fromDict(item);
|
|
201
|
+
}
|
|
202
|
+
) : []);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
public toDict(): {[key: string]: any} {
|
|
206
|
+
return {
|
|
207
|
+
"namespaceName": this.getNamespaceName(),
|
|
208
|
+
"name": this.getName(),
|
|
209
|
+
"description": this.getDescription(),
|
|
210
|
+
"metadata": this.getMetadata(),
|
|
211
|
+
"consumeAction": this.getConsumeAction()?.toDict(),
|
|
212
|
+
"calculateType": this.getCalculateType(),
|
|
213
|
+
"baseValue": this.getBaseValue(),
|
|
214
|
+
"coefficientValue": this.getCoefficientValue(),
|
|
215
|
+
"calculateScriptId": this.getCalculateScriptId(),
|
|
216
|
+
"exchangeCountId": this.getExchangeCountId(),
|
|
217
|
+
"acquireActions": this.getAcquireActions() ?
|
|
218
|
+
this.getAcquireActions()!.map((item: Gs2Exchange.AcquireAction) => {
|
|
219
|
+
return item.toDict();
|
|
220
|
+
}
|
|
221
|
+
) : [],
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class DeleteIncrementalRateModelMasterRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private rateName;
|
|
7
|
+
getRequestId(): string | null;
|
|
8
|
+
setRequestId(requestId: string | null): this;
|
|
9
|
+
withRequestId(requestId: string | null): this;
|
|
10
|
+
getContextStack(): string | null;
|
|
11
|
+
setContextStack(contextStack: string | null): this;
|
|
12
|
+
withContextStack(contextStack: string | null): this;
|
|
13
|
+
getNamespaceName(): string | null;
|
|
14
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
15
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
16
|
+
getRateName(): string | null;
|
|
17
|
+
setRateName(rateName: string | null): this;
|
|
18
|
+
withRateName(rateName: string | null): this;
|
|
19
|
+
static fromDict(data: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}): DeleteIncrementalRateModelMasterRequest;
|
|
22
|
+
toDict(): {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 DeleteIncrementalRateModelMasterRequest = /** @class */ (function () {
|
|
19
|
+
function DeleteIncrementalRateModelMasterRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.rateName = null;
|
|
24
|
+
}
|
|
25
|
+
DeleteIncrementalRateModelMasterRequest.prototype.getRequestId = function () {
|
|
26
|
+
return this.requestId;
|
|
27
|
+
};
|
|
28
|
+
DeleteIncrementalRateModelMasterRequest.prototype.setRequestId = function (requestId) {
|
|
29
|
+
this.requestId = requestId;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
DeleteIncrementalRateModelMasterRequest.prototype.withRequestId = function (requestId) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
DeleteIncrementalRateModelMasterRequest.prototype.getContextStack = function () {
|
|
37
|
+
return this.contextStack;
|
|
38
|
+
};
|
|
39
|
+
DeleteIncrementalRateModelMasterRequest.prototype.setContextStack = function (contextStack) {
|
|
40
|
+
this.contextStack = contextStack;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
DeleteIncrementalRateModelMasterRequest.prototype.withContextStack = function (contextStack) {
|
|
44
|
+
this.contextStack = contextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
DeleteIncrementalRateModelMasterRequest.prototype.getNamespaceName = function () {
|
|
48
|
+
return this.namespaceName;
|
|
49
|
+
};
|
|
50
|
+
DeleteIncrementalRateModelMasterRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
51
|
+
this.namespaceName = namespaceName;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
DeleteIncrementalRateModelMasterRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
55
|
+
this.namespaceName = namespaceName;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
DeleteIncrementalRateModelMasterRequest.prototype.getRateName = function () {
|
|
59
|
+
return this.rateName;
|
|
60
|
+
};
|
|
61
|
+
DeleteIncrementalRateModelMasterRequest.prototype.setRateName = function (rateName) {
|
|
62
|
+
this.rateName = rateName;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
DeleteIncrementalRateModelMasterRequest.prototype.withRateName = function (rateName) {
|
|
66
|
+
this.rateName = rateName;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
DeleteIncrementalRateModelMasterRequest.fromDict = function (data) {
|
|
70
|
+
return new DeleteIncrementalRateModelMasterRequest()
|
|
71
|
+
.withNamespaceName(data["namespaceName"])
|
|
72
|
+
.withRateName(data["rateName"]);
|
|
73
|
+
};
|
|
74
|
+
DeleteIncrementalRateModelMasterRequest.prototype.toDict = function () {
|
|
75
|
+
return {
|
|
76
|
+
"namespaceName": this.getNamespaceName(),
|
|
77
|
+
"rateName": this.getRateName(),
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
return DeleteIncrementalRateModelMasterRequest;
|
|
81
|
+
}());
|
|
82
|
+
exports.default = DeleteIncrementalRateModelMasterRequest;
|
|
83
|
+
//# sourceMappingURL=DeleteIncrementalRateModelMasterRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteIncrementalRateModelMasterRequest.js","sourceRoot":"","sources":["DeleteIncrementalRateModelMasterRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,aAAQ,GAAgB,IAAI,CAAC;IAgEzC,CAAC;IA9DU,8DAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,8DAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+DAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAA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