@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
|
@@ -1,299 +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: payments/initiatepayment.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_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 = "payments.initiatepayment";
|
|
16
|
-
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, auth_token: "", device_id: "", client: "", mode: "", amount: 0, external_order_id: "" };
|
|
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.auth_token !== "") {
|
|
25
|
-
writer.uint32(18).string(message.auth_token);
|
|
26
|
-
}
|
|
27
|
-
if (message.device_id !== "") {
|
|
28
|
-
writer.uint32(26).string(message.device_id);
|
|
29
|
-
}
|
|
30
|
-
if (message.client !== "") {
|
|
31
|
-
writer.uint32(34).string(message.client);
|
|
32
|
-
}
|
|
33
|
-
if (message.mode !== "") {
|
|
34
|
-
writer.uint32(42).string(message.mode);
|
|
35
|
-
}
|
|
36
|
-
if (message.amount !== 0) {
|
|
37
|
-
writer.uint32(48).int64(message.amount);
|
|
38
|
-
}
|
|
39
|
-
if (message.external_order_id !== "") {
|
|
40
|
-
writer.uint32(58).string(message.external_order_id);
|
|
41
|
-
}
|
|
42
|
-
return writer;
|
|
43
|
-
},
|
|
44
|
-
decode(input, length) {
|
|
45
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
46
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
47
|
-
const message = createBaserequest();
|
|
48
|
-
while (reader.pos < end) {
|
|
49
|
-
const tag = reader.uint32();
|
|
50
|
-
switch (tag >>> 3) {
|
|
51
|
-
case 1:
|
|
52
|
-
if (tag !== 8) {
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
message.customer_id = longToNumber(reader.int64());
|
|
56
|
-
continue;
|
|
57
|
-
case 2:
|
|
58
|
-
if (tag !== 18) {
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
message.auth_token = reader.string();
|
|
62
|
-
continue;
|
|
63
|
-
case 3:
|
|
64
|
-
if (tag !== 26) {
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
message.device_id = reader.string();
|
|
68
|
-
continue;
|
|
69
|
-
case 4:
|
|
70
|
-
if (tag !== 34) {
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
message.client = reader.string();
|
|
74
|
-
continue;
|
|
75
|
-
case 5:
|
|
76
|
-
if (tag !== 42) {
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
message.mode = reader.string();
|
|
80
|
-
continue;
|
|
81
|
-
case 6:
|
|
82
|
-
if (tag !== 48) {
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
message.amount = longToNumber(reader.int64());
|
|
86
|
-
continue;
|
|
87
|
-
case 7:
|
|
88
|
-
if (tag !== 58) {
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
message.external_order_id = reader.string();
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
reader.skipType(tag & 7);
|
|
98
|
-
}
|
|
99
|
-
return message;
|
|
100
|
-
},
|
|
101
|
-
fromJSON(object) {
|
|
102
|
-
return {
|
|
103
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
104
|
-
auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : "",
|
|
105
|
-
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
106
|
-
client: isSet(object.client) ? globalThis.String(object.client) : "",
|
|
107
|
-
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
108
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
109
|
-
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
110
|
-
};
|
|
111
|
-
},
|
|
112
|
-
toJSON(message) {
|
|
113
|
-
const obj = {};
|
|
114
|
-
if (message.customer_id !== 0) {
|
|
115
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
116
|
-
}
|
|
117
|
-
if (message.auth_token !== "") {
|
|
118
|
-
obj.auth_token = message.auth_token;
|
|
119
|
-
}
|
|
120
|
-
if (message.device_id !== "") {
|
|
121
|
-
obj.device_id = message.device_id;
|
|
122
|
-
}
|
|
123
|
-
if (message.client !== "") {
|
|
124
|
-
obj.client = message.client;
|
|
125
|
-
}
|
|
126
|
-
if (message.mode !== "") {
|
|
127
|
-
obj.mode = message.mode;
|
|
128
|
-
}
|
|
129
|
-
if (message.amount !== 0) {
|
|
130
|
-
obj.amount = Math.round(message.amount);
|
|
131
|
-
}
|
|
132
|
-
if (message.external_order_id !== "") {
|
|
133
|
-
obj.external_order_id = message.external_order_id;
|
|
134
|
-
}
|
|
135
|
-
return obj;
|
|
136
|
-
},
|
|
137
|
-
create(base) {
|
|
138
|
-
return exports.request.fromPartial(base ?? {});
|
|
139
|
-
},
|
|
140
|
-
fromPartial(object) {
|
|
141
|
-
const message = createBaserequest();
|
|
142
|
-
message.customer_id = object.customer_id ?? 0;
|
|
143
|
-
message.auth_token = object.auth_token ?? "";
|
|
144
|
-
message.device_id = object.device_id ?? "";
|
|
145
|
-
message.client = object.client ?? "";
|
|
146
|
-
message.mode = object.mode ?? "";
|
|
147
|
-
message.amount = object.amount ?? 0;
|
|
148
|
-
message.external_order_id = object.external_order_id ?? "";
|
|
149
|
-
return message;
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
function createBaseresponse() {
|
|
153
|
-
return { status: "", statusCode: 0, data: undefined };
|
|
154
|
-
}
|
|
155
|
-
exports.response = {
|
|
156
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
157
|
-
if (message.status !== "") {
|
|
158
|
-
writer.uint32(10).string(message.status);
|
|
159
|
-
}
|
|
160
|
-
if (message.statusCode !== 0) {
|
|
161
|
-
writer.uint32(16).int32(message.statusCode);
|
|
162
|
-
}
|
|
163
|
-
if (message.data !== undefined) {
|
|
164
|
-
exports.response_Data.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
165
|
-
}
|
|
166
|
-
return writer;
|
|
167
|
-
},
|
|
168
|
-
decode(input, length) {
|
|
169
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
170
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
171
|
-
const message = createBaseresponse();
|
|
172
|
-
while (reader.pos < end) {
|
|
173
|
-
const tag = reader.uint32();
|
|
174
|
-
switch (tag >>> 3) {
|
|
175
|
-
case 1:
|
|
176
|
-
if (tag !== 10) {
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
message.status = reader.string();
|
|
180
|
-
continue;
|
|
181
|
-
case 2:
|
|
182
|
-
if (tag !== 16) {
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
message.statusCode = reader.int32();
|
|
186
|
-
continue;
|
|
187
|
-
case 3:
|
|
188
|
-
if (tag !== 26) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
message.data = exports.response_Data.decode(reader, reader.uint32());
|
|
192
|
-
continue;
|
|
193
|
-
}
|
|
194
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
reader.skipType(tag & 7);
|
|
198
|
-
}
|
|
199
|
-
return message;
|
|
200
|
-
},
|
|
201
|
-
fromJSON(object) {
|
|
202
|
-
return {
|
|
203
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
204
|
-
statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
|
|
205
|
-
data: isSet(object.data) ? exports.response_Data.fromJSON(object.data) : undefined,
|
|
206
|
-
};
|
|
207
|
-
},
|
|
208
|
-
toJSON(message) {
|
|
209
|
-
const obj = {};
|
|
210
|
-
if (message.status !== "") {
|
|
211
|
-
obj.status = message.status;
|
|
212
|
-
}
|
|
213
|
-
if (message.statusCode !== 0) {
|
|
214
|
-
obj.statusCode = Math.round(message.statusCode);
|
|
215
|
-
}
|
|
216
|
-
if (message.data !== undefined) {
|
|
217
|
-
obj.data = exports.response_Data.toJSON(message.data);
|
|
218
|
-
}
|
|
219
|
-
return obj;
|
|
220
|
-
},
|
|
221
|
-
create(base) {
|
|
222
|
-
return exports.response.fromPartial(base ?? {});
|
|
223
|
-
},
|
|
224
|
-
fromPartial(object) {
|
|
225
|
-
const message = createBaseresponse();
|
|
226
|
-
message.status = object.status ?? "";
|
|
227
|
-
message.statusCode = object.statusCode ?? 0;
|
|
228
|
-
message.data = (object.data !== undefined && object.data !== null)
|
|
229
|
-
? exports.response_Data.fromPartial(object.data)
|
|
230
|
-
: undefined;
|
|
231
|
-
return message;
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
function createBaseresponse_Data() {
|
|
235
|
-
return { redirect_url: "" };
|
|
236
|
-
}
|
|
237
|
-
exports.response_Data = {
|
|
238
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
239
|
-
if (message.redirect_url !== "") {
|
|
240
|
-
writer.uint32(10).string(message.redirect_url);
|
|
241
|
-
}
|
|
242
|
-
return writer;
|
|
243
|
-
},
|
|
244
|
-
decode(input, length) {
|
|
245
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
246
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
247
|
-
const message = createBaseresponse_Data();
|
|
248
|
-
while (reader.pos < end) {
|
|
249
|
-
const tag = reader.uint32();
|
|
250
|
-
switch (tag >>> 3) {
|
|
251
|
-
case 1:
|
|
252
|
-
if (tag !== 10) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
message.redirect_url = reader.string();
|
|
256
|
-
continue;
|
|
257
|
-
}
|
|
258
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
reader.skipType(tag & 7);
|
|
262
|
-
}
|
|
263
|
-
return message;
|
|
264
|
-
},
|
|
265
|
-
fromJSON(object) {
|
|
266
|
-
return { redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "" };
|
|
267
|
-
},
|
|
268
|
-
toJSON(message) {
|
|
269
|
-
const obj = {};
|
|
270
|
-
if (message.redirect_url !== "") {
|
|
271
|
-
obj.redirect_url = message.redirect_url;
|
|
272
|
-
}
|
|
273
|
-
return obj;
|
|
274
|
-
},
|
|
275
|
-
create(base) {
|
|
276
|
-
return exports.response_Data.fromPartial(base ?? {});
|
|
277
|
-
},
|
|
278
|
-
fromPartial(object) {
|
|
279
|
-
const message = createBaseresponse_Data();
|
|
280
|
-
message.redirect_url = object.redirect_url ?? "";
|
|
281
|
-
return message;
|
|
282
|
-
},
|
|
283
|
-
};
|
|
284
|
-
function longToNumber(long) {
|
|
285
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
286
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
287
|
-
}
|
|
288
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
289
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
290
|
-
}
|
|
291
|
-
return long.toNumber();
|
|
292
|
-
}
|
|
293
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
294
|
-
minimal_1.default.util.Long = long_1.default;
|
|
295
|
-
minimal_1.default.configure();
|
|
296
|
-
}
|
|
297
|
-
function isSet(value) {
|
|
298
|
-
return value !== null && value !== undefined;
|
|
299
|
-
}
|
package/ts/payments.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
-
import { request as request3, response as response4 } from "./payments/checkpaymentstatus";
|
|
3
|
-
import { request as request5, response as response6 } from "./payments/getpaymentdetails";
|
|
4
|
-
import { request, response } from "./payments/getpaymentoptions";
|
|
5
|
-
import { request as request1, response as response2 } from "./payments/initiatepayment";
|
|
6
|
-
export declare const protobufPackage = "service";
|
|
7
|
-
export type paymentsService = typeof paymentsService;
|
|
8
|
-
export declare const paymentsService: {
|
|
9
|
-
readonly getpaymentoptions: {
|
|
10
|
-
readonly path: "/service.payments/getpaymentoptions";
|
|
11
|
-
readonly requestStream: false;
|
|
12
|
-
readonly responseStream: false;
|
|
13
|
-
readonly requestSerialize: (value: request) => Buffer;
|
|
14
|
-
readonly requestDeserialize: (value: Buffer) => request;
|
|
15
|
-
readonly responseSerialize: (value: response) => Buffer;
|
|
16
|
-
readonly responseDeserialize: (value: Buffer) => response;
|
|
17
|
-
};
|
|
18
|
-
readonly initiatepayment: {
|
|
19
|
-
readonly path: "/service.payments/initiatepayment";
|
|
20
|
-
readonly requestStream: false;
|
|
21
|
-
readonly responseStream: false;
|
|
22
|
-
readonly requestSerialize: (value: request1) => Buffer;
|
|
23
|
-
readonly requestDeserialize: (value: Buffer) => request1;
|
|
24
|
-
readonly responseSerialize: (value: response2) => Buffer;
|
|
25
|
-
readonly responseDeserialize: (value: Buffer) => response2;
|
|
26
|
-
};
|
|
27
|
-
readonly checkpaymentstatus: {
|
|
28
|
-
readonly path: "/service.payments/checkpaymentstatus";
|
|
29
|
-
readonly requestStream: false;
|
|
30
|
-
readonly responseStream: false;
|
|
31
|
-
readonly requestSerialize: (value: request3) => Buffer;
|
|
32
|
-
readonly requestDeserialize: (value: Buffer) => request3;
|
|
33
|
-
readonly responseSerialize: (value: response4) => Buffer;
|
|
34
|
-
readonly responseDeserialize: (value: Buffer) => response4;
|
|
35
|
-
};
|
|
36
|
-
readonly getpaymentdetails: {
|
|
37
|
-
readonly path: "/service.payments/getpaymentdetails";
|
|
38
|
-
readonly requestStream: false;
|
|
39
|
-
readonly responseStream: false;
|
|
40
|
-
readonly requestSerialize: (value: request5) => Buffer;
|
|
41
|
-
readonly requestDeserialize: (value: Buffer) => request5;
|
|
42
|
-
readonly responseSerialize: (value: response6) => Buffer;
|
|
43
|
-
readonly responseDeserialize: (value: Buffer) => response6;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export interface paymentsServer extends UntypedServiceImplementation {
|
|
47
|
-
getpaymentoptions: handleUnaryCall<request, response>;
|
|
48
|
-
initiatepayment: handleUnaryCall<request1, response2>;
|
|
49
|
-
checkpaymentstatus: handleUnaryCall<request3, response4>;
|
|
50
|
-
getpaymentdetails: handleUnaryCall<request5, response6>;
|
|
51
|
-
}
|
|
52
|
-
export interface paymentsClient extends Client {
|
|
53
|
-
getpaymentoptions(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
54
|
-
getpaymentoptions(request: request, metadata: Metadata, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
55
|
-
getpaymentoptions(request: request, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
56
|
-
initiatepayment(request: request1, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
|
|
57
|
-
initiatepayment(request: request1, metadata: Metadata, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
|
|
58
|
-
initiatepayment(request: request1, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
|
|
59
|
-
checkpaymentstatus(request: request3, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
|
|
60
|
-
checkpaymentstatus(request: request3, metadata: Metadata, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
|
|
61
|
-
checkpaymentstatus(request: request3, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
|
|
62
|
-
getpaymentdetails(request: request5, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
63
|
-
getpaymentdetails(request: request5, metadata: Metadata, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
64
|
-
getpaymentdetails(request: request5, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
65
|
-
}
|
|
66
|
-
export declare const paymentsClient: {
|
|
67
|
-
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): paymentsClient;
|
|
68
|
-
service: typeof paymentsService;
|
|
69
|
-
serviceName: string;
|
|
70
|
-
};
|
package/ts/payments.js
DELETED
|
@@ -1,54 +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: payments.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.paymentsClient = exports.paymentsService = exports.protobufPackage = void 0;
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
-
const checkpaymentstatus_1 = require("./payments/checkpaymentstatus");
|
|
12
|
-
const getpaymentdetails_1 = require("./payments/getpaymentdetails");
|
|
13
|
-
const getpaymentoptions_1 = require("./payments/getpaymentoptions");
|
|
14
|
-
const initiatepayment_1 = require("./payments/initiatepayment");
|
|
15
|
-
exports.protobufPackage = "service";
|
|
16
|
-
exports.paymentsService = {
|
|
17
|
-
getpaymentoptions: {
|
|
18
|
-
path: "/service.payments/getpaymentoptions",
|
|
19
|
-
requestStream: false,
|
|
20
|
-
responseStream: false,
|
|
21
|
-
requestSerialize: (value) => Buffer.from(getpaymentoptions_1.request.encode(value).finish()),
|
|
22
|
-
requestDeserialize: (value) => getpaymentoptions_1.request.decode(value),
|
|
23
|
-
responseSerialize: (value) => Buffer.from(getpaymentoptions_1.response.encode(value).finish()),
|
|
24
|
-
responseDeserialize: (value) => getpaymentoptions_1.response.decode(value),
|
|
25
|
-
},
|
|
26
|
-
initiatepayment: {
|
|
27
|
-
path: "/service.payments/initiatepayment",
|
|
28
|
-
requestStream: false,
|
|
29
|
-
responseStream: false,
|
|
30
|
-
requestSerialize: (value) => Buffer.from(initiatepayment_1.request.encode(value).finish()),
|
|
31
|
-
requestDeserialize: (value) => initiatepayment_1.request.decode(value),
|
|
32
|
-
responseSerialize: (value) => Buffer.from(initiatepayment_1.response.encode(value).finish()),
|
|
33
|
-
responseDeserialize: (value) => initiatepayment_1.response.decode(value),
|
|
34
|
-
},
|
|
35
|
-
checkpaymentstatus: {
|
|
36
|
-
path: "/service.payments/checkpaymentstatus",
|
|
37
|
-
requestStream: false,
|
|
38
|
-
responseStream: false,
|
|
39
|
-
requestSerialize: (value) => Buffer.from(checkpaymentstatus_1.request.encode(value).finish()),
|
|
40
|
-
requestDeserialize: (value) => checkpaymentstatus_1.request.decode(value),
|
|
41
|
-
responseSerialize: (value) => Buffer.from(checkpaymentstatus_1.response.encode(value).finish()),
|
|
42
|
-
responseDeserialize: (value) => checkpaymentstatus_1.response.decode(value),
|
|
43
|
-
},
|
|
44
|
-
getpaymentdetails: {
|
|
45
|
-
path: "/service.payments/getpaymentdetails",
|
|
46
|
-
requestStream: false,
|
|
47
|
-
responseStream: false,
|
|
48
|
-
requestSerialize: (value) => Buffer.from(getpaymentdetails_1.request.encode(value).finish()),
|
|
49
|
-
requestDeserialize: (value) => getpaymentdetails_1.request.decode(value),
|
|
50
|
-
responseSerialize: (value) => Buffer.from(getpaymentdetails_1.response.encode(value).finish()),
|
|
51
|
-
responseDeserialize: (value) => getpaymentdetails_1.response.decode(value),
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
exports.paymentsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.paymentsService, "service.payments");
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "stashcash.creditsc";
|
|
3
|
-
export interface request {
|
|
4
|
-
customer_id: number;
|
|
5
|
-
campaign_id: number;
|
|
6
|
-
amount: number;
|
|
7
|
-
sc_type: string;
|
|
8
|
-
expiry?: string | undefined;
|
|
9
|
-
}
|
|
10
|
-
export interface response {
|
|
11
|
-
status: string;
|
|
12
|
-
data: response_Data | undefined;
|
|
13
|
-
}
|
|
14
|
-
export interface response_Data {
|
|
15
|
-
locked: number;
|
|
16
|
-
unlocked: number;
|
|
17
|
-
balance: number;
|
|
18
|
-
txn_id: number;
|
|
19
|
-
}
|
|
20
|
-
export declare const request: {
|
|
21
|
-
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
23
|
-
fromJSON(object: any): request;
|
|
24
|
-
toJSON(message: request): unknown;
|
|
25
|
-
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
26
|
-
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
27
|
-
};
|
|
28
|
-
export declare const response: {
|
|
29
|
-
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
31
|
-
fromJSON(object: any): response;
|
|
32
|
-
toJSON(message: response): unknown;
|
|
33
|
-
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
34
|
-
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
35
|
-
};
|
|
36
|
-
export declare const response_Data: {
|
|
37
|
-
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
39
|
-
fromJSON(object: any): response_Data;
|
|
40
|
-
toJSON(message: response_Data): unknown;
|
|
41
|
-
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
42
|
-
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
43
|
-
};
|
|
44
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
45
|
-
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 {} ? {
|
|
46
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
47
|
-
} : Partial<T>;
|
|
48
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
49
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
50
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
51
|
-
} & {
|
|
52
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
53
|
-
};
|
|
54
|
-
export {};
|