@stashfin/grpc 1.2.390 → 1.2.391
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/package.json
CHANGED
|
@@ -9,6 +9,8 @@ export interface getAddonsListResponse {
|
|
|
9
9
|
export interface getAddonsListResponse_Field {
|
|
10
10
|
name: string;
|
|
11
11
|
amount: number;
|
|
12
|
+
plan_id: number;
|
|
13
|
+
discount: number;
|
|
12
14
|
}
|
|
13
15
|
export declare const getAddonsListRequest: {
|
|
14
16
|
encode(message: getAddonsListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -117,7 +117,7 @@ exports.getAddonsListResponse = {
|
|
|
117
117
|
},
|
|
118
118
|
};
|
|
119
119
|
function createBasegetAddonsListResponse_Field() {
|
|
120
|
-
return { name: "", amount: 0 };
|
|
120
|
+
return { name: "", amount: 0, plan_id: 0, discount: 0 };
|
|
121
121
|
}
|
|
122
122
|
exports.getAddonsListResponse_Field = {
|
|
123
123
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -125,7 +125,13 @@ exports.getAddonsListResponse_Field = {
|
|
|
125
125
|
writer.uint32(10).string(message.name);
|
|
126
126
|
}
|
|
127
127
|
if (message.amount !== 0) {
|
|
128
|
-
writer.uint32(
|
|
128
|
+
writer.uint32(21).float(message.amount);
|
|
129
|
+
}
|
|
130
|
+
if (message.plan_id !== 0) {
|
|
131
|
+
writer.uint32(24).int32(message.plan_id);
|
|
132
|
+
}
|
|
133
|
+
if (message.discount !== 0) {
|
|
134
|
+
writer.uint32(37).float(message.discount);
|
|
129
135
|
}
|
|
130
136
|
return writer;
|
|
131
137
|
},
|
|
@@ -143,10 +149,22 @@ exports.getAddonsListResponse_Field = {
|
|
|
143
149
|
message.name = reader.string();
|
|
144
150
|
continue;
|
|
145
151
|
case 2:
|
|
146
|
-
if (tag !==
|
|
152
|
+
if (tag !== 21) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.amount = reader.float();
|
|
156
|
+
continue;
|
|
157
|
+
case 3:
|
|
158
|
+
if (tag !== 24) {
|
|
147
159
|
break;
|
|
148
160
|
}
|
|
149
|
-
message.
|
|
161
|
+
message.plan_id = reader.int32();
|
|
162
|
+
continue;
|
|
163
|
+
case 4:
|
|
164
|
+
if (tag !== 37) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
message.discount = reader.float();
|
|
150
168
|
continue;
|
|
151
169
|
}
|
|
152
170
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -160,6 +178,8 @@ exports.getAddonsListResponse_Field = {
|
|
|
160
178
|
return {
|
|
161
179
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
162
180
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
181
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
182
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
163
183
|
};
|
|
164
184
|
},
|
|
165
185
|
toJSON(message) {
|
|
@@ -168,7 +188,13 @@ exports.getAddonsListResponse_Field = {
|
|
|
168
188
|
obj.name = message.name;
|
|
169
189
|
}
|
|
170
190
|
if (message.amount !== 0) {
|
|
171
|
-
obj.amount =
|
|
191
|
+
obj.amount = message.amount;
|
|
192
|
+
}
|
|
193
|
+
if (message.plan_id !== 0) {
|
|
194
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
195
|
+
}
|
|
196
|
+
if (message.discount !== 0) {
|
|
197
|
+
obj.discount = message.discount;
|
|
172
198
|
}
|
|
173
199
|
return obj;
|
|
174
200
|
},
|
|
@@ -179,6 +205,8 @@ exports.getAddonsListResponse_Field = {
|
|
|
179
205
|
const message = createBasegetAddonsListResponse_Field();
|
|
180
206
|
message.name = object.name ?? "";
|
|
181
207
|
message.amount = object.amount ?? 0;
|
|
208
|
+
message.plan_id = object.plan_id ?? 0;
|
|
209
|
+
message.discount = object.discount ?? 0;
|
|
182
210
|
return message;
|
|
183
211
|
},
|
|
184
212
|
};
|