@stashfin/grpc 1.0.27 → 1.0.29

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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/ts/customers/getprofile.d.ts +16 -16
  3. package/ts/customers/getprofile.js +11 -11
  4. package/ts/customers/getstep.d.ts +16 -16
  5. package/ts/customers/getstep.js +11 -11
  6. package/ts/customers/profilebasic.d.ts +16 -16
  7. package/ts/customers/profilebasic.js +11 -11
  8. package/ts/customers/profileupdatetnc.d.ts +16 -16
  9. package/ts/customers/profileupdatetnc.js +11 -11
  10. package/ts/customers/sendemailtoken.d.ts +16 -16
  11. package/ts/customers/sendemailtoken.js +11 -11
  12. package/ts/customers/sendotp.d.ts +16 -16
  13. package/ts/customers/sendotp.js +11 -11
  14. package/ts/customers/setmpin.d.ts +16 -16
  15. package/ts/customers/setmpin.js +11 -11
  16. package/ts/customers/step1.d.ts +25 -25
  17. package/ts/customers/step1.js +21 -21
  18. package/ts/customers/step10.d.ts +25 -25
  19. package/ts/customers/step10.js +21 -21
  20. package/ts/customers/step2.d.ts +25 -25
  21. package/ts/customers/step2.js +21 -21
  22. package/ts/customers/step7.d.ts +25 -25
  23. package/ts/customers/step7.js +21 -21
  24. package/ts/customers/step8.d.ts +25 -25
  25. package/ts/customers/step8.js +21 -21
  26. package/ts/customers/step9.d.ts +25 -25
  27. package/ts/customers/step9.js +21 -21
  28. package/ts/customers/stepstatic.d.ts +25 -25
  29. package/ts/customers/stepstatic.js +23 -21
  30. package/ts/customers/verifyemail.d.ts +35 -0
  31. package/ts/customers/verifyemail.js +117 -0
  32. package/ts/customers/verifympin.d.ts +16 -16
  33. package/ts/customers/verifympin.js +11 -11
  34. package/ts/customers/verifyotp.d.ts +16 -16
  35. package/ts/customers/verifyotp.js +11 -11
  36. package/ts/customers.d.ts +190 -176
  37. package/ts/customers.js +90 -80
  38. package/ts/stashcash/creditsc.d.ts +1 -1
  39. package/ts/stashcash/creditsc.js +5 -5
  40. package/ts/stashcash/debitsc.d.ts +55 -0
  41. package/ts/stashcash/debitsc.js +315 -0
  42. package/ts/stashcash/getschistory.d.ts +3 -3
  43. package/ts/stashcash/getschistory.js +27 -27
  44. package/ts/stashcash.d.ts +14 -0
  45. package/ts/stashcash.js +10 -0
@@ -0,0 +1,315 @@
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: stashcash/debitsc.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 = "stashcash.debitsc";
16
+ function createBaserequest() {
17
+ return { customer_id: 0, flag: 0, campaign_id: undefined, amount: undefined, sc_type: undefined };
18
+ }
19
+ exports.request = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.customer_id !== 0) {
22
+ writer.uint32(8).int64(message.customer_id);
23
+ }
24
+ if (message.flag !== 0) {
25
+ writer.uint32(16).int32(message.flag);
26
+ }
27
+ if (message.campaign_id !== undefined) {
28
+ writer.uint32(24).int64(message.campaign_id);
29
+ }
30
+ if (message.amount !== undefined) {
31
+ writer.uint32(37).float(message.amount);
32
+ }
33
+ if (message.sc_type !== undefined) {
34
+ writer.uint32(42).string(message.sc_type);
35
+ }
36
+ return writer;
37
+ },
38
+ decode(input, length) {
39
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
40
+ let end = length === undefined ? reader.len : reader.pos + length;
41
+ const message = createBaserequest();
42
+ while (reader.pos < end) {
43
+ const tag = reader.uint32();
44
+ switch (tag >>> 3) {
45
+ case 1:
46
+ if (tag !== 8) {
47
+ break;
48
+ }
49
+ message.customer_id = longToNumber(reader.int64());
50
+ continue;
51
+ case 2:
52
+ if (tag !== 16) {
53
+ break;
54
+ }
55
+ message.flag = reader.int32();
56
+ continue;
57
+ case 3:
58
+ if (tag !== 24) {
59
+ break;
60
+ }
61
+ message.campaign_id = longToNumber(reader.int64());
62
+ continue;
63
+ case 4:
64
+ if (tag !== 37) {
65
+ break;
66
+ }
67
+ message.amount = reader.float();
68
+ continue;
69
+ case 5:
70
+ if (tag !== 42) {
71
+ break;
72
+ }
73
+ message.sc_type = reader.string();
74
+ continue;
75
+ }
76
+ if ((tag & 7) === 4 || tag === 0) {
77
+ break;
78
+ }
79
+ reader.skipType(tag & 7);
80
+ }
81
+ return message;
82
+ },
83
+ fromJSON(object) {
84
+ return {
85
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
86
+ flag: isSet(object.flag) ? globalThis.Number(object.flag) : 0,
87
+ campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : undefined,
88
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : undefined,
89
+ sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : undefined,
90
+ };
91
+ },
92
+ toJSON(message) {
93
+ const obj = {};
94
+ if (message.customer_id !== 0) {
95
+ obj.customer_id = Math.round(message.customer_id);
96
+ }
97
+ if (message.flag !== 0) {
98
+ obj.flag = Math.round(message.flag);
99
+ }
100
+ if (message.campaign_id !== undefined) {
101
+ obj.campaign_id = Math.round(message.campaign_id);
102
+ }
103
+ if (message.amount !== undefined) {
104
+ obj.amount = message.amount;
105
+ }
106
+ if (message.sc_type !== undefined) {
107
+ obj.sc_type = message.sc_type;
108
+ }
109
+ return obj;
110
+ },
111
+ create(base) {
112
+ return exports.request.fromPartial(base ?? {});
113
+ },
114
+ fromPartial(object) {
115
+ const message = createBaserequest();
116
+ message.customer_id = object.customer_id ?? 0;
117
+ message.flag = object.flag ?? 0;
118
+ message.campaign_id = object.campaign_id ?? undefined;
119
+ message.amount = object.amount ?? undefined;
120
+ message.sc_type = object.sc_type ?? undefined;
121
+ return message;
122
+ },
123
+ };
124
+ function createBaseresponse() {
125
+ return { status: "", data: undefined };
126
+ }
127
+ exports.response = {
128
+ encode(message, writer = minimal_1.default.Writer.create()) {
129
+ if (message.status !== "") {
130
+ writer.uint32(10).string(message.status);
131
+ }
132
+ if (message.data !== undefined) {
133
+ exports.response_Data.encode(message.data, writer.uint32(18).fork()).ldelim();
134
+ }
135
+ return writer;
136
+ },
137
+ decode(input, length) {
138
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
139
+ let end = length === undefined ? reader.len : reader.pos + length;
140
+ const message = createBaseresponse();
141
+ while (reader.pos < end) {
142
+ const tag = reader.uint32();
143
+ switch (tag >>> 3) {
144
+ case 1:
145
+ if (tag !== 10) {
146
+ break;
147
+ }
148
+ message.status = reader.string();
149
+ continue;
150
+ case 2:
151
+ if (tag !== 18) {
152
+ break;
153
+ }
154
+ message.data = exports.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
+ fromJSON(object) {
165
+ return {
166
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
167
+ data: isSet(object.data) ? exports.response_Data.fromJSON(object.data) : undefined,
168
+ };
169
+ },
170
+ toJSON(message) {
171
+ const obj = {};
172
+ if (message.status !== "") {
173
+ obj.status = message.status;
174
+ }
175
+ if (message.data !== undefined) {
176
+ obj.data = exports.response_Data.toJSON(message.data);
177
+ }
178
+ return obj;
179
+ },
180
+ create(base) {
181
+ return exports.response.fromPartial(base ?? {});
182
+ },
183
+ fromPartial(object) {
184
+ const message = createBaseresponse();
185
+ message.status = object.status ?? "";
186
+ message.data = (object.data !== undefined && object.data !== null)
187
+ ? exports.response_Data.fromPartial(object.data)
188
+ : undefined;
189
+ return message;
190
+ },
191
+ };
192
+ function createBaseresponse_Data() {
193
+ return { locked: 0, unlocked: 0, balance: 0, rupee_balance: 0, txn_id: 0 };
194
+ }
195
+ exports.response_Data = {
196
+ encode(message, writer = minimal_1.default.Writer.create()) {
197
+ if (message.locked !== 0) {
198
+ writer.uint32(13).float(message.locked);
199
+ }
200
+ if (message.unlocked !== 0) {
201
+ writer.uint32(21).float(message.unlocked);
202
+ }
203
+ if (message.balance !== 0) {
204
+ writer.uint32(29).float(message.balance);
205
+ }
206
+ if (message.rupee_balance !== 0) {
207
+ writer.uint32(37).float(message.rupee_balance);
208
+ }
209
+ if (message.txn_id !== 0) {
210
+ writer.uint32(40).int64(message.txn_id);
211
+ }
212
+ return writer;
213
+ },
214
+ decode(input, length) {
215
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
216
+ let end = length === undefined ? reader.len : reader.pos + length;
217
+ const message = createBaseresponse_Data();
218
+ while (reader.pos < end) {
219
+ const tag = reader.uint32();
220
+ switch (tag >>> 3) {
221
+ case 1:
222
+ if (tag !== 13) {
223
+ break;
224
+ }
225
+ message.locked = reader.float();
226
+ continue;
227
+ case 2:
228
+ if (tag !== 21) {
229
+ break;
230
+ }
231
+ message.unlocked = reader.float();
232
+ continue;
233
+ case 3:
234
+ if (tag !== 29) {
235
+ break;
236
+ }
237
+ message.balance = reader.float();
238
+ continue;
239
+ case 4:
240
+ if (tag !== 37) {
241
+ break;
242
+ }
243
+ message.rupee_balance = reader.float();
244
+ continue;
245
+ case 5:
246
+ if (tag !== 40) {
247
+ break;
248
+ }
249
+ message.txn_id = longToNumber(reader.int64());
250
+ continue;
251
+ }
252
+ if ((tag & 7) === 4 || tag === 0) {
253
+ break;
254
+ }
255
+ reader.skipType(tag & 7);
256
+ }
257
+ return message;
258
+ },
259
+ fromJSON(object) {
260
+ return {
261
+ locked: isSet(object.locked) ? globalThis.Number(object.locked) : 0,
262
+ unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : 0,
263
+ balance: isSet(object.balance) ? globalThis.Number(object.balance) : 0,
264
+ rupee_balance: isSet(object.rupee_balance) ? globalThis.Number(object.rupee_balance) : 0,
265
+ txn_id: isSet(object.txn_id) ? globalThis.Number(object.txn_id) : 0,
266
+ };
267
+ },
268
+ toJSON(message) {
269
+ const obj = {};
270
+ if (message.locked !== 0) {
271
+ obj.locked = message.locked;
272
+ }
273
+ if (message.unlocked !== 0) {
274
+ obj.unlocked = message.unlocked;
275
+ }
276
+ if (message.balance !== 0) {
277
+ obj.balance = message.balance;
278
+ }
279
+ if (message.rupee_balance !== 0) {
280
+ obj.rupee_balance = message.rupee_balance;
281
+ }
282
+ if (message.txn_id !== 0) {
283
+ obj.txn_id = Math.round(message.txn_id);
284
+ }
285
+ return obj;
286
+ },
287
+ create(base) {
288
+ return exports.response_Data.fromPartial(base ?? {});
289
+ },
290
+ fromPartial(object) {
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.rupee_balance = object.rupee_balance ?? 0;
296
+ message.txn_id = object.txn_id ?? 0;
297
+ return message;
298
+ },
299
+ };
300
+ function longToNumber(long) {
301
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
302
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
303
+ }
304
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
305
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
306
+ }
307
+ return long.toNumber();
308
+ }
309
+ if (minimal_1.default.util.Long !== long_1.default) {
310
+ minimal_1.default.util.Long = long_1.default;
311
+ minimal_1.default.configure();
312
+ }
313
+ function isSet(value) {
314
+ return value !== null && value !== undefined;
315
+ }
@@ -14,7 +14,7 @@ export interface SCtransaction {
14
14
  id: number;
15
15
  customer_id: number;
16
16
  campaign_id: number;
17
- txn_id: number;
17
+ txn_id: string;
18
18
  sc_type: string;
19
19
  amount: number;
20
20
  remaining: number;
@@ -22,8 +22,8 @@ export interface SCtransaction {
22
22
  status: string;
23
23
  expiry: string;
24
24
  created_at: string;
25
- is_active: string;
26
- is_deleted: string;
25
+ is_active: boolean;
26
+ is_deleted: boolean;
27
27
  }
28
28
  export declare const request: {
29
29
  encode(message: request, writer?: _m0.Writer): _m0.Writer;
@@ -188,7 +188,7 @@ function createBaseSCtransaction() {
188
188
  id: 0,
189
189
  customer_id: 0,
190
190
  campaign_id: 0,
191
- txn_id: 0,
191
+ txn_id: "",
192
192
  sc_type: "",
193
193
  amount: 0,
194
194
  remaining: 0,
@@ -196,8 +196,8 @@ function createBaseSCtransaction() {
196
196
  status: "",
197
197
  expiry: "",
198
198
  created_at: "",
199
- is_active: "",
200
- is_deleted: "",
199
+ is_active: false,
200
+ is_deleted: false,
201
201
  };
202
202
  }
203
203
  exports.SCtransaction = {
@@ -211,8 +211,8 @@ exports.SCtransaction = {
211
211
  if (message.campaign_id !== 0) {
212
212
  writer.uint32(24).int64(message.campaign_id);
213
213
  }
214
- if (message.txn_id !== 0) {
215
- writer.uint32(32).int64(message.txn_id);
214
+ if (message.txn_id !== "") {
215
+ writer.uint32(34).string(message.txn_id);
216
216
  }
217
217
  if (message.sc_type !== "") {
218
218
  writer.uint32(42).string(message.sc_type);
@@ -235,11 +235,11 @@ exports.SCtransaction = {
235
235
  if (message.created_at !== "") {
236
236
  writer.uint32(90).string(message.created_at);
237
237
  }
238
- if (message.is_active !== "") {
239
- writer.uint32(106).string(message.is_active);
238
+ if (message.is_active !== false) {
239
+ writer.uint32(96).bool(message.is_active);
240
240
  }
241
- if (message.is_deleted !== "") {
242
- writer.uint32(114).string(message.is_deleted);
241
+ if (message.is_deleted !== false) {
242
+ writer.uint32(104).bool(message.is_deleted);
243
243
  }
244
244
  return writer;
245
245
  },
@@ -269,10 +269,10 @@ exports.SCtransaction = {
269
269
  message.campaign_id = longToNumber(reader.int64());
270
270
  continue;
271
271
  case 4:
272
- if (tag !== 32) {
272
+ if (tag !== 34) {
273
273
  break;
274
274
  }
275
- message.txn_id = longToNumber(reader.int64());
275
+ message.txn_id = reader.string();
276
276
  continue;
277
277
  case 5:
278
278
  if (tag !== 42) {
@@ -316,17 +316,17 @@ exports.SCtransaction = {
316
316
  }
317
317
  message.created_at = reader.string();
318
318
  continue;
319
- case 13:
320
- if (tag !== 106) {
319
+ case 12:
320
+ if (tag !== 96) {
321
321
  break;
322
322
  }
323
- message.is_active = reader.string();
323
+ message.is_active = reader.bool();
324
324
  continue;
325
- case 14:
326
- if (tag !== 114) {
325
+ case 13:
326
+ if (tag !== 104) {
327
327
  break;
328
328
  }
329
- message.is_deleted = reader.string();
329
+ message.is_deleted = reader.bool();
330
330
  continue;
331
331
  }
332
332
  if ((tag & 7) === 4 || tag === 0) {
@@ -341,7 +341,7 @@ exports.SCtransaction = {
341
341
  id: isSet(object.id) ? globalThis.Number(object.id) : 0,
342
342
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
343
343
  campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : 0,
344
- txn_id: isSet(object.txn_id) ? globalThis.Number(object.txn_id) : 0,
344
+ txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
345
345
  sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : "",
346
346
  amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
347
347
  remaining: isSet(object.remaining) ? globalThis.Number(object.remaining) : 0,
@@ -349,8 +349,8 @@ exports.SCtransaction = {
349
349
  status: isSet(object.status) ? globalThis.String(object.status) : "",
350
350
  expiry: isSet(object.expiry) ? globalThis.String(object.expiry) : "",
351
351
  created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
352
- is_active: isSet(object.is_active) ? globalThis.String(object.is_active) : "",
353
- is_deleted: isSet(object.is_deleted) ? globalThis.String(object.is_deleted) : "",
352
+ is_active: isSet(object.is_active) ? globalThis.Boolean(object.is_active) : false,
353
+ is_deleted: isSet(object.is_deleted) ? globalThis.Boolean(object.is_deleted) : false,
354
354
  };
355
355
  },
356
356
  toJSON(message) {
@@ -364,8 +364,8 @@ exports.SCtransaction = {
364
364
  if (message.campaign_id !== 0) {
365
365
  obj.campaign_id = Math.round(message.campaign_id);
366
366
  }
367
- if (message.txn_id !== 0) {
368
- obj.txn_id = Math.round(message.txn_id);
367
+ if (message.txn_id !== "") {
368
+ obj.txn_id = message.txn_id;
369
369
  }
370
370
  if (message.sc_type !== "") {
371
371
  obj.sc_type = message.sc_type;
@@ -388,10 +388,10 @@ exports.SCtransaction = {
388
388
  if (message.created_at !== "") {
389
389
  obj.created_at = message.created_at;
390
390
  }
391
- if (message.is_active !== "") {
391
+ if (message.is_active !== false) {
392
392
  obj.is_active = message.is_active;
393
393
  }
394
- if (message.is_deleted !== "") {
394
+ if (message.is_deleted !== false) {
395
395
  obj.is_deleted = message.is_deleted;
396
396
  }
397
397
  return obj;
@@ -404,7 +404,7 @@ exports.SCtransaction = {
404
404
  message.id = object.id ?? 0;
405
405
  message.customer_id = object.customer_id ?? 0;
406
406
  message.campaign_id = object.campaign_id ?? 0;
407
- message.txn_id = object.txn_id ?? 0;
407
+ message.txn_id = object.txn_id ?? "";
408
408
  message.sc_type = object.sc_type ?? "";
409
409
  message.amount = object.amount ?? 0;
410
410
  message.remaining = object.remaining ?? 0;
@@ -412,8 +412,8 @@ exports.SCtransaction = {
412
412
  message.status = object.status ?? "";
413
413
  message.expiry = object.expiry ?? "";
414
414
  message.created_at = object.created_at ?? "";
415
- message.is_active = object.is_active ?? "";
416
- message.is_deleted = object.is_deleted ?? "";
415
+ message.is_active = object.is_active ?? false;
416
+ message.is_deleted = object.is_deleted ?? false;
417
417
  return message;
418
418
  },
419
419
  };
package/ts/stashcash.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
2
  import { request as request1, response as response2 } from "./stashcash/creditsc";
3
+ import { request as request7, response as response8 } from "./stashcash/debitsc";
3
4
  import { request, response } from "./stashcash/getscbalance";
4
5
  import { request as request5, response as response6 } from "./stashcash/getschistory";
5
6
  import { request as request3, response as response4 } from "./stashcash/reversesc";
@@ -42,12 +43,22 @@ export declare const stashcashService: {
42
43
  readonly responseSerialize: (value: response6) => Buffer;
43
44
  readonly responseDeserialize: (value: Buffer) => response6;
44
45
  };
46
+ readonly debitsc: {
47
+ readonly path: "/service.stashcash/debitsc";
48
+ readonly requestStream: false;
49
+ readonly responseStream: false;
50
+ readonly requestSerialize: (value: request7) => Buffer;
51
+ readonly requestDeserialize: (value: Buffer) => request7;
52
+ readonly responseSerialize: (value: response8) => Buffer;
53
+ readonly responseDeserialize: (value: Buffer) => response8;
54
+ };
45
55
  };
46
56
  export interface stashcashServer extends UntypedServiceImplementation {
47
57
  getscbalance: handleUnaryCall<request, response>;
48
58
  creditsc: handleUnaryCall<request1, response2>;
49
59
  reversesc: handleUnaryCall<request3, response4>;
50
60
  getschistory: handleUnaryCall<request5, response6>;
61
+ debitsc: handleUnaryCall<request7, response8>;
51
62
  }
52
63
  export interface stashcashClient extends Client {
53
64
  getscbalance(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
@@ -62,6 +73,9 @@ export interface stashcashClient extends Client {
62
73
  getschistory(request: request5, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
63
74
  getschistory(request: request5, metadata: Metadata, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
64
75
  getschistory(request: request5, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
76
+ debitsc(request: request7, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
77
+ debitsc(request: request7, metadata: Metadata, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
78
+ debitsc(request: request7, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
65
79
  }
66
80
  export declare const stashcashClient: {
67
81
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): stashcashClient;
package/ts/stashcash.js CHANGED
@@ -9,6 +9,7 @@ exports.stashcashClient = exports.stashcashService = exports.protobufPackage = v
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const creditsc_1 = require("./stashcash/creditsc");
12
+ const debitsc_1 = require("./stashcash/debitsc");
12
13
  const getscbalance_1 = require("./stashcash/getscbalance");
13
14
  const getschistory_1 = require("./stashcash/getschistory");
14
15
  const reversesc_1 = require("./stashcash/reversesc");
@@ -50,5 +51,14 @@ exports.stashcashService = {
50
51
  responseSerialize: (value) => Buffer.from(getschistory_1.response.encode(value).finish()),
51
52
  responseDeserialize: (value) => getschistory_1.response.decode(value),
52
53
  },
54
+ debitsc: {
55
+ path: "/service.stashcash/debitsc",
56
+ requestStream: false,
57
+ responseStream: false,
58
+ requestSerialize: (value) => Buffer.from(debitsc_1.request.encode(value).finish()),
59
+ requestDeserialize: (value) => debitsc_1.request.decode(value),
60
+ responseSerialize: (value) => Buffer.from(debitsc_1.response.encode(value).finish()),
61
+ responseDeserialize: (value) => debitsc_1.response.decode(value),
62
+ },
53
63
  };
54
64
  exports.stashcashClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.stashcashService, "service.stashcash");