@stashfin/grpc 1.2.54 → 1.2.59
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 +3 -3
- 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/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/forgotmpin.d.ts +36 -0
- package/ts/customers/forgotmpin.js +133 -0
- package/ts/customers/forgotmpinotp.d.ts +34 -0
- package/ts/customers/forgotmpinotp.js +104 -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 +55 -0
- package/ts/customers/getcustomerbyid.js +421 -0
- package/ts/customers/getdashboard.d.ts +91 -0
- package/ts/customers/getdashboard.js +618 -0
- package/ts/customers/getdashboardmaincard.d.ts +69 -0
- package/ts/customers/getdashboardmaincard.js +520 -0
- package/ts/customers/getkycweburl.d.ts +34 -0
- package/ts/customers/getkycweburl.js +104 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +53 -0
- package/ts/customers/getprofile.js +282 -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/resetmpin.d.ts +36 -0
- package/ts/customers/resetmpin.js +133 -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/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/step1.d.ts +71 -0
- package/ts/customers/step1.js +423 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +67 -0
- package/ts/customers/step2.js +366 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/updatedigilockertxn.d.ts +37 -0
- package/ts/customers/updatedigilockertxn.js +147 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatehypervergetxn.d.ts +36 -0
- package/ts/customers/updatehypervergetxn.js +133 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -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.d.ts +596 -0
- package/ts/customers.js +428 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/approveloan.d.ts +39 -0
- package/ts/loans/approveloan.js +175 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +51 -0
- package/ts/loans/calculateemi.js +243 -0
- package/ts/loans/creditlimit.d.ts +43 -0
- package/ts/loans/creditlimit.js +247 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/transactionlist.d.ts +50 -0
- package/ts/loans/transactionlist.js +229 -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 +126 -0
- package/ts/loans.js +94 -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
- package/README.md +0 -74
- package/src/proto/customers/addaddress.proto +0 -25
- package/src/proto/customers/addbankaccountdetails.proto +0 -13
- package/src/proto/customers/createcustomerreference.proto +0 -21
- package/src/proto/customers/forgotmpin.proto +0 -12
- package/src/proto/customers/forgotmpinotp.proto +0 -10
- package/src/proto/customers/getbankaccountdetails.proto +0 -11
- package/src/proto/customers/getbasicinfo.proto +0 -24
- package/src/proto/customers/getcities.proto +0 -16
- package/src/proto/customers/getcustomerbyid.proto +0 -31
- package/src/proto/customers/getdashboard.proto +0 -47
- package/src/proto/customers/getdashboardmaincard.proto +0 -37
- package/src/proto/customers/getkycweburl.proto +0 -10
- package/src/proto/customers/getprofessionalinfo.proto +0 -22
- package/src/proto/customers/getprofile.proto +0 -22
- package/src/proto/customers/getstates.proto +0 -15
- package/src/proto/customers/getstep.proto +0 -30
- package/src/proto/customers/profilebasic.proto +0 -14
- package/src/proto/customers/profileupdatetnc.proto +0 -11
- package/src/proto/customers/resetmpin.proto +0 -13
- package/src/proto/customers/savebasicdetails.proto +0 -16
- package/src/proto/customers/saveunlocklimit.proto +0 -10
- package/src/proto/customers/sendemailtoken.proto +0 -11
- package/src/proto/customers/sendotp.proto +0 -14
- package/src/proto/customers/setmpin.proto +0 -12
- package/src/proto/customers/step10.proto +0 -34
- package/src/proto/customers/step7.proto +0 -29
- package/src/proto/customers/step8.proto +0 -30
- package/src/proto/customers/step9.proto +0 -36
- package/src/proto/customers/stepstatic.proto +0 -27
- package/src/proto/customers/updatedigilockertxn.proto +0 -13
- package/src/proto/customers/updatedob.proto +0 -13
- package/src/proto/customers/updatehypervergetxn.proto +0 -12
- package/src/proto/customers/verifyemail.proto +0 -11
- package/src/proto/customers/verifympin.proto +0 -13
- package/src/proto/customers/verifyotp.proto +0 -17
- package/src/proto/customers.proto +0 -83
- package/src/proto/example.proto +0 -20
- package/src/proto/loans/approveloan.proto +0 -15
- package/src/proto/loans/banklist.proto +0 -12
- package/src/proto/loans/calculateemi.proto +0 -20
- package/src/proto/loans/creditlimit.proto +0 -18
- package/src/proto/loans/restructureloan.proto +0 -12
- package/src/proto/loans/transactionlist.proto +0 -18
- package/src/proto/loans/updateinstallments.proto +0 -19
- package/src/proto/loans/updateloan.proto +0 -15
- package/src/proto/loans.proto +0 -23
- package/src/proto/stashcash/creditsc.proto +0 -22
- package/src/proto/stashcash/debitsc.proto +0 -27
- package/src/proto/stashcash/getscbalance.proto +0 -21
- package/src/proto/stashcash/getschistory.proto +0 -35
- package/src/proto/stashcash/reversesc.proto +0 -20
- package/src/proto/stashcash.proto +0 -17
- package/src/ts/customers/addaddress.ts +0 -310
- package/src/ts/customers/addbankaccountdetails.ts +0 -184
- package/src/ts/customers/createcustomerreference.ts +0 -276
- package/src/ts/customers/getbankaccountdetails.ts +0 -169
- package/src/ts/customers/getbasicinfo.ts +0 -385
- package/src/ts/customers/getcities.ts +0 -227
- package/src/ts/customers/getcustomerbyid.ts +0 -492
- package/src/ts/customers/getdashboard.ts +0 -728
- package/src/ts/customers/getdashboardmaincard.ts +0 -608
- package/src/ts/customers/getkycweburl.ts +0 -133
- package/src/ts/customers/getprofessionalinfo.ts +0 -344
- package/src/ts/customers/getprofile.ts +0 -338
- package/src/ts/customers/getstates.ts +0 -212
- package/src/ts/customers/getstep.ts +0 -483
- package/src/ts/customers/profilebasic.ts +0 -198
- package/src/ts/customers/profileupdatetnc.ts +0 -148
- package/src/ts/customers/resetmpin.ts +0 -166
- package/src/ts/customers/savebasicdetails.ts +0 -229
- package/src/ts/customers/saveunlocklimit.ts +0 -133
- package/src/ts/customers/sendemailtoken.ts +0 -148
- package/src/ts/customers/sendotp.ts +0 -202
- package/src/ts/customers/setmpin.ts +0 -166
- package/src/ts/customers/step10.ts +0 -544
- package/src/ts/customers/step7.ts +0 -456
- package/src/ts/customers/step8.ts +0 -472
- package/src/ts/customers/step9.ts +0 -578
- package/src/ts/customers/stepstatic.ts +0 -425
- package/src/ts/customers/updatedigilockertxn.ts +0 -182
- package/src/ts/customers/updatehypervergetxn.ts +0 -166
- package/src/ts/customers/verifyemail.ts +0 -148
- package/src/ts/customers/verifympin.ts +0 -184
- package/src/ts/customers/verifyotp.ts +0 -232
- package/src/ts/customers.ts +0 -1038
- package/src/ts/example.ts +0 -294
- package/src/ts/loans/approveloan.ts +0 -214
- package/src/ts/loans/banklist.ts +0 -183
- package/src/ts/loans/calculateemi.ts +0 -295
- package/src/ts/loans/creditlimit.ts +0 -294
- package/src/ts/loans/restructureloan.ts +0 -166
- package/src/ts/loans/transactionlist.ts +0 -281
- package/src/ts/loans/updateinstallments.ts +0 -271
- package/src/ts/loans/updateloan.ts +0 -214
- package/src/ts/loans.ts +0 -221
- package/src/ts/stashcash/creditsc.ts +0 -361
- package/src/ts/stashcash/debitsc.ts +0 -450
- package/src/ts/stashcash/getscbalance.ts +0 -351
- package/src/ts/stashcash/getschistory.ts +0 -566
- package/src/ts/stashcash/reversesc.ts +0 -329
- package/src/ts/stashcash.ts +0 -152
- package/tsconfig.json +0 -18
|
@@ -1,566 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.0
|
|
4
|
-
// protoc v3.20.3
|
|
5
|
-
// source: stashcash/getschistory.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import Long from "long";
|
|
9
|
-
import _m0 from "protobufjs/minimal";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "stashcash.getschistory";
|
|
12
|
-
|
|
13
|
-
export interface request {
|
|
14
|
-
customer_id: number;
|
|
15
|
-
page: string;
|
|
16
|
-
limit: string;
|
|
17
|
-
filter_by?: string | undefined;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface response {
|
|
21
|
-
status: string;
|
|
22
|
-
data: Data | undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface Data {
|
|
26
|
-
history: SCtransaction[];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface SCtransaction {
|
|
30
|
-
id: number;
|
|
31
|
-
customer_id: number;
|
|
32
|
-
campaign_id: number;
|
|
33
|
-
txn_id: string;
|
|
34
|
-
sc_type: string;
|
|
35
|
-
amount: number;
|
|
36
|
-
remaining: number;
|
|
37
|
-
txn_type: string;
|
|
38
|
-
status: string;
|
|
39
|
-
expiry?: string | undefined;
|
|
40
|
-
created_at: string;
|
|
41
|
-
is_active: boolean;
|
|
42
|
-
is_deleted: boolean;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function createBaserequest(): request {
|
|
46
|
-
return { customer_id: 0, page: "", limit: "", filter_by: undefined };
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export const request = {
|
|
50
|
-
encode(message: request, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
51
|
-
if (message.customer_id !== 0) {
|
|
52
|
-
writer.uint32(8).int64(message.customer_id);
|
|
53
|
-
}
|
|
54
|
-
if (message.page !== "") {
|
|
55
|
-
writer.uint32(18).string(message.page);
|
|
56
|
-
}
|
|
57
|
-
if (message.limit !== "") {
|
|
58
|
-
writer.uint32(26).string(message.limit);
|
|
59
|
-
}
|
|
60
|
-
if (message.filter_by !== undefined) {
|
|
61
|
-
writer.uint32(34).string(message.filter_by);
|
|
62
|
-
}
|
|
63
|
-
return writer;
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): request {
|
|
67
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
68
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
69
|
-
const message = createBaserequest();
|
|
70
|
-
while (reader.pos < end) {
|
|
71
|
-
const tag = reader.uint32();
|
|
72
|
-
switch (tag >>> 3) {
|
|
73
|
-
case 1:
|
|
74
|
-
if (tag !== 8) {
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
message.customer_id = longToNumber(reader.int64() as Long);
|
|
79
|
-
continue;
|
|
80
|
-
case 2:
|
|
81
|
-
if (tag !== 18) {
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message.page = reader.string();
|
|
86
|
-
continue;
|
|
87
|
-
case 3:
|
|
88
|
-
if (tag !== 26) {
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
message.limit = reader.string();
|
|
93
|
-
continue;
|
|
94
|
-
case 4:
|
|
95
|
-
if (tag !== 34) {
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
message.filter_by = reader.string();
|
|
100
|
-
continue;
|
|
101
|
-
}
|
|
102
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
reader.skipType(tag & 7);
|
|
106
|
-
}
|
|
107
|
-
return message;
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
fromJSON(object: any): request {
|
|
111
|
-
return {
|
|
112
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
113
|
-
page: isSet(object.page) ? globalThis.String(object.page) : "",
|
|
114
|
-
limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
|
|
115
|
-
filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : undefined,
|
|
116
|
-
};
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
toJSON(message: request): unknown {
|
|
120
|
-
const obj: any = {};
|
|
121
|
-
if (message.customer_id !== 0) {
|
|
122
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
123
|
-
}
|
|
124
|
-
if (message.page !== "") {
|
|
125
|
-
obj.page = message.page;
|
|
126
|
-
}
|
|
127
|
-
if (message.limit !== "") {
|
|
128
|
-
obj.limit = message.limit;
|
|
129
|
-
}
|
|
130
|
-
if (message.filter_by !== undefined) {
|
|
131
|
-
obj.filter_by = message.filter_by;
|
|
132
|
-
}
|
|
133
|
-
return obj;
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request {
|
|
137
|
-
return request.fromPartial(base ?? ({} as any));
|
|
138
|
-
},
|
|
139
|
-
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request {
|
|
140
|
-
const message = createBaserequest();
|
|
141
|
-
message.customer_id = object.customer_id ?? 0;
|
|
142
|
-
message.page = object.page ?? "";
|
|
143
|
-
message.limit = object.limit ?? "";
|
|
144
|
-
message.filter_by = object.filter_by ?? undefined;
|
|
145
|
-
return message;
|
|
146
|
-
},
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
function createBaseresponse(): response {
|
|
150
|
-
return { status: "", data: undefined };
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export const response = {
|
|
154
|
-
encode(message: response, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
155
|
-
if (message.status !== "") {
|
|
156
|
-
writer.uint32(10).string(message.status);
|
|
157
|
-
}
|
|
158
|
-
if (message.data !== undefined) {
|
|
159
|
-
Data.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
160
|
-
}
|
|
161
|
-
return writer;
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response {
|
|
165
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
166
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
167
|
-
const message = createBaseresponse();
|
|
168
|
-
while (reader.pos < end) {
|
|
169
|
-
const tag = reader.uint32();
|
|
170
|
-
switch (tag >>> 3) {
|
|
171
|
-
case 1:
|
|
172
|
-
if (tag !== 10) {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
message.status = reader.string();
|
|
177
|
-
continue;
|
|
178
|
-
case 2:
|
|
179
|
-
if (tag !== 18) {
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
message.data = Data.decode(reader, reader.uint32());
|
|
184
|
-
continue;
|
|
185
|
-
}
|
|
186
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
reader.skipType(tag & 7);
|
|
190
|
-
}
|
|
191
|
-
return message;
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
fromJSON(object: any): response {
|
|
195
|
-
return {
|
|
196
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
197
|
-
data: isSet(object.data) ? Data.fromJSON(object.data) : undefined,
|
|
198
|
-
};
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
toJSON(message: response): unknown {
|
|
202
|
-
const obj: any = {};
|
|
203
|
-
if (message.status !== "") {
|
|
204
|
-
obj.status = message.status;
|
|
205
|
-
}
|
|
206
|
-
if (message.data !== undefined) {
|
|
207
|
-
obj.data = Data.toJSON(message.data);
|
|
208
|
-
}
|
|
209
|
-
return obj;
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response {
|
|
213
|
-
return response.fromPartial(base ?? ({} as any));
|
|
214
|
-
},
|
|
215
|
-
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response {
|
|
216
|
-
const message = createBaseresponse();
|
|
217
|
-
message.status = object.status ?? "";
|
|
218
|
-
message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
|
|
219
|
-
return message;
|
|
220
|
-
},
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
function createBaseData(): Data {
|
|
224
|
-
return { history: [] };
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export const Data = {
|
|
228
|
-
encode(message: Data, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
229
|
-
for (const v of message.history) {
|
|
230
|
-
SCtransaction.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
231
|
-
}
|
|
232
|
-
return writer;
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Data {
|
|
236
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
237
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
238
|
-
const message = createBaseData();
|
|
239
|
-
while (reader.pos < end) {
|
|
240
|
-
const tag = reader.uint32();
|
|
241
|
-
switch (tag >>> 3) {
|
|
242
|
-
case 1:
|
|
243
|
-
if (tag !== 10) {
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
message.history.push(SCtransaction.decode(reader, reader.uint32()));
|
|
248
|
-
continue;
|
|
249
|
-
}
|
|
250
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
reader.skipType(tag & 7);
|
|
254
|
-
}
|
|
255
|
-
return message;
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
fromJSON(object: any): Data {
|
|
259
|
-
return {
|
|
260
|
-
history: globalThis.Array.isArray(object?.history)
|
|
261
|
-
? object.history.map((e: any) => SCtransaction.fromJSON(e))
|
|
262
|
-
: [],
|
|
263
|
-
};
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
toJSON(message: Data): unknown {
|
|
267
|
-
const obj: any = {};
|
|
268
|
-
if (message.history?.length) {
|
|
269
|
-
obj.history = message.history.map((e) => SCtransaction.toJSON(e));
|
|
270
|
-
}
|
|
271
|
-
return obj;
|
|
272
|
-
},
|
|
273
|
-
|
|
274
|
-
create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data {
|
|
275
|
-
return Data.fromPartial(base ?? ({} as any));
|
|
276
|
-
},
|
|
277
|
-
fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data {
|
|
278
|
-
const message = createBaseData();
|
|
279
|
-
message.history = object.history?.map((e) => SCtransaction.fromPartial(e)) || [];
|
|
280
|
-
return message;
|
|
281
|
-
},
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
function createBaseSCtransaction(): SCtransaction {
|
|
285
|
-
return {
|
|
286
|
-
id: 0,
|
|
287
|
-
customer_id: 0,
|
|
288
|
-
campaign_id: 0,
|
|
289
|
-
txn_id: "",
|
|
290
|
-
sc_type: "",
|
|
291
|
-
amount: 0,
|
|
292
|
-
remaining: 0,
|
|
293
|
-
txn_type: "",
|
|
294
|
-
status: "",
|
|
295
|
-
expiry: undefined,
|
|
296
|
-
created_at: "",
|
|
297
|
-
is_active: false,
|
|
298
|
-
is_deleted: false,
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export const SCtransaction = {
|
|
303
|
-
encode(message: SCtransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
304
|
-
if (message.id !== 0) {
|
|
305
|
-
writer.uint32(8).int64(message.id);
|
|
306
|
-
}
|
|
307
|
-
if (message.customer_id !== 0) {
|
|
308
|
-
writer.uint32(16).int64(message.customer_id);
|
|
309
|
-
}
|
|
310
|
-
if (message.campaign_id !== 0) {
|
|
311
|
-
writer.uint32(24).int64(message.campaign_id);
|
|
312
|
-
}
|
|
313
|
-
if (message.txn_id !== "") {
|
|
314
|
-
writer.uint32(34).string(message.txn_id);
|
|
315
|
-
}
|
|
316
|
-
if (message.sc_type !== "") {
|
|
317
|
-
writer.uint32(42).string(message.sc_type);
|
|
318
|
-
}
|
|
319
|
-
if (message.amount !== 0) {
|
|
320
|
-
writer.uint32(49).double(message.amount);
|
|
321
|
-
}
|
|
322
|
-
if (message.remaining !== 0) {
|
|
323
|
-
writer.uint32(57).double(message.remaining);
|
|
324
|
-
}
|
|
325
|
-
if (message.txn_type !== "") {
|
|
326
|
-
writer.uint32(66).string(message.txn_type);
|
|
327
|
-
}
|
|
328
|
-
if (message.status !== "") {
|
|
329
|
-
writer.uint32(74).string(message.status);
|
|
330
|
-
}
|
|
331
|
-
if (message.expiry !== undefined) {
|
|
332
|
-
writer.uint32(82).string(message.expiry);
|
|
333
|
-
}
|
|
334
|
-
if (message.created_at !== "") {
|
|
335
|
-
writer.uint32(90).string(message.created_at);
|
|
336
|
-
}
|
|
337
|
-
if (message.is_active !== false) {
|
|
338
|
-
writer.uint32(96).bool(message.is_active);
|
|
339
|
-
}
|
|
340
|
-
if (message.is_deleted !== false) {
|
|
341
|
-
writer.uint32(104).bool(message.is_deleted);
|
|
342
|
-
}
|
|
343
|
-
return writer;
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SCtransaction {
|
|
347
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
348
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
349
|
-
const message = createBaseSCtransaction();
|
|
350
|
-
while (reader.pos < end) {
|
|
351
|
-
const tag = reader.uint32();
|
|
352
|
-
switch (tag >>> 3) {
|
|
353
|
-
case 1:
|
|
354
|
-
if (tag !== 8) {
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
message.id = longToNumber(reader.int64() as Long);
|
|
359
|
-
continue;
|
|
360
|
-
case 2:
|
|
361
|
-
if (tag !== 16) {
|
|
362
|
-
break;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
message.customer_id = longToNumber(reader.int64() as Long);
|
|
366
|
-
continue;
|
|
367
|
-
case 3:
|
|
368
|
-
if (tag !== 24) {
|
|
369
|
-
break;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
message.campaign_id = longToNumber(reader.int64() as Long);
|
|
373
|
-
continue;
|
|
374
|
-
case 4:
|
|
375
|
-
if (tag !== 34) {
|
|
376
|
-
break;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
message.txn_id = reader.string();
|
|
380
|
-
continue;
|
|
381
|
-
case 5:
|
|
382
|
-
if (tag !== 42) {
|
|
383
|
-
break;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
message.sc_type = reader.string();
|
|
387
|
-
continue;
|
|
388
|
-
case 6:
|
|
389
|
-
if (tag !== 49) {
|
|
390
|
-
break;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
message.amount = reader.double();
|
|
394
|
-
continue;
|
|
395
|
-
case 7:
|
|
396
|
-
if (tag !== 57) {
|
|
397
|
-
break;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
message.remaining = reader.double();
|
|
401
|
-
continue;
|
|
402
|
-
case 8:
|
|
403
|
-
if (tag !== 66) {
|
|
404
|
-
break;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
message.txn_type = reader.string();
|
|
408
|
-
continue;
|
|
409
|
-
case 9:
|
|
410
|
-
if (tag !== 74) {
|
|
411
|
-
break;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
message.status = reader.string();
|
|
415
|
-
continue;
|
|
416
|
-
case 10:
|
|
417
|
-
if (tag !== 82) {
|
|
418
|
-
break;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
message.expiry = reader.string();
|
|
422
|
-
continue;
|
|
423
|
-
case 11:
|
|
424
|
-
if (tag !== 90) {
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
message.created_at = reader.string();
|
|
429
|
-
continue;
|
|
430
|
-
case 12:
|
|
431
|
-
if (tag !== 96) {
|
|
432
|
-
break;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
message.is_active = reader.bool();
|
|
436
|
-
continue;
|
|
437
|
-
case 13:
|
|
438
|
-
if (tag !== 104) {
|
|
439
|
-
break;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
message.is_deleted = reader.bool();
|
|
443
|
-
continue;
|
|
444
|
-
}
|
|
445
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
446
|
-
break;
|
|
447
|
-
}
|
|
448
|
-
reader.skipType(tag & 7);
|
|
449
|
-
}
|
|
450
|
-
return message;
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
fromJSON(object: any): SCtransaction {
|
|
454
|
-
return {
|
|
455
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
456
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
457
|
-
campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : 0,
|
|
458
|
-
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
459
|
-
sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : "",
|
|
460
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
461
|
-
remaining: isSet(object.remaining) ? globalThis.Number(object.remaining) : 0,
|
|
462
|
-
txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : "",
|
|
463
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
464
|
-
expiry: isSet(object.expiry) ? globalThis.String(object.expiry) : undefined,
|
|
465
|
-
created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
|
|
466
|
-
is_active: isSet(object.is_active) ? globalThis.Boolean(object.is_active) : false,
|
|
467
|
-
is_deleted: isSet(object.is_deleted) ? globalThis.Boolean(object.is_deleted) : false,
|
|
468
|
-
};
|
|
469
|
-
},
|
|
470
|
-
|
|
471
|
-
toJSON(message: SCtransaction): unknown {
|
|
472
|
-
const obj: any = {};
|
|
473
|
-
if (message.id !== 0) {
|
|
474
|
-
obj.id = Math.round(message.id);
|
|
475
|
-
}
|
|
476
|
-
if (message.customer_id !== 0) {
|
|
477
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
478
|
-
}
|
|
479
|
-
if (message.campaign_id !== 0) {
|
|
480
|
-
obj.campaign_id = Math.round(message.campaign_id);
|
|
481
|
-
}
|
|
482
|
-
if (message.txn_id !== "") {
|
|
483
|
-
obj.txn_id = message.txn_id;
|
|
484
|
-
}
|
|
485
|
-
if (message.sc_type !== "") {
|
|
486
|
-
obj.sc_type = message.sc_type;
|
|
487
|
-
}
|
|
488
|
-
if (message.amount !== 0) {
|
|
489
|
-
obj.amount = message.amount;
|
|
490
|
-
}
|
|
491
|
-
if (message.remaining !== 0) {
|
|
492
|
-
obj.remaining = message.remaining;
|
|
493
|
-
}
|
|
494
|
-
if (message.txn_type !== "") {
|
|
495
|
-
obj.txn_type = message.txn_type;
|
|
496
|
-
}
|
|
497
|
-
if (message.status !== "") {
|
|
498
|
-
obj.status = message.status;
|
|
499
|
-
}
|
|
500
|
-
if (message.expiry !== undefined) {
|
|
501
|
-
obj.expiry = message.expiry;
|
|
502
|
-
}
|
|
503
|
-
if (message.created_at !== "") {
|
|
504
|
-
obj.created_at = message.created_at;
|
|
505
|
-
}
|
|
506
|
-
if (message.is_active !== false) {
|
|
507
|
-
obj.is_active = message.is_active;
|
|
508
|
-
}
|
|
509
|
-
if (message.is_deleted !== false) {
|
|
510
|
-
obj.is_deleted = message.is_deleted;
|
|
511
|
-
}
|
|
512
|
-
return obj;
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
create<I extends Exact<DeepPartial<SCtransaction>, I>>(base?: I): SCtransaction {
|
|
516
|
-
return SCtransaction.fromPartial(base ?? ({} as any));
|
|
517
|
-
},
|
|
518
|
-
fromPartial<I extends Exact<DeepPartial<SCtransaction>, I>>(object: I): SCtransaction {
|
|
519
|
-
const message = createBaseSCtransaction();
|
|
520
|
-
message.id = object.id ?? 0;
|
|
521
|
-
message.customer_id = object.customer_id ?? 0;
|
|
522
|
-
message.campaign_id = object.campaign_id ?? 0;
|
|
523
|
-
message.txn_id = object.txn_id ?? "";
|
|
524
|
-
message.sc_type = object.sc_type ?? "";
|
|
525
|
-
message.amount = object.amount ?? 0;
|
|
526
|
-
message.remaining = object.remaining ?? 0;
|
|
527
|
-
message.txn_type = object.txn_type ?? "";
|
|
528
|
-
message.status = object.status ?? "";
|
|
529
|
-
message.expiry = object.expiry ?? undefined;
|
|
530
|
-
message.created_at = object.created_at ?? "";
|
|
531
|
-
message.is_active = object.is_active ?? false;
|
|
532
|
-
message.is_deleted = object.is_deleted ?? false;
|
|
533
|
-
return message;
|
|
534
|
-
},
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
538
|
-
|
|
539
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
540
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
541
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
542
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
543
|
-
: Partial<T>;
|
|
544
|
-
|
|
545
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
546
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
547
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
548
|
-
|
|
549
|
-
function longToNumber(long: Long): number {
|
|
550
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
551
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
552
|
-
}
|
|
553
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
554
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
555
|
-
}
|
|
556
|
-
return long.toNumber();
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
if (_m0.util.Long !== Long) {
|
|
560
|
-
_m0.util.Long = Long as any;
|
|
561
|
-
_m0.configure();
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
function isSet(value: any): boolean {
|
|
565
|
-
return value !== null && value !== undefined;
|
|
566
|
-
}
|