@stashfin/grpc 1.2.379 → 1.2.380
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
|
@@ -14,6 +14,13 @@ export interface getPocketPersonalAccidentProtectionPlanResponse {
|
|
|
14
14
|
terms_link: string;
|
|
15
15
|
button_name: string;
|
|
16
16
|
status: string;
|
|
17
|
+
plan_details: PlanDetails | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface PlanDetails {
|
|
20
|
+
type: string;
|
|
21
|
+
plan_id: number;
|
|
22
|
+
amount: number;
|
|
23
|
+
meta_data: string;
|
|
17
24
|
}
|
|
18
25
|
export declare const Benefit: {
|
|
19
26
|
encode(message: Benefit, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -39,6 +46,14 @@ export declare const getPocketPersonalAccidentProtectionPlanResponse: {
|
|
|
39
46
|
create<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanResponse>, I>>(base?: I): getPocketPersonalAccidentProtectionPlanResponse;
|
|
40
47
|
fromPartial<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanResponse>, I>>(object: I): getPocketPersonalAccidentProtectionPlanResponse;
|
|
41
48
|
};
|
|
49
|
+
export declare const PlanDetails: {
|
|
50
|
+
encode(message: PlanDetails, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PlanDetails;
|
|
52
|
+
fromJSON(object: any): PlanDetails;
|
|
53
|
+
toJSON(message: PlanDetails): unknown;
|
|
54
|
+
create<I extends Exact<DeepPartial<PlanDetails>, I>>(base?: I): PlanDetails;
|
|
55
|
+
fromPartial<I extends Exact<DeepPartial<PlanDetails>, I>>(object: I): PlanDetails;
|
|
56
|
+
};
|
|
42
57
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
43
58
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
44
59
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getPocketPersonalAccidentProtectionPlanResponse = exports.getPocketPersonalAccidentProtectionPlanRequest = exports.Benefit = exports.protobufPackage = void 0;
|
|
11
|
+
exports.PlanDetails = exports.getPocketPersonalAccidentProtectionPlanResponse = exports.getPocketPersonalAccidentProtectionPlanRequest = exports.Benefit = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.accidentprotectionplan";
|
|
@@ -130,7 +130,15 @@ exports.getPocketPersonalAccidentProtectionPlanRequest = {
|
|
|
130
130
|
},
|
|
131
131
|
};
|
|
132
132
|
function createBasegetPocketPersonalAccidentProtectionPlanResponse() {
|
|
133
|
-
return {
|
|
133
|
+
return {
|
|
134
|
+
title: "",
|
|
135
|
+
benefits: [],
|
|
136
|
+
terms_description: "",
|
|
137
|
+
terms_link: "",
|
|
138
|
+
button_name: "",
|
|
139
|
+
status: "",
|
|
140
|
+
plan_details: undefined,
|
|
141
|
+
};
|
|
134
142
|
}
|
|
135
143
|
exports.getPocketPersonalAccidentProtectionPlanResponse = {
|
|
136
144
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -152,6 +160,9 @@ exports.getPocketPersonalAccidentProtectionPlanResponse = {
|
|
|
152
160
|
if (message.status !== "") {
|
|
153
161
|
writer.uint32(50).string(message.status);
|
|
154
162
|
}
|
|
163
|
+
if (message.plan_details !== undefined) {
|
|
164
|
+
exports.PlanDetails.encode(message.plan_details, writer.uint32(58).fork()).ldelim();
|
|
165
|
+
}
|
|
155
166
|
return writer;
|
|
156
167
|
},
|
|
157
168
|
decode(input, length) {
|
|
@@ -197,6 +208,12 @@ exports.getPocketPersonalAccidentProtectionPlanResponse = {
|
|
|
197
208
|
}
|
|
198
209
|
message.status = reader.string();
|
|
199
210
|
continue;
|
|
211
|
+
case 7:
|
|
212
|
+
if (tag !== 58) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.plan_details = exports.PlanDetails.decode(reader, reader.uint32());
|
|
216
|
+
continue;
|
|
200
217
|
}
|
|
201
218
|
if ((tag & 7) === 4 || tag === 0) {
|
|
202
219
|
break;
|
|
@@ -213,6 +230,7 @@ exports.getPocketPersonalAccidentProtectionPlanResponse = {
|
|
|
213
230
|
terms_link: isSet(object.terms_link) ? globalThis.String(object.terms_link) : "",
|
|
214
231
|
button_name: isSet(object.button_name) ? globalThis.String(object.button_name) : "",
|
|
215
232
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
233
|
+
plan_details: isSet(object.plan_details) ? exports.PlanDetails.fromJSON(object.plan_details) : undefined,
|
|
216
234
|
};
|
|
217
235
|
},
|
|
218
236
|
toJSON(message) {
|
|
@@ -235,6 +253,9 @@ exports.getPocketPersonalAccidentProtectionPlanResponse = {
|
|
|
235
253
|
if (message.status !== "") {
|
|
236
254
|
obj.status = message.status;
|
|
237
255
|
}
|
|
256
|
+
if (message.plan_details !== undefined) {
|
|
257
|
+
obj.plan_details = exports.PlanDetails.toJSON(message.plan_details);
|
|
258
|
+
}
|
|
238
259
|
return obj;
|
|
239
260
|
},
|
|
240
261
|
create(base) {
|
|
@@ -248,6 +269,103 @@ exports.getPocketPersonalAccidentProtectionPlanResponse = {
|
|
|
248
269
|
message.terms_link = object.terms_link ?? "";
|
|
249
270
|
message.button_name = object.button_name ?? "";
|
|
250
271
|
message.status = object.status ?? "";
|
|
272
|
+
message.plan_details = (object.plan_details !== undefined && object.plan_details !== null)
|
|
273
|
+
? exports.PlanDetails.fromPartial(object.plan_details)
|
|
274
|
+
: undefined;
|
|
275
|
+
return message;
|
|
276
|
+
},
|
|
277
|
+
};
|
|
278
|
+
function createBasePlanDetails() {
|
|
279
|
+
return { type: "", plan_id: 0, amount: 0, meta_data: "" };
|
|
280
|
+
}
|
|
281
|
+
exports.PlanDetails = {
|
|
282
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
283
|
+
if (message.type !== "") {
|
|
284
|
+
writer.uint32(10).string(message.type);
|
|
285
|
+
}
|
|
286
|
+
if (message.plan_id !== 0) {
|
|
287
|
+
writer.uint32(16).int32(message.plan_id);
|
|
288
|
+
}
|
|
289
|
+
if (message.amount !== 0) {
|
|
290
|
+
writer.uint32(29).float(message.amount);
|
|
291
|
+
}
|
|
292
|
+
if (message.meta_data !== "") {
|
|
293
|
+
writer.uint32(34).string(message.meta_data);
|
|
294
|
+
}
|
|
295
|
+
return writer;
|
|
296
|
+
},
|
|
297
|
+
decode(input, length) {
|
|
298
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
299
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
300
|
+
const message = createBasePlanDetails();
|
|
301
|
+
while (reader.pos < end) {
|
|
302
|
+
const tag = reader.uint32();
|
|
303
|
+
switch (tag >>> 3) {
|
|
304
|
+
case 1:
|
|
305
|
+
if (tag !== 10) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.type = reader.string();
|
|
309
|
+
continue;
|
|
310
|
+
case 2:
|
|
311
|
+
if (tag !== 16) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
message.plan_id = reader.int32();
|
|
315
|
+
continue;
|
|
316
|
+
case 3:
|
|
317
|
+
if (tag !== 29) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
message.amount = reader.float();
|
|
321
|
+
continue;
|
|
322
|
+
case 4:
|
|
323
|
+
if (tag !== 34) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
message.meta_data = reader.string();
|
|
327
|
+
continue;
|
|
328
|
+
}
|
|
329
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
reader.skipType(tag & 7);
|
|
333
|
+
}
|
|
334
|
+
return message;
|
|
335
|
+
},
|
|
336
|
+
fromJSON(object) {
|
|
337
|
+
return {
|
|
338
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
339
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
340
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
341
|
+
meta_data: isSet(object.meta_data) ? globalThis.String(object.meta_data) : "",
|
|
342
|
+
};
|
|
343
|
+
},
|
|
344
|
+
toJSON(message) {
|
|
345
|
+
const obj = {};
|
|
346
|
+
if (message.type !== "") {
|
|
347
|
+
obj.type = message.type;
|
|
348
|
+
}
|
|
349
|
+
if (message.plan_id !== 0) {
|
|
350
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
351
|
+
}
|
|
352
|
+
if (message.amount !== 0) {
|
|
353
|
+
obj.amount = message.amount;
|
|
354
|
+
}
|
|
355
|
+
if (message.meta_data !== "") {
|
|
356
|
+
obj.meta_data = message.meta_data;
|
|
357
|
+
}
|
|
358
|
+
return obj;
|
|
359
|
+
},
|
|
360
|
+
create(base) {
|
|
361
|
+
return exports.PlanDetails.fromPartial(base ?? {});
|
|
362
|
+
},
|
|
363
|
+
fromPartial(object) {
|
|
364
|
+
const message = createBasePlanDetails();
|
|
365
|
+
message.type = object.type ?? "";
|
|
366
|
+
message.plan_id = object.plan_id ?? 0;
|
|
367
|
+
message.amount = object.amount ?? 0;
|
|
368
|
+
message.meta_data = object.meta_data ?? "";
|
|
251
369
|
return message;
|
|
252
370
|
},
|
|
253
371
|
};
|