@stashfin/grpc 1.2.226 → 1.2.227

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.
Files changed (139) hide show
  1. package/package.json +1 -1
  2. package/ts/bureau/getbasicdetails.js +1 -1
  3. package/ts/bureau/getbureaulist.js +1 -1
  4. package/ts/bureau/getdemogs.js +1 -1
  5. package/ts/bureau/getobligation.js +1 -1
  6. package/ts/bureau/getreport.js +1 -1
  7. package/ts/bureau.js +1 -1
  8. package/ts/colender/disburseLoan.js +1 -1
  9. package/ts/colender/forecloseLoan.js +1 -1
  10. package/ts/colender/repayLoan.js +1 -1
  11. package/ts/colender.js +1 -1
  12. package/ts/customers/aa/getbanklist.js +1 -1
  13. package/ts/customers/aa/initiate.js +1 -1
  14. package/ts/customers/addaddress.js +1 -1
  15. package/ts/customers/addbankaccountdetails.js +1 -1
  16. package/ts/customers/addfathersname.js +1 -1
  17. package/ts/customers/addgstnumber.js +1 -1
  18. package/ts/customers/addmoredetails.js +1 -1
  19. package/ts/customers/addsuspendedcustomer.js +1 -1
  20. package/ts/customers/adduserapps.js +1 -1
  21. package/ts/customers/bulksms.js +1 -1
  22. package/ts/customers/cb/cbsignup.js +1 -1
  23. package/ts/customers/cb/getcreditbuilder.js +1 -1
  24. package/ts/customers/cb/paynow.js +1 -1
  25. package/ts/customers/cb/savecreditbuilder.js +1 -1
  26. package/ts/customers/changempin.js +1 -1
  27. package/ts/customers/createcustomerreference.js +1 -1
  28. package/ts/customers/deleteprofile.js +1 -1
  29. package/ts/customers/disablempin.js +1 -1
  30. package/ts/customers/enach/gettxnstatus.js +1 -1
  31. package/ts/customers/enach/getweburl.js +1 -1
  32. package/ts/customers/enach/updatetxnstatus.js +1 -1
  33. package/ts/customers/fetchrcprofile.js +1 -1
  34. package/ts/customers/floatingvideos.js +1 -1
  35. package/ts/customers/forgotmpin.js +1 -1
  36. package/ts/customers/forgotmpinverify.js +1 -1
  37. package/ts/customers/getaddresslist.js +1 -1
  38. package/ts/customers/getappsubmittedscreen.js +1 -1
  39. package/ts/customers/getbankaccountdetails.js +1 -1
  40. package/ts/customers/getbasicinfo.js +1 -1
  41. package/ts/customers/getcities.js +1 -1
  42. package/ts/customers/getcompanyaccdetails.js +1 -1
  43. package/ts/customers/getcustomerbyid.js +1 -1
  44. package/ts/customers/getdashboard.js +1 -1
  45. package/ts/customers/getdashboardmaincard.js +1 -1
  46. package/ts/customers/getdocuments.js +1 -1
  47. package/ts/customers/getlimit.js +1 -1
  48. package/ts/customers/getoccupationlist.js +1 -1
  49. package/ts/customers/getprofessionalinfo.js +1 -1
  50. package/ts/customers/getprofile.js +1 -1
  51. package/ts/customers/getselfieetxnid.js +1 -1
  52. package/ts/customers/getstates.js +1 -1
  53. package/ts/customers/getstep.js +1 -1
  54. package/ts/customers/logout.js +1 -1
  55. package/ts/customers/pd/getbanklist.js +1 -1
  56. package/ts/customers/pd/validatebankaccount.js +1 -1
  57. package/ts/customers/profilebasic.js +1 -1
  58. package/ts/customers/profileupdatetnc.js +1 -1
  59. package/ts/customers/rpd/getrpdlink.js +1 -1
  60. package/ts/customers/rpd/getrpdtransactionstatus.js +1 -1
  61. package/ts/customers/rpd/mockpayment.js +1 -1
  62. package/ts/customers/savebasicdetails.js +1 -1
  63. package/ts/customers/savelimit.js +1 -1
  64. package/ts/customers/saveunlocklimit.js +1 -1
  65. package/ts/customers/sendotp.js +1 -1
  66. package/ts/customers/sendotptoemail.js +1 -1
  67. package/ts/customers/setmpin.js +1 -1
  68. package/ts/customers/skipscreen.js +1 -1
  69. package/ts/customers/updatecustomerbyid.js +1 -1
  70. package/ts/customers/updatedlnumber.js +1 -1
  71. package/ts/customers/updatedob.js +1 -1
  72. package/ts/customers/updatelocstatus.js +1 -1
  73. package/ts/customers/updatemobilesendotp.js +1 -1
  74. package/ts/customers/updatemobileverifyotp.js +1 -1
  75. package/ts/customers/updateokyctxn.js +1 -1
  76. package/ts/customers/updateselfieetxn.js +1 -1
  77. package/ts/customers/updatevehiclenumber.js +1 -1
  78. package/ts/customers/uploaddocuments.js +1 -1
  79. package/ts/customers/validatepan.js +1 -1
  80. package/ts/customers/verifympin.js +1 -1
  81. package/ts/customers/verifyotp.js +1 -1
  82. package/ts/customers/verifyotptoemail.js +1 -1
  83. package/ts/customers.js +1 -1
  84. package/ts/example.js +1 -1
  85. package/ts/growth/checkplanstatus.js +1 -1
  86. package/ts/growth/getattachplandetails.js +1 -1
  87. package/ts/growth/getchrplans.js +1 -1
  88. package/ts/growth/getcredithealthreport.js +1 -1
  89. package/ts/growth/initiatepayment.js +1 -1
  90. package/ts/growth/processchrpayment.js +1 -1
  91. package/ts/growth.js +1 -1
  92. package/ts/loans/amortization.js +1 -1
  93. package/ts/loans/approveloan.js +1 -1
  94. package/ts/loans/banklist.js +1 -1
  95. package/ts/loans/calculateemi.js +1 -1
  96. package/ts/loans/creditlimit.js +1 -1
  97. package/ts/loans/fcppayment.js +1 -1
  98. package/ts/loans/forecloseamount.js +1 -1
  99. package/ts/loans/foreclosepayment.js +1 -1
  100. package/ts/loans/futurepaymentmoredetails.js +1 -1
  101. package/ts/loans/getbilldetails.js +1 -1
  102. package/ts/loans/getcustomerloanstatus.js +1 -1
  103. package/ts/loans/getloanbyid.js +1 -1
  104. package/ts/loans/getnextdueamount.js +1 -1
  105. package/ts/loans/getpendingemiamount.js +1 -1
  106. package/ts/loans/getsummarystaticfields.js +1 -1
  107. package/ts/loans/gettransactionstatus.d.ts +35 -0
  108. package/ts/loans/gettransactionstatus.js +117 -0
  109. package/ts/loans/getvirtualbankinfo.d.ts +37 -0
  110. package/ts/loans/getvirtualbankinfo.js +148 -0
  111. package/ts/loans/loansummary.js +1 -1
  112. package/ts/loans/paymentallocation.js +1 -1
  113. package/ts/loans/paymenthistory.js +1 -1
  114. package/ts/loans/paynow.d.ts +1 -1
  115. package/ts/loans/paynow.js +16 -16
  116. package/ts/loans/refund.js +1 -1
  117. package/ts/loans/restructureloan.js +1 -1
  118. package/ts/loans/rollback.js +1 -1
  119. package/ts/loans/sendemail.js +1 -1
  120. package/ts/loans/sendnocemail.js +1 -1
  121. package/ts/loans/transactionlist.js +1 -1
  122. package/ts/loans/updateinstallments.js +1 -1
  123. package/ts/loans/updateloan.js +1 -1
  124. package/ts/loans/updatetransactionstatus.d.ts +36 -0
  125. package/ts/loans/updatetransactionstatus.js +133 -0
  126. package/ts/loans.d.ts +42 -0
  127. package/ts/loans.js +31 -1
  128. package/ts/payments/checkpaymentstatus.js +1 -1
  129. package/ts/payments/getpaymentoptions.js +1 -1
  130. package/ts/payments/initiatepayment.js +1 -1
  131. package/ts/payments/nachpresentation.js +1 -1
  132. package/ts/payments/nachregistration.js +1 -1
  133. package/ts/payments.js +1 -1
  134. package/ts/stashcash/creditsc.js +1 -1
  135. package/ts/stashcash/debitsc.js +1 -1
  136. package/ts/stashcash/getscbalance.js +1 -1
  137. package/ts/stashcash/getschistory.js +1 -1
  138. package/ts/stashcash/reversesc.js +1 -1
  139. package/ts/stashcash.js +1 -1
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.getvirtualbankinfo";
3
+ export interface getVirtualBankInfoRequest {
4
+ }
5
+ export interface getVirtualBankInfoResponse {
6
+ account_number: string;
7
+ account_name: string;
8
+ ifsc_code: string;
9
+ bank_name: string;
10
+ }
11
+ export declare const getVirtualBankInfoRequest: {
12
+ encode(_: getVirtualBankInfoRequest, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualBankInfoRequest;
14
+ fromJSON(_: any): getVirtualBankInfoRequest;
15
+ toJSON(_: getVirtualBankInfoRequest): unknown;
16
+ create<I extends Exact<DeepPartial<getVirtualBankInfoRequest>, I>>(base?: I): getVirtualBankInfoRequest;
17
+ fromPartial<I extends Exact<DeepPartial<getVirtualBankInfoRequest>, I>>(_: I): getVirtualBankInfoRequest;
18
+ };
19
+ export declare const getVirtualBankInfoResponse: {
20
+ encode(message: getVirtualBankInfoResponse, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualBankInfoResponse;
22
+ fromJSON(object: any): getVirtualBankInfoResponse;
23
+ toJSON(message: getVirtualBankInfoResponse): unknown;
24
+ create<I extends Exact<DeepPartial<getVirtualBankInfoResponse>, I>>(base?: I): getVirtualBankInfoResponse;
25
+ fromPartial<I extends Exact<DeepPartial<getVirtualBankInfoResponse>, I>>(object: I): getVirtualBankInfoResponse;
26
+ };
27
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28
+ 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 {} ? {
29
+ [K in keyof T]?: DeepPartial<T[K]>;
30
+ } : Partial<T>;
31
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
32
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
+ [K in keyof P]: Exact<P[K], I[K]>;
34
+ } & {
35
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
+ };
37
+ export {};
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.1
6
+ // source: loans/getvirtualbankinfo.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.getVirtualBankInfoResponse = exports.getVirtualBankInfoRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.getvirtualbankinfo";
15
+ function createBasegetVirtualBankInfoRequest() {
16
+ return {};
17
+ }
18
+ exports.getVirtualBankInfoRequest = {
19
+ encode(_, writer = minimal_1.default.Writer.create()) {
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBasegetVirtualBankInfoRequest();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ }
30
+ if ((tag & 7) === 4 || tag === 0) {
31
+ break;
32
+ }
33
+ reader.skipType(tag & 7);
34
+ }
35
+ return message;
36
+ },
37
+ fromJSON(_) {
38
+ return {};
39
+ },
40
+ toJSON(_) {
41
+ const obj = {};
42
+ return obj;
43
+ },
44
+ create(base) {
45
+ return exports.getVirtualBankInfoRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetVirtualBankInfoRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetVirtualBankInfoResponse() {
53
+ return { account_number: "", account_name: "", ifsc_code: "", bank_name: "" };
54
+ }
55
+ exports.getVirtualBankInfoResponse = {
56
+ encode(message, writer = minimal_1.default.Writer.create()) {
57
+ if (message.account_number !== "") {
58
+ writer.uint32(10).string(message.account_number);
59
+ }
60
+ if (message.account_name !== "") {
61
+ writer.uint32(18).string(message.account_name);
62
+ }
63
+ if (message.ifsc_code !== "") {
64
+ writer.uint32(26).string(message.ifsc_code);
65
+ }
66
+ if (message.bank_name !== "") {
67
+ writer.uint32(34).string(message.bank_name);
68
+ }
69
+ return writer;
70
+ },
71
+ decode(input, length) {
72
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
73
+ let end = length === undefined ? reader.len : reader.pos + length;
74
+ const message = createBasegetVirtualBankInfoResponse();
75
+ while (reader.pos < end) {
76
+ const tag = reader.uint32();
77
+ switch (tag >>> 3) {
78
+ case 1:
79
+ if (tag !== 10) {
80
+ break;
81
+ }
82
+ message.account_number = reader.string();
83
+ continue;
84
+ case 2:
85
+ if (tag !== 18) {
86
+ break;
87
+ }
88
+ message.account_name = reader.string();
89
+ continue;
90
+ case 3:
91
+ if (tag !== 26) {
92
+ break;
93
+ }
94
+ message.ifsc_code = reader.string();
95
+ continue;
96
+ case 4:
97
+ if (tag !== 34) {
98
+ break;
99
+ }
100
+ message.bank_name = reader.string();
101
+ continue;
102
+ }
103
+ if ((tag & 7) === 4 || tag === 0) {
104
+ break;
105
+ }
106
+ reader.skipType(tag & 7);
107
+ }
108
+ return message;
109
+ },
110
+ fromJSON(object) {
111
+ return {
112
+ account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
113
+ account_name: isSet(object.account_name) ? globalThis.String(object.account_name) : "",
114
+ ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
115
+ bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
116
+ };
117
+ },
118
+ toJSON(message) {
119
+ const obj = {};
120
+ if (message.account_number !== "") {
121
+ obj.account_number = message.account_number;
122
+ }
123
+ if (message.account_name !== "") {
124
+ obj.account_name = message.account_name;
125
+ }
126
+ if (message.ifsc_code !== "") {
127
+ obj.ifsc_code = message.ifsc_code;
128
+ }
129
+ if (message.bank_name !== "") {
130
+ obj.bank_name = message.bank_name;
131
+ }
132
+ return obj;
133
+ },
134
+ create(base) {
135
+ return exports.getVirtualBankInfoResponse.fromPartial(base ?? {});
136
+ },
137
+ fromPartial(object) {
138
+ const message = createBasegetVirtualBankInfoResponse();
139
+ message.account_number = object.account_number ?? "";
140
+ message.account_name = object.account_name ?? "";
141
+ message.ifsc_code = object.ifsc_code ?? "";
142
+ message.bank_name = object.bank_name ?? "";
143
+ return message;
144
+ },
145
+ };
146
+ function isSet(value) {
147
+ return value !== null && value !== undefined;
148
+ }
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/loansummary.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/paymentallocation.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/paymenthistory.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,9 +2,9 @@ import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "loans.paynow";
3
3
  export interface payNowRequest {
4
4
  customer_id: number;
5
- inst_id: string;
6
5
  mode: string;
7
6
  add_ons: payNowRequest_add_on[];
7
+ amount: number;
8
8
  }
9
9
  export interface payNowRequest_add_on {
10
10
  type: string;
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/paynow.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -14,21 +14,21 @@ const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  exports.protobufPackage = "loans.paynow";
16
16
  function createBasepayNowRequest() {
17
- return { customer_id: 0, inst_id: "", mode: "", add_ons: [] };
17
+ return { customer_id: 0, mode: "", add_ons: [], amount: 0 };
18
18
  }
19
19
  exports.payNowRequest = {
20
20
  encode(message, writer = minimal_1.default.Writer.create()) {
21
21
  if (message.customer_id !== 0) {
22
22
  writer.uint32(8).int64(message.customer_id);
23
23
  }
24
- if (message.inst_id !== "") {
25
- writer.uint32(18).string(message.inst_id);
26
- }
27
24
  if (message.mode !== "") {
28
- writer.uint32(26).string(message.mode);
25
+ writer.uint32(18).string(message.mode);
29
26
  }
30
27
  for (const v of message.add_ons) {
31
- exports.payNowRequest_add_on.encode(v, writer.uint32(34).fork()).ldelim();
28
+ exports.payNowRequest_add_on.encode(v, writer.uint32(26).fork()).ldelim();
29
+ }
30
+ if (message.amount !== 0) {
31
+ writer.uint32(32).int32(message.amount);
32
32
  }
33
33
  return writer;
34
34
  },
@@ -49,19 +49,19 @@ exports.payNowRequest = {
49
49
  if (tag !== 18) {
50
50
  break;
51
51
  }
52
- message.inst_id = reader.string();
52
+ message.mode = reader.string();
53
53
  continue;
54
54
  case 3:
55
55
  if (tag !== 26) {
56
56
  break;
57
57
  }
58
- message.mode = reader.string();
58
+ message.add_ons.push(exports.payNowRequest_add_on.decode(reader, reader.uint32()));
59
59
  continue;
60
60
  case 4:
61
- if (tag !== 34) {
61
+ if (tag !== 32) {
62
62
  break;
63
63
  }
64
- message.add_ons.push(exports.payNowRequest_add_on.decode(reader, reader.uint32()));
64
+ message.amount = reader.int32();
65
65
  continue;
66
66
  }
67
67
  if ((tag & 7) === 4 || tag === 0) {
@@ -74,11 +74,11 @@ exports.payNowRequest = {
74
74
  fromJSON(object) {
75
75
  return {
76
76
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
77
- inst_id: isSet(object.inst_id) ? globalThis.String(object.inst_id) : "",
78
77
  mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
79
78
  add_ons: globalThis.Array.isArray(object?.add_ons)
80
79
  ? object.add_ons.map((e) => exports.payNowRequest_add_on.fromJSON(e))
81
80
  : [],
81
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
82
82
  };
83
83
  },
84
84
  toJSON(message) {
@@ -86,15 +86,15 @@ exports.payNowRequest = {
86
86
  if (message.customer_id !== 0) {
87
87
  obj.customer_id = Math.round(message.customer_id);
88
88
  }
89
- if (message.inst_id !== "") {
90
- obj.inst_id = message.inst_id;
91
- }
92
89
  if (message.mode !== "") {
93
90
  obj.mode = message.mode;
94
91
  }
95
92
  if (message.add_ons?.length) {
96
93
  obj.add_ons = message.add_ons.map((e) => exports.payNowRequest_add_on.toJSON(e));
97
94
  }
95
+ if (message.amount !== 0) {
96
+ obj.amount = Math.round(message.amount);
97
+ }
98
98
  return obj;
99
99
  },
100
100
  create(base) {
@@ -103,9 +103,9 @@ exports.payNowRequest = {
103
103
  fromPartial(object) {
104
104
  const message = createBasepayNowRequest();
105
105
  message.customer_id = object.customer_id ?? 0;
106
- message.inst_id = object.inst_id ?? "";
107
106
  message.mode = object.mode ?? "";
108
107
  message.add_ons = object.add_ons?.map((e) => exports.payNowRequest_add_on.fromPartial(e)) || [];
108
+ message.amount = object.amount ?? 0;
109
109
  return message;
110
110
  },
111
111
  };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/refund.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/restructureloan.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/rollback.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/sendemail.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/sendnocemail.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/transactionlist.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/updateinstallments.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.0
5
+ // protoc v5.28.1
6
6
  // source: loans/updateloan.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.updatetransactionstatus";
3
+ export interface updateTransactionStatusRequest {
4
+ order_id: string;
5
+ status: string;
6
+ }
7
+ export interface updateTransactionStatusResponse {
8
+ message: string;
9
+ }
10
+ export declare const updateTransactionStatusRequest: {
11
+ encode(message: updateTransactionStatusRequest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateTransactionStatusRequest;
13
+ fromJSON(object: any): updateTransactionStatusRequest;
14
+ toJSON(message: updateTransactionStatusRequest): unknown;
15
+ create<I extends Exact<DeepPartial<updateTransactionStatusRequest>, I>>(base?: I): updateTransactionStatusRequest;
16
+ fromPartial<I extends Exact<DeepPartial<updateTransactionStatusRequest>, I>>(object: I): updateTransactionStatusRequest;
17
+ };
18
+ export declare const updateTransactionStatusResponse: {
19
+ encode(message: updateTransactionStatusResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateTransactionStatusResponse;
21
+ fromJSON(object: any): updateTransactionStatusResponse;
22
+ toJSON(message: updateTransactionStatusResponse): unknown;
23
+ create<I extends Exact<DeepPartial<updateTransactionStatusResponse>, I>>(base?: I): updateTransactionStatusResponse;
24
+ fromPartial<I extends Exact<DeepPartial<updateTransactionStatusResponse>, I>>(object: I): updateTransactionStatusResponse;
25
+ };
26
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
+ 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 {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.1
6
+ // source: loans/updatetransactionstatus.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.updateTransactionStatusResponse = exports.updateTransactionStatusRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.updatetransactionstatus";
15
+ function createBaseupdateTransactionStatusRequest() {
16
+ return { order_id: "", status: "" };
17
+ }
18
+ exports.updateTransactionStatusRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.order_id !== "") {
21
+ writer.uint32(10).string(message.order_id);
22
+ }
23
+ if (message.status !== "") {
24
+ writer.uint32(18).string(message.status);
25
+ }
26
+ return writer;
27
+ },
28
+ decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBaseupdateTransactionStatusRequest();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ if (tag !== 10) {
37
+ break;
38
+ }
39
+ message.order_id = reader.string();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 18) {
43
+ break;
44
+ }
45
+ message.status = reader.string();
46
+ continue;
47
+ }
48
+ if ((tag & 7) === 4 || tag === 0) {
49
+ break;
50
+ }
51
+ reader.skipType(tag & 7);
52
+ }
53
+ return message;
54
+ },
55
+ fromJSON(object) {
56
+ return {
57
+ order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
58
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
59
+ };
60
+ },
61
+ toJSON(message) {
62
+ const obj = {};
63
+ if (message.order_id !== "") {
64
+ obj.order_id = message.order_id;
65
+ }
66
+ if (message.status !== "") {
67
+ obj.status = message.status;
68
+ }
69
+ return obj;
70
+ },
71
+ create(base) {
72
+ return exports.updateTransactionStatusRequest.fromPartial(base ?? {});
73
+ },
74
+ fromPartial(object) {
75
+ const message = createBaseupdateTransactionStatusRequest();
76
+ message.order_id = object.order_id ?? "";
77
+ message.status = object.status ?? "";
78
+ return message;
79
+ },
80
+ };
81
+ function createBaseupdateTransactionStatusResponse() {
82
+ return { message: "" };
83
+ }
84
+ exports.updateTransactionStatusResponse = {
85
+ encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.message !== "") {
87
+ writer.uint32(18).string(message.message);
88
+ }
89
+ return writer;
90
+ },
91
+ decode(input, length) {
92
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
93
+ let end = length === undefined ? reader.len : reader.pos + length;
94
+ const message = createBaseupdateTransactionStatusResponse();
95
+ while (reader.pos < end) {
96
+ const tag = reader.uint32();
97
+ switch (tag >>> 3) {
98
+ case 2:
99
+ if (tag !== 18) {
100
+ break;
101
+ }
102
+ message.message = reader.string();
103
+ continue;
104
+ }
105
+ if ((tag & 7) === 4 || tag === 0) {
106
+ break;
107
+ }
108
+ reader.skipType(tag & 7);
109
+ }
110
+ return message;
111
+ },
112
+ fromJSON(object) {
113
+ return { message: isSet(object.message) ? globalThis.String(object.message) : "" };
114
+ },
115
+ toJSON(message) {
116
+ const obj = {};
117
+ if (message.message !== "") {
118
+ obj.message = message.message;
119
+ }
120
+ return obj;
121
+ },
122
+ create(base) {
123
+ return exports.updateTransactionStatusResponse.fromPartial(base ?? {});
124
+ },
125
+ fromPartial(object) {
126
+ const message = createBaseupdateTransactionStatusResponse();
127
+ message.message = object.message ?? "";
128
+ return message;
129
+ },
130
+ };
131
+ function isSet(value) {
132
+ return value !== null && value !== undefined;
133
+ }
package/ts/loans.d.ts CHANGED
@@ -14,6 +14,8 @@ import { getLoanByIdRequest, getLoanByIdResponse } from "./loans/getloanbyid";
14
14
  import { getNextdueAmountRequest, getNextdueAmountResponse } from "./loans/getnextdueamount";
15
15
  import { getPendingEmiAmountRequest, getPendingEmiAmountResponse } from "./loans/getpendingemiamount";
16
16
  import { getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse } from "./loans/getsummarystaticfields";
17
+ import { getTransactionStatusRequest, getTransactionStatusResponse } from "./loans/gettransactionstatus";
18
+ import { getVirtualBankInfoRequest, getVirtualBankInfoResponse } from "./loans/getvirtualbankinfo";
17
19
  import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
18
20
  import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
19
21
  import { paymentHistoryRequest, paymentHistoryResponse } from "./loans/paymenthistory";
@@ -26,6 +28,7 @@ import { sendNocEmailRequest, sendNocEmailResponse } from "./loans/sendnocemail"
26
28
  import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
27
29
  import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
28
30
  import { updateLoanRequest, updateLoanResponse } from "./loans/updateloan";
31
+ import { updateTransactionStatusRequest, updateTransactionStatusResponse } from "./loans/updatetransactionstatus";
29
32
  export declare const protobufPackage = "service";
30
33
  export type loansService = typeof loansService;
31
34
  export declare const loansService: {
@@ -272,6 +275,33 @@ export declare const loansService: {
272
275
  readonly responseSerialize: (value: rollbackResponse) => Buffer;
273
276
  readonly responseDeserialize: (value: Buffer) => rollbackResponse;
274
277
  };
278
+ readonly getVirtualBankInfo: {
279
+ readonly path: "/service.loans/getVirtualBankInfo";
280
+ readonly requestStream: false;
281
+ readonly responseStream: false;
282
+ readonly requestSerialize: (value: getVirtualBankInfoRequest) => Buffer;
283
+ readonly requestDeserialize: (value: Buffer) => getVirtualBankInfoRequest;
284
+ readonly responseSerialize: (value: getVirtualBankInfoResponse) => Buffer;
285
+ readonly responseDeserialize: (value: Buffer) => getVirtualBankInfoResponse;
286
+ };
287
+ readonly gettransactionstatus: {
288
+ readonly path: "/service.loans/gettransactionstatus";
289
+ readonly requestStream: false;
290
+ readonly responseStream: false;
291
+ readonly requestSerialize: (value: getTransactionStatusRequest) => Buffer;
292
+ readonly requestDeserialize: (value: Buffer) => getTransactionStatusRequest;
293
+ readonly responseSerialize: (value: getTransactionStatusResponse) => Buffer;
294
+ readonly responseDeserialize: (value: Buffer) => getTransactionStatusResponse;
295
+ };
296
+ readonly updatetransactionstatus: {
297
+ readonly path: "/service.loans/updatetransactionstatus";
298
+ readonly requestStream: false;
299
+ readonly responseStream: false;
300
+ readonly requestSerialize: (value: updateTransactionStatusRequest) => Buffer;
301
+ readonly requestDeserialize: (value: Buffer) => updateTransactionStatusRequest;
302
+ readonly responseSerialize: (value: updateTransactionStatusResponse) => Buffer;
303
+ readonly responseDeserialize: (value: Buffer) => updateTransactionStatusResponse;
304
+ };
275
305
  };
276
306
  export interface loansServer extends UntypedServiceImplementation {
277
307
  creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
@@ -301,6 +331,9 @@ export interface loansServer extends UntypedServiceImplementation {
301
331
  foreclosePayment: handleUnaryCall<foreclosePaymentRequest, foreclosePaymentResponse>;
302
332
  refund: handleUnaryCall<refundRequest, refundResponse>;
303
333
  rollback: handleUnaryCall<rollbackRequest, rollbackResponse>;
334
+ getVirtualBankInfo: handleUnaryCall<getVirtualBankInfoRequest, getVirtualBankInfoResponse>;
335
+ gettransactionstatus: handleUnaryCall<getTransactionStatusRequest, getTransactionStatusResponse>;
336
+ updatetransactionstatus: handleUnaryCall<updateTransactionStatusRequest, updateTransactionStatusResponse>;
304
337
  }
305
338
  export interface loansClient extends Client {
306
339
  creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
@@ -384,6 +417,15 @@ export interface loansClient extends Client {
384
417
  rollback(request: rollbackRequest, callback: (error: ServiceError | null, response: rollbackResponse) => void): ClientUnaryCall;
385
418
  rollback(request: rollbackRequest, metadata: Metadata, callback: (error: ServiceError | null, response: rollbackResponse) => void): ClientUnaryCall;
386
419
  rollback(request: rollbackRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: rollbackResponse) => void): ClientUnaryCall;
420
+ getVirtualBankInfo(request: getVirtualBankInfoRequest, callback: (error: ServiceError | null, response: getVirtualBankInfoResponse) => void): ClientUnaryCall;
421
+ getVirtualBankInfo(request: getVirtualBankInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getVirtualBankInfoResponse) => void): ClientUnaryCall;
422
+ getVirtualBankInfo(request: getVirtualBankInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getVirtualBankInfoResponse) => void): ClientUnaryCall;
423
+ gettransactionstatus(request: getTransactionStatusRequest, callback: (error: ServiceError | null, response: getTransactionStatusResponse) => void): ClientUnaryCall;
424
+ gettransactionstatus(request: getTransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTransactionStatusResponse) => void): ClientUnaryCall;
425
+ gettransactionstatus(request: getTransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTransactionStatusResponse) => void): ClientUnaryCall;
426
+ updatetransactionstatus(request: updateTransactionStatusRequest, callback: (error: ServiceError | null, response: updateTransactionStatusResponse) => void): ClientUnaryCall;
427
+ updatetransactionstatus(request: updateTransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateTransactionStatusResponse) => void): ClientUnaryCall;
428
+ updatetransactionstatus(request: updateTransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateTransactionStatusResponse) => void): ClientUnaryCall;
387
429
  }
388
430
  export declare const loansClient: {
389
431
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;