@stashfin/grpc 1.2.169 → 1.2.170

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 (189) hide show
  1. package/package.json +1 -1
  2. package/ts/bureau/getbasicdetails.d.ts +57 -0
  3. package/ts/bureau/getbasicdetails.js +341 -0
  4. package/ts/bureau/getdemogs.d.ts +113 -0
  5. package/ts/bureau/getdemogs.js +611 -0
  6. package/ts/bureau/getreport.d.ts +188 -0
  7. package/ts/bureau/getreport.js +1640 -0
  8. package/ts/bureau.d.ts +56 -0
  9. package/ts/bureau.js +44 -0
  10. package/ts/colender/disburseLoan.d.ts +44 -0
  11. package/ts/colender/disburseLoan.js +256 -0
  12. package/ts/colender/forecloseLoan.d.ts +41 -0
  13. package/ts/colender/forecloseLoan.js +205 -0
  14. package/ts/colender/repayLoan.d.ts +48 -0
  15. package/ts/colender/repayLoan.js +313 -0
  16. package/ts/colender.d.ts +56 -0
  17. package/ts/colender.js +44 -0
  18. package/ts/customers/aa/getbanklist.d.ts +48 -0
  19. package/ts/customers/aa/getbanklist.js +198 -0
  20. package/ts/customers/aa/initiate.d.ts +40 -0
  21. package/ts/customers/aa/initiate.js +209 -0
  22. package/ts/customers/addaddress.d.ts +50 -0
  23. package/ts/customers/addaddress.js +265 -0
  24. package/ts/customers/addbankaccountdetails.d.ts +37 -0
  25. package/ts/customers/addbankaccountdetails.js +147 -0
  26. package/ts/customers/addfathersname.d.ts +35 -0
  27. package/ts/customers/addfathersname.js +117 -0
  28. package/ts/customers/addgstnumber.d.ts +35 -0
  29. package/ts/customers/addgstnumber.js +117 -0
  30. package/ts/customers/addmoredetails.d.ts +60 -0
  31. package/ts/customers/addmoredetails.js +314 -0
  32. package/ts/customers/addsuspendedcustomer.d.ts +36 -0
  33. package/ts/customers/addsuspendedcustomer.js +133 -0
  34. package/ts/customers/adduserapps.d.ts +74 -0
  35. package/ts/customers/adduserapps.js +210 -0
  36. package/ts/customers/bulksms.d.ts +48 -0
  37. package/ts/customers/bulksms.js +201 -0
  38. package/ts/customers/changempin.d.ts +36 -0
  39. package/ts/customers/changempin.js +133 -0
  40. package/ts/customers/createcustomerreference.d.ts +43 -0
  41. package/ts/customers/createcustomerreference.js +226 -0
  42. package/ts/customers/deleteprofile.d.ts +35 -0
  43. package/ts/customers/deleteprofile.js +120 -0
  44. package/ts/customers/disablempin.d.ts +34 -0
  45. package/ts/customers/disablempin.js +104 -0
  46. package/ts/customers/fetchrcprofile.d.ts +45 -0
  47. package/ts/customers/fetchrcprofile.js +271 -0
  48. package/ts/customers/forgotmpin.d.ts +35 -0
  49. package/ts/customers/forgotmpin.js +117 -0
  50. package/ts/customers/forgotmpinverify.d.ts +36 -0
  51. package/ts/customers/forgotmpinverify.js +133 -0
  52. package/ts/customers/getbankaccountdetails.d.ts +37 -0
  53. package/ts/customers/getbankaccountdetails.js +148 -0
  54. package/ts/customers/getbasicinfo.d.ts +56 -0
  55. package/ts/customers/getbasicinfo.js +323 -0
  56. package/ts/customers/getcities.d.ts +47 -0
  57. package/ts/customers/getcities.js +183 -0
  58. package/ts/customers/getcompanyaccdetails.d.ts +37 -0
  59. package/ts/customers/getcompanyaccdetails.js +148 -0
  60. package/ts/customers/getcustomerbyid.d.ts +142 -0
  61. package/ts/customers/getcustomerbyid.js +1521 -0
  62. package/ts/customers/getdashboard.d.ts +88 -0
  63. package/ts/customers/getdashboard.js +574 -0
  64. package/ts/customers/getdashboardmaincard.d.ts +70 -0
  65. package/ts/customers/getdashboardmaincard.js +534 -0
  66. package/ts/customers/getdocuments.d.ts +46 -0
  67. package/ts/customers/getdocuments.js +174 -0
  68. package/ts/customers/getlimit.d.ts +37 -0
  69. package/ts/customers/getlimit.js +148 -0
  70. package/ts/customers/getprofessionalinfo.d.ts +54 -0
  71. package/ts/customers/getprofessionalinfo.js +286 -0
  72. package/ts/customers/getprofile.d.ts +54 -0
  73. package/ts/customers/getprofile.js +296 -0
  74. package/ts/customers/getselfieetxnid.d.ts +34 -0
  75. package/ts/customers/getselfieetxnid.js +104 -0
  76. package/ts/customers/getstates.d.ts +46 -0
  77. package/ts/customers/getstates.js +170 -0
  78. package/ts/customers/getstep.d.ts +69 -0
  79. package/ts/customers/getstep.js +406 -0
  80. package/ts/customers/logout.d.ts +34 -0
  81. package/ts/customers/logout.js +104 -0
  82. package/ts/customers/profilebasic.d.ts +40 -0
  83. package/ts/customers/profilebasic.js +189 -0
  84. package/ts/customers/profileupdatetnc.d.ts +35 -0
  85. package/ts/customers/profileupdatetnc.js +117 -0
  86. package/ts/customers/savebasicdetails.d.ts +47 -0
  87. package/ts/customers/savebasicdetails.js +185 -0
  88. package/ts/customers/saveunlocklimit.d.ts +34 -0
  89. package/ts/customers/saveunlocklimit.js +104 -0
  90. package/ts/customers/sendotp.d.ts +38 -0
  91. package/ts/customers/sendotp.js +165 -0
  92. package/ts/customers/sendotptoemail.d.ts +35 -0
  93. package/ts/customers/sendotptoemail.js +117 -0
  94. package/ts/customers/setmpin.d.ts +36 -0
  95. package/ts/customers/setmpin.js +133 -0
  96. package/ts/customers/skipscreen.d.ts +44 -0
  97. package/ts/customers/skipscreen.js +162 -0
  98. package/ts/customers/updatecustomerbyid.d.ts +48 -0
  99. package/ts/customers/updatecustomerbyid.js +201 -0
  100. package/ts/customers/updatedlnumber.d.ts +35 -0
  101. package/ts/customers/updatedlnumber.js +119 -0
  102. package/ts/customers/updatedob.d.ts +35 -0
  103. package/ts/customers/updatedob.js +117 -0
  104. package/ts/customers/updatelocstatus.d.ts +36 -0
  105. package/ts/customers/updatelocstatus.js +133 -0
  106. package/ts/customers/updatemobilesendotp.d.ts +35 -0
  107. package/ts/customers/updatemobilesendotp.js +117 -0
  108. package/ts/customers/updatemobileverifyotp.d.ts +36 -0
  109. package/ts/customers/updatemobileverifyotp.js +133 -0
  110. package/ts/customers/updateokyctxn.d.ts +37 -0
  111. package/ts/customers/updateokyctxn.js +147 -0
  112. package/ts/customers/updateselfieetxn.d.ts +36 -0
  113. package/ts/customers/updateselfieetxn.js +133 -0
  114. package/ts/customers/updatevehiclenumber.d.ts +35 -0
  115. package/ts/customers/updatevehiclenumber.js +117 -0
  116. package/ts/customers/uploaddocuments.d.ts +37 -0
  117. package/ts/customers/uploaddocuments.js +172 -0
  118. package/ts/customers/validatepan.d.ts +45 -0
  119. package/ts/customers/validatepan.js +274 -0
  120. package/ts/customers/verifympin.d.ts +37 -0
  121. package/ts/customers/verifympin.js +149 -0
  122. package/ts/customers/verifyotp.d.ts +41 -0
  123. package/ts/customers/verifyotp.js +205 -0
  124. package/ts/customers/verifyotptoemail.d.ts +35 -0
  125. package/ts/customers/verifyotptoemail.js +117 -0
  126. package/ts/customers.d.ts +796 -0
  127. package/ts/customers.js +572 -0
  128. package/ts/example.d.ts +78 -0
  129. package/ts/example.js +199 -0
  130. package/ts/growth/processchrpayment.d.ts +40 -0
  131. package/ts/growth/processchrpayment.js +205 -0
  132. package/ts/growth.d.ts +28 -0
  133. package/ts/growth.js +24 -0
  134. package/ts/loans/approveloan.d.ts +81 -0
  135. package/ts/loans/approveloan.js +703 -0
  136. package/ts/loans/banklist.d.ts +37 -0
  137. package/ts/loans/banklist.js +148 -0
  138. package/ts/loans/calculateemi.d.ts +57 -0
  139. package/ts/loans/calculateemi.js +340 -0
  140. package/ts/loans/creditlimit.d.ts +51 -0
  141. package/ts/loans/creditlimit.js +381 -0
  142. package/ts/loans/futurepaymentmoredetails.d.ts +50 -0
  143. package/ts/loans/futurepaymentmoredetails.js +230 -0
  144. package/ts/loans/getbilldetails.d.ts +38 -0
  145. package/ts/loans/getbilldetails.js +161 -0
  146. package/ts/loans/getcustomerloanstatus.d.ts +34 -0
  147. package/ts/loans/getcustomerloanstatus.js +104 -0
  148. package/ts/loans/getloanbyid.d.ts +48 -0
  149. package/ts/loans/getloanbyid.js +318 -0
  150. package/ts/loans/getnextdueamount.d.ts +34 -0
  151. package/ts/loans/getnextdueamount.js +104 -0
  152. package/ts/loans/getpendingemiamount.d.ts +34 -0
  153. package/ts/loans/getpendingemiamount.js +104 -0
  154. package/ts/loans/getsummarystaticfields.d.ts +80 -0
  155. package/ts/loans/getsummarystaticfields.js +700 -0
  156. package/ts/loans/loansummary.d.ts +66 -0
  157. package/ts/loans/loansummary.js +593 -0
  158. package/ts/loans/paymentallocation.d.ts +38 -0
  159. package/ts/loans/paymentallocation.js +161 -0
  160. package/ts/loans/paymenthistory.d.ts +47 -0
  161. package/ts/loans/paymenthistory.js +188 -0
  162. package/ts/loans/restructureloan.d.ts +36 -0
  163. package/ts/loans/restructureloan.js +133 -0
  164. package/ts/loans/sendemail.d.ts +35 -0
  165. package/ts/loans/sendemail.js +117 -0
  166. package/ts/loans/sendnocemail.d.ts +35 -0
  167. package/ts/loans/sendnocemail.js +117 -0
  168. package/ts/loans/transactionlist.d.ts +52 -0
  169. package/ts/loans/transactionlist.js +257 -0
  170. package/ts/loans/updateinstallments.d.ts +42 -0
  171. package/ts/loans/updateinstallments.js +226 -0
  172. package/ts/loans/updateloan.d.ts +37 -0
  173. package/ts/loans/updateloan.js +147 -0
  174. package/ts/loans.d.ts +294 -0
  175. package/ts/loans.js +214 -0
  176. package/ts/payments.d.ts +239 -0
  177. package/ts/payments.js +1117 -0
  178. package/ts/stashcash/creditsc.d.ts +54 -0
  179. package/ts/stashcash/creditsc.js +301 -0
  180. package/ts/stashcash/debitsc.d.ts +59 -0
  181. package/ts/stashcash/debitsc.js +380 -0
  182. package/ts/stashcash/getscbalance.d.ts +53 -0
  183. package/ts/stashcash/getscbalance.js +293 -0
  184. package/ts/stashcash/getschistory.d.ts +73 -0
  185. package/ts/stashcash/getschistory.js +479 -0
  186. package/ts/stashcash/reversesc.d.ts +52 -0
  187. package/ts/stashcash/reversesc.js +273 -0
  188. package/ts/stashcash.d.ts +84 -0
  189. package/ts/stashcash.js +64 -0
@@ -0,0 +1,66 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.loansummary";
3
+ export interface loanSummaryRequest {
4
+ addons: number;
5
+ amount: number;
6
+ tenure: number;
7
+ emi_amount: number;
8
+ }
9
+ export interface loanSummaryResponse {
10
+ gateway_fees: number;
11
+ striked_gateway_fees: number;
12
+ bill_date: string;
13
+ requested_amount: number;
14
+ tenure: number;
15
+ emi_amount: number;
16
+ net_amount_payable: number;
17
+ first_emi_date: string;
18
+ final_disbursal_amount: number;
19
+ upfront_interest: number;
20
+ rate_of_interest: number;
21
+ bill_amount: number;
22
+ total_interest_pay: number;
23
+ effective_annual_rate: number;
24
+ transaction_fee_bill_amount: number;
25
+ processing_fee_plus_gst: number;
26
+ trans_fee_plus_gst: number;
27
+ fee_and_charges: number;
28
+ fee_and_charges_bill: number;
29
+ effective_roi: number;
30
+ effective_annual_roi: number;
31
+ emi_card_description: string;
32
+ bill_card_description: string;
33
+ apr_value: number;
34
+ apr_type: string;
35
+ max_amount: number;
36
+ credit_report_fees: number;
37
+ credit_report_actual_fees: number;
38
+ plan_id: number;
39
+ }
40
+ export declare const loanSummaryRequest: {
41
+ encode(message: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
42
+ decode(input: _m0.Reader | Uint8Array, length?: number): loanSummaryRequest;
43
+ fromJSON(object: any): loanSummaryRequest;
44
+ toJSON(message: loanSummaryRequest): unknown;
45
+ create<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(base?: I): loanSummaryRequest;
46
+ fromPartial<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(object: I): loanSummaryRequest;
47
+ };
48
+ export declare const loanSummaryResponse: {
49
+ encode(message: loanSummaryResponse, writer?: _m0.Writer): _m0.Writer;
50
+ decode(input: _m0.Reader | Uint8Array, length?: number): loanSummaryResponse;
51
+ fromJSON(object: any): loanSummaryResponse;
52
+ toJSON(message: loanSummaryResponse): unknown;
53
+ create<I extends Exact<DeepPartial<loanSummaryResponse>, I>>(base?: I): loanSummaryResponse;
54
+ fromPartial<I extends Exact<DeepPartial<loanSummaryResponse>, I>>(object: I): loanSummaryResponse;
55
+ };
56
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
57
+ 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 {} ? {
58
+ [K in keyof T]?: DeepPartial<T[K]>;
59
+ } : Partial<T>;
60
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
61
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
62
+ [K in keyof P]: Exact<P[K], I[K]>;
63
+ } & {
64
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
65
+ };
66
+ export {};
@@ -0,0 +1,593 @@
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.4
6
+ // source: loans/loansummary.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.loanSummaryResponse = exports.loanSummaryRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.loansummary";
15
+ function createBaseloanSummaryRequest() {
16
+ return { addons: 0, amount: 0, tenure: 0, emi_amount: 0 };
17
+ }
18
+ exports.loanSummaryRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.addons !== 0) {
21
+ writer.uint32(8).int32(message.addons);
22
+ }
23
+ if (message.amount !== 0) {
24
+ writer.uint32(16).int32(message.amount);
25
+ }
26
+ if (message.tenure !== 0) {
27
+ writer.uint32(24).int32(message.tenure);
28
+ }
29
+ if (message.emi_amount !== 0) {
30
+ writer.uint32(32).int32(message.emi_amount);
31
+ }
32
+ return writer;
33
+ },
34
+ decode(input, length) {
35
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
36
+ let end = length === undefined ? reader.len : reader.pos + length;
37
+ const message = createBaseloanSummaryRequest();
38
+ while (reader.pos < end) {
39
+ const tag = reader.uint32();
40
+ switch (tag >>> 3) {
41
+ case 1:
42
+ if (tag !== 8) {
43
+ break;
44
+ }
45
+ message.addons = reader.int32();
46
+ continue;
47
+ case 2:
48
+ if (tag !== 16) {
49
+ break;
50
+ }
51
+ message.amount = reader.int32();
52
+ continue;
53
+ case 3:
54
+ if (tag !== 24) {
55
+ break;
56
+ }
57
+ message.tenure = reader.int32();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 32) {
61
+ break;
62
+ }
63
+ message.emi_amount = reader.int32();
64
+ continue;
65
+ }
66
+ if ((tag & 7) === 4 || tag === 0) {
67
+ break;
68
+ }
69
+ reader.skipType(tag & 7);
70
+ }
71
+ return message;
72
+ },
73
+ fromJSON(object) {
74
+ return {
75
+ addons: isSet(object.addons) ? globalThis.Number(object.addons) : 0,
76
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
77
+ tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
78
+ emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
79
+ };
80
+ },
81
+ toJSON(message) {
82
+ const obj = {};
83
+ if (message.addons !== 0) {
84
+ obj.addons = Math.round(message.addons);
85
+ }
86
+ if (message.amount !== 0) {
87
+ obj.amount = Math.round(message.amount);
88
+ }
89
+ if (message.tenure !== 0) {
90
+ obj.tenure = Math.round(message.tenure);
91
+ }
92
+ if (message.emi_amount !== 0) {
93
+ obj.emi_amount = Math.round(message.emi_amount);
94
+ }
95
+ return obj;
96
+ },
97
+ create(base) {
98
+ return exports.loanSummaryRequest.fromPartial(base ?? {});
99
+ },
100
+ fromPartial(object) {
101
+ const message = createBaseloanSummaryRequest();
102
+ message.addons = object.addons ?? 0;
103
+ message.amount = object.amount ?? 0;
104
+ message.tenure = object.tenure ?? 0;
105
+ message.emi_amount = object.emi_amount ?? 0;
106
+ return message;
107
+ },
108
+ };
109
+ function createBaseloanSummaryResponse() {
110
+ return {
111
+ gateway_fees: 0,
112
+ striked_gateway_fees: 0,
113
+ bill_date: "",
114
+ requested_amount: 0,
115
+ tenure: 0,
116
+ emi_amount: 0,
117
+ net_amount_payable: 0,
118
+ first_emi_date: "",
119
+ final_disbursal_amount: 0,
120
+ upfront_interest: 0,
121
+ rate_of_interest: 0,
122
+ bill_amount: 0,
123
+ total_interest_pay: 0,
124
+ effective_annual_rate: 0,
125
+ transaction_fee_bill_amount: 0,
126
+ processing_fee_plus_gst: 0,
127
+ trans_fee_plus_gst: 0,
128
+ fee_and_charges: 0,
129
+ fee_and_charges_bill: 0,
130
+ effective_roi: 0,
131
+ effective_annual_roi: 0,
132
+ emi_card_description: "",
133
+ bill_card_description: "",
134
+ apr_value: 0,
135
+ apr_type: "",
136
+ max_amount: 0,
137
+ credit_report_fees: 0,
138
+ credit_report_actual_fees: 0,
139
+ plan_id: 0,
140
+ };
141
+ }
142
+ exports.loanSummaryResponse = {
143
+ encode(message, writer = minimal_1.default.Writer.create()) {
144
+ if (message.gateway_fees !== 0) {
145
+ writer.uint32(8).int32(message.gateway_fees);
146
+ }
147
+ if (message.striked_gateway_fees !== 0) {
148
+ writer.uint32(16).int32(message.striked_gateway_fees);
149
+ }
150
+ if (message.bill_date !== "") {
151
+ writer.uint32(26).string(message.bill_date);
152
+ }
153
+ if (message.requested_amount !== 0) {
154
+ writer.uint32(32).int32(message.requested_amount);
155
+ }
156
+ if (message.tenure !== 0) {
157
+ writer.uint32(40).int32(message.tenure);
158
+ }
159
+ if (message.emi_amount !== 0) {
160
+ writer.uint32(48).int32(message.emi_amount);
161
+ }
162
+ if (message.net_amount_payable !== 0) {
163
+ writer.uint32(56).int32(message.net_amount_payable);
164
+ }
165
+ if (message.first_emi_date !== "") {
166
+ writer.uint32(66).string(message.first_emi_date);
167
+ }
168
+ if (message.final_disbursal_amount !== 0) {
169
+ writer.uint32(72).int32(message.final_disbursal_amount);
170
+ }
171
+ if (message.upfront_interest !== 0) {
172
+ writer.uint32(85).float(message.upfront_interest);
173
+ }
174
+ if (message.rate_of_interest !== 0) {
175
+ writer.uint32(88).int32(message.rate_of_interest);
176
+ }
177
+ if (message.bill_amount !== 0) {
178
+ writer.uint32(96).int32(message.bill_amount);
179
+ }
180
+ if (message.total_interest_pay !== 0) {
181
+ writer.uint32(104).int32(message.total_interest_pay);
182
+ }
183
+ if (message.effective_annual_rate !== 0) {
184
+ writer.uint32(112).int32(message.effective_annual_rate);
185
+ }
186
+ if (message.transaction_fee_bill_amount !== 0) {
187
+ writer.uint32(120).int32(message.transaction_fee_bill_amount);
188
+ }
189
+ if (message.processing_fee_plus_gst !== 0) {
190
+ writer.uint32(128).int32(message.processing_fee_plus_gst);
191
+ }
192
+ if (message.trans_fee_plus_gst !== 0) {
193
+ writer.uint32(136).int32(message.trans_fee_plus_gst);
194
+ }
195
+ if (message.fee_and_charges !== 0) {
196
+ writer.uint32(144).int32(message.fee_and_charges);
197
+ }
198
+ if (message.fee_and_charges_bill !== 0) {
199
+ writer.uint32(152).int32(message.fee_and_charges_bill);
200
+ }
201
+ if (message.effective_roi !== 0) {
202
+ writer.uint32(160).int32(message.effective_roi);
203
+ }
204
+ if (message.effective_annual_roi !== 0) {
205
+ writer.uint32(168).int32(message.effective_annual_roi);
206
+ }
207
+ if (message.emi_card_description !== "") {
208
+ writer.uint32(178).string(message.emi_card_description);
209
+ }
210
+ if (message.bill_card_description !== "") {
211
+ writer.uint32(186).string(message.bill_card_description);
212
+ }
213
+ if (message.apr_value !== 0) {
214
+ writer.uint32(192).int32(message.apr_value);
215
+ }
216
+ if (message.apr_type !== "") {
217
+ writer.uint32(202).string(message.apr_type);
218
+ }
219
+ if (message.max_amount !== 0) {
220
+ writer.uint32(208).int32(message.max_amount);
221
+ }
222
+ if (message.credit_report_fees !== 0) {
223
+ writer.uint32(216).int32(message.credit_report_fees);
224
+ }
225
+ if (message.credit_report_actual_fees !== 0) {
226
+ writer.uint32(224).int32(message.credit_report_actual_fees);
227
+ }
228
+ if (message.plan_id !== 0) {
229
+ writer.uint32(232).int32(message.plan_id);
230
+ }
231
+ return writer;
232
+ },
233
+ decode(input, length) {
234
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
235
+ let end = length === undefined ? reader.len : reader.pos + length;
236
+ const message = createBaseloanSummaryResponse();
237
+ while (reader.pos < end) {
238
+ const tag = reader.uint32();
239
+ switch (tag >>> 3) {
240
+ case 1:
241
+ if (tag !== 8) {
242
+ break;
243
+ }
244
+ message.gateway_fees = reader.int32();
245
+ continue;
246
+ case 2:
247
+ if (tag !== 16) {
248
+ break;
249
+ }
250
+ message.striked_gateway_fees = reader.int32();
251
+ continue;
252
+ case 3:
253
+ if (tag !== 26) {
254
+ break;
255
+ }
256
+ message.bill_date = reader.string();
257
+ continue;
258
+ case 4:
259
+ if (tag !== 32) {
260
+ break;
261
+ }
262
+ message.requested_amount = reader.int32();
263
+ continue;
264
+ case 5:
265
+ if (tag !== 40) {
266
+ break;
267
+ }
268
+ message.tenure = reader.int32();
269
+ continue;
270
+ case 6:
271
+ if (tag !== 48) {
272
+ break;
273
+ }
274
+ message.emi_amount = reader.int32();
275
+ continue;
276
+ case 7:
277
+ if (tag !== 56) {
278
+ break;
279
+ }
280
+ message.net_amount_payable = reader.int32();
281
+ continue;
282
+ case 8:
283
+ if (tag !== 66) {
284
+ break;
285
+ }
286
+ message.first_emi_date = reader.string();
287
+ continue;
288
+ case 9:
289
+ if (tag !== 72) {
290
+ break;
291
+ }
292
+ message.final_disbursal_amount = reader.int32();
293
+ continue;
294
+ case 10:
295
+ if (tag !== 85) {
296
+ break;
297
+ }
298
+ message.upfront_interest = reader.float();
299
+ continue;
300
+ case 11:
301
+ if (tag !== 88) {
302
+ break;
303
+ }
304
+ message.rate_of_interest = reader.int32();
305
+ continue;
306
+ case 12:
307
+ if (tag !== 96) {
308
+ break;
309
+ }
310
+ message.bill_amount = reader.int32();
311
+ continue;
312
+ case 13:
313
+ if (tag !== 104) {
314
+ break;
315
+ }
316
+ message.total_interest_pay = reader.int32();
317
+ continue;
318
+ case 14:
319
+ if (tag !== 112) {
320
+ break;
321
+ }
322
+ message.effective_annual_rate = reader.int32();
323
+ continue;
324
+ case 15:
325
+ if (tag !== 120) {
326
+ break;
327
+ }
328
+ message.transaction_fee_bill_amount = reader.int32();
329
+ continue;
330
+ case 16:
331
+ if (tag !== 128) {
332
+ break;
333
+ }
334
+ message.processing_fee_plus_gst = reader.int32();
335
+ continue;
336
+ case 17:
337
+ if (tag !== 136) {
338
+ break;
339
+ }
340
+ message.trans_fee_plus_gst = reader.int32();
341
+ continue;
342
+ case 18:
343
+ if (tag !== 144) {
344
+ break;
345
+ }
346
+ message.fee_and_charges = reader.int32();
347
+ continue;
348
+ case 19:
349
+ if (tag !== 152) {
350
+ break;
351
+ }
352
+ message.fee_and_charges_bill = reader.int32();
353
+ continue;
354
+ case 20:
355
+ if (tag !== 160) {
356
+ break;
357
+ }
358
+ message.effective_roi = reader.int32();
359
+ continue;
360
+ case 21:
361
+ if (tag !== 168) {
362
+ break;
363
+ }
364
+ message.effective_annual_roi = reader.int32();
365
+ continue;
366
+ case 22:
367
+ if (tag !== 178) {
368
+ break;
369
+ }
370
+ message.emi_card_description = reader.string();
371
+ continue;
372
+ case 23:
373
+ if (tag !== 186) {
374
+ break;
375
+ }
376
+ message.bill_card_description = reader.string();
377
+ continue;
378
+ case 24:
379
+ if (tag !== 192) {
380
+ break;
381
+ }
382
+ message.apr_value = reader.int32();
383
+ continue;
384
+ case 25:
385
+ if (tag !== 202) {
386
+ break;
387
+ }
388
+ message.apr_type = reader.string();
389
+ continue;
390
+ case 26:
391
+ if (tag !== 208) {
392
+ break;
393
+ }
394
+ message.max_amount = reader.int32();
395
+ continue;
396
+ case 27:
397
+ if (tag !== 216) {
398
+ break;
399
+ }
400
+ message.credit_report_fees = reader.int32();
401
+ continue;
402
+ case 28:
403
+ if (tag !== 224) {
404
+ break;
405
+ }
406
+ message.credit_report_actual_fees = reader.int32();
407
+ continue;
408
+ case 29:
409
+ if (tag !== 232) {
410
+ break;
411
+ }
412
+ message.plan_id = reader.int32();
413
+ continue;
414
+ }
415
+ if ((tag & 7) === 4 || tag === 0) {
416
+ break;
417
+ }
418
+ reader.skipType(tag & 7);
419
+ }
420
+ return message;
421
+ },
422
+ fromJSON(object) {
423
+ return {
424
+ gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : 0,
425
+ striked_gateway_fees: isSet(object.striked_gateway_fees) ? globalThis.Number(object.striked_gateway_fees) : 0,
426
+ bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
427
+ requested_amount: isSet(object.requested_amount) ? globalThis.Number(object.requested_amount) : 0,
428
+ tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
429
+ emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
430
+ net_amount_payable: isSet(object.net_amount_payable) ? globalThis.Number(object.net_amount_payable) : 0,
431
+ first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
432
+ final_disbursal_amount: isSet(object.final_disbursal_amount)
433
+ ? globalThis.Number(object.final_disbursal_amount)
434
+ : 0,
435
+ upfront_interest: isSet(object.upfront_interest) ? globalThis.Number(object.upfront_interest) : 0,
436
+ rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
437
+ bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
438
+ total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : 0,
439
+ effective_annual_rate: isSet(object.effective_annual_rate) ? globalThis.Number(object.effective_annual_rate) : 0,
440
+ transaction_fee_bill_amount: isSet(object.transaction_fee_bill_amount)
441
+ ? globalThis.Number(object.transaction_fee_bill_amount)
442
+ : 0,
443
+ processing_fee_plus_gst: isSet(object.processing_fee_plus_gst)
444
+ ? globalThis.Number(object.processing_fee_plus_gst)
445
+ : 0,
446
+ trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : 0,
447
+ fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : 0,
448
+ fee_and_charges_bill: isSet(object.fee_and_charges_bill) ? globalThis.Number(object.fee_and_charges_bill) : 0,
449
+ effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : 0,
450
+ effective_annual_roi: isSet(object.effective_annual_roi) ? globalThis.Number(object.effective_annual_roi) : 0,
451
+ emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
452
+ bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
453
+ apr_value: isSet(object.apr_value) ? globalThis.Number(object.apr_value) : 0,
454
+ apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
455
+ max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
456
+ credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
457
+ credit_report_actual_fees: isSet(object.credit_report_actual_fees)
458
+ ? globalThis.Number(object.credit_report_actual_fees)
459
+ : 0,
460
+ plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
461
+ };
462
+ },
463
+ toJSON(message) {
464
+ const obj = {};
465
+ if (message.gateway_fees !== 0) {
466
+ obj.gateway_fees = Math.round(message.gateway_fees);
467
+ }
468
+ if (message.striked_gateway_fees !== 0) {
469
+ obj.striked_gateway_fees = Math.round(message.striked_gateway_fees);
470
+ }
471
+ if (message.bill_date !== "") {
472
+ obj.bill_date = message.bill_date;
473
+ }
474
+ if (message.requested_amount !== 0) {
475
+ obj.requested_amount = Math.round(message.requested_amount);
476
+ }
477
+ if (message.tenure !== 0) {
478
+ obj.tenure = Math.round(message.tenure);
479
+ }
480
+ if (message.emi_amount !== 0) {
481
+ obj.emi_amount = Math.round(message.emi_amount);
482
+ }
483
+ if (message.net_amount_payable !== 0) {
484
+ obj.net_amount_payable = Math.round(message.net_amount_payable);
485
+ }
486
+ if (message.first_emi_date !== "") {
487
+ obj.first_emi_date = message.first_emi_date;
488
+ }
489
+ if (message.final_disbursal_amount !== 0) {
490
+ obj.final_disbursal_amount = Math.round(message.final_disbursal_amount);
491
+ }
492
+ if (message.upfront_interest !== 0) {
493
+ obj.upfront_interest = message.upfront_interest;
494
+ }
495
+ if (message.rate_of_interest !== 0) {
496
+ obj.rate_of_interest = Math.round(message.rate_of_interest);
497
+ }
498
+ if (message.bill_amount !== 0) {
499
+ obj.bill_amount = Math.round(message.bill_amount);
500
+ }
501
+ if (message.total_interest_pay !== 0) {
502
+ obj.total_interest_pay = Math.round(message.total_interest_pay);
503
+ }
504
+ if (message.effective_annual_rate !== 0) {
505
+ obj.effective_annual_rate = Math.round(message.effective_annual_rate);
506
+ }
507
+ if (message.transaction_fee_bill_amount !== 0) {
508
+ obj.transaction_fee_bill_amount = Math.round(message.transaction_fee_bill_amount);
509
+ }
510
+ if (message.processing_fee_plus_gst !== 0) {
511
+ obj.processing_fee_plus_gst = Math.round(message.processing_fee_plus_gst);
512
+ }
513
+ if (message.trans_fee_plus_gst !== 0) {
514
+ obj.trans_fee_plus_gst = Math.round(message.trans_fee_plus_gst);
515
+ }
516
+ if (message.fee_and_charges !== 0) {
517
+ obj.fee_and_charges = Math.round(message.fee_and_charges);
518
+ }
519
+ if (message.fee_and_charges_bill !== 0) {
520
+ obj.fee_and_charges_bill = Math.round(message.fee_and_charges_bill);
521
+ }
522
+ if (message.effective_roi !== 0) {
523
+ obj.effective_roi = Math.round(message.effective_roi);
524
+ }
525
+ if (message.effective_annual_roi !== 0) {
526
+ obj.effective_annual_roi = Math.round(message.effective_annual_roi);
527
+ }
528
+ if (message.emi_card_description !== "") {
529
+ obj.emi_card_description = message.emi_card_description;
530
+ }
531
+ if (message.bill_card_description !== "") {
532
+ obj.bill_card_description = message.bill_card_description;
533
+ }
534
+ if (message.apr_value !== 0) {
535
+ obj.apr_value = Math.round(message.apr_value);
536
+ }
537
+ if (message.apr_type !== "") {
538
+ obj.apr_type = message.apr_type;
539
+ }
540
+ if (message.max_amount !== 0) {
541
+ obj.max_amount = Math.round(message.max_amount);
542
+ }
543
+ if (message.credit_report_fees !== 0) {
544
+ obj.credit_report_fees = Math.round(message.credit_report_fees);
545
+ }
546
+ if (message.credit_report_actual_fees !== 0) {
547
+ obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
548
+ }
549
+ if (message.plan_id !== 0) {
550
+ obj.plan_id = Math.round(message.plan_id);
551
+ }
552
+ return obj;
553
+ },
554
+ create(base) {
555
+ return exports.loanSummaryResponse.fromPartial(base ?? {});
556
+ },
557
+ fromPartial(object) {
558
+ const message = createBaseloanSummaryResponse();
559
+ message.gateway_fees = object.gateway_fees ?? 0;
560
+ message.striked_gateway_fees = object.striked_gateway_fees ?? 0;
561
+ message.bill_date = object.bill_date ?? "";
562
+ message.requested_amount = object.requested_amount ?? 0;
563
+ message.tenure = object.tenure ?? 0;
564
+ message.emi_amount = object.emi_amount ?? 0;
565
+ message.net_amount_payable = object.net_amount_payable ?? 0;
566
+ message.first_emi_date = object.first_emi_date ?? "";
567
+ message.final_disbursal_amount = object.final_disbursal_amount ?? 0;
568
+ message.upfront_interest = object.upfront_interest ?? 0;
569
+ message.rate_of_interest = object.rate_of_interest ?? 0;
570
+ message.bill_amount = object.bill_amount ?? 0;
571
+ message.total_interest_pay = object.total_interest_pay ?? 0;
572
+ message.effective_annual_rate = object.effective_annual_rate ?? 0;
573
+ message.transaction_fee_bill_amount = object.transaction_fee_bill_amount ?? 0;
574
+ message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? 0;
575
+ message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? 0;
576
+ message.fee_and_charges = object.fee_and_charges ?? 0;
577
+ message.fee_and_charges_bill = object.fee_and_charges_bill ?? 0;
578
+ message.effective_roi = object.effective_roi ?? 0;
579
+ message.effective_annual_roi = object.effective_annual_roi ?? 0;
580
+ message.emi_card_description = object.emi_card_description ?? "";
581
+ message.bill_card_description = object.bill_card_description ?? "";
582
+ message.apr_value = object.apr_value ?? 0;
583
+ message.apr_type = object.apr_type ?? "";
584
+ message.max_amount = object.max_amount ?? 0;
585
+ message.credit_report_fees = object.credit_report_fees ?? 0;
586
+ message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
587
+ message.plan_id = object.plan_id ?? 0;
588
+ return message;
589
+ },
590
+ };
591
+ function isSet(value) {
592
+ return value !== null && value !== undefined;
593
+ }
@@ -0,0 +1,38 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.paymentallocation";
3
+ export interface paymentAllocationRequest {
4
+ payment_id: number;
5
+ amount: number;
6
+ mode: string;
7
+ customerid: number;
8
+ }
9
+ export interface paymentAllocationResponse {
10
+ message: string;
11
+ }
12
+ export declare const paymentAllocationRequest: {
13
+ encode(message: paymentAllocationRequest, writer?: _m0.Writer): _m0.Writer;
14
+ decode(input: _m0.Reader | Uint8Array, length?: number): paymentAllocationRequest;
15
+ fromJSON(object: any): paymentAllocationRequest;
16
+ toJSON(message: paymentAllocationRequest): unknown;
17
+ create<I extends Exact<DeepPartial<paymentAllocationRequest>, I>>(base?: I): paymentAllocationRequest;
18
+ fromPartial<I extends Exact<DeepPartial<paymentAllocationRequest>, I>>(object: I): paymentAllocationRequest;
19
+ };
20
+ export declare const paymentAllocationResponse: {
21
+ encode(message: paymentAllocationResponse, writer?: _m0.Writer): _m0.Writer;
22
+ decode(input: _m0.Reader | Uint8Array, length?: number): paymentAllocationResponse;
23
+ fromJSON(object: any): paymentAllocationResponse;
24
+ toJSON(message: paymentAllocationResponse): unknown;
25
+ create<I extends Exact<DeepPartial<paymentAllocationResponse>, I>>(base?: I): paymentAllocationResponse;
26
+ fromPartial<I extends Exact<DeepPartial<paymentAllocationResponse>, I>>(object: I): paymentAllocationResponse;
27
+ };
28
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
29
+ 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 {} ? {
30
+ [K in keyof T]?: DeepPartial<T[K]>;
31
+ } : Partial<T>;
32
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
33
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
34
+ [K in keyof P]: Exact<P[K], I[K]>;
35
+ } & {
36
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
37
+ };
38
+ export {};