@stashfin/grpc 1.2.858 → 1.2.859

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.858",
3
+ "version": "1.2.859",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -73,9 +73,9 @@ export interface GetLocDetailsResponse {
73
73
  emi_card_description: string;
74
74
  bill_card_description: string;
75
75
  installment_amounts: string;
76
- apr_title: string;
77
- apr_value: string;
78
- apr_type: string;
76
+ apr_title?: string | undefined;
77
+ apr_value?: string | undefined;
78
+ apr_type?: string | undefined;
79
79
  credit_line_details_sheet: string;
80
80
  Acknowledgement: string;
81
81
  payment_undertaking: string;
@@ -84,11 +84,13 @@ export interface GetLocDetailsResponse {
84
84
  financing_documents: string;
85
85
  max_amount: number;
86
86
  credit_report_fees: number;
87
- credit_report_actual_fees: number;
88
- plan_id: string;
89
87
  insurance_title: string;
90
88
  insurance_desc: InsuranceDescItem[];
91
89
  upfront_interest_description: string;
90
+ credit_report_actual_fees_int?: number | undefined;
91
+ credit_report_actual_fees_str?: string | undefined;
92
+ plan_id_int?: number | undefined;
93
+ plan_id_str?: string | undefined;
92
94
  }
93
95
  export declare const GetLocDetailsRequest: {
94
96
  encode(message: GetLocDetailsRequest, writer?: _m0.Writer): _m0.Writer;
@@ -264,9 +264,9 @@ function createBaseGetLocDetailsResponse() {
264
264
  emi_card_description: "",
265
265
  bill_card_description: "",
266
266
  installment_amounts: "",
267
- apr_title: "",
268
- apr_value: "",
269
- apr_type: "",
267
+ apr_title: undefined,
268
+ apr_value: undefined,
269
+ apr_type: undefined,
270
270
  credit_line_details_sheet: "",
271
271
  Acknowledgement: "",
272
272
  payment_undertaking: "",
@@ -275,11 +275,13 @@ function createBaseGetLocDetailsResponse() {
275
275
  financing_documents: "",
276
276
  max_amount: 0,
277
277
  credit_report_fees: 0,
278
- credit_report_actual_fees: 0,
279
- plan_id: "",
280
278
  insurance_title: "",
281
279
  insurance_desc: [],
282
280
  upfront_interest_description: "",
281
+ credit_report_actual_fees_int: undefined,
282
+ credit_report_actual_fees_str: undefined,
283
+ plan_id_int: undefined,
284
+ plan_id_str: undefined,
283
285
  };
284
286
  }
285
287
  exports.GetLocDetailsResponse = {
@@ -464,13 +466,13 @@ exports.GetLocDetailsResponse = {
464
466
  if (message.installment_amounts !== "") {
465
467
  writer.uint32(482).string(message.installment_amounts);
466
468
  }
467
- if (message.apr_title !== "") {
469
+ if (message.apr_title !== undefined) {
468
470
  writer.uint32(490).string(message.apr_title);
469
471
  }
470
- if (message.apr_value !== "") {
472
+ if (message.apr_value !== undefined) {
471
473
  writer.uint32(498).string(message.apr_value);
472
474
  }
473
- if (message.apr_type !== "") {
475
+ if (message.apr_type !== undefined) {
474
476
  writer.uint32(506).string(message.apr_type);
475
477
  }
476
478
  if (message.credit_line_details_sheet !== "") {
@@ -497,12 +499,6 @@ exports.GetLocDetailsResponse = {
497
499
  if (message.credit_report_fees !== 0) {
498
500
  writer.uint32(568).int32(message.credit_report_fees);
499
501
  }
500
- if (message.credit_report_actual_fees !== 0) {
501
- writer.uint32(576).int32(message.credit_report_actual_fees);
502
- }
503
- if (message.plan_id !== "") {
504
- writer.uint32(586).string(message.plan_id);
505
- }
506
502
  if (message.insurance_title !== "") {
507
503
  writer.uint32(594).string(message.insurance_title);
508
504
  }
@@ -512,6 +508,18 @@ exports.GetLocDetailsResponse = {
512
508
  if (message.upfront_interest_description !== "") {
513
509
  writer.uint32(610).string(message.upfront_interest_description);
514
510
  }
511
+ if (message.credit_report_actual_fees_int !== undefined) {
512
+ writer.uint32(576).int32(message.credit_report_actual_fees_int);
513
+ }
514
+ if (message.credit_report_actual_fees_str !== undefined) {
515
+ writer.uint32(618).string(message.credit_report_actual_fees_str);
516
+ }
517
+ if (message.plan_id_int !== undefined) {
518
+ writer.uint32(584).int32(message.plan_id_int);
519
+ }
520
+ if (message.plan_id_str !== undefined) {
521
+ writer.uint32(626).string(message.plan_id_str);
522
+ }
515
523
  return writer;
516
524
  },
517
525
  decode(input, length) {
@@ -947,18 +955,6 @@ exports.GetLocDetailsResponse = {
947
955
  }
948
956
  message.credit_report_fees = reader.int32();
949
957
  continue;
950
- case 72:
951
- if (tag !== 576) {
952
- break;
953
- }
954
- message.credit_report_actual_fees = reader.int32();
955
- continue;
956
- case 73:
957
- if (tag !== 586) {
958
- break;
959
- }
960
- message.plan_id = reader.string();
961
- continue;
962
958
  case 74:
963
959
  if (tag !== 594) {
964
960
  break;
@@ -977,6 +973,30 @@ exports.GetLocDetailsResponse = {
977
973
  }
978
974
  message.upfront_interest_description = reader.string();
979
975
  continue;
976
+ case 72:
977
+ if (tag !== 576) {
978
+ break;
979
+ }
980
+ message.credit_report_actual_fees_int = reader.int32();
981
+ continue;
982
+ case 77:
983
+ if (tag !== 618) {
984
+ break;
985
+ }
986
+ message.credit_report_actual_fees_str = reader.string();
987
+ continue;
988
+ case 73:
989
+ if (tag !== 584) {
990
+ break;
991
+ }
992
+ message.plan_id_int = reader.int32();
993
+ continue;
994
+ case 78:
995
+ if (tag !== 626) {
996
+ break;
997
+ }
998
+ message.plan_id_str = reader.string();
999
+ continue;
980
1000
  }
981
1001
  if ((tag & 7) === 4 || tag === 0) {
982
1002
  break;
@@ -1067,9 +1087,9 @@ exports.GetLocDetailsResponse = {
1067
1087
  emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
1068
1088
  bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
1069
1089
  installment_amounts: isSet(object.installment_amounts) ? globalThis.String(object.installment_amounts) : "",
1070
- apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : "",
1071
- apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : "",
1072
- apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
1090
+ apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : undefined,
1091
+ apr_value: isSet(object.apr_value) ? globalThis.String(object.apr_value) : undefined,
1092
+ apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : undefined,
1073
1093
  credit_line_details_sheet: isSet(object.credit_line_details_sheet)
1074
1094
  ? globalThis.String(object.credit_line_details_sheet)
1075
1095
  : "",
@@ -1080,10 +1100,6 @@ exports.GetLocDetailsResponse = {
1080
1100
  financing_documents: isSet(object.financing_documents) ? globalThis.String(object.financing_documents) : "",
1081
1101
  max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
1082
1102
  credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
1083
- credit_report_actual_fees: isSet(object.credit_report_actual_fees)
1084
- ? globalThis.Number(object.credit_report_actual_fees)
1085
- : 0,
1086
- plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : "",
1087
1103
  insurance_title: isSet(object.insurance_title) ? globalThis.String(object.insurance_title) : "",
1088
1104
  insurance_desc: globalThis.Array.isArray(object?.insurance_desc)
1089
1105
  ? object.insurance_desc.map((e) => exports.InsuranceDescItem.fromJSON(e))
@@ -1091,6 +1107,14 @@ exports.GetLocDetailsResponse = {
1091
1107
  upfront_interest_description: isSet(object.upfront_interest_description)
1092
1108
  ? globalThis.String(object.upfront_interest_description)
1093
1109
  : "",
1110
+ credit_report_actual_fees_int: isSet(object.credit_report_actual_fees_int)
1111
+ ? globalThis.Number(object.credit_report_actual_fees_int)
1112
+ : undefined,
1113
+ credit_report_actual_fees_str: isSet(object.credit_report_actual_fees_str)
1114
+ ? globalThis.String(object.credit_report_actual_fees_str)
1115
+ : undefined,
1116
+ plan_id_int: isSet(object.plan_id_int) ? globalThis.Number(object.plan_id_int) : undefined,
1117
+ plan_id_str: isSet(object.plan_id_str) ? globalThis.String(object.plan_id_str) : undefined,
1094
1118
  };
1095
1119
  },
1096
1120
  toJSON(message) {
@@ -1275,13 +1299,13 @@ exports.GetLocDetailsResponse = {
1275
1299
  if (message.installment_amounts !== "") {
1276
1300
  obj.installment_amounts = message.installment_amounts;
1277
1301
  }
1278
- if (message.apr_title !== "") {
1302
+ if (message.apr_title !== undefined) {
1279
1303
  obj.apr_title = message.apr_title;
1280
1304
  }
1281
- if (message.apr_value !== "") {
1305
+ if (message.apr_value !== undefined) {
1282
1306
  obj.apr_value = message.apr_value;
1283
1307
  }
1284
- if (message.apr_type !== "") {
1308
+ if (message.apr_type !== undefined) {
1285
1309
  obj.apr_type = message.apr_type;
1286
1310
  }
1287
1311
  if (message.credit_line_details_sheet !== "") {
@@ -1308,12 +1332,6 @@ exports.GetLocDetailsResponse = {
1308
1332
  if (message.credit_report_fees !== 0) {
1309
1333
  obj.credit_report_fees = Math.round(message.credit_report_fees);
1310
1334
  }
1311
- if (message.credit_report_actual_fees !== 0) {
1312
- obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
1313
- }
1314
- if (message.plan_id !== "") {
1315
- obj.plan_id = message.plan_id;
1316
- }
1317
1335
  if (message.insurance_title !== "") {
1318
1336
  obj.insurance_title = message.insurance_title;
1319
1337
  }
@@ -1323,6 +1341,18 @@ exports.GetLocDetailsResponse = {
1323
1341
  if (message.upfront_interest_description !== "") {
1324
1342
  obj.upfront_interest_description = message.upfront_interest_description;
1325
1343
  }
1344
+ if (message.credit_report_actual_fees_int !== undefined) {
1345
+ obj.credit_report_actual_fees_int = Math.round(message.credit_report_actual_fees_int);
1346
+ }
1347
+ if (message.credit_report_actual_fees_str !== undefined) {
1348
+ obj.credit_report_actual_fees_str = message.credit_report_actual_fees_str;
1349
+ }
1350
+ if (message.plan_id_int !== undefined) {
1351
+ obj.plan_id_int = Math.round(message.plan_id_int);
1352
+ }
1353
+ if (message.plan_id_str !== undefined) {
1354
+ obj.plan_id_str = message.plan_id_str;
1355
+ }
1326
1356
  return obj;
1327
1357
  },
1328
1358
  create(base) {
@@ -1390,9 +1420,9 @@ exports.GetLocDetailsResponse = {
1390
1420
  message.emi_card_description = object.emi_card_description ?? "";
1391
1421
  message.bill_card_description = object.bill_card_description ?? "";
1392
1422
  message.installment_amounts = object.installment_amounts ?? "";
1393
- message.apr_title = object.apr_title ?? "";
1394
- message.apr_value = object.apr_value ?? "";
1395
- message.apr_type = object.apr_type ?? "";
1423
+ message.apr_title = object.apr_title ?? undefined;
1424
+ message.apr_value = object.apr_value ?? undefined;
1425
+ message.apr_type = object.apr_type ?? undefined;
1396
1426
  message.credit_line_details_sheet = object.credit_line_details_sheet ?? "";
1397
1427
  message.Acknowledgement = object.Acknowledgement ?? "";
1398
1428
  message.payment_undertaking = object.payment_undertaking ?? "";
@@ -1401,11 +1431,13 @@ exports.GetLocDetailsResponse = {
1401
1431
  message.financing_documents = object.financing_documents ?? "";
1402
1432
  message.max_amount = object.max_amount ?? 0;
1403
1433
  message.credit_report_fees = object.credit_report_fees ?? 0;
1404
- message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
1405
- message.plan_id = object.plan_id ?? "";
1406
1434
  message.insurance_title = object.insurance_title ?? "";
1407
1435
  message.insurance_desc = object.insurance_desc?.map((e) => exports.InsuranceDescItem.fromPartial(e)) || [];
1408
1436
  message.upfront_interest_description = object.upfront_interest_description ?? "";
1437
+ message.credit_report_actual_fees_int = object.credit_report_actual_fees_int ?? undefined;
1438
+ message.credit_report_actual_fees_str = object.credit_report_actual_fees_str ?? undefined;
1439
+ message.plan_id_int = object.plan_id_int ?? undefined;
1440
+ message.plan_id_str = object.plan_id_str ?? undefined;
1409
1441
  return message;
1410
1442
  },
1411
1443
  };