@stashfin/grpc 1.2.625 → 1.2.627

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.
@@ -134,19 +134,19 @@ function createBaseGetLocTenureResponse() {
134
134
  bill_date: "",
135
135
  min_tenure: 0,
136
136
  max_tenure: 0,
137
- msg: "",
137
+ msg: undefined,
138
138
  first_emi_date: "",
139
- fcp_fee: "",
139
+ fcp_fee: 0,
140
140
  fcp_interest: 0,
141
141
  tenure_details: [],
142
142
  is_fip: false,
143
- amount_grossup: 0,
143
+ amount_grossup: "",
144
144
  };
145
145
  }
146
146
  exports.GetLocTenureResponse = {
147
147
  encode(message, writer = minimal_1.default.Writer.create()) {
148
148
  if (message.amount !== 0) {
149
- writer.uint32(9).double(message.amount);
149
+ writer.uint32(8).int32(message.amount);
150
150
  }
151
151
  if (message.bill_date !== "") {
152
152
  writer.uint32(18).string(message.bill_date);
@@ -157,17 +157,17 @@ exports.GetLocTenureResponse = {
157
157
  if (message.max_tenure !== 0) {
158
158
  writer.uint32(32).int32(message.max_tenure);
159
159
  }
160
- if (message.msg !== "") {
160
+ if (message.msg !== undefined) {
161
161
  writer.uint32(42).string(message.msg);
162
162
  }
163
163
  if (message.first_emi_date !== "") {
164
164
  writer.uint32(50).string(message.first_emi_date);
165
165
  }
166
- if (message.fcp_fee !== "") {
167
- writer.uint32(58).string(message.fcp_fee);
166
+ if (message.fcp_fee !== 0) {
167
+ writer.uint32(56).int32(message.fcp_fee);
168
168
  }
169
169
  if (message.fcp_interest !== 0) {
170
- writer.uint32(65).double(message.fcp_interest);
170
+ writer.uint32(64).int32(message.fcp_interest);
171
171
  }
172
172
  for (const v of message.tenure_details) {
173
173
  exports.TenureDetail.encode(v, writer.uint32(74).fork()).ldelim();
@@ -175,8 +175,8 @@ exports.GetLocTenureResponse = {
175
175
  if (message.is_fip !== false) {
176
176
  writer.uint32(80).bool(message.is_fip);
177
177
  }
178
- if (message.amount_grossup !== 0) {
179
- writer.uint32(89).double(message.amount_grossup);
178
+ if (message.amount_grossup !== "") {
179
+ writer.uint32(90).string(message.amount_grossup);
180
180
  }
181
181
  return writer;
182
182
  },
@@ -188,10 +188,10 @@ exports.GetLocTenureResponse = {
188
188
  const tag = reader.uint32();
189
189
  switch (tag >>> 3) {
190
190
  case 1:
191
- if (tag !== 9) {
191
+ if (tag !== 8) {
192
192
  break;
193
193
  }
194
- message.amount = reader.double();
194
+ message.amount = reader.int32();
195
195
  continue;
196
196
  case 2:
197
197
  if (tag !== 18) {
@@ -224,16 +224,16 @@ exports.GetLocTenureResponse = {
224
224
  message.first_emi_date = reader.string();
225
225
  continue;
226
226
  case 7:
227
- if (tag !== 58) {
227
+ if (tag !== 56) {
228
228
  break;
229
229
  }
230
- message.fcp_fee = reader.string();
230
+ message.fcp_fee = reader.int32();
231
231
  continue;
232
232
  case 8:
233
- if (tag !== 65) {
233
+ if (tag !== 64) {
234
234
  break;
235
235
  }
236
- message.fcp_interest = reader.double();
236
+ message.fcp_interest = reader.int32();
237
237
  continue;
238
238
  case 9:
239
239
  if (tag !== 74) {
@@ -248,10 +248,10 @@ exports.GetLocTenureResponse = {
248
248
  message.is_fip = reader.bool();
249
249
  continue;
250
250
  case 11:
251
- if (tag !== 89) {
251
+ if (tag !== 90) {
252
252
  break;
253
253
  }
254
- message.amount_grossup = reader.double();
254
+ message.amount_grossup = reader.string();
255
255
  continue;
256
256
  }
257
257
  if ((tag & 7) === 4 || tag === 0) {
@@ -267,21 +267,21 @@ exports.GetLocTenureResponse = {
267
267
  bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
268
268
  min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
269
269
  max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
270
- msg: isSet(object.msg) ? globalThis.String(object.msg) : "",
270
+ msg: isSet(object.msg) ? globalThis.String(object.msg) : undefined,
271
271
  first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
272
- fcp_fee: isSet(object.fcp_fee) ? globalThis.String(object.fcp_fee) : "",
272
+ fcp_fee: isSet(object.fcp_fee) ? globalThis.Number(object.fcp_fee) : 0,
273
273
  fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : 0,
274
274
  tenure_details: globalThis.Array.isArray(object?.tenure_details)
275
275
  ? object.tenure_details.map((e) => exports.TenureDetail.fromJSON(e))
276
276
  : [],
277
277
  is_fip: isSet(object.is_fip) ? globalThis.Boolean(object.is_fip) : false,
278
- amount_grossup: isSet(object.amount_grossup) ? globalThis.Number(object.amount_grossup) : 0,
278
+ amount_grossup: isSet(object.amount_grossup) ? globalThis.String(object.amount_grossup) : "",
279
279
  };
280
280
  },
281
281
  toJSON(message) {
282
282
  const obj = {};
283
283
  if (message.amount !== 0) {
284
- obj.amount = message.amount;
284
+ obj.amount = Math.round(message.amount);
285
285
  }
286
286
  if (message.bill_date !== "") {
287
287
  obj.bill_date = message.bill_date;
@@ -292,17 +292,17 @@ exports.GetLocTenureResponse = {
292
292
  if (message.max_tenure !== 0) {
293
293
  obj.max_tenure = Math.round(message.max_tenure);
294
294
  }
295
- if (message.msg !== "") {
295
+ if (message.msg !== undefined) {
296
296
  obj.msg = message.msg;
297
297
  }
298
298
  if (message.first_emi_date !== "") {
299
299
  obj.first_emi_date = message.first_emi_date;
300
300
  }
301
- if (message.fcp_fee !== "") {
302
- obj.fcp_fee = message.fcp_fee;
301
+ if (message.fcp_fee !== 0) {
302
+ obj.fcp_fee = Math.round(message.fcp_fee);
303
303
  }
304
304
  if (message.fcp_interest !== 0) {
305
- obj.fcp_interest = message.fcp_interest;
305
+ obj.fcp_interest = Math.round(message.fcp_interest);
306
306
  }
307
307
  if (message.tenure_details?.length) {
308
308
  obj.tenure_details = message.tenure_details.map((e) => exports.TenureDetail.toJSON(e));
@@ -310,7 +310,7 @@ exports.GetLocTenureResponse = {
310
310
  if (message.is_fip !== false) {
311
311
  obj.is_fip = message.is_fip;
312
312
  }
313
- if (message.amount_grossup !== 0) {
313
+ if (message.amount_grossup !== "") {
314
314
  obj.amount_grossup = message.amount_grossup;
315
315
  }
316
316
  return obj;
@@ -324,13 +324,13 @@ exports.GetLocTenureResponse = {
324
324
  message.bill_date = object.bill_date ?? "";
325
325
  message.min_tenure = object.min_tenure ?? 0;
326
326
  message.max_tenure = object.max_tenure ?? 0;
327
- message.msg = object.msg ?? "";
327
+ message.msg = object.msg ?? undefined;
328
328
  message.first_emi_date = object.first_emi_date ?? "";
329
- message.fcp_fee = object.fcp_fee ?? "";
329
+ message.fcp_fee = object.fcp_fee ?? 0;
330
330
  message.fcp_interest = object.fcp_interest ?? 0;
331
331
  message.tenure_details = object.tenure_details?.map((e) => exports.TenureDetail.fromPartial(e)) || [];
332
332
  message.is_fip = object.is_fip ?? false;
333
- message.amount_grossup = object.amount_grossup ?? 0;
333
+ message.amount_grossup = object.amount_grossup ?? "";
334
334
  return message;
335
335
  },
336
336
  };
@@ -0,0 +1,111 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.getpartnerlocwithdraw";
3
+ export interface GetPartnerLocWithdrawRequest {
4
+ amount: number;
5
+ tenure: number;
6
+ gateway_enable: number;
7
+ is_fip: boolean;
8
+ credit_shield_enable: boolean;
9
+ pcr_enable: boolean;
10
+ gateway_type?: string | undefined;
11
+ credit_shield_opt: boolean;
12
+ pcr_opt: boolean;
13
+ }
14
+ export interface GetPartnerLocWithdrawResponse {
15
+ matched: boolean;
16
+ requested_amount: number;
17
+ tenure: number;
18
+ emi_amount: number;
19
+ net_amount_payable: number;
20
+ first_emi_date: string;
21
+ emi_date: string;
22
+ final_disbursal_amount: number;
23
+ upfront_interest: number;
24
+ approved_amount: number;
25
+ processing_fees: number;
26
+ gst: number;
27
+ loan_id: string;
28
+ rate_of_interest: number;
29
+ bill_amount?: string | undefined;
30
+ early_foreclosure_fees: number;
31
+ convenience_fees: number;
32
+ total_interest_pay: number;
33
+ effective_annual_rate: number;
34
+ transaction_rate: number;
35
+ transaction_fee_amount: number;
36
+ emi_date_l: string;
37
+ emi_amount_l: string;
38
+ first_emi_date_l: string;
39
+ final_disbursal_amount_l: string;
40
+ upfront_interest_l: string;
41
+ processing_fees_l: string;
42
+ gst_l: string;
43
+ rate_of_interest_l: string;
44
+ trans_fee_plus_gst: number;
45
+ processing_fee_plus_gst: number;
46
+ bill_amount_l: string;
47
+ early_foreclosure_fees_l: string;
48
+ convenience_fees_l: string;
49
+ total_interest_pay_l: number;
50
+ effective_annual_rate_l: string;
51
+ trans_fee_plus_gst_l: number;
52
+ processing_fee_plus_gst_l: number;
53
+ max_amount_l: string;
54
+ credit_report_fees_l: string;
55
+ fee_and_charges_l: string;
56
+ fee_and_charges: number;
57
+ add_on_l: string;
58
+ total_loan_amount_l: string;
59
+ loan_amount_l: string;
60
+ disbursed_amount_l: string;
61
+ total_payable_amount_l: string;
62
+ disbursal_amount_l: string;
63
+ fcp_interest: number;
64
+ number_of_emi_l: string;
65
+ first_emi_amt_l: string;
66
+ subsequent_emi_l: string;
67
+ effective_roi: number;
68
+ effective_roi_l: string;
69
+ effective_annual_roi: number;
70
+ effective_annual_roi_l: string;
71
+ insurance_l: string;
72
+ emi_card_description: string;
73
+ bill_card_description: string;
74
+ installment_amounts: string;
75
+ apr_title: string;
76
+ apr_value: string;
77
+ apr_type: string;
78
+ credit_line_details_sheet: string;
79
+ Acknowledgement: string;
80
+ payment_undertaking: string;
81
+ key_fact_statement: string;
82
+ sanction_letter: string;
83
+ financing_documents: string;
84
+ }
85
+ export declare const GetPartnerLocWithdrawRequest: {
86
+ encode(message: GetPartnerLocWithdrawRequest, writer?: _m0.Writer): _m0.Writer;
87
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetPartnerLocWithdrawRequest;
88
+ fromJSON(object: any): GetPartnerLocWithdrawRequest;
89
+ toJSON(message: GetPartnerLocWithdrawRequest): unknown;
90
+ create<I extends Exact<DeepPartial<GetPartnerLocWithdrawRequest>, I>>(base?: I): GetPartnerLocWithdrawRequest;
91
+ fromPartial<I extends Exact<DeepPartial<GetPartnerLocWithdrawRequest>, I>>(object: I): GetPartnerLocWithdrawRequest;
92
+ };
93
+ export declare const GetPartnerLocWithdrawResponse: {
94
+ encode(message: GetPartnerLocWithdrawResponse, writer?: _m0.Writer): _m0.Writer;
95
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetPartnerLocWithdrawResponse;
96
+ fromJSON(object: any): GetPartnerLocWithdrawResponse;
97
+ toJSON(message: GetPartnerLocWithdrawResponse): unknown;
98
+ create<I extends Exact<DeepPartial<GetPartnerLocWithdrawResponse>, I>>(base?: I): GetPartnerLocWithdrawResponse;
99
+ fromPartial<I extends Exact<DeepPartial<GetPartnerLocWithdrawResponse>, I>>(object: I): GetPartnerLocWithdrawResponse;
100
+ };
101
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
102
+ 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 {} ? {
103
+ [K in keyof T]?: DeepPartial<T[K]>;
104
+ } : Partial<T>;
105
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
106
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
107
+ [K in keyof P]: Exact<P[K], I[K]>;
108
+ } & {
109
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
110
+ };
111
+ export {};