@stashfin/grpc 1.2.150 → 1.2.151
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/getbasicdetails.d.ts +57 -0
- package/ts/bureau/getbasicdetails.js +341 -0
- package/ts/bureau/getdemogs.d.ts +113 -0
- package/ts/bureau/getdemogs.js +611 -0
- package/ts/bureau/getreport.d.ts +188 -0
- package/ts/bureau/getreport.js +1640 -0
- package/ts/bureau.d.ts +56 -0
- package/ts/bureau.js +44 -0
- package/ts/colender/disburseLoan.d.ts +44 -0
- package/ts/colender/disburseLoan.js +256 -0
- package/ts/colender/forecloseLoan.d.ts +41 -0
- package/ts/colender/forecloseLoan.js +205 -0
- package/ts/colender/repayLoan.d.ts +48 -0
- package/ts/colender/repayLoan.js +313 -0
- package/ts/colender.d.ts +56 -0
- package/ts/colender.js +44 -0
- package/ts/customers/aa/getbanklist.d.ts +48 -0
- package/ts/customers/aa/getbanklist.js +198 -0
- package/ts/customers/aa/initiate.d.ts +40 -0
- package/ts/customers/aa/initiate.js +209 -0
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/addgstnumber.d.ts +35 -0
- package/ts/customers/addgstnumber.js +117 -0
- package/ts/customers/addmoredetails.d.ts +60 -0
- package/ts/customers/addmoredetails.js +314 -0
- package/ts/customers/addsuspendedcustomer.d.ts +36 -0
- package/ts/customers/addsuspendedcustomer.js +133 -0
- package/ts/customers/adduserapps.d.ts +74 -0
- package/ts/customers/adduserapps.js +210 -0
- package/ts/customers/changempin.d.ts +36 -0
- package/ts/customers/changempin.js +133 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/deleteprofile.d.ts +35 -0
- package/ts/customers/deleteprofile.js +120 -0
- package/ts/customers/disablempin.d.ts +34 -0
- package/ts/customers/disablempin.js +104 -0
- package/ts/customers/fetchrcprofile.d.ts +45 -0
- package/ts/customers/fetchrcprofile.js +271 -0
- package/ts/customers/forgotmpin.d.ts +35 -0
- package/ts/customers/forgotmpin.js +117 -0
- package/ts/customers/forgotmpinverify.d.ts +36 -0
- package/ts/customers/forgotmpinverify.js +133 -0
- package/ts/customers/getbankaccountdetails.d.ts +36 -0
- package/ts/customers/getbankaccountdetails.js +134 -0
- package/ts/customers/getbasicinfo.d.ts +56 -0
- package/ts/customers/getbasicinfo.js +323 -0
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcustomerbyid.d.ts +140 -0
- package/ts/customers/getcustomerbyid.js +1478 -0
- package/ts/customers/getdashboard.d.ts +88 -0
- package/ts/customers/getdashboard.js +574 -0
- package/ts/customers/getdashboardmaincard.d.ts +70 -0
- package/ts/customers/getdashboardmaincard.js +534 -0
- package/ts/customers/getdocuments.d.ts +36 -0
- package/ts/customers/getdocuments.js +134 -0
- package/ts/customers/getlimit.d.ts +37 -0
- package/ts/customers/getlimit.js +148 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +54 -0
- package/ts/customers/getprofile.js +296 -0
- package/ts/customers/getselfieetxnid.d.ts +34 -0
- package/ts/customers/getselfieetxnid.js +104 -0
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +69 -0
- package/ts/customers/getstep.js +406 -0
- package/ts/customers/profilebasic.d.ts +38 -0
- package/ts/customers/profilebasic.js +161 -0
- package/ts/customers/profileupdatetnc.d.ts +35 -0
- package/ts/customers/profileupdatetnc.js +117 -0
- package/ts/customers/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/customers/saveunlocklimit.js +104 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/sendotptoemail.d.ts +35 -0
- package/ts/customers/sendotptoemail.js +117 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/updatedlnumber.d.ts +35 -0
- package/ts/customers/updatedlnumber.js +119 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatelocstatus.d.ts +36 -0
- package/ts/customers/updatelocstatus.js +133 -0
- package/ts/customers/updatemobilesendotp.d.ts +35 -0
- package/ts/customers/updatemobilesendotp.js +117 -0
- package/ts/customers/updatemobileverifyotp.d.ts +36 -0
- package/ts/customers/updatemobileverifyotp.js +133 -0
- package/ts/customers/updateokyctxn.d.ts +37 -0
- package/ts/customers/updateokyctxn.js +147 -0
- package/ts/customers/updateselfieetxn.d.ts +36 -0
- package/ts/customers/updateselfieetxn.js +133 -0
- package/ts/customers/updatevehiclenumber.d.ts +35 -0
- package/ts/customers/updatevehiclenumber.js +117 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifympin.d.ts +37 -0
- package/ts/customers/verifympin.js +149 -0
- package/ts/customers/verifyotp.d.ts +41 -0
- package/ts/customers/verifyotp.js +205 -0
- package/ts/customers/verifyotptoemail.d.ts +35 -0
- package/ts/customers/verifyotptoemail.js +117 -0
- package/ts/customers.d.ts +698 -0
- package/ts/customers.js +502 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/ts/loans/approveloan.d.ts +68 -0
- package/ts/loans/approveloan.js +621 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +57 -0
- package/ts/loans/calculateemi.js +340 -0
- package/ts/loans/creditlimit.d.ts +51 -0
- package/ts/loans/creditlimit.js +381 -0
- package/ts/loans/futurepaymentmoredetails.d.ts +50 -0
- package/ts/loans/futurepaymentmoredetails.js +230 -0
- package/ts/loans/getbilldetails.d.ts +38 -0
- package/ts/loans/getbilldetails.js +161 -0
- package/ts/loans/getcustomerloanstatus.d.ts +34 -0
- package/ts/loans/getcustomerloanstatus.js +104 -0
- package/ts/loans/getloanbyid.d.ts +48 -0
- package/ts/loans/getloanbyid.js +318 -0
- package/ts/loans/getpendingemiamount.d.ts +34 -0
- package/ts/loans/getpendingemiamount.js +104 -0
- package/ts/loans/getsummarystaticfields.d.ts +80 -0
- package/ts/loans/getsummarystaticfields.js +700 -0
- package/ts/loans/loansummary.d.ts +66 -0
- package/ts/loans/loansummary.js +593 -0
- package/ts/loans/paymentallocation.d.ts +37 -0
- package/ts/loans/paymentallocation.js +147 -0
- package/ts/loans/paymenthistory.d.ts +47 -0
- package/ts/loans/paymenthistory.js +188 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/sendemail.d.ts +35 -0
- package/ts/loans/sendemail.js +117 -0
- package/ts/loans/sendnocemail.d.ts +35 -0
- package/ts/loans/sendnocemail.js +117 -0
- package/ts/loans/transactionlist.d.ts +52 -0
- package/ts/loans/transactionlist.js +257 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +39 -0
- package/ts/loans/updateloan.js +175 -0
- package/ts/loans.d.ts +280 -0
- package/ts/loans.js +204 -0
- package/ts/payments.d.ts +239 -0
- package/ts/payments.js +1117 -0
- package/ts/stashcash/creditsc.d.ts +54 -0
- package/ts/stashcash/creditsc.js +301 -0
- package/ts/stashcash/debitsc.d.ts +59 -0
- package/ts/stashcash/debitsc.js +380 -0
- package/ts/stashcash/getscbalance.d.ts +53 -0
- package/ts/stashcash/getscbalance.js +293 -0
- package/ts/stashcash/getschistory.d.ts +73 -0
- package/ts/stashcash/getschistory.js +479 -0
- package/ts/stashcash/reversesc.d.ts +52 -0
- package/ts/stashcash/reversesc.js +273 -0
- package/ts/stashcash.d.ts +84 -0
- package/ts/stashcash.js +64 -0
|
@@ -0,0 +1,479 @@
|
|
|
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.27.3
|
|
6
|
+
// source: stashcash/getschistory.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.SCtransaction = exports.Data = exports.response = exports.request = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "stashcash.getschistory";
|
|
16
|
+
function createBaserequest() {
|
|
17
|
+
return { customer_id: 0, page: "", limit: "", filter_by: undefined };
|
|
18
|
+
}
|
|
19
|
+
exports.request = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.customer_id !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.customer_id);
|
|
23
|
+
}
|
|
24
|
+
if (message.page !== "") {
|
|
25
|
+
writer.uint32(18).string(message.page);
|
|
26
|
+
}
|
|
27
|
+
if (message.limit !== "") {
|
|
28
|
+
writer.uint32(26).string(message.limit);
|
|
29
|
+
}
|
|
30
|
+
if (message.filter_by !== undefined) {
|
|
31
|
+
writer.uint32(34).string(message.filter_by);
|
|
32
|
+
}
|
|
33
|
+
return writer;
|
|
34
|
+
},
|
|
35
|
+
decode(input, length) {
|
|
36
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
37
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
+
const message = createBaserequest();
|
|
39
|
+
while (reader.pos < end) {
|
|
40
|
+
const tag = reader.uint32();
|
|
41
|
+
switch (tag >>> 3) {
|
|
42
|
+
case 1:
|
|
43
|
+
if (tag !== 8) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.customer_id = longToNumber(reader.int64());
|
|
47
|
+
continue;
|
|
48
|
+
case 2:
|
|
49
|
+
if (tag !== 18) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
message.page = reader.string();
|
|
53
|
+
continue;
|
|
54
|
+
case 3:
|
|
55
|
+
if (tag !== 26) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
message.limit = reader.string();
|
|
59
|
+
continue;
|
|
60
|
+
case 4:
|
|
61
|
+
if (tag !== 34) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.filter_by = reader.string();
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
reader.skipType(tag & 7);
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
fromJSON(object) {
|
|
75
|
+
return {
|
|
76
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
77
|
+
page: isSet(object.page) ? globalThis.String(object.page) : "",
|
|
78
|
+
limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
|
|
79
|
+
filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : undefined,
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
toJSON(message) {
|
|
83
|
+
const obj = {};
|
|
84
|
+
if (message.customer_id !== 0) {
|
|
85
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
86
|
+
}
|
|
87
|
+
if (message.page !== "") {
|
|
88
|
+
obj.page = message.page;
|
|
89
|
+
}
|
|
90
|
+
if (message.limit !== "") {
|
|
91
|
+
obj.limit = message.limit;
|
|
92
|
+
}
|
|
93
|
+
if (message.filter_by !== undefined) {
|
|
94
|
+
obj.filter_by = message.filter_by;
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
},
|
|
98
|
+
create(base) {
|
|
99
|
+
return exports.request.fromPartial(base ?? {});
|
|
100
|
+
},
|
|
101
|
+
fromPartial(object) {
|
|
102
|
+
const message = createBaserequest();
|
|
103
|
+
message.customer_id = object.customer_id ?? 0;
|
|
104
|
+
message.page = object.page ?? "";
|
|
105
|
+
message.limit = object.limit ?? "";
|
|
106
|
+
message.filter_by = object.filter_by ?? undefined;
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
function createBaseresponse() {
|
|
111
|
+
return { status: "", data: undefined };
|
|
112
|
+
}
|
|
113
|
+
exports.response = {
|
|
114
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
115
|
+
if (message.status !== "") {
|
|
116
|
+
writer.uint32(10).string(message.status);
|
|
117
|
+
}
|
|
118
|
+
if (message.data !== undefined) {
|
|
119
|
+
exports.Data.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
},
|
|
123
|
+
decode(input, length) {
|
|
124
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
125
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
126
|
+
const message = createBaseresponse();
|
|
127
|
+
while (reader.pos < end) {
|
|
128
|
+
const tag = reader.uint32();
|
|
129
|
+
switch (tag >>> 3) {
|
|
130
|
+
case 1:
|
|
131
|
+
if (tag !== 10) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
message.status = reader.string();
|
|
135
|
+
continue;
|
|
136
|
+
case 2:
|
|
137
|
+
if (tag !== 18) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
message.data = exports.Data.decode(reader, reader.uint32());
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
reader.skipType(tag & 7);
|
|
147
|
+
}
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
fromJSON(object) {
|
|
151
|
+
return {
|
|
152
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
153
|
+
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
toJSON(message) {
|
|
157
|
+
const obj = {};
|
|
158
|
+
if (message.status !== "") {
|
|
159
|
+
obj.status = message.status;
|
|
160
|
+
}
|
|
161
|
+
if (message.data !== undefined) {
|
|
162
|
+
obj.data = exports.Data.toJSON(message.data);
|
|
163
|
+
}
|
|
164
|
+
return obj;
|
|
165
|
+
},
|
|
166
|
+
create(base) {
|
|
167
|
+
return exports.response.fromPartial(base ?? {});
|
|
168
|
+
},
|
|
169
|
+
fromPartial(object) {
|
|
170
|
+
const message = createBaseresponse();
|
|
171
|
+
message.status = object.status ?? "";
|
|
172
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
173
|
+
return message;
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
function createBaseData() {
|
|
177
|
+
return { history: [] };
|
|
178
|
+
}
|
|
179
|
+
exports.Data = {
|
|
180
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
181
|
+
for (const v of message.history) {
|
|
182
|
+
exports.SCtransaction.encode(v, writer.uint32(10).fork()).ldelim();
|
|
183
|
+
}
|
|
184
|
+
return writer;
|
|
185
|
+
},
|
|
186
|
+
decode(input, length) {
|
|
187
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
188
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
189
|
+
const message = createBaseData();
|
|
190
|
+
while (reader.pos < end) {
|
|
191
|
+
const tag = reader.uint32();
|
|
192
|
+
switch (tag >>> 3) {
|
|
193
|
+
case 1:
|
|
194
|
+
if (tag !== 10) {
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
message.history.push(exports.SCtransaction.decode(reader, reader.uint32()));
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
reader.skipType(tag & 7);
|
|
204
|
+
}
|
|
205
|
+
return message;
|
|
206
|
+
},
|
|
207
|
+
fromJSON(object) {
|
|
208
|
+
return {
|
|
209
|
+
history: globalThis.Array.isArray(object?.history)
|
|
210
|
+
? object.history.map((e) => exports.SCtransaction.fromJSON(e))
|
|
211
|
+
: [],
|
|
212
|
+
};
|
|
213
|
+
},
|
|
214
|
+
toJSON(message) {
|
|
215
|
+
const obj = {};
|
|
216
|
+
if (message.history?.length) {
|
|
217
|
+
obj.history = message.history.map((e) => exports.SCtransaction.toJSON(e));
|
|
218
|
+
}
|
|
219
|
+
return obj;
|
|
220
|
+
},
|
|
221
|
+
create(base) {
|
|
222
|
+
return exports.Data.fromPartial(base ?? {});
|
|
223
|
+
},
|
|
224
|
+
fromPartial(object) {
|
|
225
|
+
const message = createBaseData();
|
|
226
|
+
message.history = object.history?.map((e) => exports.SCtransaction.fromPartial(e)) || [];
|
|
227
|
+
return message;
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
function createBaseSCtransaction() {
|
|
231
|
+
return {
|
|
232
|
+
id: 0,
|
|
233
|
+
customer_id: 0,
|
|
234
|
+
campaign_id: 0,
|
|
235
|
+
txn_id: "",
|
|
236
|
+
sc_type: "",
|
|
237
|
+
amount: 0,
|
|
238
|
+
remaining: 0,
|
|
239
|
+
txn_type: "",
|
|
240
|
+
status: "",
|
|
241
|
+
expiry: undefined,
|
|
242
|
+
created_at: "",
|
|
243
|
+
is_active: false,
|
|
244
|
+
is_deleted: false,
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
exports.SCtransaction = {
|
|
248
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
249
|
+
if (message.id !== 0) {
|
|
250
|
+
writer.uint32(8).int64(message.id);
|
|
251
|
+
}
|
|
252
|
+
if (message.customer_id !== 0) {
|
|
253
|
+
writer.uint32(16).int64(message.customer_id);
|
|
254
|
+
}
|
|
255
|
+
if (message.campaign_id !== 0) {
|
|
256
|
+
writer.uint32(24).int64(message.campaign_id);
|
|
257
|
+
}
|
|
258
|
+
if (message.txn_id !== "") {
|
|
259
|
+
writer.uint32(34).string(message.txn_id);
|
|
260
|
+
}
|
|
261
|
+
if (message.sc_type !== "") {
|
|
262
|
+
writer.uint32(42).string(message.sc_type);
|
|
263
|
+
}
|
|
264
|
+
if (message.amount !== 0) {
|
|
265
|
+
writer.uint32(49).double(message.amount);
|
|
266
|
+
}
|
|
267
|
+
if (message.remaining !== 0) {
|
|
268
|
+
writer.uint32(57).double(message.remaining);
|
|
269
|
+
}
|
|
270
|
+
if (message.txn_type !== "") {
|
|
271
|
+
writer.uint32(66).string(message.txn_type);
|
|
272
|
+
}
|
|
273
|
+
if (message.status !== "") {
|
|
274
|
+
writer.uint32(74).string(message.status);
|
|
275
|
+
}
|
|
276
|
+
if (message.expiry !== undefined) {
|
|
277
|
+
writer.uint32(82).string(message.expiry);
|
|
278
|
+
}
|
|
279
|
+
if (message.created_at !== "") {
|
|
280
|
+
writer.uint32(90).string(message.created_at);
|
|
281
|
+
}
|
|
282
|
+
if (message.is_active !== false) {
|
|
283
|
+
writer.uint32(96).bool(message.is_active);
|
|
284
|
+
}
|
|
285
|
+
if (message.is_deleted !== false) {
|
|
286
|
+
writer.uint32(104).bool(message.is_deleted);
|
|
287
|
+
}
|
|
288
|
+
return writer;
|
|
289
|
+
},
|
|
290
|
+
decode(input, length) {
|
|
291
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
292
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
+
const message = createBaseSCtransaction();
|
|
294
|
+
while (reader.pos < end) {
|
|
295
|
+
const tag = reader.uint32();
|
|
296
|
+
switch (tag >>> 3) {
|
|
297
|
+
case 1:
|
|
298
|
+
if (tag !== 8) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.id = longToNumber(reader.int64());
|
|
302
|
+
continue;
|
|
303
|
+
case 2:
|
|
304
|
+
if (tag !== 16) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
message.customer_id = longToNumber(reader.int64());
|
|
308
|
+
continue;
|
|
309
|
+
case 3:
|
|
310
|
+
if (tag !== 24) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
message.campaign_id = longToNumber(reader.int64());
|
|
314
|
+
continue;
|
|
315
|
+
case 4:
|
|
316
|
+
if (tag !== 34) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
message.txn_id = reader.string();
|
|
320
|
+
continue;
|
|
321
|
+
case 5:
|
|
322
|
+
if (tag !== 42) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
message.sc_type = reader.string();
|
|
326
|
+
continue;
|
|
327
|
+
case 6:
|
|
328
|
+
if (tag !== 49) {
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
message.amount = reader.double();
|
|
332
|
+
continue;
|
|
333
|
+
case 7:
|
|
334
|
+
if (tag !== 57) {
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
message.remaining = reader.double();
|
|
338
|
+
continue;
|
|
339
|
+
case 8:
|
|
340
|
+
if (tag !== 66) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
message.txn_type = reader.string();
|
|
344
|
+
continue;
|
|
345
|
+
case 9:
|
|
346
|
+
if (tag !== 74) {
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
message.status = reader.string();
|
|
350
|
+
continue;
|
|
351
|
+
case 10:
|
|
352
|
+
if (tag !== 82) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
message.expiry = reader.string();
|
|
356
|
+
continue;
|
|
357
|
+
case 11:
|
|
358
|
+
if (tag !== 90) {
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
message.created_at = reader.string();
|
|
362
|
+
continue;
|
|
363
|
+
case 12:
|
|
364
|
+
if (tag !== 96) {
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
message.is_active = reader.bool();
|
|
368
|
+
continue;
|
|
369
|
+
case 13:
|
|
370
|
+
if (tag !== 104) {
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
message.is_deleted = reader.bool();
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
reader.skipType(tag & 7);
|
|
380
|
+
}
|
|
381
|
+
return message;
|
|
382
|
+
},
|
|
383
|
+
fromJSON(object) {
|
|
384
|
+
return {
|
|
385
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
386
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
387
|
+
campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : 0,
|
|
388
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
389
|
+
sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : "",
|
|
390
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
391
|
+
remaining: isSet(object.remaining) ? globalThis.Number(object.remaining) : 0,
|
|
392
|
+
txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : "",
|
|
393
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
394
|
+
expiry: isSet(object.expiry) ? globalThis.String(object.expiry) : undefined,
|
|
395
|
+
created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
|
|
396
|
+
is_active: isSet(object.is_active) ? globalThis.Boolean(object.is_active) : false,
|
|
397
|
+
is_deleted: isSet(object.is_deleted) ? globalThis.Boolean(object.is_deleted) : false,
|
|
398
|
+
};
|
|
399
|
+
},
|
|
400
|
+
toJSON(message) {
|
|
401
|
+
const obj = {};
|
|
402
|
+
if (message.id !== 0) {
|
|
403
|
+
obj.id = Math.round(message.id);
|
|
404
|
+
}
|
|
405
|
+
if (message.customer_id !== 0) {
|
|
406
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
407
|
+
}
|
|
408
|
+
if (message.campaign_id !== 0) {
|
|
409
|
+
obj.campaign_id = Math.round(message.campaign_id);
|
|
410
|
+
}
|
|
411
|
+
if (message.txn_id !== "") {
|
|
412
|
+
obj.txn_id = message.txn_id;
|
|
413
|
+
}
|
|
414
|
+
if (message.sc_type !== "") {
|
|
415
|
+
obj.sc_type = message.sc_type;
|
|
416
|
+
}
|
|
417
|
+
if (message.amount !== 0) {
|
|
418
|
+
obj.amount = message.amount;
|
|
419
|
+
}
|
|
420
|
+
if (message.remaining !== 0) {
|
|
421
|
+
obj.remaining = message.remaining;
|
|
422
|
+
}
|
|
423
|
+
if (message.txn_type !== "") {
|
|
424
|
+
obj.txn_type = message.txn_type;
|
|
425
|
+
}
|
|
426
|
+
if (message.status !== "") {
|
|
427
|
+
obj.status = message.status;
|
|
428
|
+
}
|
|
429
|
+
if (message.expiry !== undefined) {
|
|
430
|
+
obj.expiry = message.expiry;
|
|
431
|
+
}
|
|
432
|
+
if (message.created_at !== "") {
|
|
433
|
+
obj.created_at = message.created_at;
|
|
434
|
+
}
|
|
435
|
+
if (message.is_active !== false) {
|
|
436
|
+
obj.is_active = message.is_active;
|
|
437
|
+
}
|
|
438
|
+
if (message.is_deleted !== false) {
|
|
439
|
+
obj.is_deleted = message.is_deleted;
|
|
440
|
+
}
|
|
441
|
+
return obj;
|
|
442
|
+
},
|
|
443
|
+
create(base) {
|
|
444
|
+
return exports.SCtransaction.fromPartial(base ?? {});
|
|
445
|
+
},
|
|
446
|
+
fromPartial(object) {
|
|
447
|
+
const message = createBaseSCtransaction();
|
|
448
|
+
message.id = object.id ?? 0;
|
|
449
|
+
message.customer_id = object.customer_id ?? 0;
|
|
450
|
+
message.campaign_id = object.campaign_id ?? 0;
|
|
451
|
+
message.txn_id = object.txn_id ?? "";
|
|
452
|
+
message.sc_type = object.sc_type ?? "";
|
|
453
|
+
message.amount = object.amount ?? 0;
|
|
454
|
+
message.remaining = object.remaining ?? 0;
|
|
455
|
+
message.txn_type = object.txn_type ?? "";
|
|
456
|
+
message.status = object.status ?? "";
|
|
457
|
+
message.expiry = object.expiry ?? undefined;
|
|
458
|
+
message.created_at = object.created_at ?? "";
|
|
459
|
+
message.is_active = object.is_active ?? false;
|
|
460
|
+
message.is_deleted = object.is_deleted ?? false;
|
|
461
|
+
return message;
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
function longToNumber(long) {
|
|
465
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
466
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
467
|
+
}
|
|
468
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
469
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
470
|
+
}
|
|
471
|
+
return long.toNumber();
|
|
472
|
+
}
|
|
473
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
474
|
+
minimal_1.default.util.Long = long_1.default;
|
|
475
|
+
minimal_1.default.configure();
|
|
476
|
+
}
|
|
477
|
+
function isSet(value) {
|
|
478
|
+
return value !== null && value !== undefined;
|
|
479
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "stashcash.reversesc";
|
|
3
|
+
export interface request {
|
|
4
|
+
txnid: number;
|
|
5
|
+
customer_id: number;
|
|
6
|
+
sc_type: string;
|
|
7
|
+
}
|
|
8
|
+
export interface response {
|
|
9
|
+
status: string;
|
|
10
|
+
data: response_Data | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface response_Data {
|
|
13
|
+
locked: number;
|
|
14
|
+
unlocked: number;
|
|
15
|
+
balance: number;
|
|
16
|
+
txn_id: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const request: {
|
|
19
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
21
|
+
fromJSON(object: any): request;
|
|
22
|
+
toJSON(message: request): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
25
|
+
};
|
|
26
|
+
export declare const response: {
|
|
27
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
29
|
+
fromJSON(object: any): response;
|
|
30
|
+
toJSON(message: response): unknown;
|
|
31
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
32
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
33
|
+
};
|
|
34
|
+
export declare const response_Data: {
|
|
35
|
+
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
36
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
37
|
+
fromJSON(object: any): response_Data;
|
|
38
|
+
toJSON(message: response_Data): unknown;
|
|
39
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
40
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
41
|
+
};
|
|
42
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
43
|
+
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 {} ? {
|
|
44
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
45
|
+
} : Partial<T>;
|
|
46
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
47
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
48
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
49
|
+
} & {
|
|
50
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
51
|
+
};
|
|
52
|
+
export {};
|