@stashfin/grpc 1.2.54 → 1.2.59

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 (216) hide show
  1. package/package.json +3 -3
  2. package/ts/customers/addaddress.d.ts +50 -0
  3. package/ts/customers/addaddress.js +265 -0
  4. package/ts/customers/addbankaccountdetails.d.ts +37 -0
  5. package/ts/customers/addbankaccountdetails.js +147 -0
  6. package/ts/customers/createcustomerreference.d.ts +43 -0
  7. package/ts/customers/createcustomerreference.js +226 -0
  8. package/ts/customers/forgotmpin.d.ts +36 -0
  9. package/ts/customers/forgotmpin.js +133 -0
  10. package/ts/customers/forgotmpinotp.d.ts +34 -0
  11. package/ts/customers/forgotmpinotp.js +104 -0
  12. package/ts/customers/getbankaccountdetails.d.ts +36 -0
  13. package/ts/customers/getbankaccountdetails.js +134 -0
  14. package/ts/customers/getbasicinfo.d.ts +56 -0
  15. package/ts/customers/getbasicinfo.js +323 -0
  16. package/ts/customers/getcities.d.ts +47 -0
  17. package/ts/customers/getcities.js +183 -0
  18. package/ts/customers/getcustomerbyid.d.ts +55 -0
  19. package/ts/customers/getcustomerbyid.js +421 -0
  20. package/ts/customers/getdashboard.d.ts +91 -0
  21. package/ts/customers/getdashboard.js +618 -0
  22. package/ts/customers/getdashboardmaincard.d.ts +69 -0
  23. package/ts/customers/getdashboardmaincard.js +520 -0
  24. package/ts/customers/getkycweburl.d.ts +34 -0
  25. package/ts/customers/getkycweburl.js +104 -0
  26. package/ts/customers/getprofessionalinfo.d.ts +54 -0
  27. package/ts/customers/getprofessionalinfo.js +286 -0
  28. package/ts/customers/getprofile.d.ts +53 -0
  29. package/ts/customers/getprofile.js +282 -0
  30. package/ts/customers/getstates.d.ts +46 -0
  31. package/ts/customers/getstates.js +170 -0
  32. package/ts/customers/getstep.d.ts +69 -0
  33. package/ts/customers/getstep.js +406 -0
  34. package/ts/customers/profilebasic.d.ts +38 -0
  35. package/ts/customers/profilebasic.js +161 -0
  36. package/ts/customers/profileupdatetnc.d.ts +35 -0
  37. package/ts/customers/profileupdatetnc.js +117 -0
  38. package/ts/customers/resetmpin.d.ts +36 -0
  39. package/ts/customers/resetmpin.js +133 -0
  40. package/ts/customers/savebasicdetails.d.ts +47 -0
  41. package/ts/customers/savebasicdetails.js +185 -0
  42. package/ts/customers/saveunlocklimit.d.ts +34 -0
  43. package/ts/customers/saveunlocklimit.js +104 -0
  44. package/ts/customers/sendemailtoken.d.ts +35 -0
  45. package/ts/customers/sendemailtoken.js +117 -0
  46. package/ts/customers/sendotp.d.ts +38 -0
  47. package/ts/customers/sendotp.js +165 -0
  48. package/ts/customers/setmpin.d.ts +36 -0
  49. package/ts/customers/setmpin.js +133 -0
  50. package/ts/customers/step1.d.ts +71 -0
  51. package/ts/customers/step1.js +423 -0
  52. package/ts/customers/step10.d.ts +73 -0
  53. package/ts/customers/step10.js +459 -0
  54. package/ts/customers/step2.d.ts +67 -0
  55. package/ts/customers/step2.js +366 -0
  56. package/ts/customers/step7.d.ts +68 -0
  57. package/ts/customers/step7.js +381 -0
  58. package/ts/customers/step8.d.ts +69 -0
  59. package/ts/customers/step8.js +395 -0
  60. package/ts/customers/step9.d.ts +75 -0
  61. package/ts/customers/step9.js +489 -0
  62. package/ts/customers/stepstatic.d.ts +66 -0
  63. package/ts/customers/stepstatic.js +354 -0
  64. package/ts/customers/updatedigilockertxn.d.ts +37 -0
  65. package/ts/customers/updatedigilockertxn.js +147 -0
  66. package/ts/customers/updatedob.d.ts +35 -0
  67. package/ts/customers/updatedob.js +117 -0
  68. package/ts/customers/updatehypervergetxn.d.ts +36 -0
  69. package/ts/customers/updatehypervergetxn.js +133 -0
  70. package/ts/customers/validatepan.d.ts +45 -0
  71. package/ts/customers/validatepan.js +274 -0
  72. package/ts/customers/verifyemail.d.ts +35 -0
  73. package/ts/customers/verifyemail.js +117 -0
  74. package/ts/customers/verifympin.d.ts +37 -0
  75. package/ts/customers/verifympin.js +149 -0
  76. package/ts/customers/verifyotp.d.ts +41 -0
  77. package/ts/customers/verifyotp.js +205 -0
  78. package/ts/customers.d.ts +596 -0
  79. package/ts/customers.js +428 -0
  80. package/ts/example.d.ts +78 -0
  81. package/ts/example.js +199 -0
  82. package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
  83. package/ts/google/protobuf/timestamp.js +97 -0
  84. package/ts/loans/approveloan.d.ts +39 -0
  85. package/ts/loans/approveloan.js +175 -0
  86. package/ts/loans/banklist.d.ts +37 -0
  87. package/ts/loans/banklist.js +148 -0
  88. package/ts/loans/calculateemi.d.ts +51 -0
  89. package/ts/loans/calculateemi.js +243 -0
  90. package/ts/loans/creditlimit.d.ts +43 -0
  91. package/ts/loans/creditlimit.js +247 -0
  92. package/ts/loans/restructureloan.d.ts +36 -0
  93. package/ts/loans/restructureloan.js +133 -0
  94. package/ts/loans/transactionlist.d.ts +50 -0
  95. package/ts/loans/transactionlist.js +229 -0
  96. package/ts/loans/updateinstallments.d.ts +42 -0
  97. package/ts/loans/updateinstallments.js +226 -0
  98. package/ts/loans/updateloan.d.ts +39 -0
  99. package/ts/loans/updateloan.js +175 -0
  100. package/ts/loans.d.ts +126 -0
  101. package/ts/loans.js +94 -0
  102. package/ts/stashcash/creditsc.d.ts +54 -0
  103. package/ts/stashcash/creditsc.js +301 -0
  104. package/ts/stashcash/debitsc.d.ts +59 -0
  105. package/ts/stashcash/debitsc.js +380 -0
  106. package/ts/stashcash/getscbalance.d.ts +53 -0
  107. package/ts/stashcash/getscbalance.js +293 -0
  108. package/ts/stashcash/getschistory.d.ts +73 -0
  109. package/ts/stashcash/getschistory.js +479 -0
  110. package/ts/stashcash/reversesc.d.ts +52 -0
  111. package/ts/stashcash/reversesc.js +273 -0
  112. package/ts/stashcash.d.ts +84 -0
  113. package/ts/stashcash.js +64 -0
  114. package/README.md +0 -74
  115. package/src/proto/customers/addaddress.proto +0 -25
  116. package/src/proto/customers/addbankaccountdetails.proto +0 -13
  117. package/src/proto/customers/createcustomerreference.proto +0 -21
  118. package/src/proto/customers/forgotmpin.proto +0 -12
  119. package/src/proto/customers/forgotmpinotp.proto +0 -10
  120. package/src/proto/customers/getbankaccountdetails.proto +0 -11
  121. package/src/proto/customers/getbasicinfo.proto +0 -24
  122. package/src/proto/customers/getcities.proto +0 -16
  123. package/src/proto/customers/getcustomerbyid.proto +0 -31
  124. package/src/proto/customers/getdashboard.proto +0 -47
  125. package/src/proto/customers/getdashboardmaincard.proto +0 -37
  126. package/src/proto/customers/getkycweburl.proto +0 -10
  127. package/src/proto/customers/getprofessionalinfo.proto +0 -22
  128. package/src/proto/customers/getprofile.proto +0 -22
  129. package/src/proto/customers/getstates.proto +0 -15
  130. package/src/proto/customers/getstep.proto +0 -30
  131. package/src/proto/customers/profilebasic.proto +0 -14
  132. package/src/proto/customers/profileupdatetnc.proto +0 -11
  133. package/src/proto/customers/resetmpin.proto +0 -13
  134. package/src/proto/customers/savebasicdetails.proto +0 -16
  135. package/src/proto/customers/saveunlocklimit.proto +0 -10
  136. package/src/proto/customers/sendemailtoken.proto +0 -11
  137. package/src/proto/customers/sendotp.proto +0 -14
  138. package/src/proto/customers/setmpin.proto +0 -12
  139. package/src/proto/customers/step10.proto +0 -34
  140. package/src/proto/customers/step7.proto +0 -29
  141. package/src/proto/customers/step8.proto +0 -30
  142. package/src/proto/customers/step9.proto +0 -36
  143. package/src/proto/customers/stepstatic.proto +0 -27
  144. package/src/proto/customers/updatedigilockertxn.proto +0 -13
  145. package/src/proto/customers/updatedob.proto +0 -13
  146. package/src/proto/customers/updatehypervergetxn.proto +0 -12
  147. package/src/proto/customers/verifyemail.proto +0 -11
  148. package/src/proto/customers/verifympin.proto +0 -13
  149. package/src/proto/customers/verifyotp.proto +0 -17
  150. package/src/proto/customers.proto +0 -83
  151. package/src/proto/example.proto +0 -20
  152. package/src/proto/loans/approveloan.proto +0 -15
  153. package/src/proto/loans/banklist.proto +0 -12
  154. package/src/proto/loans/calculateemi.proto +0 -20
  155. package/src/proto/loans/creditlimit.proto +0 -18
  156. package/src/proto/loans/restructureloan.proto +0 -12
  157. package/src/proto/loans/transactionlist.proto +0 -18
  158. package/src/proto/loans/updateinstallments.proto +0 -19
  159. package/src/proto/loans/updateloan.proto +0 -15
  160. package/src/proto/loans.proto +0 -23
  161. package/src/proto/stashcash/creditsc.proto +0 -22
  162. package/src/proto/stashcash/debitsc.proto +0 -27
  163. package/src/proto/stashcash/getscbalance.proto +0 -21
  164. package/src/proto/stashcash/getschistory.proto +0 -35
  165. package/src/proto/stashcash/reversesc.proto +0 -20
  166. package/src/proto/stashcash.proto +0 -17
  167. package/src/ts/customers/addaddress.ts +0 -310
  168. package/src/ts/customers/addbankaccountdetails.ts +0 -184
  169. package/src/ts/customers/createcustomerreference.ts +0 -276
  170. package/src/ts/customers/getbankaccountdetails.ts +0 -169
  171. package/src/ts/customers/getbasicinfo.ts +0 -385
  172. package/src/ts/customers/getcities.ts +0 -227
  173. package/src/ts/customers/getcustomerbyid.ts +0 -492
  174. package/src/ts/customers/getdashboard.ts +0 -728
  175. package/src/ts/customers/getdashboardmaincard.ts +0 -608
  176. package/src/ts/customers/getkycweburl.ts +0 -133
  177. package/src/ts/customers/getprofessionalinfo.ts +0 -344
  178. package/src/ts/customers/getprofile.ts +0 -338
  179. package/src/ts/customers/getstates.ts +0 -212
  180. package/src/ts/customers/getstep.ts +0 -483
  181. package/src/ts/customers/profilebasic.ts +0 -198
  182. package/src/ts/customers/profileupdatetnc.ts +0 -148
  183. package/src/ts/customers/resetmpin.ts +0 -166
  184. package/src/ts/customers/savebasicdetails.ts +0 -229
  185. package/src/ts/customers/saveunlocklimit.ts +0 -133
  186. package/src/ts/customers/sendemailtoken.ts +0 -148
  187. package/src/ts/customers/sendotp.ts +0 -202
  188. package/src/ts/customers/setmpin.ts +0 -166
  189. package/src/ts/customers/step10.ts +0 -544
  190. package/src/ts/customers/step7.ts +0 -456
  191. package/src/ts/customers/step8.ts +0 -472
  192. package/src/ts/customers/step9.ts +0 -578
  193. package/src/ts/customers/stepstatic.ts +0 -425
  194. package/src/ts/customers/updatedigilockertxn.ts +0 -182
  195. package/src/ts/customers/updatehypervergetxn.ts +0 -166
  196. package/src/ts/customers/verifyemail.ts +0 -148
  197. package/src/ts/customers/verifympin.ts +0 -184
  198. package/src/ts/customers/verifyotp.ts +0 -232
  199. package/src/ts/customers.ts +0 -1038
  200. package/src/ts/example.ts +0 -294
  201. package/src/ts/loans/approveloan.ts +0 -214
  202. package/src/ts/loans/banklist.ts +0 -183
  203. package/src/ts/loans/calculateemi.ts +0 -295
  204. package/src/ts/loans/creditlimit.ts +0 -294
  205. package/src/ts/loans/restructureloan.ts +0 -166
  206. package/src/ts/loans/transactionlist.ts +0 -281
  207. package/src/ts/loans/updateinstallments.ts +0 -271
  208. package/src/ts/loans/updateloan.ts +0 -214
  209. package/src/ts/loans.ts +0 -221
  210. package/src/ts/stashcash/creditsc.ts +0 -361
  211. package/src/ts/stashcash/debitsc.ts +0 -450
  212. package/src/ts/stashcash/getscbalance.ts +0 -351
  213. package/src/ts/stashcash/getschistory.ts +0 -566
  214. package/src/ts/stashcash/reversesc.ts +0 -329
  215. package/src/ts/stashcash.ts +0 -152
  216. package/tsconfig.json +0 -18
@@ -1,166 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v1.181.0
4
- // protoc v3.20.3
5
- // source: loans/restructureloan.proto
6
-
7
- /* eslint-disable */
8
- import _m0 from "protobufjs/minimal";
9
-
10
- export const protobufPackage = "loans.restructureloan";
11
-
12
- export interface restructureLoanRequest {
13
- loan_id: number;
14
- tenure: number;
15
- }
16
-
17
- export interface restructureLoanResponse {
18
- id: number;
19
- }
20
-
21
- function createBaserestructureLoanRequest(): restructureLoanRequest {
22
- return { loan_id: 0, tenure: 0 };
23
- }
24
-
25
- export const restructureLoanRequest = {
26
- encode(message: restructureLoanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
27
- if (message.loan_id !== 0) {
28
- writer.uint32(8).int32(message.loan_id);
29
- }
30
- if (message.tenure !== 0) {
31
- writer.uint32(16).int32(message.tenure);
32
- }
33
- return writer;
34
- },
35
-
36
- decode(input: _m0.Reader | Uint8Array, length?: number): restructureLoanRequest {
37
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38
- let end = length === undefined ? reader.len : reader.pos + length;
39
- const message = createBaserestructureLoanRequest();
40
- while (reader.pos < end) {
41
- const tag = reader.uint32();
42
- switch (tag >>> 3) {
43
- case 1:
44
- if (tag !== 8) {
45
- break;
46
- }
47
-
48
- message.loan_id = reader.int32();
49
- continue;
50
- case 2:
51
- if (tag !== 16) {
52
- break;
53
- }
54
-
55
- message.tenure = reader.int32();
56
- continue;
57
- }
58
- if ((tag & 7) === 4 || tag === 0) {
59
- break;
60
- }
61
- reader.skipType(tag & 7);
62
- }
63
- return message;
64
- },
65
-
66
- fromJSON(object: any): restructureLoanRequest {
67
- return {
68
- loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
69
- tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
70
- };
71
- },
72
-
73
- toJSON(message: restructureLoanRequest): unknown {
74
- const obj: any = {};
75
- if (message.loan_id !== 0) {
76
- obj.loan_id = Math.round(message.loan_id);
77
- }
78
- if (message.tenure !== 0) {
79
- obj.tenure = Math.round(message.tenure);
80
- }
81
- return obj;
82
- },
83
-
84
- create<I extends Exact<DeepPartial<restructureLoanRequest>, I>>(base?: I): restructureLoanRequest {
85
- return restructureLoanRequest.fromPartial(base ?? ({} as any));
86
- },
87
- fromPartial<I extends Exact<DeepPartial<restructureLoanRequest>, I>>(object: I): restructureLoanRequest {
88
- const message = createBaserestructureLoanRequest();
89
- message.loan_id = object.loan_id ?? 0;
90
- message.tenure = object.tenure ?? 0;
91
- return message;
92
- },
93
- };
94
-
95
- function createBaserestructureLoanResponse(): restructureLoanResponse {
96
- return { id: 0 };
97
- }
98
-
99
- export const restructureLoanResponse = {
100
- encode(message: restructureLoanResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
101
- if (message.id !== 0) {
102
- writer.uint32(8).int32(message.id);
103
- }
104
- return writer;
105
- },
106
-
107
- decode(input: _m0.Reader | Uint8Array, length?: number): restructureLoanResponse {
108
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
109
- let end = length === undefined ? reader.len : reader.pos + length;
110
- const message = createBaserestructureLoanResponse();
111
- while (reader.pos < end) {
112
- const tag = reader.uint32();
113
- switch (tag >>> 3) {
114
- case 1:
115
- if (tag !== 8) {
116
- break;
117
- }
118
-
119
- message.id = reader.int32();
120
- continue;
121
- }
122
- if ((tag & 7) === 4 || tag === 0) {
123
- break;
124
- }
125
- reader.skipType(tag & 7);
126
- }
127
- return message;
128
- },
129
-
130
- fromJSON(object: any): restructureLoanResponse {
131
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
132
- },
133
-
134
- toJSON(message: restructureLoanResponse): unknown {
135
- const obj: any = {};
136
- if (message.id !== 0) {
137
- obj.id = Math.round(message.id);
138
- }
139
- return obj;
140
- },
141
-
142
- create<I extends Exact<DeepPartial<restructureLoanResponse>, I>>(base?: I): restructureLoanResponse {
143
- return restructureLoanResponse.fromPartial(base ?? ({} as any));
144
- },
145
- fromPartial<I extends Exact<DeepPartial<restructureLoanResponse>, I>>(object: I): restructureLoanResponse {
146
- const message = createBaserestructureLoanResponse();
147
- message.id = object.id ?? 0;
148
- return message;
149
- },
150
- };
151
-
152
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
153
-
154
- export type DeepPartial<T> = T extends Builtin ? T
155
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
156
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
157
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
158
- : Partial<T>;
159
-
160
- type KeysOfUnion<T> = T extends T ? keyof T : never;
161
- export type Exact<P, I extends P> = P extends Builtin ? P
162
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
163
-
164
- function isSet(value: any): boolean {
165
- return value !== null && value !== undefined;
166
- }
@@ -1,281 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v1.181.0
4
- // protoc v3.20.3
5
- // source: loans/transactionlist.proto
6
-
7
- /* eslint-disable */
8
- import _m0 from "protobufjs/minimal";
9
-
10
- export const protobufPackage = "loans.transactionlist";
11
-
12
- export interface transactionListRequest {
13
- filter_by: string;
14
- }
15
-
16
- export interface transactionListResponse {
17
- data: transactionListResponse_Field[];
18
- }
19
-
20
- export interface transactionListResponse_Field {
21
- id: number;
22
- loan_amount: number;
23
- emi_amount: number;
24
- start_date: string;
25
- close_date: string;
26
- }
27
-
28
- function createBasetransactionListRequest(): transactionListRequest {
29
- return { filter_by: "" };
30
- }
31
-
32
- export const transactionListRequest = {
33
- encode(message: transactionListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
34
- if (message.filter_by !== "") {
35
- writer.uint32(10).string(message.filter_by);
36
- }
37
- return writer;
38
- },
39
-
40
- decode(input: _m0.Reader | Uint8Array, length?: number): transactionListRequest {
41
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
42
- let end = length === undefined ? reader.len : reader.pos + length;
43
- const message = createBasetransactionListRequest();
44
- while (reader.pos < end) {
45
- const tag = reader.uint32();
46
- switch (tag >>> 3) {
47
- case 1:
48
- if (tag !== 10) {
49
- break;
50
- }
51
-
52
- message.filter_by = reader.string();
53
- continue;
54
- }
55
- if ((tag & 7) === 4 || tag === 0) {
56
- break;
57
- }
58
- reader.skipType(tag & 7);
59
- }
60
- return message;
61
- },
62
-
63
- fromJSON(object: any): transactionListRequest {
64
- return { filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : "" };
65
- },
66
-
67
- toJSON(message: transactionListRequest): unknown {
68
- const obj: any = {};
69
- if (message.filter_by !== "") {
70
- obj.filter_by = message.filter_by;
71
- }
72
- return obj;
73
- },
74
-
75
- create<I extends Exact<DeepPartial<transactionListRequest>, I>>(base?: I): transactionListRequest {
76
- return transactionListRequest.fromPartial(base ?? ({} as any));
77
- },
78
- fromPartial<I extends Exact<DeepPartial<transactionListRequest>, I>>(object: I): transactionListRequest {
79
- const message = createBasetransactionListRequest();
80
- message.filter_by = object.filter_by ?? "";
81
- return message;
82
- },
83
- };
84
-
85
- function createBasetransactionListResponse(): transactionListResponse {
86
- return { data: [] };
87
- }
88
-
89
- export const transactionListResponse = {
90
- encode(message: transactionListResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
91
- for (const v of message.data) {
92
- transactionListResponse_Field.encode(v!, writer.uint32(10).fork()).ldelim();
93
- }
94
- return writer;
95
- },
96
-
97
- decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse {
98
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
99
- let end = length === undefined ? reader.len : reader.pos + length;
100
- const message = createBasetransactionListResponse();
101
- while (reader.pos < end) {
102
- const tag = reader.uint32();
103
- switch (tag >>> 3) {
104
- case 1:
105
- if (tag !== 10) {
106
- break;
107
- }
108
-
109
- message.data.push(transactionListResponse_Field.decode(reader, reader.uint32()));
110
- continue;
111
- }
112
- if ((tag & 7) === 4 || tag === 0) {
113
- break;
114
- }
115
- reader.skipType(tag & 7);
116
- }
117
- return message;
118
- },
119
-
120
- fromJSON(object: any): transactionListResponse {
121
- return {
122
- data: globalThis.Array.isArray(object?.data)
123
- ? object.data.map((e: any) => transactionListResponse_Field.fromJSON(e))
124
- : [],
125
- };
126
- },
127
-
128
- toJSON(message: transactionListResponse): unknown {
129
- const obj: any = {};
130
- if (message.data?.length) {
131
- obj.data = message.data.map((e) => transactionListResponse_Field.toJSON(e));
132
- }
133
- return obj;
134
- },
135
-
136
- create<I extends Exact<DeepPartial<transactionListResponse>, I>>(base?: I): transactionListResponse {
137
- return transactionListResponse.fromPartial(base ?? ({} as any));
138
- },
139
- fromPartial<I extends Exact<DeepPartial<transactionListResponse>, I>>(object: I): transactionListResponse {
140
- const message = createBasetransactionListResponse();
141
- message.data = object.data?.map((e) => transactionListResponse_Field.fromPartial(e)) || [];
142
- return message;
143
- },
144
- };
145
-
146
- function createBasetransactionListResponse_Field(): transactionListResponse_Field {
147
- return { id: 0, loan_amount: 0, emi_amount: 0, start_date: "", close_date: "" };
148
- }
149
-
150
- export const transactionListResponse_Field = {
151
- encode(message: transactionListResponse_Field, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
152
- if (message.id !== 0) {
153
- writer.uint32(8).int32(message.id);
154
- }
155
- if (message.loan_amount !== 0) {
156
- writer.uint32(16).int32(message.loan_amount);
157
- }
158
- if (message.emi_amount !== 0) {
159
- writer.uint32(24).int32(message.emi_amount);
160
- }
161
- if (message.start_date !== "") {
162
- writer.uint32(34).string(message.start_date);
163
- }
164
- if (message.close_date !== "") {
165
- writer.uint32(42).string(message.close_date);
166
- }
167
- return writer;
168
- },
169
-
170
- decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse_Field {
171
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
172
- let end = length === undefined ? reader.len : reader.pos + length;
173
- const message = createBasetransactionListResponse_Field();
174
- while (reader.pos < end) {
175
- const tag = reader.uint32();
176
- switch (tag >>> 3) {
177
- case 1:
178
- if (tag !== 8) {
179
- break;
180
- }
181
-
182
- message.id = reader.int32();
183
- continue;
184
- case 2:
185
- if (tag !== 16) {
186
- break;
187
- }
188
-
189
- message.loan_amount = reader.int32();
190
- continue;
191
- case 3:
192
- if (tag !== 24) {
193
- break;
194
- }
195
-
196
- message.emi_amount = reader.int32();
197
- continue;
198
- case 4:
199
- if (tag !== 34) {
200
- break;
201
- }
202
-
203
- message.start_date = reader.string();
204
- continue;
205
- case 5:
206
- if (tag !== 42) {
207
- break;
208
- }
209
-
210
- message.close_date = reader.string();
211
- continue;
212
- }
213
- if ((tag & 7) === 4 || tag === 0) {
214
- break;
215
- }
216
- reader.skipType(tag & 7);
217
- }
218
- return message;
219
- },
220
-
221
- fromJSON(object: any): transactionListResponse_Field {
222
- return {
223
- id: isSet(object.id) ? globalThis.Number(object.id) : 0,
224
- loan_amount: isSet(object.loan_amount) ? globalThis.Number(object.loan_amount) : 0,
225
- emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
226
- start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : "",
227
- close_date: isSet(object.close_date) ? globalThis.String(object.close_date) : "",
228
- };
229
- },
230
-
231
- toJSON(message: transactionListResponse_Field): unknown {
232
- const obj: any = {};
233
- if (message.id !== 0) {
234
- obj.id = Math.round(message.id);
235
- }
236
- if (message.loan_amount !== 0) {
237
- obj.loan_amount = Math.round(message.loan_amount);
238
- }
239
- if (message.emi_amount !== 0) {
240
- obj.emi_amount = Math.round(message.emi_amount);
241
- }
242
- if (message.start_date !== "") {
243
- obj.start_date = message.start_date;
244
- }
245
- if (message.close_date !== "") {
246
- obj.close_date = message.close_date;
247
- }
248
- return obj;
249
- },
250
-
251
- create<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(base?: I): transactionListResponse_Field {
252
- return transactionListResponse_Field.fromPartial(base ?? ({} as any));
253
- },
254
- fromPartial<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(
255
- object: I,
256
- ): transactionListResponse_Field {
257
- const message = createBasetransactionListResponse_Field();
258
- message.id = object.id ?? 0;
259
- message.loan_amount = object.loan_amount ?? 0;
260
- message.emi_amount = object.emi_amount ?? 0;
261
- message.start_date = object.start_date ?? "";
262
- message.close_date = object.close_date ?? "";
263
- return message;
264
- },
265
- };
266
-
267
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
268
-
269
- export type DeepPartial<T> = T extends Builtin ? T
270
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
271
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
272
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
273
- : Partial<T>;
274
-
275
- type KeysOfUnion<T> = T extends T ? keyof T : never;
276
- export type Exact<P, I extends P> = P extends Builtin ? P
277
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
278
-
279
- function isSet(value: any): boolean {
280
- return value !== null && value !== undefined;
281
- }
@@ -1,271 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v1.181.0
4
- // protoc v3.20.3
5
- // source: loans/updateinstallments.proto
6
-
7
- /* eslint-disable */
8
- import _m0 from "protobufjs/minimal";
9
-
10
- export const protobufPackage = "loans.updateinstallments";
11
-
12
- export interface updateInstallmentsRequest {
13
- installment_id: number;
14
- principal: number;
15
- interest: number;
16
- penalty: number;
17
- r_pif_principal: number;
18
- r_pif_interest: number;
19
- r_pif_penalty: number;
20
- amount: number;
21
- }
22
-
23
- export interface updateInstallmentsResponse {
24
- id: number;
25
- }
26
-
27
- function createBaseupdateInstallmentsRequest(): updateInstallmentsRequest {
28
- return {
29
- installment_id: 0,
30
- principal: 0,
31
- interest: 0,
32
- penalty: 0,
33
- r_pif_principal: 0,
34
- r_pif_interest: 0,
35
- r_pif_penalty: 0,
36
- amount: 0,
37
- };
38
- }
39
-
40
- export const updateInstallmentsRequest = {
41
- encode(message: updateInstallmentsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
42
- if (message.installment_id !== 0) {
43
- writer.uint32(8).int32(message.installment_id);
44
- }
45
- if (message.principal !== 0) {
46
- writer.uint32(16).int32(message.principal);
47
- }
48
- if (message.interest !== 0) {
49
- writer.uint32(24).int32(message.interest);
50
- }
51
- if (message.penalty !== 0) {
52
- writer.uint32(32).int32(message.penalty);
53
- }
54
- if (message.r_pif_principal !== 0) {
55
- writer.uint32(40).int32(message.r_pif_principal);
56
- }
57
- if (message.r_pif_interest !== 0) {
58
- writer.uint32(48).int32(message.r_pif_interest);
59
- }
60
- if (message.r_pif_penalty !== 0) {
61
- writer.uint32(56).int32(message.r_pif_penalty);
62
- }
63
- if (message.amount !== 0) {
64
- writer.uint32(64).int32(message.amount);
65
- }
66
- return writer;
67
- },
68
-
69
- decode(input: _m0.Reader | Uint8Array, length?: number): updateInstallmentsRequest {
70
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
71
- let end = length === undefined ? reader.len : reader.pos + length;
72
- const message = createBaseupdateInstallmentsRequest();
73
- while (reader.pos < end) {
74
- const tag = reader.uint32();
75
- switch (tag >>> 3) {
76
- case 1:
77
- if (tag !== 8) {
78
- break;
79
- }
80
-
81
- message.installment_id = reader.int32();
82
- continue;
83
- case 2:
84
- if (tag !== 16) {
85
- break;
86
- }
87
-
88
- message.principal = reader.int32();
89
- continue;
90
- case 3:
91
- if (tag !== 24) {
92
- break;
93
- }
94
-
95
- message.interest = reader.int32();
96
- continue;
97
- case 4:
98
- if (tag !== 32) {
99
- break;
100
- }
101
-
102
- message.penalty = reader.int32();
103
- continue;
104
- case 5:
105
- if (tag !== 40) {
106
- break;
107
- }
108
-
109
- message.r_pif_principal = reader.int32();
110
- continue;
111
- case 6:
112
- if (tag !== 48) {
113
- break;
114
- }
115
-
116
- message.r_pif_interest = reader.int32();
117
- continue;
118
- case 7:
119
- if (tag !== 56) {
120
- break;
121
- }
122
-
123
- message.r_pif_penalty = reader.int32();
124
- continue;
125
- case 8:
126
- if (tag !== 64) {
127
- break;
128
- }
129
-
130
- message.amount = reader.int32();
131
- continue;
132
- }
133
- if ((tag & 7) === 4 || tag === 0) {
134
- break;
135
- }
136
- reader.skipType(tag & 7);
137
- }
138
- return message;
139
- },
140
-
141
- fromJSON(object: any): updateInstallmentsRequest {
142
- return {
143
- installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
144
- principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
145
- interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
146
- penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
147
- r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
148
- r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
149
- r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
150
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
151
- };
152
- },
153
-
154
- toJSON(message: updateInstallmentsRequest): unknown {
155
- const obj: any = {};
156
- if (message.installment_id !== 0) {
157
- obj.installment_id = Math.round(message.installment_id);
158
- }
159
- if (message.principal !== 0) {
160
- obj.principal = Math.round(message.principal);
161
- }
162
- if (message.interest !== 0) {
163
- obj.interest = Math.round(message.interest);
164
- }
165
- if (message.penalty !== 0) {
166
- obj.penalty = Math.round(message.penalty);
167
- }
168
- if (message.r_pif_principal !== 0) {
169
- obj.r_pif_principal = Math.round(message.r_pif_principal);
170
- }
171
- if (message.r_pif_interest !== 0) {
172
- obj.r_pif_interest = Math.round(message.r_pif_interest);
173
- }
174
- if (message.r_pif_penalty !== 0) {
175
- obj.r_pif_penalty = Math.round(message.r_pif_penalty);
176
- }
177
- if (message.amount !== 0) {
178
- obj.amount = Math.round(message.amount);
179
- }
180
- return obj;
181
- },
182
-
183
- create<I extends Exact<DeepPartial<updateInstallmentsRequest>, I>>(base?: I): updateInstallmentsRequest {
184
- return updateInstallmentsRequest.fromPartial(base ?? ({} as any));
185
- },
186
- fromPartial<I extends Exact<DeepPartial<updateInstallmentsRequest>, I>>(object: I): updateInstallmentsRequest {
187
- const message = createBaseupdateInstallmentsRequest();
188
- message.installment_id = object.installment_id ?? 0;
189
- message.principal = object.principal ?? 0;
190
- message.interest = object.interest ?? 0;
191
- message.penalty = object.penalty ?? 0;
192
- message.r_pif_principal = object.r_pif_principal ?? 0;
193
- message.r_pif_interest = object.r_pif_interest ?? 0;
194
- message.r_pif_penalty = object.r_pif_penalty ?? 0;
195
- message.amount = object.amount ?? 0;
196
- return message;
197
- },
198
- };
199
-
200
- function createBaseupdateInstallmentsResponse(): updateInstallmentsResponse {
201
- return { id: 0 };
202
- }
203
-
204
- export const updateInstallmentsResponse = {
205
- encode(message: updateInstallmentsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
206
- if (message.id !== 0) {
207
- writer.uint32(8).int32(message.id);
208
- }
209
- return writer;
210
- },
211
-
212
- decode(input: _m0.Reader | Uint8Array, length?: number): updateInstallmentsResponse {
213
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
214
- let end = length === undefined ? reader.len : reader.pos + length;
215
- const message = createBaseupdateInstallmentsResponse();
216
- while (reader.pos < end) {
217
- const tag = reader.uint32();
218
- switch (tag >>> 3) {
219
- case 1:
220
- if (tag !== 8) {
221
- break;
222
- }
223
-
224
- message.id = reader.int32();
225
- continue;
226
- }
227
- if ((tag & 7) === 4 || tag === 0) {
228
- break;
229
- }
230
- reader.skipType(tag & 7);
231
- }
232
- return message;
233
- },
234
-
235
- fromJSON(object: any): updateInstallmentsResponse {
236
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
237
- },
238
-
239
- toJSON(message: updateInstallmentsResponse): unknown {
240
- const obj: any = {};
241
- if (message.id !== 0) {
242
- obj.id = Math.round(message.id);
243
- }
244
- return obj;
245
- },
246
-
247
- create<I extends Exact<DeepPartial<updateInstallmentsResponse>, I>>(base?: I): updateInstallmentsResponse {
248
- return updateInstallmentsResponse.fromPartial(base ?? ({} as any));
249
- },
250
- fromPartial<I extends Exact<DeepPartial<updateInstallmentsResponse>, I>>(object: I): updateInstallmentsResponse {
251
- const message = createBaseupdateInstallmentsResponse();
252
- message.id = object.id ?? 0;
253
- return message;
254
- },
255
- };
256
-
257
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
258
-
259
- export type DeepPartial<T> = T extends Builtin ? T
260
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
261
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
262
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
263
- : Partial<T>;
264
-
265
- type KeysOfUnion<T> = T extends T ? keyof T : never;
266
- export type Exact<P, I extends P> = P extends Builtin ? P
267
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
268
-
269
- function isSet(value: any): boolean {
270
- return value !== null && value !== undefined;
271
- }