@stashfin/grpc 1.2.52 → 1.2.54
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/README.md +74 -0
- package/package.json +3 -2
- package/src/proto/customers/addaddress.proto +25 -0
- package/src/proto/customers/addbankaccountdetails.proto +13 -0
- package/src/proto/customers/createcustomerreference.proto +21 -0
- package/src/proto/customers/forgotmpin.proto +12 -0
- package/src/proto/customers/forgotmpinotp.proto +10 -0
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +24 -0
- package/src/proto/customers/getcities.proto +16 -0
- package/src/proto/customers/getcustomerbyid.proto +31 -0
- package/src/proto/customers/getdashboard.proto +47 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getkycweburl.proto +10 -0
- package/src/proto/customers/getprofessionalinfo.proto +22 -0
- package/src/proto/customers/getprofile.proto +22 -0
- package/src/proto/customers/getstates.proto +15 -0
- package/src/proto/customers/getstep.proto +30 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/resetmpin.proto +13 -0
- package/src/proto/customers/savebasicdetails.proto +16 -0
- package/src/proto/customers/saveunlocklimit.proto +10 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/updatedigilockertxn.proto +13 -0
- package/src/proto/customers/updatedob.proto +13 -0
- package/src/proto/customers/updatehypervergetxn.proto +12 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +83 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +12 -0
- package/src/proto/loans/calculateemi.proto +20 -0
- package/src/proto/loans/creditlimit.proto +18 -0
- package/src/proto/loans/restructureloan.proto +12 -0
- package/src/proto/loans/transactionlist.proto +18 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +23 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/addaddress.ts +310 -0
- package/src/ts/customers/addbankaccountdetails.ts +184 -0
- package/src/ts/customers/createcustomerreference.ts +276 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +385 -0
- package/src/ts/customers/getcities.ts +227 -0
- package/src/ts/customers/getcustomerbyid.ts +492 -0
- package/src/ts/customers/getdashboard.ts +728 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getkycweburl.ts +133 -0
- package/src/ts/customers/getprofessionalinfo.ts +344 -0
- package/src/ts/customers/getprofile.ts +338 -0
- package/src/ts/customers/getstates.ts +212 -0
- package/src/ts/customers/getstep.ts +483 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/resetmpin.ts +166 -0
- package/src/ts/customers/savebasicdetails.ts +229 -0
- package/src/ts/customers/saveunlocklimit.ts +133 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/updatedigilockertxn.ts +182 -0
- package/src/ts/customers/updatehypervergetxn.ts +166 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +1038 -0
- package/src/ts/example.ts +294 -0
- package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +183 -0
- package/src/ts/loans/calculateemi.ts +295 -0
- package/src/ts/loans/creditlimit.ts +294 -0
- package/src/ts/loans/restructureloan.ts +166 -0
- package/src/ts/loans/transactionlist.ts +281 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +221 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- package/ts/customer/getprofile.d.ts +0 -38
- package/ts/customer/getprofile.js +0 -162
- package/ts/customer/getstep.d.ts +0 -78
- package/ts/customer/getstep.js +0 -420
- package/ts/customer/profileupdatetnc.d.ts +0 -35
- package/ts/customer/profileupdatetnc.js +0 -117
- package/ts/customer/sendotp.d.ts +0 -36
- package/ts/customer/sendotp.js +0 -133
- package/ts/customer/setmpin.d.ts +0 -36
- package/ts/customer/setmpin.js +0 -133
- package/ts/customer/step1.d.ts +0 -69
- package/ts/customer/step1.js +0 -395
- package/ts/customer/step10.d.ts +0 -73
- package/ts/customer/step10.js +0 -459
- package/ts/customer/step2.d.ts +0 -68
- package/ts/customer/step2.js +0 -381
- package/ts/customer/step7.d.ts +0 -68
- package/ts/customer/step7.js +0 -381
- package/ts/customer/step8.d.ts +0 -69
- package/ts/customer/step8.js +0 -395
- package/ts/customer/step9.d.ts +0 -75
- package/ts/customer/step9.js +0 -489
- package/ts/customer/stepstatic.d.ts +0 -66
- package/ts/customer/stepstatic.js +0 -352
- package/ts/customer/verifympin.d.ts +0 -37
- package/ts/customer/verifympin.js +0 -149
- package/ts/customer/verifyotp.d.ts +0 -39
- package/ts/customer/verifyotp.js +0 -177
- package/ts/customer.d.ts +0 -262
- package/ts/customer.js +0 -190
- package/ts/customers/getbankaccountdetails.d.ts +0 -36
- package/ts/customers/getbankaccountdetails.js +0 -134
- package/ts/customers/getbasicinfo.d.ts +0 -39
- package/ts/customers/getbasicinfo.js +0 -176
- package/ts/customers/getcustomerbyid.d.ts +0 -50
- package/ts/customers/getcustomerbyid.js +0 -346
- package/ts/customers/getdashboard.d.ts +0 -90
- package/ts/customers/getdashboard.js +0 -603
- package/ts/customers/getdashboardmaincard.d.ts +0 -69
- package/ts/customers/getdashboardmaincard.js +0 -520
- package/ts/customers/getprofessionalinfo.d.ts +0 -37
- package/ts/customers/getprofessionalinfo.js +0 -148
- package/ts/customers/getprofile.d.ts +0 -38
- package/ts/customers/getprofile.js +0 -162
- package/ts/customers/getstep.d.ts +0 -78
- package/ts/customers/getstep.js +0 -420
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -388
- package/ts/customers.js +0 -280
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/google/protobuf/any.d.ts +0 -138
- package/ts/google/protobuf/any.js +0 -108
- package/ts/google/protobuf/timestamp.js +0 -97
- package/ts/loans/approveloan.d.ts +0 -39
- package/ts/loans/approveloan.js +0 -175
- package/ts/loans/banklist.d.ts +0 -48
- package/ts/loans/banklist.js +0 -202
- package/ts/loans/calculateemi.d.ts +0 -37
- package/ts/loans/calculateemi.js +0 -147
- package/ts/loans/creditlimit.d.ts +0 -35
- package/ts/loans/creditlimit.js +0 -120
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -39
- package/ts/loans/updateloan.js +0 -175
- package/ts/loans.d.ts +0 -98
- package/ts/loans.js +0 -74
- package/ts/payments/checkpaymentstatus.d.ts +0 -51
- package/ts/payments/checkpaymentstatus.js +0 -259
- package/ts/payments/createorder.d.ts +0 -39
- package/ts/payments/createorder.js +0 -191
- package/ts/payments/getpaymentdetails.d.ts +0 -58
- package/ts/payments/getpaymentdetails.js +0 -367
- package/ts/payments/getpaymentoptions.d.ts +0 -50
- package/ts/payments/getpaymentoptions.js +0 -231
- package/ts/payments/initiatepayment.d.ts +0 -54
- package/ts/payments/initiatepayment.js +0 -299
- package/ts/payments.d.ts +0 -70
- package/ts/payments.js +0 -54
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -59
- package/ts/stashcash/debitsc.js +0 -380
- package/ts/stashcash/getscbalance.d.ts +0 -53
- package/ts/stashcash/getscbalance.js +0 -293
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
|
@@ -0,0 +1,329 @@
|
|
|
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/reversesc.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import Long from "long";
|
|
9
|
+
import _m0 from "protobufjs/minimal";
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "stashcash.reversesc";
|
|
12
|
+
|
|
13
|
+
export interface request {
|
|
14
|
+
txnid: number;
|
|
15
|
+
customer_id: number;
|
|
16
|
+
sc_type: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface response {
|
|
20
|
+
status: string;
|
|
21
|
+
data: response_Data | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface response_Data {
|
|
25
|
+
locked: number;
|
|
26
|
+
unlocked: number;
|
|
27
|
+
balance: number;
|
|
28
|
+
txn_id: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function createBaserequest(): request {
|
|
32
|
+
return { txnid: 0, customer_id: 0, sc_type: "" };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const request = {
|
|
36
|
+
encode(message: request, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37
|
+
if (message.txnid !== 0) {
|
|
38
|
+
writer.uint32(8).int64(message.txnid);
|
|
39
|
+
}
|
|
40
|
+
if (message.customer_id !== 0) {
|
|
41
|
+
writer.uint32(16).int64(message.customer_id);
|
|
42
|
+
}
|
|
43
|
+
if (message.sc_type !== "") {
|
|
44
|
+
writer.uint32(26).string(message.sc_type);
|
|
45
|
+
}
|
|
46
|
+
return writer;
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request {
|
|
50
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
51
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
52
|
+
const message = createBaserequest();
|
|
53
|
+
while (reader.pos < end) {
|
|
54
|
+
const tag = reader.uint32();
|
|
55
|
+
switch (tag >>> 3) {
|
|
56
|
+
case 1:
|
|
57
|
+
if (tag !== 8) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message.txnid = longToNumber(reader.int64() as Long);
|
|
62
|
+
continue;
|
|
63
|
+
case 2:
|
|
64
|
+
if (tag !== 16) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message.customer_id = longToNumber(reader.int64() as Long);
|
|
69
|
+
continue;
|
|
70
|
+
case 3:
|
|
71
|
+
if (tag !== 26) {
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message.sc_type = reader.string();
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
reader.skipType(tag & 7);
|
|
82
|
+
}
|
|
83
|
+
return message;
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
fromJSON(object: any): request {
|
|
87
|
+
return {
|
|
88
|
+
txnid: isSet(object.txnid) ? globalThis.Number(object.txnid) : 0,
|
|
89
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
90
|
+
sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : "",
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
toJSON(message: request): unknown {
|
|
95
|
+
const obj: any = {};
|
|
96
|
+
if (message.txnid !== 0) {
|
|
97
|
+
obj.txnid = Math.round(message.txnid);
|
|
98
|
+
}
|
|
99
|
+
if (message.customer_id !== 0) {
|
|
100
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
101
|
+
}
|
|
102
|
+
if (message.sc_type !== "") {
|
|
103
|
+
obj.sc_type = message.sc_type;
|
|
104
|
+
}
|
|
105
|
+
return obj;
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request {
|
|
109
|
+
return request.fromPartial(base ?? ({} as any));
|
|
110
|
+
},
|
|
111
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request {
|
|
112
|
+
const message = createBaserequest();
|
|
113
|
+
message.txnid = object.txnid ?? 0;
|
|
114
|
+
message.customer_id = object.customer_id ?? 0;
|
|
115
|
+
message.sc_type = object.sc_type ?? "";
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
function createBaseresponse(): response {
|
|
121
|
+
return { status: "", data: undefined };
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export const response = {
|
|
125
|
+
encode(message: response, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
126
|
+
if (message.status !== "") {
|
|
127
|
+
writer.uint32(10).string(message.status);
|
|
128
|
+
}
|
|
129
|
+
if (message.data !== undefined) {
|
|
130
|
+
response_Data.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
131
|
+
}
|
|
132
|
+
return writer;
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response {
|
|
136
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
137
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
138
|
+
const message = createBaseresponse();
|
|
139
|
+
while (reader.pos < end) {
|
|
140
|
+
const tag = reader.uint32();
|
|
141
|
+
switch (tag >>> 3) {
|
|
142
|
+
case 1:
|
|
143
|
+
if (tag !== 10) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message.status = reader.string();
|
|
148
|
+
continue;
|
|
149
|
+
case 2:
|
|
150
|
+
if (tag !== 18) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message.data = response_Data.decode(reader, reader.uint32());
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
reader.skipType(tag & 7);
|
|
161
|
+
}
|
|
162
|
+
return message;
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
fromJSON(object: any): response {
|
|
166
|
+
return {
|
|
167
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
168
|
+
data: isSet(object.data) ? response_Data.fromJSON(object.data) : undefined,
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
toJSON(message: response): unknown {
|
|
173
|
+
const obj: any = {};
|
|
174
|
+
if (message.status !== "") {
|
|
175
|
+
obj.status = message.status;
|
|
176
|
+
}
|
|
177
|
+
if (message.data !== undefined) {
|
|
178
|
+
obj.data = response_Data.toJSON(message.data);
|
|
179
|
+
}
|
|
180
|
+
return obj;
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response {
|
|
184
|
+
return response.fromPartial(base ?? ({} as any));
|
|
185
|
+
},
|
|
186
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response {
|
|
187
|
+
const message = createBaseresponse();
|
|
188
|
+
message.status = object.status ?? "";
|
|
189
|
+
message.data = (object.data !== undefined && object.data !== null)
|
|
190
|
+
? response_Data.fromPartial(object.data)
|
|
191
|
+
: undefined;
|
|
192
|
+
return message;
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
function createBaseresponse_Data(): response_Data {
|
|
197
|
+
return { locked: 0, unlocked: 0, balance: 0, txn_id: 0 };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export const response_Data = {
|
|
201
|
+
encode(message: response_Data, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
202
|
+
if (message.locked !== 0) {
|
|
203
|
+
writer.uint32(13).float(message.locked);
|
|
204
|
+
}
|
|
205
|
+
if (message.unlocked !== 0) {
|
|
206
|
+
writer.uint32(21).float(message.unlocked);
|
|
207
|
+
}
|
|
208
|
+
if (message.balance !== 0) {
|
|
209
|
+
writer.uint32(29).float(message.balance);
|
|
210
|
+
}
|
|
211
|
+
if (message.txn_id !== 0) {
|
|
212
|
+
writer.uint32(32).int32(message.txn_id);
|
|
213
|
+
}
|
|
214
|
+
return writer;
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data {
|
|
218
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
219
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
220
|
+
const message = createBaseresponse_Data();
|
|
221
|
+
while (reader.pos < end) {
|
|
222
|
+
const tag = reader.uint32();
|
|
223
|
+
switch (tag >>> 3) {
|
|
224
|
+
case 1:
|
|
225
|
+
if (tag !== 13) {
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
message.locked = reader.float();
|
|
230
|
+
continue;
|
|
231
|
+
case 2:
|
|
232
|
+
if (tag !== 21) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
message.unlocked = reader.float();
|
|
237
|
+
continue;
|
|
238
|
+
case 3:
|
|
239
|
+
if (tag !== 29) {
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message.balance = reader.float();
|
|
244
|
+
continue;
|
|
245
|
+
case 4:
|
|
246
|
+
if (tag !== 32) {
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
message.txn_id = reader.int32();
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
reader.skipType(tag & 7);
|
|
257
|
+
}
|
|
258
|
+
return message;
|
|
259
|
+
},
|
|
260
|
+
|
|
261
|
+
fromJSON(object: any): response_Data {
|
|
262
|
+
return {
|
|
263
|
+
locked: isSet(object.locked) ? globalThis.Number(object.locked) : 0,
|
|
264
|
+
unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : 0,
|
|
265
|
+
balance: isSet(object.balance) ? globalThis.Number(object.balance) : 0,
|
|
266
|
+
txn_id: isSet(object.txn_id) ? globalThis.Number(object.txn_id) : 0,
|
|
267
|
+
};
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
toJSON(message: response_Data): unknown {
|
|
271
|
+
const obj: any = {};
|
|
272
|
+
if (message.locked !== 0) {
|
|
273
|
+
obj.locked = message.locked;
|
|
274
|
+
}
|
|
275
|
+
if (message.unlocked !== 0) {
|
|
276
|
+
obj.unlocked = message.unlocked;
|
|
277
|
+
}
|
|
278
|
+
if (message.balance !== 0) {
|
|
279
|
+
obj.balance = message.balance;
|
|
280
|
+
}
|
|
281
|
+
if (message.txn_id !== 0) {
|
|
282
|
+
obj.txn_id = Math.round(message.txn_id);
|
|
283
|
+
}
|
|
284
|
+
return obj;
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data {
|
|
288
|
+
return response_Data.fromPartial(base ?? ({} as any));
|
|
289
|
+
},
|
|
290
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data {
|
|
291
|
+
const message = createBaseresponse_Data();
|
|
292
|
+
message.locked = object.locked ?? 0;
|
|
293
|
+
message.unlocked = object.unlocked ?? 0;
|
|
294
|
+
message.balance = object.balance ?? 0;
|
|
295
|
+
message.txn_id = object.txn_id ?? 0;
|
|
296
|
+
return message;
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
301
|
+
|
|
302
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
303
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
304
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
305
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
306
|
+
: Partial<T>;
|
|
307
|
+
|
|
308
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
309
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
310
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
311
|
+
|
|
312
|
+
function longToNumber(long: Long): number {
|
|
313
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
314
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
315
|
+
}
|
|
316
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
317
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
318
|
+
}
|
|
319
|
+
return long.toNumber();
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (_m0.util.Long !== Long) {
|
|
323
|
+
_m0.util.Long = Long as any;
|
|
324
|
+
_m0.configure();
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
function isSet(value: any): boolean {
|
|
328
|
+
return value !== null && value !== undefined;
|
|
329
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
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.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import {
|
|
9
|
+
type CallOptions,
|
|
10
|
+
ChannelCredentials,
|
|
11
|
+
Client,
|
|
12
|
+
type ClientOptions,
|
|
13
|
+
type ClientUnaryCall,
|
|
14
|
+
type handleUnaryCall,
|
|
15
|
+
makeGenericClientConstructor,
|
|
16
|
+
Metadata,
|
|
17
|
+
type ServiceError,
|
|
18
|
+
type UntypedServiceImplementation,
|
|
19
|
+
} from "@grpc/grpc-js";
|
|
20
|
+
import { request as request1, response as response2 } from "./stashcash/creditsc";
|
|
21
|
+
import { request as request7, response as response8 } from "./stashcash/debitsc";
|
|
22
|
+
import { request, response } from "./stashcash/getscbalance";
|
|
23
|
+
import { request as request5, response as response6 } from "./stashcash/getschistory";
|
|
24
|
+
import { request as request3, response as response4 } from "./stashcash/reversesc";
|
|
25
|
+
|
|
26
|
+
export const protobufPackage = "service";
|
|
27
|
+
|
|
28
|
+
export type stashcashService = typeof stashcashService;
|
|
29
|
+
export const stashcashService = {
|
|
30
|
+
getscbalance: {
|
|
31
|
+
path: "/service.stashcash/getscbalance",
|
|
32
|
+
requestStream: false,
|
|
33
|
+
responseStream: false,
|
|
34
|
+
requestSerialize: (value: request) => Buffer.from(request.encode(value).finish()),
|
|
35
|
+
requestDeserialize: (value: Buffer) => request.decode(value),
|
|
36
|
+
responseSerialize: (value: response) => Buffer.from(response.encode(value).finish()),
|
|
37
|
+
responseDeserialize: (value: Buffer) => response.decode(value),
|
|
38
|
+
},
|
|
39
|
+
creditsc: {
|
|
40
|
+
path: "/service.stashcash/creditsc",
|
|
41
|
+
requestStream: false,
|
|
42
|
+
responseStream: false,
|
|
43
|
+
requestSerialize: (value: request1) => Buffer.from(request1.encode(value).finish()),
|
|
44
|
+
requestDeserialize: (value: Buffer) => request1.decode(value),
|
|
45
|
+
responseSerialize: (value: response2) => Buffer.from(response2.encode(value).finish()),
|
|
46
|
+
responseDeserialize: (value: Buffer) => response2.decode(value),
|
|
47
|
+
},
|
|
48
|
+
reversesc: {
|
|
49
|
+
path: "/service.stashcash/reversesc",
|
|
50
|
+
requestStream: false,
|
|
51
|
+
responseStream: false,
|
|
52
|
+
requestSerialize: (value: request3) => Buffer.from(request3.encode(value).finish()),
|
|
53
|
+
requestDeserialize: (value: Buffer) => request3.decode(value),
|
|
54
|
+
responseSerialize: (value: response4) => Buffer.from(response4.encode(value).finish()),
|
|
55
|
+
responseDeserialize: (value: Buffer) => response4.decode(value),
|
|
56
|
+
},
|
|
57
|
+
getschistory: {
|
|
58
|
+
path: "/service.stashcash/getschistory",
|
|
59
|
+
requestStream: false,
|
|
60
|
+
responseStream: false,
|
|
61
|
+
requestSerialize: (value: request5) => Buffer.from(request5.encode(value).finish()),
|
|
62
|
+
requestDeserialize: (value: Buffer) => request5.decode(value),
|
|
63
|
+
responseSerialize: (value: response6) => Buffer.from(response6.encode(value).finish()),
|
|
64
|
+
responseDeserialize: (value: Buffer) => response6.decode(value),
|
|
65
|
+
},
|
|
66
|
+
debitsc: {
|
|
67
|
+
path: "/service.stashcash/debitsc",
|
|
68
|
+
requestStream: false,
|
|
69
|
+
responseStream: false,
|
|
70
|
+
requestSerialize: (value: request7) => Buffer.from(request7.encode(value).finish()),
|
|
71
|
+
requestDeserialize: (value: Buffer) => request7.decode(value),
|
|
72
|
+
responseSerialize: (value: response8) => Buffer.from(response8.encode(value).finish()),
|
|
73
|
+
responseDeserialize: (value: Buffer) => response8.decode(value),
|
|
74
|
+
},
|
|
75
|
+
} as const;
|
|
76
|
+
|
|
77
|
+
export interface stashcashServer extends UntypedServiceImplementation {
|
|
78
|
+
getscbalance: handleUnaryCall<request, response>;
|
|
79
|
+
creditsc: handleUnaryCall<request1, response2>;
|
|
80
|
+
reversesc: handleUnaryCall<request3, response4>;
|
|
81
|
+
getschistory: handleUnaryCall<request5, response6>;
|
|
82
|
+
debitsc: handleUnaryCall<request7, response8>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface stashcashClient extends Client {
|
|
86
|
+
getscbalance(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
87
|
+
getscbalance(
|
|
88
|
+
request: request,
|
|
89
|
+
metadata: Metadata,
|
|
90
|
+
callback: (error: ServiceError | null, response: response) => void,
|
|
91
|
+
): ClientUnaryCall;
|
|
92
|
+
getscbalance(
|
|
93
|
+
request: request,
|
|
94
|
+
metadata: Metadata,
|
|
95
|
+
options: Partial<CallOptions>,
|
|
96
|
+
callback: (error: ServiceError | null, response: response) => void,
|
|
97
|
+
): ClientUnaryCall;
|
|
98
|
+
creditsc(request: request1, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
|
|
99
|
+
creditsc(
|
|
100
|
+
request: request1,
|
|
101
|
+
metadata: Metadata,
|
|
102
|
+
callback: (error: ServiceError | null, response: response2) => void,
|
|
103
|
+
): ClientUnaryCall;
|
|
104
|
+
creditsc(
|
|
105
|
+
request: request1,
|
|
106
|
+
metadata: Metadata,
|
|
107
|
+
options: Partial<CallOptions>,
|
|
108
|
+
callback: (error: ServiceError | null, response: response2) => void,
|
|
109
|
+
): ClientUnaryCall;
|
|
110
|
+
reversesc(request: request3, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
|
|
111
|
+
reversesc(
|
|
112
|
+
request: request3,
|
|
113
|
+
metadata: Metadata,
|
|
114
|
+
callback: (error: ServiceError | null, response: response4) => void,
|
|
115
|
+
): ClientUnaryCall;
|
|
116
|
+
reversesc(
|
|
117
|
+
request: request3,
|
|
118
|
+
metadata: Metadata,
|
|
119
|
+
options: Partial<CallOptions>,
|
|
120
|
+
callback: (error: ServiceError | null, response: response4) => void,
|
|
121
|
+
): ClientUnaryCall;
|
|
122
|
+
getschistory(request: request5, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
123
|
+
getschistory(
|
|
124
|
+
request: request5,
|
|
125
|
+
metadata: Metadata,
|
|
126
|
+
callback: (error: ServiceError | null, response: response6) => void,
|
|
127
|
+
): ClientUnaryCall;
|
|
128
|
+
getschistory(
|
|
129
|
+
request: request5,
|
|
130
|
+
metadata: Metadata,
|
|
131
|
+
options: Partial<CallOptions>,
|
|
132
|
+
callback: (error: ServiceError | null, response: response6) => void,
|
|
133
|
+
): ClientUnaryCall;
|
|
134
|
+
debitsc(request: request7, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
135
|
+
debitsc(
|
|
136
|
+
request: request7,
|
|
137
|
+
metadata: Metadata,
|
|
138
|
+
callback: (error: ServiceError | null, response: response8) => void,
|
|
139
|
+
): ClientUnaryCall;
|
|
140
|
+
debitsc(
|
|
141
|
+
request: request7,
|
|
142
|
+
metadata: Metadata,
|
|
143
|
+
options: Partial<CallOptions>,
|
|
144
|
+
callback: (error: ServiceError | null, response: response8) => void,
|
|
145
|
+
): ClientUnaryCall;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export const stashcashClient = makeGenericClientConstructor(stashcashService, "service.stashcash") as unknown as {
|
|
149
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): stashcashClient;
|
|
150
|
+
service: typeof stashcashService;
|
|
151
|
+
serviceName: string;
|
|
152
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2022",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"incremental": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"rootDir": "./src",
|
|
13
|
+
"outDir": "./dist",
|
|
14
|
+
"composite": true
|
|
15
|
+
},
|
|
16
|
+
"include": ["src/**/*.ts"],
|
|
17
|
+
"exclude": ["node_modules", "dist"]
|
|
18
|
+
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "customer.getprofile";
|
|
3
|
-
export interface request {
|
|
4
|
-
}
|
|
5
|
-
export interface response {
|
|
6
|
-
customer_id: number;
|
|
7
|
-
first_name: string;
|
|
8
|
-
middle_name: string;
|
|
9
|
-
last_name: string;
|
|
10
|
-
mobile_number: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const request: {
|
|
13
|
-
encode(_: request, writer?: _m0.Writer): _m0.Writer;
|
|
14
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
15
|
-
fromJSON(_: any): request;
|
|
16
|
-
toJSON(_: request): unknown;
|
|
17
|
-
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
18
|
-
fromPartial<I extends Exact<DeepPartial<request>, I>>(_: I): request;
|
|
19
|
-
};
|
|
20
|
-
export declare const response: {
|
|
21
|
-
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
23
|
-
fromJSON(object: any): response;
|
|
24
|
-
toJSON(message: response): unknown;
|
|
25
|
-
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
26
|
-
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
27
|
-
};
|
|
28
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
29
|
-
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 {} ? {
|
|
30
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
31
|
-
} : Partial<T>;
|
|
32
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
33
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
34
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
35
|
-
} & {
|
|
36
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
37
|
-
};
|
|
38
|
-
export {};
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.180.0
|
|
5
|
-
// protoc v3.20.3
|
|
6
|
-
// source: customer/getprofile.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.response = exports.request = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customer.getprofile";
|
|
15
|
-
function createBaserequest() {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
18
|
-
exports.request = {
|
|
19
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
return writer;
|
|
21
|
-
},
|
|
22
|
-
decode(input, length) {
|
|
23
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message = createBaserequest();
|
|
26
|
-
while (reader.pos < end) {
|
|
27
|
-
const tag = reader.uint32();
|
|
28
|
-
switch (tag >>> 3) {
|
|
29
|
-
}
|
|
30
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
reader.skipType(tag & 7);
|
|
34
|
-
}
|
|
35
|
-
return message;
|
|
36
|
-
},
|
|
37
|
-
fromJSON(_) {
|
|
38
|
-
return {};
|
|
39
|
-
},
|
|
40
|
-
toJSON(_) {
|
|
41
|
-
const obj = {};
|
|
42
|
-
return obj;
|
|
43
|
-
},
|
|
44
|
-
create(base) {
|
|
45
|
-
return exports.request.fromPartial(base ?? {});
|
|
46
|
-
},
|
|
47
|
-
fromPartial(_) {
|
|
48
|
-
const message = createBaserequest();
|
|
49
|
-
return message;
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
function createBaseresponse() {
|
|
53
|
-
return { customer_id: 0, first_name: "", middle_name: "", last_name: "", mobile_number: "" };
|
|
54
|
-
}
|
|
55
|
-
exports.response = {
|
|
56
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.customer_id !== 0) {
|
|
58
|
-
writer.uint32(8).int32(message.customer_id);
|
|
59
|
-
}
|
|
60
|
-
if (message.first_name !== "") {
|
|
61
|
-
writer.uint32(18).string(message.first_name);
|
|
62
|
-
}
|
|
63
|
-
if (message.middle_name !== "") {
|
|
64
|
-
writer.uint32(26).string(message.middle_name);
|
|
65
|
-
}
|
|
66
|
-
if (message.last_name !== "") {
|
|
67
|
-
writer.uint32(34).string(message.last_name);
|
|
68
|
-
}
|
|
69
|
-
if (message.mobile_number !== "") {
|
|
70
|
-
writer.uint32(42).string(message.mobile_number);
|
|
71
|
-
}
|
|
72
|
-
return writer;
|
|
73
|
-
},
|
|
74
|
-
decode(input, length) {
|
|
75
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
76
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
77
|
-
const message = createBaseresponse();
|
|
78
|
-
while (reader.pos < end) {
|
|
79
|
-
const tag = reader.uint32();
|
|
80
|
-
switch (tag >>> 3) {
|
|
81
|
-
case 1:
|
|
82
|
-
if (tag !== 8) {
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
message.customer_id = reader.int32();
|
|
86
|
-
continue;
|
|
87
|
-
case 2:
|
|
88
|
-
if (tag !== 18) {
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
message.first_name = reader.string();
|
|
92
|
-
continue;
|
|
93
|
-
case 3:
|
|
94
|
-
if (tag !== 26) {
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
message.middle_name = reader.string();
|
|
98
|
-
continue;
|
|
99
|
-
case 4:
|
|
100
|
-
if (tag !== 34) {
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
message.last_name = reader.string();
|
|
104
|
-
continue;
|
|
105
|
-
case 5:
|
|
106
|
-
if (tag !== 42) {
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
message.mobile_number = reader.string();
|
|
110
|
-
continue;
|
|
111
|
-
}
|
|
112
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
reader.skipType(tag & 7);
|
|
116
|
-
}
|
|
117
|
-
return message;
|
|
118
|
-
},
|
|
119
|
-
fromJSON(object) {
|
|
120
|
-
return {
|
|
121
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
122
|
-
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
123
|
-
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
124
|
-
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
125
|
-
mobile_number: isSet(object.mobile_number) ? globalThis.String(object.mobile_number) : "",
|
|
126
|
-
};
|
|
127
|
-
},
|
|
128
|
-
toJSON(message) {
|
|
129
|
-
const obj = {};
|
|
130
|
-
if (message.customer_id !== 0) {
|
|
131
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
132
|
-
}
|
|
133
|
-
if (message.first_name !== "") {
|
|
134
|
-
obj.first_name = message.first_name;
|
|
135
|
-
}
|
|
136
|
-
if (message.middle_name !== "") {
|
|
137
|
-
obj.middle_name = message.middle_name;
|
|
138
|
-
}
|
|
139
|
-
if (message.last_name !== "") {
|
|
140
|
-
obj.last_name = message.last_name;
|
|
141
|
-
}
|
|
142
|
-
if (message.mobile_number !== "") {
|
|
143
|
-
obj.mobile_number = message.mobile_number;
|
|
144
|
-
}
|
|
145
|
-
return obj;
|
|
146
|
-
},
|
|
147
|
-
create(base) {
|
|
148
|
-
return exports.response.fromPartial(base ?? {});
|
|
149
|
-
},
|
|
150
|
-
fromPartial(object) {
|
|
151
|
-
const message = createBaseresponse();
|
|
152
|
-
message.customer_id = object.customer_id ?? 0;
|
|
153
|
-
message.first_name = object.first_name ?? "";
|
|
154
|
-
message.middle_name = object.middle_name ?? "";
|
|
155
|
-
message.last_name = object.last_name ?? "";
|
|
156
|
-
message.mobile_number = object.mobile_number ?? "";
|
|
157
|
-
return message;
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
function isSet(value) {
|
|
161
|
-
return value !== null && value !== undefined;
|
|
162
|
-
}
|