@stashfin/grpc 1.2.419 → 1.2.420
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,7 +13,7 @@ exports.manualPaymentAllocationResponse = exports.manualPaymentAllocationRequest
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.manualpaymentallocation";
|
|
15
15
|
function createBasemanualPaymentAllocationRequest() {
|
|
16
|
-
return { customer_id: 0, amount: 0, type: "", loan_id: [] };
|
|
16
|
+
return { customer_id: 0, amount: 0, type: "", loan_id: [], mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.manualPaymentAllocationRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -31,6 +31,9 @@ exports.manualPaymentAllocationRequest = {
|
|
|
31
31
|
writer.int32(v);
|
|
32
32
|
}
|
|
33
33
|
writer.ldelim();
|
|
34
|
+
if (message.mode !== "") {
|
|
35
|
+
writer.uint32(42).string(message.mode);
|
|
36
|
+
}
|
|
34
37
|
return writer;
|
|
35
38
|
},
|
|
36
39
|
decode(input, length) {
|
|
@@ -71,6 +74,12 @@ exports.manualPaymentAllocationRequest = {
|
|
|
71
74
|
continue;
|
|
72
75
|
}
|
|
73
76
|
break;
|
|
77
|
+
case 5:
|
|
78
|
+
if (tag !== 42) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
message.mode = reader.string();
|
|
82
|
+
continue;
|
|
74
83
|
}
|
|
75
84
|
if ((tag & 7) === 4 || tag === 0) {
|
|
76
85
|
break;
|
|
@@ -85,6 +94,7 @@ exports.manualPaymentAllocationRequest = {
|
|
|
85
94
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
86
95
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
87
96
|
loan_id: globalThis.Array.isArray(object?.loan_id) ? object.loan_id.map((e) => globalThis.Number(e)) : [],
|
|
97
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
88
98
|
};
|
|
89
99
|
},
|
|
90
100
|
toJSON(message) {
|
|
@@ -101,6 +111,9 @@ exports.manualPaymentAllocationRequest = {
|
|
|
101
111
|
if (message.loan_id?.length) {
|
|
102
112
|
obj.loan_id = message.loan_id.map((e) => Math.round(e));
|
|
103
113
|
}
|
|
114
|
+
if (message.mode !== "") {
|
|
115
|
+
obj.mode = message.mode;
|
|
116
|
+
}
|
|
104
117
|
return obj;
|
|
105
118
|
},
|
|
106
119
|
create(base) {
|
|
@@ -112,6 +125,7 @@ exports.manualPaymentAllocationRequest = {
|
|
|
112
125
|
message.amount = object.amount ?? 0;
|
|
113
126
|
message.type = object.type ?? "";
|
|
114
127
|
message.loan_id = object.loan_id?.map((e) => e) || [];
|
|
128
|
+
message.mode = object.mode ?? "";
|
|
115
129
|
return message;
|
|
116
130
|
},
|
|
117
131
|
};
|
package/ts/loans/paynow.d.ts
CHANGED
package/ts/loans/paynow.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.payNowResponse = exports.payNowRequest_add_on = exports.payNowRequest =
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.paynow";
|
|
15
15
|
function createBasepayNowRequest() {
|
|
16
|
-
return { customer_id: 0, mode: "", add_ons: [], amount: 0, loan_id: [], installment_id: [] };
|
|
16
|
+
return { customer_id: 0, mode: "", add_ons: [], amount: 0, loan_id: [], installment_id: [], bill_id: [] };
|
|
17
17
|
}
|
|
18
18
|
exports.payNowRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -39,6 +39,11 @@ exports.payNowRequest = {
|
|
|
39
39
|
writer.int32(v);
|
|
40
40
|
}
|
|
41
41
|
writer.ldelim();
|
|
42
|
+
writer.uint32(58).fork();
|
|
43
|
+
for (const v of message.bill_id) {
|
|
44
|
+
writer.int32(v);
|
|
45
|
+
}
|
|
46
|
+
writer.ldelim();
|
|
42
47
|
return writer;
|
|
43
48
|
},
|
|
44
49
|
decode(input, length) {
|
|
@@ -98,6 +103,19 @@ exports.payNowRequest = {
|
|
|
98
103
|
continue;
|
|
99
104
|
}
|
|
100
105
|
break;
|
|
106
|
+
case 7:
|
|
107
|
+
if (tag === 56) {
|
|
108
|
+
message.bill_id.push(reader.int32());
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (tag === 58) {
|
|
112
|
+
const end2 = reader.uint32() + reader.pos;
|
|
113
|
+
while (reader.pos < end2) {
|
|
114
|
+
message.bill_id.push(reader.int32());
|
|
115
|
+
}
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
break;
|
|
101
119
|
}
|
|
102
120
|
if ((tag & 7) === 4 || tag === 0) {
|
|
103
121
|
break;
|
|
@@ -118,6 +136,7 @@ exports.payNowRequest = {
|
|
|
118
136
|
installment_id: globalThis.Array.isArray(object?.installment_id)
|
|
119
137
|
? object.installment_id.map((e) => globalThis.Number(e))
|
|
120
138
|
: [],
|
|
139
|
+
bill_id: globalThis.Array.isArray(object?.bill_id) ? object.bill_id.map((e) => globalThis.Number(e)) : [],
|
|
121
140
|
};
|
|
122
141
|
},
|
|
123
142
|
toJSON(message) {
|
|
@@ -140,6 +159,9 @@ exports.payNowRequest = {
|
|
|
140
159
|
if (message.installment_id?.length) {
|
|
141
160
|
obj.installment_id = message.installment_id.map((e) => Math.round(e));
|
|
142
161
|
}
|
|
162
|
+
if (message.bill_id?.length) {
|
|
163
|
+
obj.bill_id = message.bill_id.map((e) => Math.round(e));
|
|
164
|
+
}
|
|
143
165
|
return obj;
|
|
144
166
|
},
|
|
145
167
|
create(base) {
|
|
@@ -153,6 +175,7 @@ exports.payNowRequest = {
|
|
|
153
175
|
message.amount = object.amount ?? 0;
|
|
154
176
|
message.loan_id = object.loan_id?.map((e) => e) || [];
|
|
155
177
|
message.installment_id = object.installment_id?.map((e) => e) || [];
|
|
178
|
+
message.bill_id = object.bill_id?.map((e) => e) || [];
|
|
156
179
|
return message;
|
|
157
180
|
},
|
|
158
181
|
};
|