@stashfin/grpc 1.2.207 → 1.2.209
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
|
@@ -13,13 +13,16 @@ exports.updateTxnStatusResponse = exports.updateTxnStatusRequest = exports.proto
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.enach.updatetxnstatus";
|
|
15
15
|
function createBaseupdateTxnStatusRequest() {
|
|
16
|
-
return { txn_id: "" };
|
|
16
|
+
return { txn_id: "", status: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.updateTxnStatusRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.txn_id !== "") {
|
|
21
21
|
writer.uint32(10).string(message.txn_id);
|
|
22
22
|
}
|
|
23
|
+
if (message.status !== "") {
|
|
24
|
+
writer.uint32(18).string(message.status);
|
|
25
|
+
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
25
28
|
decode(input, length) {
|
|
@@ -35,6 +38,12 @@ exports.updateTxnStatusRequest = {
|
|
|
35
38
|
}
|
|
36
39
|
message.txn_id = reader.string();
|
|
37
40
|
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.status = reader.string();
|
|
46
|
+
continue;
|
|
38
47
|
}
|
|
39
48
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
49
|
break;
|
|
@@ -44,13 +53,19 @@ exports.updateTxnStatusRequest = {
|
|
|
44
53
|
return message;
|
|
45
54
|
},
|
|
46
55
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
58
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
59
|
+
};
|
|
48
60
|
},
|
|
49
61
|
toJSON(message) {
|
|
50
62
|
const obj = {};
|
|
51
63
|
if (message.txn_id !== "") {
|
|
52
64
|
obj.txn_id = message.txn_id;
|
|
53
65
|
}
|
|
66
|
+
if (message.status !== "") {
|
|
67
|
+
obj.status = message.status;
|
|
68
|
+
}
|
|
54
69
|
return obj;
|
|
55
70
|
},
|
|
56
71
|
create(base) {
|
|
@@ -59,6 +74,7 @@ exports.updateTxnStatusRequest = {
|
|
|
59
74
|
fromPartial(object) {
|
|
60
75
|
const message = createBaseupdateTxnStatusRequest();
|
|
61
76
|
message.txn_id = object.txn_id ?? "";
|
|
77
|
+
message.status = object.status ?? "";
|
|
62
78
|
return message;
|
|
63
79
|
},
|
|
64
80
|
};
|
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:
|
|
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()) {
|
|
@@ -23,9 +23,11 @@ exports.fcpPaymentRequest = {
|
|
|
23
23
|
if (message.customerid !== 0) {
|
|
24
24
|
writer.uint32(16).int32(message.customerid);
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
writer.uint32(26).fork();
|
|
27
|
+
for (const v of message.loan_id) {
|
|
28
|
+
writer.int32(v);
|
|
28
29
|
}
|
|
30
|
+
writer.ldelim();
|
|
29
31
|
if (message.payment_id !== 0) {
|
|
30
32
|
writer.uint32(32).int32(message.payment_id);
|
|
31
33
|
}
|
|
@@ -54,11 +56,18 @@ exports.fcpPaymentRequest = {
|
|
|
54
56
|
message.customerid = reader.int32();
|
|
55
57
|
continue;
|
|
56
58
|
case 3:
|
|
57
|
-
if (tag
|
|
58
|
-
|
|
59
|
+
if (tag === 24) {
|
|
60
|
+
message.loan_id.push(reader.int32());
|
|
61
|
+
continue;
|
|
59
62
|
}
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
if (tag === 26) {
|
|
64
|
+
const end2 = reader.uint32() + reader.pos;
|
|
65
|
+
while (reader.pos < end2) {
|
|
66
|
+
message.loan_id.push(reader.int32());
|
|
67
|
+
}
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
62
71
|
case 4:
|
|
63
72
|
if (tag !== 32) {
|
|
64
73
|
break;
|
|
@@ -83,7 +92,7 @@ exports.fcpPaymentRequest = {
|
|
|
83
92
|
return {
|
|
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
|
-
loan_id:
|
|
95
|
+
loan_id: globalThis.Array.isArray(object?.loan_id) ? object.loan_id.map((e) => globalThis.Number(e)) : [],
|
|
87
96
|
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
88
97
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
89
98
|
};
|
|
@@ -96,8 +105,8 @@ exports.fcpPaymentRequest = {
|
|
|
96
105
|
if (message.customerid !== 0) {
|
|
97
106
|
obj.customerid = Math.round(message.customerid);
|
|
98
107
|
}
|
|
99
|
-
if (message.loan_id
|
|
100
|
-
obj.loan_id = Math.round(
|
|
108
|
+
if (message.loan_id?.length) {
|
|
109
|
+
obj.loan_id = message.loan_id.map((e) => Math.round(e));
|
|
101
110
|
}
|
|
102
111
|
if (message.payment_id !== 0) {
|
|
103
112
|
obj.payment_id = Math.round(message.payment_id);
|
|
@@ -114,7 +123,7 @@ exports.fcpPaymentRequest = {
|
|
|
114
123
|
const message = createBasefcpPaymentRequest();
|
|
115
124
|
message.bill_amount = object.bill_amount ?? 0;
|
|
116
125
|
message.customerid = object.customerid ?? 0;
|
|
117
|
-
message.loan_id = object.loan_id
|
|
126
|
+
message.loan_id = object.loan_id?.map((e) => e) || [];
|
|
118
127
|
message.payment_id = object.payment_id ?? 0;
|
|
119
128
|
message.mode = object.mode ?? "";
|
|
120
129
|
return message;
|