@stashfin/grpc 1.2.216 → 1.2.217

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 (41) hide show
  1. package/package.json +1 -2
  2. package/ts/customers/sendemailtoken.d.ts +35 -0
  3. package/ts/customers/sendemailtoken.js +117 -0
  4. package/ts/customers/skipdlrcscreen.d.ts +35 -0
  5. package/ts/customers/skipdlrcscreen.js +117 -0
  6. package/ts/customers/step1.d.ts +69 -0
  7. package/ts/customers/step1.js +395 -0
  8. package/ts/customers/step10.d.ts +73 -0
  9. package/ts/customers/step10.js +459 -0
  10. package/ts/customers/step2.d.ts +68 -0
  11. package/ts/customers/step2.js +381 -0
  12. package/ts/customers/step7.d.ts +68 -0
  13. package/ts/customers/step7.js +381 -0
  14. package/ts/customers/step8.d.ts +69 -0
  15. package/ts/customers/step8.js +395 -0
  16. package/ts/customers/step9.d.ts +75 -0
  17. package/ts/customers/step9.js +489 -0
  18. package/ts/customers/stepstatic.d.ts +66 -0
  19. package/ts/customers/stepstatic.js +354 -0
  20. package/ts/customers/verifyemail.d.ts +35 -0
  21. package/ts/customers/verifyemail.js +117 -0
  22. package/ts/customers.d.ts +0 -14
  23. package/ts/customers.js +0 -10
  24. package/ts/google/protobuf/timestamp.d.ts +127 -0
  25. package/ts/google/protobuf/timestamp.js +97 -0
  26. package/ts/growth/checkplanstatus.d.ts +49 -0
  27. package/ts/growth/checkplanstatus.js +213 -0
  28. package/ts/growth/getattachplandetails.d.ts +53 -0
  29. package/ts/growth/getattachplandetails.js +269 -0
  30. package/ts/growth/getchrplans.d.ts +96 -0
  31. package/ts/growth/getchrplans.js +578 -0
  32. package/ts/growth/getcredithealthreport.d.ts +70 -0
  33. package/ts/growth/getcredithealthreport.js +422 -0
  34. package/ts/growth/initiatepayment.d.ts +52 -0
  35. package/ts/growth/initiatepayment.js +271 -0
  36. package/ts/growth/processchrpayment.d.ts +18 -19
  37. package/ts/growth/processchrpayment.js +30 -58
  38. package/ts/growth.d.ts +79 -9
  39. package/ts/growth.js +54 -4
  40. package/ts/customers/pd/getbanklist.d.ts +0 -47
  41. package/ts/customers/pd/getbanklist.js +0 -190
@@ -0,0 +1,271 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.0
6
+ // source: growth/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.initiatepaymentresponse = exports.redirectdata = exports.initiatepaymentrequest = 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 = "growth.initiatepayment";
16
+ function createBaseinitiatepaymentrequest() {
17
+ return { auth_token: "", plan_id: 0, report_type: "", amount: 0 };
18
+ }
19
+ exports.initiatepaymentrequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.auth_token !== "") {
22
+ writer.uint32(10).string(message.auth_token);
23
+ }
24
+ if (message.plan_id !== 0) {
25
+ writer.uint32(16).int32(message.plan_id);
26
+ }
27
+ if (message.report_type !== "") {
28
+ writer.uint32(26).string(message.report_type);
29
+ }
30
+ if (message.amount !== 0) {
31
+ writer.uint32(32).int64(message.amount);
32
+ }
33
+ return writer;
34
+ },
35
+ decode(input, length) {
36
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
37
+ let end = length === undefined ? reader.len : reader.pos + length;
38
+ const message = createBaseinitiatepaymentrequest();
39
+ while (reader.pos < end) {
40
+ const tag = reader.uint32();
41
+ switch (tag >>> 3) {
42
+ case 1:
43
+ if (tag !== 10) {
44
+ break;
45
+ }
46
+ message.auth_token = reader.string();
47
+ continue;
48
+ case 2:
49
+ if (tag !== 16) {
50
+ break;
51
+ }
52
+ message.plan_id = reader.int32();
53
+ continue;
54
+ case 3:
55
+ if (tag !== 26) {
56
+ break;
57
+ }
58
+ message.report_type = reader.string();
59
+ continue;
60
+ case 4:
61
+ if (tag !== 32) {
62
+ break;
63
+ }
64
+ message.amount = longToNumber(reader.int64());
65
+ continue;
66
+ }
67
+ if ((tag & 7) === 4 || tag === 0) {
68
+ break;
69
+ }
70
+ reader.skipType(tag & 7);
71
+ }
72
+ return message;
73
+ },
74
+ fromJSON(object) {
75
+ return {
76
+ auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : "",
77
+ plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
78
+ report_type: isSet(object.report_type) ? globalThis.String(object.report_type) : "",
79
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
80
+ };
81
+ },
82
+ toJSON(message) {
83
+ const obj = {};
84
+ if (message.auth_token !== "") {
85
+ obj.auth_token = message.auth_token;
86
+ }
87
+ if (message.plan_id !== 0) {
88
+ obj.plan_id = Math.round(message.plan_id);
89
+ }
90
+ if (message.report_type !== "") {
91
+ obj.report_type = message.report_type;
92
+ }
93
+ if (message.amount !== 0) {
94
+ obj.amount = Math.round(message.amount);
95
+ }
96
+ return obj;
97
+ },
98
+ create(base) {
99
+ return exports.initiatepaymentrequest.fromPartial(base ?? {});
100
+ },
101
+ fromPartial(object) {
102
+ const message = createBaseinitiatepaymentrequest();
103
+ message.auth_token = object.auth_token ?? "";
104
+ message.plan_id = object.plan_id ?? 0;
105
+ message.report_type = object.report_type ?? "";
106
+ message.amount = object.amount ?? 0;
107
+ return message;
108
+ },
109
+ };
110
+ function createBaseredirectdata() {
111
+ return { redirect_url: "" };
112
+ }
113
+ exports.redirectdata = {
114
+ encode(message, writer = minimal_1.default.Writer.create()) {
115
+ if (message.redirect_url !== "") {
116
+ writer.uint32(10).string(message.redirect_url);
117
+ }
118
+ return writer;
119
+ },
120
+ decode(input, length) {
121
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
122
+ let end = length === undefined ? reader.len : reader.pos + length;
123
+ const message = createBaseredirectdata();
124
+ while (reader.pos < end) {
125
+ const tag = reader.uint32();
126
+ switch (tag >>> 3) {
127
+ case 1:
128
+ if (tag !== 10) {
129
+ break;
130
+ }
131
+ message.redirect_url = reader.string();
132
+ continue;
133
+ }
134
+ if ((tag & 7) === 4 || tag === 0) {
135
+ break;
136
+ }
137
+ reader.skipType(tag & 7);
138
+ }
139
+ return message;
140
+ },
141
+ fromJSON(object) {
142
+ return { redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "" };
143
+ },
144
+ toJSON(message) {
145
+ const obj = {};
146
+ if (message.redirect_url !== "") {
147
+ obj.redirect_url = message.redirect_url;
148
+ }
149
+ return obj;
150
+ },
151
+ create(base) {
152
+ return exports.redirectdata.fromPartial(base ?? {});
153
+ },
154
+ fromPartial(object) {
155
+ const message = createBaseredirectdata();
156
+ message.redirect_url = object.redirect_url ?? "";
157
+ return message;
158
+ },
159
+ };
160
+ function createBaseinitiatepaymentresponse() {
161
+ return { status: "", statusCode: 0, data: undefined, message: "" };
162
+ }
163
+ exports.initiatepaymentresponse = {
164
+ encode(message, writer = minimal_1.default.Writer.create()) {
165
+ if (message.status !== "") {
166
+ writer.uint32(10).string(message.status);
167
+ }
168
+ if (message.statusCode !== 0) {
169
+ writer.uint32(16).int32(message.statusCode);
170
+ }
171
+ if (message.data !== undefined) {
172
+ exports.redirectdata.encode(message.data, writer.uint32(26).fork()).ldelim();
173
+ }
174
+ if (message.message !== "") {
175
+ writer.uint32(34).string(message.message);
176
+ }
177
+ return writer;
178
+ },
179
+ decode(input, length) {
180
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
181
+ let end = length === undefined ? reader.len : reader.pos + length;
182
+ const message = createBaseinitiatepaymentresponse();
183
+ while (reader.pos < end) {
184
+ const tag = reader.uint32();
185
+ switch (tag >>> 3) {
186
+ case 1:
187
+ if (tag !== 10) {
188
+ break;
189
+ }
190
+ message.status = reader.string();
191
+ continue;
192
+ case 2:
193
+ if (tag !== 16) {
194
+ break;
195
+ }
196
+ message.statusCode = reader.int32();
197
+ continue;
198
+ case 3:
199
+ if (tag !== 26) {
200
+ break;
201
+ }
202
+ message.data = exports.redirectdata.decode(reader, reader.uint32());
203
+ continue;
204
+ case 4:
205
+ if (tag !== 34) {
206
+ break;
207
+ }
208
+ message.message = reader.string();
209
+ continue;
210
+ }
211
+ if ((tag & 7) === 4 || tag === 0) {
212
+ break;
213
+ }
214
+ reader.skipType(tag & 7);
215
+ }
216
+ return message;
217
+ },
218
+ fromJSON(object) {
219
+ return {
220
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
221
+ statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
222
+ data: isSet(object.data) ? exports.redirectdata.fromJSON(object.data) : undefined,
223
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
224
+ };
225
+ },
226
+ toJSON(message) {
227
+ const obj = {};
228
+ if (message.status !== "") {
229
+ obj.status = message.status;
230
+ }
231
+ if (message.statusCode !== 0) {
232
+ obj.statusCode = Math.round(message.statusCode);
233
+ }
234
+ if (message.data !== undefined) {
235
+ obj.data = exports.redirectdata.toJSON(message.data);
236
+ }
237
+ if (message.message !== "") {
238
+ obj.message = message.message;
239
+ }
240
+ return obj;
241
+ },
242
+ create(base) {
243
+ return exports.initiatepaymentresponse.fromPartial(base ?? {});
244
+ },
245
+ fromPartial(object) {
246
+ const message = createBaseinitiatepaymentresponse();
247
+ message.status = object.status ?? "";
248
+ message.statusCode = object.statusCode ?? 0;
249
+ message.data = (object.data !== undefined && object.data !== null)
250
+ ? exports.redirectdata.fromPartial(object.data)
251
+ : undefined;
252
+ message.message = object.message ?? "";
253
+ return message;
254
+ },
255
+ };
256
+ function longToNumber(long) {
257
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
258
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
259
+ }
260
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
261
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
262
+ }
263
+ return long.toNumber();
264
+ }
265
+ if (minimal_1.default.util.Long !== long_1.default) {
266
+ minimal_1.default.util.Long = long_1.default;
267
+ minimal_1.default.configure();
268
+ }
269
+ function isSet(value) {
270
+ return value !== null && value !== undefined;
271
+ }
@@ -1,31 +1,30 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "growth.processchrpayment";
3
- export interface request {
3
+ export interface processchrrequest {
4
4
  txn_id: string;
5
5
  txn_status: string;
6
- customer_id: number;
7
6
  data: string;
8
7
  }
9
- export interface response {
8
+ export interface processchrresponse {
10
9
  status: string;
11
- txn_id: string;
12
- txn_status: string;
10
+ statusCode: number;
11
+ message: string;
13
12
  }
14
- export declare const request: {
15
- encode(message: request, writer?: _m0.Writer): _m0.Writer;
16
- decode(input: _m0.Reader | Uint8Array, length?: number): request;
17
- fromJSON(object: any): request;
18
- toJSON(message: request): unknown;
19
- create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
20
- fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
13
+ export declare const processchrrequest: {
14
+ encode(message: processchrrequest, writer?: _m0.Writer): _m0.Writer;
15
+ decode(input: _m0.Reader | Uint8Array, length?: number): processchrrequest;
16
+ fromJSON(object: any): processchrrequest;
17
+ toJSON(message: processchrrequest): unknown;
18
+ create<I extends Exact<DeepPartial<processchrrequest>, I>>(base?: I): processchrrequest;
19
+ fromPartial<I extends Exact<DeepPartial<processchrrequest>, I>>(object: I): processchrrequest;
21
20
  };
22
- export declare const response: {
23
- encode(message: response, writer?: _m0.Writer): _m0.Writer;
24
- decode(input: _m0.Reader | Uint8Array, length?: number): response;
25
- fromJSON(object: any): response;
26
- toJSON(message: response): unknown;
27
- create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
28
- fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
21
+ export declare const processchrresponse: {
22
+ encode(message: processchrresponse, writer?: _m0.Writer): _m0.Writer;
23
+ decode(input: _m0.Reader | Uint8Array, length?: number): processchrresponse;
24
+ fromJSON(object: any): processchrresponse;
25
+ toJSON(message: processchrresponse): unknown;
26
+ create<I extends Exact<DeepPartial<processchrresponse>, I>>(base?: I): processchrresponse;
27
+ fromPartial<I extends Exact<DeepPartial<processchrresponse>, I>>(object: I): processchrresponse;
29
28
  };
30
29
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
31
30
  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 {} ? {
@@ -8,15 +8,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.response = exports.request = exports.protobufPackage = void 0;
11
+ exports.processchrresponse = exports.processchrrequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
- const long_1 = __importDefault(require("long"));
14
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
14
  exports.protobufPackage = "growth.processchrpayment";
16
- function createBaserequest() {
17
- return { txn_id: "", txn_status: "", customer_id: 0, data: "" };
15
+ function createBaseprocesschrrequest() {
16
+ return { txn_id: "", txn_status: "", data: "" };
18
17
  }
19
- exports.request = {
18
+ exports.processchrrequest = {
20
19
  encode(message, writer = minimal_1.default.Writer.create()) {
21
20
  if (message.txn_id !== "") {
22
21
  writer.uint32(10).string(message.txn_id);
@@ -24,18 +23,15 @@ exports.request = {
24
23
  if (message.txn_status !== "") {
25
24
  writer.uint32(18).string(message.txn_status);
26
25
  }
27
- if (message.customer_id !== 0) {
28
- writer.uint32(24).int64(message.customer_id);
29
- }
30
26
  if (message.data !== "") {
31
- writer.uint32(34).string(message.data);
27
+ writer.uint32(26).string(message.data);
32
28
  }
33
29
  return writer;
34
30
  },
35
31
  decode(input, length) {
36
32
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
37
33
  let end = length === undefined ? reader.len : reader.pos + length;
38
- const message = createBaserequest();
34
+ const message = createBaseprocesschrrequest();
39
35
  while (reader.pos < end) {
40
36
  const tag = reader.uint32();
41
37
  switch (tag >>> 3) {
@@ -52,13 +48,7 @@ exports.request = {
52
48
  message.txn_status = reader.string();
53
49
  continue;
54
50
  case 3:
55
- if (tag !== 24) {
56
- break;
57
- }
58
- message.customer_id = longToNumber(reader.int64());
59
- continue;
60
- case 4:
61
- if (tag !== 34) {
51
+ if (tag !== 26) {
62
52
  break;
63
53
  }
64
54
  message.data = reader.string();
@@ -75,7 +65,6 @@ exports.request = {
75
65
  return {
76
66
  txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
77
67
  txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
78
- customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
79
68
  data: isSet(object.data) ? globalThis.String(object.data) : "",
80
69
  };
81
70
  },
@@ -87,46 +76,42 @@ exports.request = {
87
76
  if (message.txn_status !== "") {
88
77
  obj.txn_status = message.txn_status;
89
78
  }
90
- if (message.customer_id !== 0) {
91
- obj.customer_id = Math.round(message.customer_id);
92
- }
93
79
  if (message.data !== "") {
94
80
  obj.data = message.data;
95
81
  }
96
82
  return obj;
97
83
  },
98
84
  create(base) {
99
- return exports.request.fromPartial(base ?? {});
85
+ return exports.processchrrequest.fromPartial(base ?? {});
100
86
  },
101
87
  fromPartial(object) {
102
- const message = createBaserequest();
88
+ const message = createBaseprocesschrrequest();
103
89
  message.txn_id = object.txn_id ?? "";
104
90
  message.txn_status = object.txn_status ?? "";
105
- message.customer_id = object.customer_id ?? 0;
106
91
  message.data = object.data ?? "";
107
92
  return message;
108
93
  },
109
94
  };
110
- function createBaseresponse() {
111
- return { status: "", txn_id: "", txn_status: "" };
95
+ function createBaseprocesschrresponse() {
96
+ return { status: "", statusCode: 0, message: "" };
112
97
  }
113
- exports.response = {
98
+ exports.processchrresponse = {
114
99
  encode(message, writer = minimal_1.default.Writer.create()) {
115
100
  if (message.status !== "") {
116
101
  writer.uint32(10).string(message.status);
117
102
  }
118
- if (message.txn_id !== "") {
119
- writer.uint32(18).string(message.txn_id);
103
+ if (message.statusCode !== 0) {
104
+ writer.uint32(16).int32(message.statusCode);
120
105
  }
121
- if (message.txn_status !== "") {
122
- writer.uint32(26).string(message.txn_status);
106
+ if (message.message !== "") {
107
+ writer.uint32(26).string(message.message);
123
108
  }
124
109
  return writer;
125
110
  },
126
111
  decode(input, length) {
127
112
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
128
113
  let end = length === undefined ? reader.len : reader.pos + length;
129
- const message = createBaseresponse();
114
+ const message = createBaseprocesschrresponse();
130
115
  while (reader.pos < end) {
131
116
  const tag = reader.uint32();
132
117
  switch (tag >>> 3) {
@@ -137,16 +122,16 @@ exports.response = {
137
122
  message.status = reader.string();
138
123
  continue;
139
124
  case 2:
140
- if (tag !== 18) {
125
+ if (tag !== 16) {
141
126
  break;
142
127
  }
143
- message.txn_id = reader.string();
128
+ message.statusCode = reader.int32();
144
129
  continue;
145
130
  case 3:
146
131
  if (tag !== 26) {
147
132
  break;
148
133
  }
149
- message.txn_status = reader.string();
134
+ message.message = reader.string();
150
135
  continue;
151
136
  }
152
137
  if ((tag & 7) === 4 || tag === 0) {
@@ -159,8 +144,8 @@ exports.response = {
159
144
  fromJSON(object) {
160
145
  return {
161
146
  status: isSet(object.status) ? globalThis.String(object.status) : "",
162
- txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
163
- txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
147
+ statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
148
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
164
149
  };
165
150
  },
166
151
  toJSON(message) {
@@ -168,38 +153,25 @@ exports.response = {
168
153
  if (message.status !== "") {
169
154
  obj.status = message.status;
170
155
  }
171
- if (message.txn_id !== "") {
172
- obj.txn_id = message.txn_id;
156
+ if (message.statusCode !== 0) {
157
+ obj.statusCode = Math.round(message.statusCode);
173
158
  }
174
- if (message.txn_status !== "") {
175
- obj.txn_status = message.txn_status;
159
+ if (message.message !== "") {
160
+ obj.message = message.message;
176
161
  }
177
162
  return obj;
178
163
  },
179
164
  create(base) {
180
- return exports.response.fromPartial(base ?? {});
165
+ return exports.processchrresponse.fromPartial(base ?? {});
181
166
  },
182
167
  fromPartial(object) {
183
- const message = createBaseresponse();
168
+ const message = createBaseprocesschrresponse();
184
169
  message.status = object.status ?? "";
185
- message.txn_id = object.txn_id ?? "";
186
- message.txn_status = object.txn_status ?? "";
170
+ message.statusCode = object.statusCode ?? 0;
171
+ message.message = object.message ?? "";
187
172
  return message;
188
173
  },
189
174
  };
190
- function longToNumber(long) {
191
- if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
192
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
193
- }
194
- if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
195
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
196
- }
197
- return long.toNumber();
198
- }
199
- if (minimal_1.default.util.Long !== long_1.default) {
200
- minimal_1.default.util.Long = long_1.default;
201
- minimal_1.default.configure();
202
- }
203
175
  function isSet(value) {
204
176
  return value !== null && value !== undefined;
205
177
  }
package/ts/growth.d.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
- import { request, response } from "./growth/processchrpayment";
2
+ import { chrplansstatusrequest, chrplanstatusresponse } from "./growth/checkplanstatus";
3
+ import { chrattachplanrequest, chrattachplanresponse } from "./growth/getattachplandetails";
4
+ import { chrplansrequest, chrplansresponse } from "./growth/getchrplans";
5
+ import { credithealthreportrequest, credithealthreportresponse } from "./growth/getcredithealthreport";
6
+ import { initiatepaymentrequest, initiatepaymentresponse } from "./growth/initiatepayment";
7
+ import { processchrrequest, processchrresponse } from "./growth/processchrpayment";
3
8
  export declare const protobufPackage = "service";
4
9
  export type growthService = typeof growthService;
5
10
  export declare const growthService: {
@@ -7,19 +12,84 @@ export declare const growthService: {
7
12
  readonly path: "/service.growth/processchrpayment";
8
13
  readonly requestStream: false;
9
14
  readonly responseStream: false;
10
- readonly requestSerialize: (value: request) => Buffer;
11
- readonly requestDeserialize: (value: Buffer) => request;
12
- readonly responseSerialize: (value: response) => Buffer;
13
- readonly responseDeserialize: (value: Buffer) => response;
15
+ readonly requestSerialize: (value: processchrrequest) => Buffer;
16
+ readonly requestDeserialize: (value: Buffer) => processchrrequest;
17
+ readonly responseSerialize: (value: processchrresponse) => Buffer;
18
+ readonly responseDeserialize: (value: Buffer) => processchrresponse;
19
+ };
20
+ readonly checkplanstatus: {
21
+ readonly path: "/service.growth/checkplanstatus";
22
+ readonly requestStream: false;
23
+ readonly responseStream: false;
24
+ readonly requestSerialize: (value: chrplansstatusrequest) => Buffer;
25
+ readonly requestDeserialize: (value: Buffer) => chrplansstatusrequest;
26
+ readonly responseSerialize: (value: chrplanstatusresponse) => Buffer;
27
+ readonly responseDeserialize: (value: Buffer) => chrplanstatusresponse;
28
+ };
29
+ readonly getattachplandetails: {
30
+ readonly path: "/service.growth/getattachplandetails";
31
+ readonly requestStream: false;
32
+ readonly responseStream: false;
33
+ readonly requestSerialize: (value: chrattachplanrequest) => Buffer;
34
+ readonly requestDeserialize: (value: Buffer) => chrattachplanrequest;
35
+ readonly responseSerialize: (value: chrattachplanresponse) => Buffer;
36
+ readonly responseDeserialize: (value: Buffer) => chrattachplanresponse;
37
+ };
38
+ readonly getchrplans: {
39
+ readonly path: "/service.growth/getchrplans";
40
+ readonly requestStream: false;
41
+ readonly responseStream: false;
42
+ readonly requestSerialize: (value: chrplansrequest) => Buffer;
43
+ readonly requestDeserialize: (value: Buffer) => chrplansrequest;
44
+ readonly responseSerialize: (value: chrplansresponse) => Buffer;
45
+ readonly responseDeserialize: (value: Buffer) => chrplansresponse;
46
+ };
47
+ readonly getcredithealthreport: {
48
+ readonly path: "/service.growth/getcredithealthreport";
49
+ readonly requestStream: false;
50
+ readonly responseStream: false;
51
+ readonly requestSerialize: (value: credithealthreportrequest) => Buffer;
52
+ readonly requestDeserialize: (value: Buffer) => credithealthreportrequest;
53
+ readonly responseSerialize: (value: credithealthreportresponse) => Buffer;
54
+ readonly responseDeserialize: (value: Buffer) => credithealthreportresponse;
55
+ };
56
+ readonly initiatepayment: {
57
+ readonly path: "/service.growth/initiatepayment";
58
+ readonly requestStream: false;
59
+ readonly responseStream: false;
60
+ readonly requestSerialize: (value: initiatepaymentrequest) => Buffer;
61
+ readonly requestDeserialize: (value: Buffer) => initiatepaymentrequest;
62
+ readonly responseSerialize: (value: initiatepaymentresponse) => Buffer;
63
+ readonly responseDeserialize: (value: Buffer) => initiatepaymentresponse;
14
64
  };
15
65
  };
16
66
  export interface growthServer extends UntypedServiceImplementation {
17
- processchrpayment: handleUnaryCall<request, response>;
67
+ processchrpayment: handleUnaryCall<processchrrequest, processchrresponse>;
68
+ checkplanstatus: handleUnaryCall<chrplansstatusrequest, chrplanstatusresponse>;
69
+ getattachplandetails: handleUnaryCall<chrattachplanrequest, chrattachplanresponse>;
70
+ getchrplans: handleUnaryCall<chrplansrequest, chrplansresponse>;
71
+ getcredithealthreport: handleUnaryCall<credithealthreportrequest, credithealthreportresponse>;
72
+ initiatepayment: handleUnaryCall<initiatepaymentrequest, initiatepaymentresponse>;
18
73
  }
19
74
  export interface growthClient extends Client {
20
- processchrpayment(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
21
- processchrpayment(request: request, metadata: Metadata, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
22
- processchrpayment(request: request, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
75
+ processchrpayment(request: processchrrequest, callback: (error: ServiceError | null, response: processchrresponse) => void): ClientUnaryCall;
76
+ processchrpayment(request: processchrrequest, metadata: Metadata, callback: (error: ServiceError | null, response: processchrresponse) => void): ClientUnaryCall;
77
+ processchrpayment(request: processchrrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: processchrresponse) => void): ClientUnaryCall;
78
+ checkplanstatus(request: chrplansstatusrequest, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
79
+ checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
80
+ checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
81
+ getattachplandetails(request: chrattachplanrequest, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
82
+ getattachplandetails(request: chrattachplanrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
83
+ getattachplandetails(request: chrattachplanrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
84
+ getchrplans(request: chrplansrequest, callback: (error: ServiceError | null, response: chrplansresponse) => void): ClientUnaryCall;
85
+ getchrplans(request: chrplansrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrplansresponse) => void): ClientUnaryCall;
86
+ getchrplans(request: chrplansrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrplansresponse) => void): ClientUnaryCall;
87
+ getcredithealthreport(request: credithealthreportrequest, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
88
+ getcredithealthreport(request: credithealthreportrequest, metadata: Metadata, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
89
+ getcredithealthreport(request: credithealthreportrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
90
+ initiatepayment(request: initiatepaymentrequest, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
91
+ initiatepayment(request: initiatepaymentrequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
92
+ initiatepayment(request: initiatepaymentrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
23
93
  }
24
94
  export declare const growthClient: {
25
95
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): growthClient;