@stashfin/grpc 1.2.263 → 1.2.264
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 +1 -1
- package/ts/bureau/getreport.d.ts +3 -3
- package/ts/customers.d.ts +0 -28
- package/ts/customers.js +0 -20
- package/ts/decisionengine/decisionengine.d.ts +0 -1
- package/ts/decisionengine/decisionengine.js +4 -18
- package/ts/loans/approveloan.d.ts +0 -1
- package/ts/loans/approveloan.js +4 -19
- package/ts/loans/fcppayment.d.ts +1 -0
- package/ts/loans/fcppayment.js +17 -3
- package/ts/loans/foreclosepayment.d.ts +1 -0
- package/ts/loans/foreclosepayment.js +17 -3
- package/ts/loans/getloanbyid.d.ts +0 -1
- package/ts/loans/getloanbyid.js +0 -15
- package/ts/loans/loansummary.d.ts +0 -1
- package/ts/loans/loansummary.js +4 -19
- package/ts/loans/refund.d.ts +1 -0
- package/ts/loans/refund.js +17 -3
- package/ts/loans/rollback.d.ts +1 -0
- package/ts/loans/rollback.js +17 -3
- package/ts/loans/updateinstallments.d.ts +2 -0
- package/ts/loans/updateinstallments.js +43 -6
- package/ts/loans.d.ts +0 -14
- package/ts/loans.js +0 -10
- package/ts/customers/getpaymentoptions.d.ts +0 -51
- package/ts/customers/getpaymentoptions.js +0 -243
- package/ts/customers/updatecategory.d.ts +0 -36
- package/ts/customers/updatecategory.js +0 -147
- package/ts/loans/getusedlimit.d.ts +0 -35
- package/ts/loans/getusedlimit.js +0 -117
package/package.json
CHANGED
package/ts/bureau/getreport.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ export interface Report {
|
|
|
16
16
|
score: number;
|
|
17
17
|
type: string;
|
|
18
18
|
tradelines: TradeLine[];
|
|
19
|
-
dpd
|
|
20
|
-
enquiries
|
|
21
|
-
dpd_char
|
|
19
|
+
dpd: DPD | undefined;
|
|
20
|
+
enquiries: Enquiries | undefined;
|
|
21
|
+
dpd_char: dpdChar | undefined;
|
|
22
22
|
report_path?: string | undefined;
|
|
23
23
|
dpd_counts?: DPDCounts | undefined;
|
|
24
24
|
enquiries_data: EnquiriesData[];
|
package/ts/customers.d.ts
CHANGED
|
@@ -42,7 +42,6 @@ import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./cus
|
|
|
42
42
|
import { getDocumentsRequest, getDocumentsResponse } from "./customers/getdocuments";
|
|
43
43
|
import { getLimitRequest, getLimitResponse } from "./customers/getlimit";
|
|
44
44
|
import { getOccupationListRequest, getOccupationListResponse } from "./customers/getoccupationlist";
|
|
45
|
-
import { paymentOptionRequest, paymentOptionResponse } from "./customers/getpaymentoptions";
|
|
46
45
|
import { getProfessionalInfoRequest, getProfessionalInfoResponse } from "./customers/getprofessionalinfo";
|
|
47
46
|
import { getCustomerProfileRequest, getCustomerProfileResponse } from "./customers/getprofile";
|
|
48
47
|
import { getSelfieeTxnIdRequest, getSelfieeTxnIdResponse } from "./customers/getselfieetxnid";
|
|
@@ -63,7 +62,6 @@ import { sendOtpRequest, sendOtpRespone } from "./customers/sendotp";
|
|
|
63
62
|
import { sendEmailOtpRequest, sendEmailOtpResponse } from "./customers/sendotptoemail";
|
|
64
63
|
import { setMpinRequest, setMpinResponse } from "./customers/setmpin";
|
|
65
64
|
import { skipScreenRequest, skipScreenResponse } from "./customers/skipscreen";
|
|
66
|
-
import { updateCategoryRequest, updateCategoryResponse } from "./customers/updatecategory";
|
|
67
65
|
import { updateCustomerByIdRequest, updateCustomerByIdResponse } from "./customers/updatecustomerbyid";
|
|
68
66
|
import { updateDlNumberRequest, updateDlNumberResponse } from "./customers/updatedlnumber";
|
|
69
67
|
import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
|
|
@@ -792,24 +790,6 @@ export declare const customersService: {
|
|
|
792
790
|
readonly responseSerialize: (value: updateFreedomTxnStatusResponse) => Buffer;
|
|
793
791
|
readonly responseDeserialize: (value: Buffer) => updateFreedomTxnStatusResponse;
|
|
794
792
|
};
|
|
795
|
-
readonly updateCategory: {
|
|
796
|
-
readonly path: "/service.customers/updateCategory";
|
|
797
|
-
readonly requestStream: false;
|
|
798
|
-
readonly responseStream: false;
|
|
799
|
-
readonly requestSerialize: (value: updateCategoryRequest) => Buffer;
|
|
800
|
-
readonly requestDeserialize: (value: Buffer) => updateCategoryRequest;
|
|
801
|
-
readonly responseSerialize: (value: updateCategoryResponse) => Buffer;
|
|
802
|
-
readonly responseDeserialize: (value: Buffer) => updateCategoryResponse;
|
|
803
|
-
};
|
|
804
|
-
readonly getPaymentOptions: {
|
|
805
|
-
readonly path: "/service.customers/getPaymentOptions";
|
|
806
|
-
readonly requestStream: false;
|
|
807
|
-
readonly responseStream: false;
|
|
808
|
-
readonly requestSerialize: (value: paymentOptionRequest) => Buffer;
|
|
809
|
-
readonly requestDeserialize: (value: Buffer) => paymentOptionRequest;
|
|
810
|
-
readonly responseSerialize: (value: paymentOptionResponse) => Buffer;
|
|
811
|
-
readonly responseDeserialize: (value: Buffer) => paymentOptionResponse;
|
|
812
|
-
};
|
|
813
793
|
};
|
|
814
794
|
export interface customersServer extends UntypedServiceImplementation {
|
|
815
795
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -891,8 +871,6 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
891
871
|
freedomPayNow: handleUnaryCall<freedomPayNowRequest, freedomPayNowResponse>;
|
|
892
872
|
getFreedomTxnStatus: handleUnaryCall<getFreedomTxnStatusRequest, getFreedomTxnStatusResponse>;
|
|
893
873
|
updateFreedomTxnStatus: handleUnaryCall<updateFreedomTxnStatusRequest, updateFreedomTxnStatusResponse>;
|
|
894
|
-
updateCategory: handleUnaryCall<updateCategoryRequest, updateCategoryResponse>;
|
|
895
|
-
getPaymentOptions: handleUnaryCall<paymentOptionRequest, paymentOptionResponse>;
|
|
896
874
|
}
|
|
897
875
|
export interface customersClient extends Client {
|
|
898
876
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1132,12 +1110,6 @@ export interface customersClient extends Client {
|
|
|
1132
1110
|
updateFreedomTxnStatus(request: updateFreedomTxnStatusRequest, callback: (error: ServiceError | null, response: updateFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1133
1111
|
updateFreedomTxnStatus(request: updateFreedomTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1134
1112
|
updateFreedomTxnStatus(request: updateFreedomTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1135
|
-
updateCategory(request: updateCategoryRequest, callback: (error: ServiceError | null, response: updateCategoryResponse) => void): ClientUnaryCall;
|
|
1136
|
-
updateCategory(request: updateCategoryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCategoryResponse) => void): ClientUnaryCall;
|
|
1137
|
-
updateCategory(request: updateCategoryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCategoryResponse) => void): ClientUnaryCall;
|
|
1138
|
-
getPaymentOptions(request: paymentOptionRequest, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1139
|
-
getPaymentOptions(request: paymentOptionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1140
|
-
getPaymentOptions(request: paymentOptionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1141
1113
|
}
|
|
1142
1114
|
export declare const customersClient: {
|
|
1143
1115
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -51,7 +51,6 @@ const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
|
51
51
|
const getdocuments_1 = require("./customers/getdocuments");
|
|
52
52
|
const getlimit_1 = require("./customers/getlimit");
|
|
53
53
|
const getoccupationlist_1 = require("./customers/getoccupationlist");
|
|
54
|
-
const getpaymentoptions_1 = require("./customers/getpaymentoptions");
|
|
55
54
|
const getprofessionalinfo_1 = require("./customers/getprofessionalinfo");
|
|
56
55
|
const getprofile_1 = require("./customers/getprofile");
|
|
57
56
|
const getselfieetxnid_1 = require("./customers/getselfieetxnid");
|
|
@@ -72,7 +71,6 @@ const sendotp_1 = require("./customers/sendotp");
|
|
|
72
71
|
const sendotptoemail_1 = require("./customers/sendotptoemail");
|
|
73
72
|
const setmpin_1 = require("./customers/setmpin");
|
|
74
73
|
const skipscreen_1 = require("./customers/skipscreen");
|
|
75
|
-
const updatecategory_1 = require("./customers/updatecategory");
|
|
76
74
|
const updatecustomerbyid_1 = require("./customers/updatecustomerbyid");
|
|
77
75
|
const updatedlnumber_1 = require("./customers/updatedlnumber");
|
|
78
76
|
const updatedob_1 = require("./customers/updatedob");
|
|
@@ -800,23 +798,5 @@ exports.customersService = {
|
|
|
800
798
|
responseSerialize: (value) => Buffer.from(updatefreedomtxnstatus_1.updateFreedomTxnStatusResponse.encode(value).finish()),
|
|
801
799
|
responseDeserialize: (value) => updatefreedomtxnstatus_1.updateFreedomTxnStatusResponse.decode(value),
|
|
802
800
|
},
|
|
803
|
-
updateCategory: {
|
|
804
|
-
path: "/service.customers/updateCategory",
|
|
805
|
-
requestStream: false,
|
|
806
|
-
responseStream: false,
|
|
807
|
-
requestSerialize: (value) => Buffer.from(updatecategory_1.updateCategoryRequest.encode(value).finish()),
|
|
808
|
-
requestDeserialize: (value) => updatecategory_1.updateCategoryRequest.decode(value),
|
|
809
|
-
responseSerialize: (value) => Buffer.from(updatecategory_1.updateCategoryResponse.encode(value).finish()),
|
|
810
|
-
responseDeserialize: (value) => updatecategory_1.updateCategoryResponse.decode(value),
|
|
811
|
-
},
|
|
812
|
-
getPaymentOptions: {
|
|
813
|
-
path: "/service.customers/getPaymentOptions",
|
|
814
|
-
requestStream: false,
|
|
815
|
-
responseStream: false,
|
|
816
|
-
requestSerialize: (value) => Buffer.from(getpaymentoptions_1.paymentOptionRequest.encode(value).finish()),
|
|
817
|
-
requestDeserialize: (value) => getpaymentoptions_1.paymentOptionRequest.decode(value),
|
|
818
|
-
responseSerialize: (value) => Buffer.from(getpaymentoptions_1.paymentOptionResponse.encode(value).finish()),
|
|
819
|
-
responseDeserialize: (value) => getpaymentoptions_1.paymentOptionResponse.decode(value),
|
|
820
|
-
},
|
|
821
801
|
};
|
|
822
802
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -2,7 +2,6 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "decisionengine.validateLocDisbursal";
|
|
3
3
|
export interface validateDisbursalRequest {
|
|
4
4
|
customer_id: number;
|
|
5
|
-
loan_id: number;
|
|
6
5
|
stashfin_ever_dpd: number;
|
|
7
6
|
stashfin_current_dpd: number;
|
|
8
7
|
}
|
|
@@ -13,21 +13,18 @@ exports.validateDisbursalResponse = exports.validateDisbursalRequest = exports.p
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "decisionengine.validateLocDisbursal";
|
|
15
15
|
function createBasevalidateDisbursalRequest() {
|
|
16
|
-
return { customer_id: 0,
|
|
16
|
+
return { customer_id: 0, stashfin_ever_dpd: 0, stashfin_current_dpd: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.validateDisbursalRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.customer_id !== 0) {
|
|
21
21
|
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
|
-
if (message.loan_id !== 0) {
|
|
24
|
-
writer.uint32(16).int32(message.loan_id);
|
|
25
|
-
}
|
|
26
23
|
if (message.stashfin_ever_dpd !== 0) {
|
|
27
|
-
writer.uint32(
|
|
24
|
+
writer.uint32(16).int32(message.stashfin_ever_dpd);
|
|
28
25
|
}
|
|
29
26
|
if (message.stashfin_current_dpd !== 0) {
|
|
30
|
-
writer.uint32(
|
|
27
|
+
writer.uint32(24).int32(message.stashfin_current_dpd);
|
|
31
28
|
}
|
|
32
29
|
return writer;
|
|
33
30
|
},
|
|
@@ -48,18 +45,12 @@ exports.validateDisbursalRequest = {
|
|
|
48
45
|
if (tag !== 16) {
|
|
49
46
|
break;
|
|
50
47
|
}
|
|
51
|
-
message.
|
|
48
|
+
message.stashfin_ever_dpd = reader.int32();
|
|
52
49
|
continue;
|
|
53
50
|
case 3:
|
|
54
51
|
if (tag !== 24) {
|
|
55
52
|
break;
|
|
56
53
|
}
|
|
57
|
-
message.stashfin_ever_dpd = reader.int32();
|
|
58
|
-
continue;
|
|
59
|
-
case 4:
|
|
60
|
-
if (tag !== 32) {
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
54
|
message.stashfin_current_dpd = reader.int32();
|
|
64
55
|
continue;
|
|
65
56
|
}
|
|
@@ -73,7 +64,6 @@ exports.validateDisbursalRequest = {
|
|
|
73
64
|
fromJSON(object) {
|
|
74
65
|
return {
|
|
75
66
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
76
|
-
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
77
67
|
stashfin_ever_dpd: isSet(object.stashfin_ever_dpd) ? globalThis.Number(object.stashfin_ever_dpd) : 0,
|
|
78
68
|
stashfin_current_dpd: isSet(object.stashfin_current_dpd) ? globalThis.Number(object.stashfin_current_dpd) : 0,
|
|
79
69
|
};
|
|
@@ -83,9 +73,6 @@ exports.validateDisbursalRequest = {
|
|
|
83
73
|
if (message.customer_id !== 0) {
|
|
84
74
|
obj.customer_id = Math.round(message.customer_id);
|
|
85
75
|
}
|
|
86
|
-
if (message.loan_id !== 0) {
|
|
87
|
-
obj.loan_id = Math.round(message.loan_id);
|
|
88
|
-
}
|
|
89
76
|
if (message.stashfin_ever_dpd !== 0) {
|
|
90
77
|
obj.stashfin_ever_dpd = Math.round(message.stashfin_ever_dpd);
|
|
91
78
|
}
|
|
@@ -100,7 +87,6 @@ exports.validateDisbursalRequest = {
|
|
|
100
87
|
fromPartial(object) {
|
|
101
88
|
const message = createBasevalidateDisbursalRequest();
|
|
102
89
|
message.customer_id = object.customer_id ?? 0;
|
|
103
|
-
message.loan_id = object.loan_id ?? 0;
|
|
104
90
|
message.stashfin_ever_dpd = object.stashfin_ever_dpd ?? 0;
|
|
105
91
|
message.stashfin_current_dpd = object.stashfin_current_dpd ?? 0;
|
|
106
92
|
return message;
|
|
@@ -46,7 +46,6 @@ export interface approveLoanResponse {
|
|
|
46
46
|
credit_report_actual_fees: number;
|
|
47
47
|
plan_id: number;
|
|
48
48
|
approved_amount: number;
|
|
49
|
-
discount: number;
|
|
50
49
|
}
|
|
51
50
|
export declare const approveLoanRequest: {
|
|
52
51
|
encode(message: approveLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/approveloan.js
CHANGED
|
@@ -286,7 +286,6 @@ function createBaseapproveLoanResponse() {
|
|
|
286
286
|
credit_report_actual_fees: 0,
|
|
287
287
|
plan_id: 0,
|
|
288
288
|
approved_amount: 0,
|
|
289
|
-
discount: 0,
|
|
290
289
|
};
|
|
291
290
|
}
|
|
292
291
|
exports.approveLoanResponse = {
|
|
@@ -361,7 +360,7 @@ exports.approveLoanResponse = {
|
|
|
361
360
|
writer.uint32(186).string(message.bill_card_description);
|
|
362
361
|
}
|
|
363
362
|
if (message.apr_value !== 0) {
|
|
364
|
-
writer.uint32(
|
|
363
|
+
writer.uint32(192).int32(message.apr_value);
|
|
365
364
|
}
|
|
366
365
|
if (message.apr_type !== "") {
|
|
367
366
|
writer.uint32(202).string(message.apr_type);
|
|
@@ -381,9 +380,6 @@ exports.approveLoanResponse = {
|
|
|
381
380
|
if (message.approved_amount !== 0) {
|
|
382
381
|
writer.uint32(240).int32(message.approved_amount);
|
|
383
382
|
}
|
|
384
|
-
if (message.discount !== 0) {
|
|
385
|
-
writer.uint32(248).int32(message.discount);
|
|
386
|
-
}
|
|
387
383
|
return writer;
|
|
388
384
|
},
|
|
389
385
|
decode(input, length) {
|
|
@@ -532,10 +528,10 @@ exports.approveLoanResponse = {
|
|
|
532
528
|
message.bill_card_description = reader.string();
|
|
533
529
|
continue;
|
|
534
530
|
case 24:
|
|
535
|
-
if (tag !==
|
|
531
|
+
if (tag !== 192) {
|
|
536
532
|
break;
|
|
537
533
|
}
|
|
538
|
-
message.apr_value = reader.
|
|
534
|
+
message.apr_value = reader.int32();
|
|
539
535
|
continue;
|
|
540
536
|
case 25:
|
|
541
537
|
if (tag !== 202) {
|
|
@@ -573,12 +569,6 @@ exports.approveLoanResponse = {
|
|
|
573
569
|
}
|
|
574
570
|
message.approved_amount = reader.int32();
|
|
575
571
|
continue;
|
|
576
|
-
case 31:
|
|
577
|
-
if (tag !== 248) {
|
|
578
|
-
break;
|
|
579
|
-
}
|
|
580
|
-
message.discount = reader.int32();
|
|
581
|
-
continue;
|
|
582
572
|
}
|
|
583
573
|
if ((tag & 7) === 4 || tag === 0) {
|
|
584
574
|
break;
|
|
@@ -627,7 +617,6 @@ exports.approveLoanResponse = {
|
|
|
627
617
|
: 0,
|
|
628
618
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
629
619
|
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
630
|
-
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
631
620
|
};
|
|
632
621
|
},
|
|
633
622
|
toJSON(message) {
|
|
@@ -702,7 +691,7 @@ exports.approveLoanResponse = {
|
|
|
702
691
|
obj.bill_card_description = message.bill_card_description;
|
|
703
692
|
}
|
|
704
693
|
if (message.apr_value !== 0) {
|
|
705
|
-
obj.apr_value = message.apr_value;
|
|
694
|
+
obj.apr_value = Math.round(message.apr_value);
|
|
706
695
|
}
|
|
707
696
|
if (message.apr_type !== "") {
|
|
708
697
|
obj.apr_type = message.apr_type;
|
|
@@ -722,9 +711,6 @@ exports.approveLoanResponse = {
|
|
|
722
711
|
if (message.approved_amount !== 0) {
|
|
723
712
|
obj.approved_amount = Math.round(message.approved_amount);
|
|
724
713
|
}
|
|
725
|
-
if (message.discount !== 0) {
|
|
726
|
-
obj.discount = Math.round(message.discount);
|
|
727
|
-
}
|
|
728
714
|
return obj;
|
|
729
715
|
},
|
|
730
716
|
create(base) {
|
|
@@ -762,7 +748,6 @@ exports.approveLoanResponse = {
|
|
|
762
748
|
message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
|
|
763
749
|
message.plan_id = object.plan_id ?? 0;
|
|
764
750
|
message.approved_amount = object.approved_amount ?? 0;
|
|
765
|
-
message.discount = object.discount ?? 0;
|
|
766
751
|
return message;
|
|
767
752
|
},
|
|
768
753
|
};
|
package/ts/loans/fcppayment.d.ts
CHANGED
package/ts/loans/fcppayment.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.fcpPaymentResponse = exports.fcpPaymentRequest = exports.protobufPackage
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.fcppayment";
|
|
15
15
|
function createBasefcpPaymentRequest() {
|
|
16
|
-
return { bill_amount: 0, customerid: 0, loan_id: [], mode: "" };
|
|
16
|
+
return { bill_amount: 0, customerid: 0, loan_id: [], payment_id: 0, mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.fcpPaymentRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -28,8 +28,11 @@ exports.fcpPaymentRequest = {
|
|
|
28
28
|
writer.int32(v);
|
|
29
29
|
}
|
|
30
30
|
writer.ldelim();
|
|
31
|
+
if (message.payment_id !== 0) {
|
|
32
|
+
writer.uint32(32).int32(message.payment_id);
|
|
33
|
+
}
|
|
31
34
|
if (message.mode !== "") {
|
|
32
|
-
writer.uint32(
|
|
35
|
+
writer.uint32(42).string(message.mode);
|
|
33
36
|
}
|
|
34
37
|
return writer;
|
|
35
38
|
},
|
|
@@ -66,7 +69,13 @@ exports.fcpPaymentRequest = {
|
|
|
66
69
|
}
|
|
67
70
|
break;
|
|
68
71
|
case 4:
|
|
69
|
-
if (tag !==
|
|
72
|
+
if (tag !== 32) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.payment_id = reader.int32();
|
|
76
|
+
continue;
|
|
77
|
+
case 5:
|
|
78
|
+
if (tag !== 42) {
|
|
70
79
|
break;
|
|
71
80
|
}
|
|
72
81
|
message.mode = reader.string();
|
|
@@ -84,6 +93,7 @@ exports.fcpPaymentRequest = {
|
|
|
84
93
|
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
85
94
|
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
86
95
|
loan_id: globalThis.Array.isArray(object?.loan_id) ? object.loan_id.map((e) => globalThis.Number(e)) : [],
|
|
96
|
+
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
87
97
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
88
98
|
};
|
|
89
99
|
},
|
|
@@ -98,6 +108,9 @@ exports.fcpPaymentRequest = {
|
|
|
98
108
|
if (message.loan_id?.length) {
|
|
99
109
|
obj.loan_id = message.loan_id.map((e) => Math.round(e));
|
|
100
110
|
}
|
|
111
|
+
if (message.payment_id !== 0) {
|
|
112
|
+
obj.payment_id = Math.round(message.payment_id);
|
|
113
|
+
}
|
|
101
114
|
if (message.mode !== "") {
|
|
102
115
|
obj.mode = message.mode;
|
|
103
116
|
}
|
|
@@ -111,6 +124,7 @@ exports.fcpPaymentRequest = {
|
|
|
111
124
|
message.bill_amount = object.bill_amount ?? 0;
|
|
112
125
|
message.customerid = object.customerid ?? 0;
|
|
113
126
|
message.loan_id = object.loan_id?.map((e) => e) || [];
|
|
127
|
+
message.payment_id = object.payment_id ?? 0;
|
|
114
128
|
message.mode = object.mode ?? "";
|
|
115
129
|
return message;
|
|
116
130
|
},
|
|
@@ -13,7 +13,7 @@ exports.foreclosePaymentResponse = exports.foreclosePaymentRequest = exports.pro
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.foreclosepayment";
|
|
15
15
|
function createBaseforeclosePaymentRequest() {
|
|
16
|
-
return { amount: 0, customerid: 0, loan_id: 0, mode: "" };
|
|
16
|
+
return { amount: 0, customerid: 0, loan_id: 0, payment_id: 0, mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.foreclosePaymentRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,8 +26,11 @@ exports.foreclosePaymentRequest = {
|
|
|
26
26
|
if (message.loan_id !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.loan_id);
|
|
28
28
|
}
|
|
29
|
+
if (message.payment_id !== 0) {
|
|
30
|
+
writer.uint32(32).int32(message.payment_id);
|
|
31
|
+
}
|
|
29
32
|
if (message.mode !== "") {
|
|
30
|
-
writer.uint32(
|
|
33
|
+
writer.uint32(42).string(message.mode);
|
|
31
34
|
}
|
|
32
35
|
return writer;
|
|
33
36
|
},
|
|
@@ -57,7 +60,13 @@ exports.foreclosePaymentRequest = {
|
|
|
57
60
|
message.loan_id = reader.int32();
|
|
58
61
|
continue;
|
|
59
62
|
case 4:
|
|
60
|
-
if (tag !==
|
|
63
|
+
if (tag !== 32) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.payment_id = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 42) {
|
|
61
70
|
break;
|
|
62
71
|
}
|
|
63
72
|
message.mode = reader.string();
|
|
@@ -75,6 +84,7 @@ exports.foreclosePaymentRequest = {
|
|
|
75
84
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
76
85
|
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
77
86
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
87
|
+
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
78
88
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
79
89
|
};
|
|
80
90
|
},
|
|
@@ -89,6 +99,9 @@ exports.foreclosePaymentRequest = {
|
|
|
89
99
|
if (message.loan_id !== 0) {
|
|
90
100
|
obj.loan_id = Math.round(message.loan_id);
|
|
91
101
|
}
|
|
102
|
+
if (message.payment_id !== 0) {
|
|
103
|
+
obj.payment_id = Math.round(message.payment_id);
|
|
104
|
+
}
|
|
92
105
|
if (message.mode !== "") {
|
|
93
106
|
obj.mode = message.mode;
|
|
94
107
|
}
|
|
@@ -102,6 +115,7 @@ exports.foreclosePaymentRequest = {
|
|
|
102
115
|
message.amount = object.amount ?? 0;
|
|
103
116
|
message.customerid = object.customerid ?? 0;
|
|
104
117
|
message.loan_id = object.loan_id ?? 0;
|
|
118
|
+
message.payment_id = object.payment_id ?? 0;
|
|
105
119
|
message.mode = object.mode ?? "";
|
|
106
120
|
return message;
|
|
107
121
|
},
|
package/ts/loans/getloanbyid.js
CHANGED
|
@@ -82,7 +82,6 @@ function createBasegetLoanByIdResponse() {
|
|
|
82
82
|
fees: undefined,
|
|
83
83
|
loan_create_date: "",
|
|
84
84
|
net_payable_amount: 0,
|
|
85
|
-
apr_value: 0,
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
87
|
exports.getLoanByIdResponse = {
|
|
@@ -141,9 +140,6 @@ exports.getLoanByIdResponse = {
|
|
|
141
140
|
if (message.net_payable_amount !== 0) {
|
|
142
141
|
writer.uint32(144).int32(message.net_payable_amount);
|
|
143
142
|
}
|
|
144
|
-
if (message.apr_value !== 0) {
|
|
145
|
-
writer.uint32(157).float(message.apr_value);
|
|
146
|
-
}
|
|
147
143
|
return writer;
|
|
148
144
|
},
|
|
149
145
|
decode(input, length) {
|
|
@@ -261,12 +257,6 @@ exports.getLoanByIdResponse = {
|
|
|
261
257
|
}
|
|
262
258
|
message.net_payable_amount = reader.int32();
|
|
263
259
|
continue;
|
|
264
|
-
case 19:
|
|
265
|
-
if (tag !== 157) {
|
|
266
|
-
break;
|
|
267
|
-
}
|
|
268
|
-
message.apr_value = reader.float();
|
|
269
|
-
continue;
|
|
270
260
|
}
|
|
271
261
|
if ((tag & 7) === 4 || tag === 0) {
|
|
272
262
|
break;
|
|
@@ -297,7 +287,6 @@ exports.getLoanByIdResponse = {
|
|
|
297
287
|
fees: isSet(object.fees) ? exports.getLoanByIdResponse_Field.fromJSON(object.fees) : undefined,
|
|
298
288
|
loan_create_date: isSet(object.loan_create_date) ? globalThis.String(object.loan_create_date) : "",
|
|
299
289
|
net_payable_amount: isSet(object.net_payable_amount) ? globalThis.Number(object.net_payable_amount) : 0,
|
|
300
|
-
apr_value: isSet(object.apr_value) ? globalThis.Number(object.apr_value) : 0,
|
|
301
290
|
};
|
|
302
291
|
},
|
|
303
292
|
toJSON(message) {
|
|
@@ -356,9 +345,6 @@ exports.getLoanByIdResponse = {
|
|
|
356
345
|
if (message.net_payable_amount !== 0) {
|
|
357
346
|
obj.net_payable_amount = Math.round(message.net_payable_amount);
|
|
358
347
|
}
|
|
359
|
-
if (message.apr_value !== 0) {
|
|
360
|
-
obj.apr_value = message.apr_value;
|
|
361
|
-
}
|
|
362
348
|
return obj;
|
|
363
349
|
},
|
|
364
350
|
create(base) {
|
|
@@ -386,7 +372,6 @@ exports.getLoanByIdResponse = {
|
|
|
386
372
|
: undefined;
|
|
387
373
|
message.loan_create_date = object.loan_create_date ?? "";
|
|
388
374
|
message.net_payable_amount = object.net_payable_amount ?? 0;
|
|
389
|
-
message.apr_value = object.apr_value ?? 0;
|
|
390
375
|
return message;
|
|
391
376
|
},
|
|
392
377
|
};
|
|
@@ -36,7 +36,6 @@ export interface loanSummaryResponse {
|
|
|
36
36
|
credit_report_actual_fees: number;
|
|
37
37
|
plan_id: number;
|
|
38
38
|
approved_amount: number;
|
|
39
|
-
discount: number;
|
|
40
39
|
}
|
|
41
40
|
export declare const loanSummaryRequest: {
|
|
42
41
|
encode(message: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/loansummary.js
CHANGED
|
@@ -124,7 +124,6 @@ function createBaseloanSummaryResponse() {
|
|
|
124
124
|
credit_report_actual_fees: 0,
|
|
125
125
|
plan_id: 0,
|
|
126
126
|
approved_amount: 0,
|
|
127
|
-
discount: 0,
|
|
128
127
|
};
|
|
129
128
|
}
|
|
130
129
|
exports.loanSummaryResponse = {
|
|
@@ -199,7 +198,7 @@ exports.loanSummaryResponse = {
|
|
|
199
198
|
writer.uint32(186).string(message.bill_card_description);
|
|
200
199
|
}
|
|
201
200
|
if (message.apr_value !== 0) {
|
|
202
|
-
writer.uint32(
|
|
201
|
+
writer.uint32(192).int32(message.apr_value);
|
|
203
202
|
}
|
|
204
203
|
if (message.apr_type !== "") {
|
|
205
204
|
writer.uint32(202).string(message.apr_type);
|
|
@@ -219,9 +218,6 @@ exports.loanSummaryResponse = {
|
|
|
219
218
|
if (message.approved_amount !== 0) {
|
|
220
219
|
writer.uint32(240).int32(message.approved_amount);
|
|
221
220
|
}
|
|
222
|
-
if (message.discount !== 0) {
|
|
223
|
-
writer.uint32(248).int32(message.discount);
|
|
224
|
-
}
|
|
225
221
|
return writer;
|
|
226
222
|
},
|
|
227
223
|
decode(input, length) {
|
|
@@ -370,10 +366,10 @@ exports.loanSummaryResponse = {
|
|
|
370
366
|
message.bill_card_description = reader.string();
|
|
371
367
|
continue;
|
|
372
368
|
case 24:
|
|
373
|
-
if (tag !==
|
|
369
|
+
if (tag !== 192) {
|
|
374
370
|
break;
|
|
375
371
|
}
|
|
376
|
-
message.apr_value = reader.
|
|
372
|
+
message.apr_value = reader.int32();
|
|
377
373
|
continue;
|
|
378
374
|
case 25:
|
|
379
375
|
if (tag !== 202) {
|
|
@@ -411,12 +407,6 @@ exports.loanSummaryResponse = {
|
|
|
411
407
|
}
|
|
412
408
|
message.approved_amount = reader.int32();
|
|
413
409
|
continue;
|
|
414
|
-
case 31:
|
|
415
|
-
if (tag !== 248) {
|
|
416
|
-
break;
|
|
417
|
-
}
|
|
418
|
-
message.discount = reader.int32();
|
|
419
|
-
continue;
|
|
420
410
|
}
|
|
421
411
|
if ((tag & 7) === 4 || tag === 0) {
|
|
422
412
|
break;
|
|
@@ -465,7 +455,6 @@ exports.loanSummaryResponse = {
|
|
|
465
455
|
: 0,
|
|
466
456
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
467
457
|
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
468
|
-
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
469
458
|
};
|
|
470
459
|
},
|
|
471
460
|
toJSON(message) {
|
|
@@ -540,7 +529,7 @@ exports.loanSummaryResponse = {
|
|
|
540
529
|
obj.bill_card_description = message.bill_card_description;
|
|
541
530
|
}
|
|
542
531
|
if (message.apr_value !== 0) {
|
|
543
|
-
obj.apr_value = message.apr_value;
|
|
532
|
+
obj.apr_value = Math.round(message.apr_value);
|
|
544
533
|
}
|
|
545
534
|
if (message.apr_type !== "") {
|
|
546
535
|
obj.apr_type = message.apr_type;
|
|
@@ -560,9 +549,6 @@ exports.loanSummaryResponse = {
|
|
|
560
549
|
if (message.approved_amount !== 0) {
|
|
561
550
|
obj.approved_amount = Math.round(message.approved_amount);
|
|
562
551
|
}
|
|
563
|
-
if (message.discount !== 0) {
|
|
564
|
-
obj.discount = Math.round(message.discount);
|
|
565
|
-
}
|
|
566
552
|
return obj;
|
|
567
553
|
},
|
|
568
554
|
create(base) {
|
|
@@ -600,7 +586,6 @@ exports.loanSummaryResponse = {
|
|
|
600
586
|
message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
|
|
601
587
|
message.plan_id = object.plan_id ?? 0;
|
|
602
588
|
message.approved_amount = object.approved_amount ?? 0;
|
|
603
|
-
message.discount = object.discount ?? 0;
|
|
604
589
|
return message;
|
|
605
590
|
},
|
|
606
591
|
};
|