@stashfin/grpc 1.2.414 → 1.2.416

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.414",
3
+ "version": "1.2.416",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,7 +1,6 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "documents.getfinancialdoc";
3
3
  export interface financialdocrequest {
4
- loan_id: number;
5
4
  customer_id: number;
6
5
  approved_date: string;
7
6
  tenure: number;
@@ -34,7 +33,8 @@ export interface financialdocrequest_Field {
34
33
  penalty: number;
35
34
  }
36
35
  export interface agreementdata {
37
- agreement_url: string;
36
+ financial_doc_url: string;
37
+ sanction_latter_url: string;
38
38
  }
39
39
  export interface financialdocresponse {
40
40
  status: string;
@@ -14,7 +14,6 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "documents.getfinancialdoc";
15
15
  function createBasefinancialdocrequest() {
16
16
  return {
17
- loan_id: 0,
18
17
  customer_id: 0,
19
18
  approved_date: "",
20
19
  tenure: 0,
@@ -36,59 +35,56 @@ function createBasefinancialdocrequest() {
36
35
  }
37
36
  exports.financialdocrequest = {
38
37
  encode(message, writer = minimal_1.default.Writer.create()) {
39
- if (message.loan_id !== 0) {
40
- writer.uint32(8).int32(message.loan_id);
41
- }
42
38
  if (message.customer_id !== 0) {
43
- writer.uint32(16).int32(message.customer_id);
39
+ writer.uint32(8).int32(message.customer_id);
44
40
  }
45
41
  if (message.approved_date !== "") {
46
- writer.uint32(26).string(message.approved_date);
42
+ writer.uint32(18).string(message.approved_date);
47
43
  }
48
44
  if (message.tenure !== 0) {
49
- writer.uint32(32).int32(message.tenure);
45
+ writer.uint32(24).int32(message.tenure);
50
46
  }
51
47
  if (message.processing_fees !== 0) {
52
- writer.uint32(41).double(message.processing_fees);
48
+ writer.uint32(33).double(message.processing_fees);
53
49
  }
54
50
  if (message.credit_report_fees !== 0) {
55
- writer.uint32(49).double(message.credit_report_fees);
51
+ writer.uint32(41).double(message.credit_report_fees);
56
52
  }
57
53
  if (message.insurance_fees !== 0) {
58
- writer.uint32(57).double(message.insurance_fees);
54
+ writer.uint32(49).double(message.insurance_fees);
59
55
  }
60
56
  if (message.disbured_amount !== 0) {
61
- writer.uint32(65).double(message.disbured_amount);
57
+ writer.uint32(57).double(message.disbured_amount);
62
58
  }
63
59
  if (message.sanctioned_amount !== 0) {
64
- writer.uint32(73).double(message.sanctioned_amount);
60
+ writer.uint32(65).double(message.sanctioned_amount);
65
61
  }
66
62
  if (message.apr_value !== 0) {
67
- writer.uint32(81).double(message.apr_value);
63
+ writer.uint32(73).double(message.apr_value);
68
64
  }
69
65
  if (message.roi !== 0) {
70
- writer.uint32(89).double(message.roi);
66
+ writer.uint32(81).double(message.roi);
71
67
  }
72
68
  if (message.txn_fees !== 0) {
73
- writer.uint32(97).double(message.txn_fees);
69
+ writer.uint32(89).double(message.txn_fees);
74
70
  }
75
71
  if (message.txn_fees_gst !== 0) {
76
- writer.uint32(105).double(message.txn_fees_gst);
72
+ writer.uint32(97).double(message.txn_fees_gst);
77
73
  }
78
74
  if (message.txn_rate !== 0) {
79
- writer.uint32(113).double(message.txn_rate);
75
+ writer.uint32(105).double(message.txn_rate);
80
76
  }
81
77
  if (message.processing_fees_rate !== 0) {
82
- writer.uint32(121).double(message.processing_fees_rate);
78
+ writer.uint32(113).double(message.processing_fees_rate);
83
79
  }
84
80
  if (message.processing_fees_gst !== 0) {
85
- writer.uint32(129).double(message.processing_fees_gst);
81
+ writer.uint32(121).double(message.processing_fees_gst);
86
82
  }
87
83
  if (message.emi_start_date !== "") {
88
- writer.uint32(138).string(message.emi_start_date);
84
+ writer.uint32(130).string(message.emi_start_date);
89
85
  }
90
86
  for (const v of message.installments) {
91
- exports.financialdocrequest_Field.encode(v, writer.uint32(146).fork()).ldelim();
87
+ exports.financialdocrequest_Field.encode(v, writer.uint32(138).fork()).ldelim();
92
88
  }
93
89
  return writer;
94
90
  },
@@ -103,108 +99,102 @@ exports.financialdocrequest = {
103
99
  if (tag !== 8) {
104
100
  break;
105
101
  }
106
- message.loan_id = reader.int32();
102
+ message.customer_id = reader.int32();
107
103
  continue;
108
104
  case 2:
109
- if (tag !== 16) {
105
+ if (tag !== 18) {
110
106
  break;
111
107
  }
112
- message.customer_id = reader.int32();
108
+ message.approved_date = reader.string();
113
109
  continue;
114
110
  case 3:
115
- if (tag !== 26) {
111
+ if (tag !== 24) {
116
112
  break;
117
113
  }
118
- message.approved_date = reader.string();
114
+ message.tenure = reader.int32();
119
115
  continue;
120
116
  case 4:
121
- if (tag !== 32) {
117
+ if (tag !== 33) {
122
118
  break;
123
119
  }
124
- message.tenure = reader.int32();
120
+ message.processing_fees = reader.double();
125
121
  continue;
126
122
  case 5:
127
123
  if (tag !== 41) {
128
124
  break;
129
125
  }
130
- message.processing_fees = reader.double();
126
+ message.credit_report_fees = reader.double();
131
127
  continue;
132
128
  case 6:
133
129
  if (tag !== 49) {
134
130
  break;
135
131
  }
136
- message.credit_report_fees = reader.double();
132
+ message.insurance_fees = reader.double();
137
133
  continue;
138
134
  case 7:
139
135
  if (tag !== 57) {
140
136
  break;
141
137
  }
142
- message.insurance_fees = reader.double();
138
+ message.disbured_amount = reader.double();
143
139
  continue;
144
140
  case 8:
145
141
  if (tag !== 65) {
146
142
  break;
147
143
  }
148
- message.disbured_amount = reader.double();
144
+ message.sanctioned_amount = reader.double();
149
145
  continue;
150
146
  case 9:
151
147
  if (tag !== 73) {
152
148
  break;
153
149
  }
154
- message.sanctioned_amount = reader.double();
150
+ message.apr_value = reader.double();
155
151
  continue;
156
152
  case 10:
157
153
  if (tag !== 81) {
158
154
  break;
159
155
  }
160
- message.apr_value = reader.double();
156
+ message.roi = reader.double();
161
157
  continue;
162
158
  case 11:
163
159
  if (tag !== 89) {
164
160
  break;
165
161
  }
166
- message.roi = reader.double();
162
+ message.txn_fees = reader.double();
167
163
  continue;
168
164
  case 12:
169
165
  if (tag !== 97) {
170
166
  break;
171
167
  }
172
- message.txn_fees = reader.double();
168
+ message.txn_fees_gst = reader.double();
173
169
  continue;
174
170
  case 13:
175
171
  if (tag !== 105) {
176
172
  break;
177
173
  }
178
- message.txn_fees_gst = reader.double();
174
+ message.txn_rate = reader.double();
179
175
  continue;
180
176
  case 14:
181
177
  if (tag !== 113) {
182
178
  break;
183
179
  }
184
- message.txn_rate = reader.double();
180
+ message.processing_fees_rate = reader.double();
185
181
  continue;
186
182
  case 15:
187
183
  if (tag !== 121) {
188
184
  break;
189
185
  }
190
- message.processing_fees_rate = reader.double();
186
+ message.processing_fees_gst = reader.double();
191
187
  continue;
192
188
  case 16:
193
- if (tag !== 129) {
189
+ if (tag !== 130) {
194
190
  break;
195
191
  }
196
- message.processing_fees_gst = reader.double();
192
+ message.emi_start_date = reader.string();
197
193
  continue;
198
194
  case 17:
199
195
  if (tag !== 138) {
200
196
  break;
201
197
  }
202
- message.emi_start_date = reader.string();
203
- continue;
204
- case 18:
205
- if (tag !== 146) {
206
- break;
207
- }
208
198
  message.installments.push(exports.financialdocrequest_Field.decode(reader, reader.uint32()));
209
199
  continue;
210
200
  }
@@ -217,7 +207,6 @@ exports.financialdocrequest = {
217
207
  },
218
208
  fromJSON(object) {
219
209
  return {
220
- loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
221
210
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
222
211
  approved_date: isSet(object.approved_date) ? globalThis.String(object.approved_date) : "",
223
212
  tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
@@ -241,9 +230,6 @@ exports.financialdocrequest = {
241
230
  },
242
231
  toJSON(message) {
243
232
  const obj = {};
244
- if (message.loan_id !== 0) {
245
- obj.loan_id = Math.round(message.loan_id);
246
- }
247
233
  if (message.customer_id !== 0) {
248
234
  obj.customer_id = Math.round(message.customer_id);
249
235
  }
@@ -302,7 +288,6 @@ exports.financialdocrequest = {
302
288
  },
303
289
  fromPartial(object) {
304
290
  const message = createBasefinancialdocrequest();
305
- message.loan_id = object.loan_id ?? 0;
306
291
  message.customer_id = object.customer_id ?? 0;
307
292
  message.approved_date = object.approved_date ?? "";
308
293
  message.tenure = object.tenure ?? 0;
@@ -528,12 +513,15 @@ exports.financialdocrequest_Field = {
528
513
  },
529
514
  };
530
515
  function createBaseagreementdata() {
531
- return { agreement_url: "" };
516
+ return { financial_doc_url: "", sanction_latter_url: "" };
532
517
  }
533
518
  exports.agreementdata = {
534
519
  encode(message, writer = minimal_1.default.Writer.create()) {
535
- if (message.agreement_url !== "") {
536
- writer.uint32(10).string(message.agreement_url);
520
+ if (message.financial_doc_url !== "") {
521
+ writer.uint32(10).string(message.financial_doc_url);
522
+ }
523
+ if (message.sanction_latter_url !== "") {
524
+ writer.uint32(18).string(message.sanction_latter_url);
537
525
  }
538
526
  return writer;
539
527
  },
@@ -548,7 +536,13 @@ exports.agreementdata = {
548
536
  if (tag !== 10) {
549
537
  break;
550
538
  }
551
- message.agreement_url = reader.string();
539
+ message.financial_doc_url = reader.string();
540
+ continue;
541
+ case 2:
542
+ if (tag !== 18) {
543
+ break;
544
+ }
545
+ message.sanction_latter_url = reader.string();
552
546
  continue;
553
547
  }
554
548
  if ((tag & 7) === 4 || tag === 0) {
@@ -559,12 +553,18 @@ exports.agreementdata = {
559
553
  return message;
560
554
  },
561
555
  fromJSON(object) {
562
- return { agreement_url: isSet(object.agreement_url) ? globalThis.String(object.agreement_url) : "" };
556
+ return {
557
+ financial_doc_url: isSet(object.financial_doc_url) ? globalThis.String(object.financial_doc_url) : "",
558
+ sanction_latter_url: isSet(object.sanction_latter_url) ? globalThis.String(object.sanction_latter_url) : "",
559
+ };
563
560
  },
564
561
  toJSON(message) {
565
562
  const obj = {};
566
- if (message.agreement_url !== "") {
567
- obj.agreement_url = message.agreement_url;
563
+ if (message.financial_doc_url !== "") {
564
+ obj.financial_doc_url = message.financial_doc_url;
565
+ }
566
+ if (message.sanction_latter_url !== "") {
567
+ obj.sanction_latter_url = message.sanction_latter_url;
568
568
  }
569
569
  return obj;
570
570
  },
@@ -573,7 +573,8 @@ exports.agreementdata = {
573
573
  },
574
574
  fromPartial(object) {
575
575
  const message = createBaseagreementdata();
576
- message.agreement_url = object.agreement_url ?? "";
576
+ message.financial_doc_url = object.financial_doc_url ?? "";
577
+ message.sanction_latter_url = object.sanction_latter_url ?? "";
577
578
  return message;
578
579
  },
579
580
  };
@@ -0,0 +1,39 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.manualpaymentallocation";
3
+ export interface manualPaymentAllocationRequest {
4
+ customer_id: number;
5
+ amount: number;
6
+ type: string;
7
+ loan_id: number[];
8
+ }
9
+ export interface manualPaymentAllocationResponse {
10
+ message: string;
11
+ status: number;
12
+ }
13
+ export declare const manualPaymentAllocationRequest: {
14
+ encode(message: manualPaymentAllocationRequest, writer?: _m0.Writer): _m0.Writer;
15
+ decode(input: _m0.Reader | Uint8Array, length?: number): manualPaymentAllocationRequest;
16
+ fromJSON(object: any): manualPaymentAllocationRequest;
17
+ toJSON(message: manualPaymentAllocationRequest): unknown;
18
+ create<I extends Exact<DeepPartial<manualPaymentAllocationRequest>, I>>(base?: I): manualPaymentAllocationRequest;
19
+ fromPartial<I extends Exact<DeepPartial<manualPaymentAllocationRequest>, I>>(object: I): manualPaymentAllocationRequest;
20
+ };
21
+ export declare const manualPaymentAllocationResponse: {
22
+ encode(message: manualPaymentAllocationResponse, writer?: _m0.Writer): _m0.Writer;
23
+ decode(input: _m0.Reader | Uint8Array, length?: number): manualPaymentAllocationResponse;
24
+ fromJSON(object: any): manualPaymentAllocationResponse;
25
+ toJSON(message: manualPaymentAllocationResponse): unknown;
26
+ create<I extends Exact<DeepPartial<manualPaymentAllocationResponse>, I>>(base?: I): manualPaymentAllocationResponse;
27
+ fromPartial<I extends Exact<DeepPartial<manualPaymentAllocationResponse>, I>>(object: I): manualPaymentAllocationResponse;
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 {};
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.3
6
+ // source: loans/manualpaymentallocation.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.manualPaymentAllocationResponse = exports.manualPaymentAllocationRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.manualpaymentallocation";
15
+ function createBasemanualPaymentAllocationRequest() {
16
+ return { customer_id: 0, amount: 0, type: "", loan_id: [] };
17
+ }
18
+ exports.manualPaymentAllocationRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
+ }
23
+ if (message.amount !== 0) {
24
+ writer.uint32(16).int32(message.amount);
25
+ }
26
+ if (message.type !== "") {
27
+ writer.uint32(26).string(message.type);
28
+ }
29
+ writer.uint32(34).fork();
30
+ for (const v of message.loan_id) {
31
+ writer.int32(v);
32
+ }
33
+ writer.ldelim();
34
+ return writer;
35
+ },
36
+ decode(input, length) {
37
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
38
+ let end = length === undefined ? reader.len : reader.pos + length;
39
+ const message = createBasemanualPaymentAllocationRequest();
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
+ message.customer_id = reader.int32();
48
+ continue;
49
+ case 2:
50
+ if (tag !== 16) {
51
+ break;
52
+ }
53
+ message.amount = reader.int32();
54
+ continue;
55
+ case 3:
56
+ if (tag !== 26) {
57
+ break;
58
+ }
59
+ message.type = reader.string();
60
+ continue;
61
+ case 4:
62
+ if (tag === 32) {
63
+ message.loan_id.push(reader.int32());
64
+ continue;
65
+ }
66
+ if (tag === 34) {
67
+ const end2 = reader.uint32() + reader.pos;
68
+ while (reader.pos < end2) {
69
+ message.loan_id.push(reader.int32());
70
+ }
71
+ continue;
72
+ }
73
+ break;
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
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
85
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
86
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
87
+ loan_id: globalThis.Array.isArray(object?.loan_id) ? object.loan_id.map((e) => globalThis.Number(e)) : [],
88
+ };
89
+ },
90
+ toJSON(message) {
91
+ const obj = {};
92
+ if (message.customer_id !== 0) {
93
+ obj.customer_id = Math.round(message.customer_id);
94
+ }
95
+ if (message.amount !== 0) {
96
+ obj.amount = Math.round(message.amount);
97
+ }
98
+ if (message.type !== "") {
99
+ obj.type = message.type;
100
+ }
101
+ if (message.loan_id?.length) {
102
+ obj.loan_id = message.loan_id.map((e) => Math.round(e));
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.manualPaymentAllocationRequest.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBasemanualPaymentAllocationRequest();
111
+ message.customer_id = object.customer_id ?? 0;
112
+ message.amount = object.amount ?? 0;
113
+ message.type = object.type ?? "";
114
+ message.loan_id = object.loan_id?.map((e) => e) || [];
115
+ return message;
116
+ },
117
+ };
118
+ function createBasemanualPaymentAllocationResponse() {
119
+ return { message: "", status: 0 };
120
+ }
121
+ exports.manualPaymentAllocationResponse = {
122
+ encode(message, writer = minimal_1.default.Writer.create()) {
123
+ if (message.message !== "") {
124
+ writer.uint32(10).string(message.message);
125
+ }
126
+ if (message.status !== 0) {
127
+ writer.uint32(16).int32(message.status);
128
+ }
129
+ return writer;
130
+ },
131
+ decode(input, length) {
132
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
133
+ let end = length === undefined ? reader.len : reader.pos + length;
134
+ const message = createBasemanualPaymentAllocationResponse();
135
+ while (reader.pos < end) {
136
+ const tag = reader.uint32();
137
+ switch (tag >>> 3) {
138
+ case 1:
139
+ if (tag !== 10) {
140
+ break;
141
+ }
142
+ message.message = reader.string();
143
+ continue;
144
+ case 2:
145
+ if (tag !== 16) {
146
+ break;
147
+ }
148
+ message.status = reader.int32();
149
+ continue;
150
+ }
151
+ if ((tag & 7) === 4 || tag === 0) {
152
+ break;
153
+ }
154
+ reader.skipType(tag & 7);
155
+ }
156
+ return message;
157
+ },
158
+ fromJSON(object) {
159
+ return {
160
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
161
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
162
+ };
163
+ },
164
+ toJSON(message) {
165
+ const obj = {};
166
+ if (message.message !== "") {
167
+ obj.message = message.message;
168
+ }
169
+ if (message.status !== 0) {
170
+ obj.status = Math.round(message.status);
171
+ }
172
+ return obj;
173
+ },
174
+ create(base) {
175
+ return exports.manualPaymentAllocationResponse.fromPartial(base ?? {});
176
+ },
177
+ fromPartial(object) {
178
+ const message = createBasemanualPaymentAllocationResponse();
179
+ message.message = object.message ?? "";
180
+ message.status = object.status ?? 0;
181
+ return message;
182
+ },
183
+ };
184
+ function isSet(value) {
185
+ return value !== null && value !== undefined;
186
+ }
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.rollbackextrapayment";
3
+ export interface rollbackExtraPaymentRequest {
4
+ customer_id: number;
5
+ amount: number;
6
+ }
7
+ export interface rollbackExtraPaymentResponse {
8
+ message: string;
9
+ status: number;
10
+ }
11
+ export declare const rollbackExtraPaymentRequest: {
12
+ encode(message: rollbackExtraPaymentRequest, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): rollbackExtraPaymentRequest;
14
+ fromJSON(object: any): rollbackExtraPaymentRequest;
15
+ toJSON(message: rollbackExtraPaymentRequest): unknown;
16
+ create<I extends Exact<DeepPartial<rollbackExtraPaymentRequest>, I>>(base?: I): rollbackExtraPaymentRequest;
17
+ fromPartial<I extends Exact<DeepPartial<rollbackExtraPaymentRequest>, I>>(object: I): rollbackExtraPaymentRequest;
18
+ };
19
+ export declare const rollbackExtraPaymentResponse: {
20
+ encode(message: rollbackExtraPaymentResponse, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): rollbackExtraPaymentResponse;
22
+ fromJSON(object: any): rollbackExtraPaymentResponse;
23
+ toJSON(message: rollbackExtraPaymentResponse): unknown;
24
+ create<I extends Exact<DeepPartial<rollbackExtraPaymentResponse>, I>>(base?: I): rollbackExtraPaymentResponse;
25
+ fromPartial<I extends Exact<DeepPartial<rollbackExtraPaymentResponse>, I>>(object: I): rollbackExtraPaymentResponse;
26
+ };
27
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
29
+ [K in keyof T]?: DeepPartial<T[K]>;
30
+ } : Partial<T>;
31
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
32
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
+ [K in keyof P]: Exact<P[K], I[K]>;
34
+ } & {
35
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
+ };
37
+ export {};
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.3
6
+ // source: loans/rollbackextrapayment.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.rollbackExtraPaymentResponse = exports.rollbackExtraPaymentRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.rollbackextrapayment";
15
+ function createBaserollbackExtraPaymentRequest() {
16
+ return { customer_id: 0, amount: 0 };
17
+ }
18
+ exports.rollbackExtraPaymentRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
+ }
23
+ if (message.amount !== 0) {
24
+ writer.uint32(16).int32(message.amount);
25
+ }
26
+ return writer;
27
+ },
28
+ decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBaserollbackExtraPaymentRequest();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ if (tag !== 8) {
37
+ break;
38
+ }
39
+ message.customer_id = reader.int32();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 16) {
43
+ break;
44
+ }
45
+ message.amount = reader.int32();
46
+ continue;
47
+ }
48
+ if ((tag & 7) === 4 || tag === 0) {
49
+ break;
50
+ }
51
+ reader.skipType(tag & 7);
52
+ }
53
+ return message;
54
+ },
55
+ fromJSON(object) {
56
+ return {
57
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
58
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
59
+ };
60
+ },
61
+ toJSON(message) {
62
+ const obj = {};
63
+ if (message.customer_id !== 0) {
64
+ obj.customer_id = Math.round(message.customer_id);
65
+ }
66
+ if (message.amount !== 0) {
67
+ obj.amount = Math.round(message.amount);
68
+ }
69
+ return obj;
70
+ },
71
+ create(base) {
72
+ return exports.rollbackExtraPaymentRequest.fromPartial(base ?? {});
73
+ },
74
+ fromPartial(object) {
75
+ const message = createBaserollbackExtraPaymentRequest();
76
+ message.customer_id = object.customer_id ?? 0;
77
+ message.amount = object.amount ?? 0;
78
+ return message;
79
+ },
80
+ };
81
+ function createBaserollbackExtraPaymentResponse() {
82
+ return { message: "", status: 0 };
83
+ }
84
+ exports.rollbackExtraPaymentResponse = {
85
+ encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.message !== "") {
87
+ writer.uint32(10).string(message.message);
88
+ }
89
+ if (message.status !== 0) {
90
+ writer.uint32(16).int32(message.status);
91
+ }
92
+ return writer;
93
+ },
94
+ decode(input, length) {
95
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
96
+ let end = length === undefined ? reader.len : reader.pos + length;
97
+ const message = createBaserollbackExtraPaymentResponse();
98
+ while (reader.pos < end) {
99
+ const tag = reader.uint32();
100
+ switch (tag >>> 3) {
101
+ case 1:
102
+ if (tag !== 10) {
103
+ break;
104
+ }
105
+ message.message = reader.string();
106
+ continue;
107
+ case 2:
108
+ if (tag !== 16) {
109
+ break;
110
+ }
111
+ message.status = reader.int32();
112
+ continue;
113
+ }
114
+ if ((tag & 7) === 4 || tag === 0) {
115
+ break;
116
+ }
117
+ reader.skipType(tag & 7);
118
+ }
119
+ return message;
120
+ },
121
+ fromJSON(object) {
122
+ return {
123
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
124
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
125
+ };
126
+ },
127
+ toJSON(message) {
128
+ const obj = {};
129
+ if (message.message !== "") {
130
+ obj.message = message.message;
131
+ }
132
+ if (message.status !== 0) {
133
+ obj.status = Math.round(message.status);
134
+ }
135
+ return obj;
136
+ },
137
+ create(base) {
138
+ return exports.rollbackExtraPaymentResponse.fromPartial(base ?? {});
139
+ },
140
+ fromPartial(object) {
141
+ const message = createBaserollbackExtraPaymentResponse();
142
+ message.message = object.message ?? "";
143
+ message.status = object.status ?? 0;
144
+ return message;
145
+ },
146
+ };
147
+ function isSet(value) {
148
+ return value !== null && value !== undefined;
149
+ }
package/ts/loans.d.ts CHANGED
@@ -26,12 +26,14 @@ import { getTransactionStatusRequest, getTransactionStatusResponse } from "./loa
26
26
  import { getUsedLimitfoRequest, getUsedLimitfoResponse } from "./loans/getusedlimit";
27
27
  import { getVirtualBankInfoRequest, getVirtualBankInfoResponse } from "./loans/getvirtualbankinfo";
28
28
  import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
29
+ import { manualPaymentAllocationRequest, manualPaymentAllocationResponse } from "./loans/manualpaymentallocation";
29
30
  import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
30
31
  import { paymentHistoryRequest, paymentHistoryResponse } from "./loans/paymenthistory";
31
32
  import { payNowRequest, payNowResponse } from "./loans/paynow";
32
33
  import { refundRequest, refundResponse } from "./loans/refund";
33
34
  import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
34
35
  import { rollbackRequest, rollbackResponse } from "./loans/rollback";
36
+ import { rollbackExtraPaymentRequest, rollbackExtraPaymentResponse } from "./loans/rollbackextrapayment";
35
37
  import { sendEmailRequest, sendEmailResponse } from "./loans/sendemail";
36
38
  import { sendNocEmailRequest, sendNocEmailResponse } from "./loans/sendnocemail";
37
39
  import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
@@ -402,6 +404,24 @@ export declare const loansService: {
402
404
  readonly responseSerialize: (value: createLamfLoanResponse) => Buffer;
403
405
  readonly responseDeserialize: (value: Buffer) => createLamfLoanResponse;
404
406
  };
407
+ readonly manualPaymentAllocation: {
408
+ readonly path: "/service.loans/manualPaymentAllocation";
409
+ readonly requestStream: false;
410
+ readonly responseStream: false;
411
+ readonly requestSerialize: (value: manualPaymentAllocationRequest) => Buffer;
412
+ readonly requestDeserialize: (value: Buffer) => manualPaymentAllocationRequest;
413
+ readonly responseSerialize: (value: manualPaymentAllocationResponse) => Buffer;
414
+ readonly responseDeserialize: (value: Buffer) => manualPaymentAllocationResponse;
415
+ };
416
+ readonly rollbackExtraPayment: {
417
+ readonly path: "/service.loans/rollbackExtraPayment";
418
+ readonly requestStream: false;
419
+ readonly responseStream: false;
420
+ readonly requestSerialize: (value: rollbackExtraPaymentRequest) => Buffer;
421
+ readonly requestDeserialize: (value: Buffer) => rollbackExtraPaymentRequest;
422
+ readonly responseSerialize: (value: rollbackExtraPaymentResponse) => Buffer;
423
+ readonly responseDeserialize: (value: Buffer) => rollbackExtraPaymentResponse;
424
+ };
405
425
  };
406
426
  export interface loansServer extends UntypedServiceImplementation {
407
427
  creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
@@ -444,6 +464,8 @@ export interface loansServer extends UntypedServiceImplementation {
444
464
  createPenalty: handleUnaryCall<createPenaltyRequest, createPenaltyResponse>;
445
465
  getCBloanDetails: handleUnaryCall<getCBloanDetailsRequest, getCBloanDetailsResponse>;
446
466
  createLamFloan: handleUnaryCall<createLamfLoanRequest, createLamfLoanResponse>;
467
+ manualPaymentAllocation: handleUnaryCall<manualPaymentAllocationRequest, manualPaymentAllocationResponse>;
468
+ rollbackExtraPayment: handleUnaryCall<rollbackExtraPaymentRequest, rollbackExtraPaymentResponse>;
447
469
  }
448
470
  export interface loansClient extends Client {
449
471
  creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
@@ -566,6 +588,12 @@ export interface loansClient extends Client {
566
588
  createLamFloan(request: createLamfLoanRequest, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
567
589
  createLamFloan(request: createLamfLoanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
568
590
  createLamFloan(request: createLamfLoanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: createLamfLoanResponse) => void): ClientUnaryCall;
591
+ manualPaymentAllocation(request: manualPaymentAllocationRequest, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
592
+ manualPaymentAllocation(request: manualPaymentAllocationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
593
+ manualPaymentAllocation(request: manualPaymentAllocationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: manualPaymentAllocationResponse) => void): ClientUnaryCall;
594
+ rollbackExtraPayment(request: rollbackExtraPaymentRequest, callback: (error: ServiceError | null, response: rollbackExtraPaymentResponse) => void): ClientUnaryCall;
595
+ rollbackExtraPayment(request: rollbackExtraPaymentRequest, metadata: Metadata, callback: (error: ServiceError | null, response: rollbackExtraPaymentResponse) => void): ClientUnaryCall;
596
+ rollbackExtraPayment(request: rollbackExtraPaymentRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: rollbackExtraPaymentResponse) => void): ClientUnaryCall;
569
597
  }
570
598
  export declare const loansClient: {
571
599
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
package/ts/loans.js CHANGED
@@ -35,12 +35,14 @@ const gettransactionstatus_1 = require("./loans/gettransactionstatus");
35
35
  const getusedlimit_1 = require("./loans/getusedlimit");
36
36
  const getvirtualbankinfo_1 = require("./loans/getvirtualbankinfo");
37
37
  const loansummary_1 = require("./loans/loansummary");
38
+ const manualpaymentallocation_1 = require("./loans/manualpaymentallocation");
38
39
  const paymentallocation_1 = require("./loans/paymentallocation");
39
40
  const paymenthistory_1 = require("./loans/paymenthistory");
40
41
  const paynow_1 = require("./loans/paynow");
41
42
  const refund_1 = require("./loans/refund");
42
43
  const restructureloan_1 = require("./loans/restructureloan");
43
44
  const rollback_1 = require("./loans/rollback");
45
+ const rollbackextrapayment_1 = require("./loans/rollbackextrapayment");
44
46
  const sendemail_1 = require("./loans/sendemail");
45
47
  const sendnocemail_1 = require("./loans/sendnocemail");
46
48
  const transactionlist_1 = require("./loans/transactionlist");
@@ -410,5 +412,23 @@ exports.loansService = {
410
412
  responseSerialize: (value) => Buffer.from(createlamfloan_1.createLamfLoanResponse.encode(value).finish()),
411
413
  responseDeserialize: (value) => createlamfloan_1.createLamfLoanResponse.decode(value),
412
414
  },
415
+ manualPaymentAllocation: {
416
+ path: "/service.loans/manualPaymentAllocation",
417
+ requestStream: false,
418
+ responseStream: false,
419
+ requestSerialize: (value) => Buffer.from(manualpaymentallocation_1.manualPaymentAllocationRequest.encode(value).finish()),
420
+ requestDeserialize: (value) => manualpaymentallocation_1.manualPaymentAllocationRequest.decode(value),
421
+ responseSerialize: (value) => Buffer.from(manualpaymentallocation_1.manualPaymentAllocationResponse.encode(value).finish()),
422
+ responseDeserialize: (value) => manualpaymentallocation_1.manualPaymentAllocationResponse.decode(value),
423
+ },
424
+ rollbackExtraPayment: {
425
+ path: "/service.loans/rollbackExtraPayment",
426
+ requestStream: false,
427
+ responseStream: false,
428
+ requestSerialize: (value) => Buffer.from(rollbackextrapayment_1.rollbackExtraPaymentRequest.encode(value).finish()),
429
+ requestDeserialize: (value) => rollbackextrapayment_1.rollbackExtraPaymentRequest.decode(value),
430
+ responseSerialize: (value) => Buffer.from(rollbackextrapayment_1.rollbackExtraPaymentResponse.encode(value).finish()),
431
+ responseDeserialize: (value) => rollbackextrapayment_1.rollbackExtraPaymentResponse.decode(value),
432
+ },
413
433
  };
414
434
  exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");