@stashfin/grpc 1.2.148 → 1.2.150

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 (179) hide show
  1. package/package.json +1 -1
  2. package/ts/bureau/getbasicdetails.d.ts +0 -57
  3. package/ts/bureau/getbasicdetails.js +0 -341
  4. package/ts/bureau/getdemogs.d.ts +0 -113
  5. package/ts/bureau/getdemogs.js +0 -611
  6. package/ts/bureau/getreport.d.ts +0 -188
  7. package/ts/bureau/getreport.js +0 -1640
  8. package/ts/bureau.d.ts +0 -56
  9. package/ts/bureau.js +0 -44
  10. package/ts/colender/disburseLoan.d.ts +0 -44
  11. package/ts/colender/disburseLoan.js +0 -256
  12. package/ts/colender/forecloseLoan.d.ts +0 -41
  13. package/ts/colender/forecloseLoan.js +0 -205
  14. package/ts/colender/repayLoan.d.ts +0 -48
  15. package/ts/colender/repayLoan.js +0 -313
  16. package/ts/colender.d.ts +0 -56
  17. package/ts/colender.js +0 -44
  18. package/ts/customers/aa/getbanklist.d.ts +0 -48
  19. package/ts/customers/aa/getbanklist.js +0 -198
  20. package/ts/customers/aa/initiate.d.ts +0 -40
  21. package/ts/customers/aa/initiate.js +0 -209
  22. package/ts/customers/addaddress.d.ts +0 -50
  23. package/ts/customers/addaddress.js +0 -265
  24. package/ts/customers/addbankaccountdetails.d.ts +0 -37
  25. package/ts/customers/addbankaccountdetails.js +0 -147
  26. package/ts/customers/addgstnumber.d.ts +0 -35
  27. package/ts/customers/addgstnumber.js +0 -117
  28. package/ts/customers/addmoredetails.d.ts +0 -60
  29. package/ts/customers/addmoredetails.js +0 -314
  30. package/ts/customers/addsuspendedcustomer.d.ts +0 -36
  31. package/ts/customers/addsuspendedcustomer.js +0 -133
  32. package/ts/customers/adduserapps.d.ts +0 -74
  33. package/ts/customers/adduserapps.js +0 -210
  34. package/ts/customers/changempin.d.ts +0 -36
  35. package/ts/customers/changempin.js +0 -133
  36. package/ts/customers/createcustomerreference.d.ts +0 -43
  37. package/ts/customers/createcustomerreference.js +0 -226
  38. package/ts/customers/deleteprofile.d.ts +0 -35
  39. package/ts/customers/deleteprofile.js +0 -120
  40. package/ts/customers/disablempin.d.ts +0 -34
  41. package/ts/customers/disablempin.js +0 -104
  42. package/ts/customers/fetchrcprofile.d.ts +0 -45
  43. package/ts/customers/fetchrcprofile.js +0 -271
  44. package/ts/customers/forgotmpin.d.ts +0 -35
  45. package/ts/customers/forgotmpin.js +0 -117
  46. package/ts/customers/forgotmpinverify.d.ts +0 -36
  47. package/ts/customers/forgotmpinverify.js +0 -133
  48. package/ts/customers/getbankaccountdetails.d.ts +0 -36
  49. package/ts/customers/getbankaccountdetails.js +0 -134
  50. package/ts/customers/getbasicinfo.d.ts +0 -56
  51. package/ts/customers/getbasicinfo.js +0 -323
  52. package/ts/customers/getcities.d.ts +0 -47
  53. package/ts/customers/getcities.js +0 -183
  54. package/ts/customers/getcustomerbyid.d.ts +0 -140
  55. package/ts/customers/getcustomerbyid.js +0 -1478
  56. package/ts/customers/getdashboard.d.ts +0 -88
  57. package/ts/customers/getdashboard.js +0 -574
  58. package/ts/customers/getdashboardmaincard.d.ts +0 -70
  59. package/ts/customers/getdashboardmaincard.js +0 -534
  60. package/ts/customers/getdocuments.d.ts +0 -36
  61. package/ts/customers/getdocuments.js +0 -134
  62. package/ts/customers/getlimit.d.ts +0 -37
  63. package/ts/customers/getlimit.js +0 -148
  64. package/ts/customers/getprofessionalinfo.d.ts +0 -54
  65. package/ts/customers/getprofessionalinfo.js +0 -286
  66. package/ts/customers/getprofile.d.ts +0 -54
  67. package/ts/customers/getprofile.js +0 -296
  68. package/ts/customers/getselfieetxnid.d.ts +0 -34
  69. package/ts/customers/getselfieetxnid.js +0 -104
  70. package/ts/customers/getstates.d.ts +0 -46
  71. package/ts/customers/getstates.js +0 -170
  72. package/ts/customers/getstep.d.ts +0 -69
  73. package/ts/customers/getstep.js +0 -406
  74. package/ts/customers/profilebasic.d.ts +0 -38
  75. package/ts/customers/profilebasic.js +0 -161
  76. package/ts/customers/profileupdatetnc.d.ts +0 -35
  77. package/ts/customers/profileupdatetnc.js +0 -117
  78. package/ts/customers/savebasicdetails.d.ts +0 -47
  79. package/ts/customers/savebasicdetails.js +0 -185
  80. package/ts/customers/saveunlocklimit.d.ts +0 -34
  81. package/ts/customers/saveunlocklimit.js +0 -104
  82. package/ts/customers/sendotp.d.ts +0 -38
  83. package/ts/customers/sendotp.js +0 -165
  84. package/ts/customers/sendotptoemail.d.ts +0 -35
  85. package/ts/customers/sendotptoemail.js +0 -117
  86. package/ts/customers/setmpin.d.ts +0 -36
  87. package/ts/customers/setmpin.js +0 -133
  88. package/ts/customers/step10.d.ts +0 -73
  89. package/ts/customers/step10.js +0 -459
  90. package/ts/customers/step7.d.ts +0 -68
  91. package/ts/customers/step7.js +0 -381
  92. package/ts/customers/step8.d.ts +0 -69
  93. package/ts/customers/step8.js +0 -395
  94. package/ts/customers/step9.d.ts +0 -75
  95. package/ts/customers/step9.js +0 -489
  96. package/ts/customers/stepstatic.d.ts +0 -66
  97. package/ts/customers/stepstatic.js +0 -354
  98. package/ts/customers/updatedlnumber.d.ts +0 -35
  99. package/ts/customers/updatedlnumber.js +0 -119
  100. package/ts/customers/updatedob.d.ts +0 -35
  101. package/ts/customers/updatedob.js +0 -117
  102. package/ts/customers/updatelocstatus.d.ts +0 -36
  103. package/ts/customers/updatelocstatus.js +0 -133
  104. package/ts/customers/updatemobilesendotp.d.ts +0 -35
  105. package/ts/customers/updatemobilesendotp.js +0 -117
  106. package/ts/customers/updatemobileverifyotp.d.ts +0 -36
  107. package/ts/customers/updatemobileverifyotp.js +0 -133
  108. package/ts/customers/updateokyctxn.d.ts +0 -37
  109. package/ts/customers/updateokyctxn.js +0 -147
  110. package/ts/customers/updateselfieetxn.d.ts +0 -36
  111. package/ts/customers/updateselfieetxn.js +0 -133
  112. package/ts/customers/updatevehiclenumber.d.ts +0 -35
  113. package/ts/customers/updatevehiclenumber.js +0 -117
  114. package/ts/customers/validatepan.d.ts +0 -45
  115. package/ts/customers/validatepan.js +0 -274
  116. package/ts/customers/verifympin.d.ts +0 -37
  117. package/ts/customers/verifympin.js +0 -149
  118. package/ts/customers/verifyotp.d.ts +0 -41
  119. package/ts/customers/verifyotp.js +0 -205
  120. package/ts/customers/verifyotptoemail.d.ts +0 -35
  121. package/ts/customers/verifyotptoemail.js +0 -117
  122. package/ts/customers.d.ts +0 -698
  123. package/ts/customers.js +0 -502
  124. package/ts/example.d.ts +0 -78
  125. package/ts/example.js +0 -199
  126. package/ts/loans/approveloan.d.ts +0 -68
  127. package/ts/loans/approveloan.js +0 -621
  128. package/ts/loans/banklist.d.ts +0 -37
  129. package/ts/loans/banklist.js +0 -148
  130. package/ts/loans/calculateemi.d.ts +0 -57
  131. package/ts/loans/calculateemi.js +0 -340
  132. package/ts/loans/creditlimit.d.ts +0 -51
  133. package/ts/loans/creditlimit.js +0 -381
  134. package/ts/loans/futurepaymentmoredetails.d.ts +0 -50
  135. package/ts/loans/futurepaymentmoredetails.js +0 -230
  136. package/ts/loans/getbilldetails.d.ts +0 -38
  137. package/ts/loans/getbilldetails.js +0 -161
  138. package/ts/loans/getcustomerloanstatus.d.ts +0 -34
  139. package/ts/loans/getcustomerloanstatus.js +0 -104
  140. package/ts/loans/getloanbyid.d.ts +0 -48
  141. package/ts/loans/getloanbyid.js +0 -318
  142. package/ts/loans/getpendingemiamount.d.ts +0 -34
  143. package/ts/loans/getpendingemiamount.js +0 -104
  144. package/ts/loans/getsummarystaticfields.d.ts +0 -80
  145. package/ts/loans/getsummarystaticfields.js +0 -700
  146. package/ts/loans/loansummary.d.ts +0 -66
  147. package/ts/loans/loansummary.js +0 -593
  148. package/ts/loans/paymentallocation.d.ts +0 -37
  149. package/ts/loans/paymentallocation.js +0 -147
  150. package/ts/loans/paymenthistory.d.ts +0 -47
  151. package/ts/loans/paymenthistory.js +0 -188
  152. package/ts/loans/restructureloan.d.ts +0 -36
  153. package/ts/loans/restructureloan.js +0 -133
  154. package/ts/loans/sendemail.d.ts +0 -35
  155. package/ts/loans/sendemail.js +0 -117
  156. package/ts/loans/sendnocemail.d.ts +0 -35
  157. package/ts/loans/sendnocemail.js +0 -117
  158. package/ts/loans/transactionlist.d.ts +0 -52
  159. package/ts/loans/transactionlist.js +0 -257
  160. package/ts/loans/updateinstallments.d.ts +0 -42
  161. package/ts/loans/updateinstallments.js +0 -226
  162. package/ts/loans/updateloan.d.ts +0 -39
  163. package/ts/loans/updateloan.js +0 -175
  164. package/ts/loans.d.ts +0 -280
  165. package/ts/loans.js +0 -204
  166. package/ts/payments.d.ts +0 -239
  167. package/ts/payments.js +0 -1117
  168. package/ts/stashcash/creditsc.d.ts +0 -54
  169. package/ts/stashcash/creditsc.js +0 -301
  170. package/ts/stashcash/debitsc.d.ts +0 -59
  171. package/ts/stashcash/debitsc.js +0 -380
  172. package/ts/stashcash/getscbalance.d.ts +0 -53
  173. package/ts/stashcash/getscbalance.js +0 -293
  174. package/ts/stashcash/getschistory.d.ts +0 -73
  175. package/ts/stashcash/getschistory.js +0 -479
  176. package/ts/stashcash/reversesc.d.ts +0 -52
  177. package/ts/stashcash/reversesc.js +0 -273
  178. package/ts/stashcash.d.ts +0 -84
  179. package/ts/stashcash.js +0 -64
@@ -1,226 +0,0 @@
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.27.3
6
- // source: loans/updateinstallments.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.updateInstallmentsResponse = exports.updateInstallmentsRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "loans.updateinstallments";
15
- function createBaseupdateInstallmentsRequest() {
16
- return {
17
- installment_id: 0,
18
- principal: 0,
19
- interest: 0,
20
- penalty: 0,
21
- r_pif_principal: 0,
22
- r_pif_interest: 0,
23
- r_pif_penalty: 0,
24
- amount: 0,
25
- };
26
- }
27
- exports.updateInstallmentsRequest = {
28
- encode(message, writer = minimal_1.default.Writer.create()) {
29
- if (message.installment_id !== 0) {
30
- writer.uint32(8).int32(message.installment_id);
31
- }
32
- if (message.principal !== 0) {
33
- writer.uint32(16).int32(message.principal);
34
- }
35
- if (message.interest !== 0) {
36
- writer.uint32(24).int32(message.interest);
37
- }
38
- if (message.penalty !== 0) {
39
- writer.uint32(32).int32(message.penalty);
40
- }
41
- if (message.r_pif_principal !== 0) {
42
- writer.uint32(40).int32(message.r_pif_principal);
43
- }
44
- if (message.r_pif_interest !== 0) {
45
- writer.uint32(48).int32(message.r_pif_interest);
46
- }
47
- if (message.r_pif_penalty !== 0) {
48
- writer.uint32(56).int32(message.r_pif_penalty);
49
- }
50
- if (message.amount !== 0) {
51
- writer.uint32(64).int32(message.amount);
52
- }
53
- return writer;
54
- },
55
- decode(input, length) {
56
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
57
- let end = length === undefined ? reader.len : reader.pos + length;
58
- const message = createBaseupdateInstallmentsRequest();
59
- while (reader.pos < end) {
60
- const tag = reader.uint32();
61
- switch (tag >>> 3) {
62
- case 1:
63
- if (tag !== 8) {
64
- break;
65
- }
66
- message.installment_id = reader.int32();
67
- continue;
68
- case 2:
69
- if (tag !== 16) {
70
- break;
71
- }
72
- message.principal = reader.int32();
73
- continue;
74
- case 3:
75
- if (tag !== 24) {
76
- break;
77
- }
78
- message.interest = reader.int32();
79
- continue;
80
- case 4:
81
- if (tag !== 32) {
82
- break;
83
- }
84
- message.penalty = reader.int32();
85
- continue;
86
- case 5:
87
- if (tag !== 40) {
88
- break;
89
- }
90
- message.r_pif_principal = reader.int32();
91
- continue;
92
- case 6:
93
- if (tag !== 48) {
94
- break;
95
- }
96
- message.r_pif_interest = reader.int32();
97
- continue;
98
- case 7:
99
- if (tag !== 56) {
100
- break;
101
- }
102
- message.r_pif_penalty = reader.int32();
103
- continue;
104
- case 8:
105
- if (tag !== 64) {
106
- break;
107
- }
108
- message.amount = reader.int32();
109
- continue;
110
- }
111
- if ((tag & 7) === 4 || tag === 0) {
112
- break;
113
- }
114
- reader.skipType(tag & 7);
115
- }
116
- return message;
117
- },
118
- fromJSON(object) {
119
- return {
120
- installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
121
- principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
122
- interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
123
- penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
124
- r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
125
- r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
126
- r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
127
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
128
- };
129
- },
130
- toJSON(message) {
131
- const obj = {};
132
- if (message.installment_id !== 0) {
133
- obj.installment_id = Math.round(message.installment_id);
134
- }
135
- if (message.principal !== 0) {
136
- obj.principal = Math.round(message.principal);
137
- }
138
- if (message.interest !== 0) {
139
- obj.interest = Math.round(message.interest);
140
- }
141
- if (message.penalty !== 0) {
142
- obj.penalty = Math.round(message.penalty);
143
- }
144
- if (message.r_pif_principal !== 0) {
145
- obj.r_pif_principal = Math.round(message.r_pif_principal);
146
- }
147
- if (message.r_pif_interest !== 0) {
148
- obj.r_pif_interest = Math.round(message.r_pif_interest);
149
- }
150
- if (message.r_pif_penalty !== 0) {
151
- obj.r_pif_penalty = Math.round(message.r_pif_penalty);
152
- }
153
- if (message.amount !== 0) {
154
- obj.amount = Math.round(message.amount);
155
- }
156
- return obj;
157
- },
158
- create(base) {
159
- return exports.updateInstallmentsRequest.fromPartial(base ?? {});
160
- },
161
- fromPartial(object) {
162
- const message = createBaseupdateInstallmentsRequest();
163
- message.installment_id = object.installment_id ?? 0;
164
- message.principal = object.principal ?? 0;
165
- message.interest = object.interest ?? 0;
166
- message.penalty = object.penalty ?? 0;
167
- message.r_pif_principal = object.r_pif_principal ?? 0;
168
- message.r_pif_interest = object.r_pif_interest ?? 0;
169
- message.r_pif_penalty = object.r_pif_penalty ?? 0;
170
- message.amount = object.amount ?? 0;
171
- return message;
172
- },
173
- };
174
- function createBaseupdateInstallmentsResponse() {
175
- return { id: 0 };
176
- }
177
- exports.updateInstallmentsResponse = {
178
- encode(message, writer = minimal_1.default.Writer.create()) {
179
- if (message.id !== 0) {
180
- writer.uint32(8).int32(message.id);
181
- }
182
- return writer;
183
- },
184
- decode(input, length) {
185
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
186
- let end = length === undefined ? reader.len : reader.pos + length;
187
- const message = createBaseupdateInstallmentsResponse();
188
- while (reader.pos < end) {
189
- const tag = reader.uint32();
190
- switch (tag >>> 3) {
191
- case 1:
192
- if (tag !== 8) {
193
- break;
194
- }
195
- message.id = reader.int32();
196
- continue;
197
- }
198
- if ((tag & 7) === 4 || tag === 0) {
199
- break;
200
- }
201
- reader.skipType(tag & 7);
202
- }
203
- return message;
204
- },
205
- fromJSON(object) {
206
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
207
- },
208
- toJSON(message) {
209
- const obj = {};
210
- if (message.id !== 0) {
211
- obj.id = Math.round(message.id);
212
- }
213
- return obj;
214
- },
215
- create(base) {
216
- return exports.updateInstallmentsResponse.fromPartial(base ?? {});
217
- },
218
- fromPartial(object) {
219
- const message = createBaseupdateInstallmentsResponse();
220
- message.id = object.id ?? 0;
221
- return message;
222
- },
223
- };
224
- function isSet(value) {
225
- return value !== null && value !== undefined;
226
- }
@@ -1,39 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "loans.updateloan";
3
- export interface updateLoanRequest {
4
- loan_id: number;
5
- status: string;
6
- disbursal_amount: number;
7
- disbursal_mode: string;
8
- is_auto_processing: number;
9
- }
10
- export interface updateLoanResponse {
11
- id: number;
12
- }
13
- export declare const updateLoanRequest: {
14
- encode(message: updateLoanRequest, writer?: _m0.Writer): _m0.Writer;
15
- decode(input: _m0.Reader | Uint8Array, length?: number): updateLoanRequest;
16
- fromJSON(object: any): updateLoanRequest;
17
- toJSON(message: updateLoanRequest): unknown;
18
- create<I extends Exact<DeepPartial<updateLoanRequest>, I>>(base?: I): updateLoanRequest;
19
- fromPartial<I extends Exact<DeepPartial<updateLoanRequest>, I>>(object: I): updateLoanRequest;
20
- };
21
- export declare const updateLoanResponse: {
22
- encode(message: updateLoanResponse, writer?: _m0.Writer): _m0.Writer;
23
- decode(input: _m0.Reader | Uint8Array, length?: number): updateLoanResponse;
24
- fromJSON(object: any): updateLoanResponse;
25
- toJSON(message: updateLoanResponse): unknown;
26
- create<I extends Exact<DeepPartial<updateLoanResponse>, I>>(base?: I): updateLoanResponse;
27
- fromPartial<I extends Exact<DeepPartial<updateLoanResponse>, I>>(object: I): updateLoanResponse;
28
- };
29
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
30
- 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 {} ? {
31
- [K in keyof T]?: DeepPartial<T[K]>;
32
- } : Partial<T>;
33
- type KeysOfUnion<T> = T extends T ? keyof T : never;
34
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
35
- [K in keyof P]: Exact<P[K], I[K]>;
36
- } & {
37
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
38
- };
39
- export {};
@@ -1,175 +0,0 @@
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.27.3
6
- // source: loans/updateloan.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.updateLoanResponse = exports.updateLoanRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "loans.updateloan";
15
- function createBaseupdateLoanRequest() {
16
- return { loan_id: 0, status: "", disbursal_amount: 0, disbursal_mode: "", is_auto_processing: 0 };
17
- }
18
- exports.updateLoanRequest = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.loan_id !== 0) {
21
- writer.uint32(8).int32(message.loan_id);
22
- }
23
- if (message.status !== "") {
24
- writer.uint32(18).string(message.status);
25
- }
26
- if (message.disbursal_amount !== 0) {
27
- writer.uint32(24).int32(message.disbursal_amount);
28
- }
29
- if (message.disbursal_mode !== "") {
30
- writer.uint32(34).string(message.disbursal_mode);
31
- }
32
- if (message.is_auto_processing !== 0) {
33
- writer.uint32(40).int32(message.is_auto_processing);
34
- }
35
- return writer;
36
- },
37
- decode(input, length) {
38
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
39
- let end = length === undefined ? reader.len : reader.pos + length;
40
- const message = createBaseupdateLoanRequest();
41
- while (reader.pos < end) {
42
- const tag = reader.uint32();
43
- switch (tag >>> 3) {
44
- case 1:
45
- if (tag !== 8) {
46
- break;
47
- }
48
- message.loan_id = reader.int32();
49
- continue;
50
- case 2:
51
- if (tag !== 18) {
52
- break;
53
- }
54
- message.status = reader.string();
55
- continue;
56
- case 3:
57
- if (tag !== 24) {
58
- break;
59
- }
60
- message.disbursal_amount = reader.int32();
61
- continue;
62
- case 4:
63
- if (tag !== 34) {
64
- break;
65
- }
66
- message.disbursal_mode = reader.string();
67
- continue;
68
- case 5:
69
- if (tag !== 40) {
70
- break;
71
- }
72
- message.is_auto_processing = reader.int32();
73
- continue;
74
- }
75
- if ((tag & 7) === 4 || tag === 0) {
76
- break;
77
- }
78
- reader.skipType(tag & 7);
79
- }
80
- return message;
81
- },
82
- fromJSON(object) {
83
- return {
84
- loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
85
- status: isSet(object.status) ? globalThis.String(object.status) : "",
86
- disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
87
- disbursal_mode: isSet(object.disbursal_mode) ? globalThis.String(object.disbursal_mode) : "",
88
- is_auto_processing: isSet(object.is_auto_processing) ? globalThis.Number(object.is_auto_processing) : 0,
89
- };
90
- },
91
- toJSON(message) {
92
- const obj = {};
93
- if (message.loan_id !== 0) {
94
- obj.loan_id = Math.round(message.loan_id);
95
- }
96
- if (message.status !== "") {
97
- obj.status = message.status;
98
- }
99
- if (message.disbursal_amount !== 0) {
100
- obj.disbursal_amount = Math.round(message.disbursal_amount);
101
- }
102
- if (message.disbursal_mode !== "") {
103
- obj.disbursal_mode = message.disbursal_mode;
104
- }
105
- if (message.is_auto_processing !== 0) {
106
- obj.is_auto_processing = Math.round(message.is_auto_processing);
107
- }
108
- return obj;
109
- },
110
- create(base) {
111
- return exports.updateLoanRequest.fromPartial(base ?? {});
112
- },
113
- fromPartial(object) {
114
- const message = createBaseupdateLoanRequest();
115
- message.loan_id = object.loan_id ?? 0;
116
- message.status = object.status ?? "";
117
- message.disbursal_amount = object.disbursal_amount ?? 0;
118
- message.disbursal_mode = object.disbursal_mode ?? "";
119
- message.is_auto_processing = object.is_auto_processing ?? 0;
120
- return message;
121
- },
122
- };
123
- function createBaseupdateLoanResponse() {
124
- return { id: 0 };
125
- }
126
- exports.updateLoanResponse = {
127
- encode(message, writer = minimal_1.default.Writer.create()) {
128
- if (message.id !== 0) {
129
- writer.uint32(8).int32(message.id);
130
- }
131
- return writer;
132
- },
133
- decode(input, length) {
134
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
135
- let end = length === undefined ? reader.len : reader.pos + length;
136
- const message = createBaseupdateLoanResponse();
137
- while (reader.pos < end) {
138
- const tag = reader.uint32();
139
- switch (tag >>> 3) {
140
- case 1:
141
- if (tag !== 8) {
142
- break;
143
- }
144
- message.id = reader.int32();
145
- continue;
146
- }
147
- if ((tag & 7) === 4 || tag === 0) {
148
- break;
149
- }
150
- reader.skipType(tag & 7);
151
- }
152
- return message;
153
- },
154
- fromJSON(object) {
155
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
156
- },
157
- toJSON(message) {
158
- const obj = {};
159
- if (message.id !== 0) {
160
- obj.id = Math.round(message.id);
161
- }
162
- return obj;
163
- },
164
- create(base) {
165
- return exports.updateLoanResponse.fromPartial(base ?? {});
166
- },
167
- fromPartial(object) {
168
- const message = createBaseupdateLoanResponse();
169
- message.id = object.id ?? 0;
170
- return message;
171
- },
172
- };
173
- function isSet(value) {
174
- return value !== null && value !== undefined;
175
- }