@stashfin/grpc 1.2.160 → 1.2.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts/customers/addfathersname.d.ts +35 -0
- package/ts/customers/addfathersname.js +117 -0
- package/ts/customers/bulksms.d.ts +48 -0
- package/ts/customers/bulksms.js +201 -0
- package/ts/customers/getbankaccountdetails.d.ts +1 -0
- package/ts/customers/getbankaccountdetails.js +21 -7
- package/ts/customers.d.ts +28 -0
- package/ts/customers.js +20 -0
- package/ts/growth/processchrpayment.d.ts +51 -0
- package/ts/growth/processchrpayment.js +255 -0
- package/ts/growth.d.ts +28 -0
- package/ts/growth.js +24 -0
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.addfathersname";
|
|
3
|
+
export interface addFathersNameRequest {
|
|
4
|
+
fathers_name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface addFathersNameResponse {
|
|
7
|
+
success: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const addFathersNameRequest: {
|
|
10
|
+
encode(message: addFathersNameRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addFathersNameRequest;
|
|
12
|
+
fromJSON(object: any): addFathersNameRequest;
|
|
13
|
+
toJSON(message: addFathersNameRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<addFathersNameRequest>, I>>(base?: I): addFathersNameRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<addFathersNameRequest>, I>>(object: I): addFathersNameRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const addFathersNameResponse: {
|
|
18
|
+
encode(message: addFathersNameResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addFathersNameResponse;
|
|
20
|
+
fromJSON(object: any): addFathersNameResponse;
|
|
21
|
+
toJSON(message: addFathersNameResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<addFathersNameResponse>, I>>(base?: I): addFathersNameResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<addFathersNameResponse>, I>>(object: I): addFathersNameResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/addfathersname.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.addFathersNameResponse = exports.addFathersNameRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.addfathersname";
|
|
15
|
+
function createBaseaddFathersNameRequest() {
|
|
16
|
+
return { fathers_name: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.addFathersNameRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.fathers_name !== "") {
|
|
21
|
+
writer.uint32(10).string(message.fathers_name);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseaddFathersNameRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.fathers_name = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { fathers_name: isSet(object.fathers_name) ? globalThis.String(object.fathers_name) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.fathers_name !== "") {
|
|
52
|
+
obj.fathers_name = message.fathers_name;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.addFathersNameRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBaseaddFathersNameRequest();
|
|
61
|
+
message.fathers_name = object.fathers_name ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBaseaddFathersNameResponse() {
|
|
66
|
+
return { success: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.addFathersNameResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.success !== "") {
|
|
71
|
+
writer.uint32(10).string(message.success);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBaseaddFathersNameResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.success = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return { success: isSet(object.success) ? globalThis.String(object.success) : "" };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.success !== "") {
|
|
102
|
+
obj.success = message.success;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.addFathersNameResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBaseaddFathersNameResponse();
|
|
111
|
+
message.success = object.success ?? "";
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.bulksms";
|
|
3
|
+
export interface SMSRecord {
|
|
4
|
+
mobile: string;
|
|
5
|
+
message: string;
|
|
6
|
+
received_at: string;
|
|
7
|
+
}
|
|
8
|
+
export interface bulkSMSRequest {
|
|
9
|
+
sms_records: SMSRecord[];
|
|
10
|
+
}
|
|
11
|
+
export interface bulkSMSResponse {
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const SMSRecord: {
|
|
15
|
+
encode(message: SMSRecord, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SMSRecord;
|
|
17
|
+
fromJSON(object: any): SMSRecord;
|
|
18
|
+
toJSON(message: SMSRecord): unknown;
|
|
19
|
+
create<I extends Exact<DeepPartial<SMSRecord>, I>>(base?: I): SMSRecord;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<SMSRecord>, I>>(object: I): SMSRecord;
|
|
21
|
+
};
|
|
22
|
+
export declare const bulkSMSRequest: {
|
|
23
|
+
encode(message: bulkSMSRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bulkSMSRequest;
|
|
25
|
+
fromJSON(object: any): bulkSMSRequest;
|
|
26
|
+
toJSON(message: bulkSMSRequest): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<bulkSMSRequest>, I>>(base?: I): bulkSMSRequest;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<bulkSMSRequest>, I>>(object: I): bulkSMSRequest;
|
|
29
|
+
};
|
|
30
|
+
export declare const bulkSMSResponse: {
|
|
31
|
+
encode(message: bulkSMSResponse, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bulkSMSResponse;
|
|
33
|
+
fromJSON(object: any): bulkSMSResponse;
|
|
34
|
+
toJSON(message: bulkSMSResponse): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<bulkSMSResponse>, I>>(base?: I): bulkSMSResponse;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<bulkSMSResponse>, I>>(object: I): bulkSMSResponse;
|
|
37
|
+
};
|
|
38
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
|
+
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 {} ? {
|
|
40
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
41
|
+
} : Partial<T>;
|
|
42
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
43
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
44
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
45
|
+
} & {
|
|
46
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,201 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/bulksms.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.bulkSMSResponse = exports.bulkSMSRequest = exports.SMSRecord = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.bulksms";
|
|
15
|
+
function createBaseSMSRecord() {
|
|
16
|
+
return { mobile: "", message: "", received_at: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.SMSRecord = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mobile);
|
|
22
|
+
}
|
|
23
|
+
if (message.message !== "") {
|
|
24
|
+
writer.uint32(18).string(message.message);
|
|
25
|
+
}
|
|
26
|
+
if (message.received_at !== "") {
|
|
27
|
+
writer.uint32(26).string(message.received_at);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseSMSRecord();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 10) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.mobile = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.message = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.received_at = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
67
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
68
|
+
received_at: isSet(object.received_at) ? globalThis.String(object.received_at) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.mobile !== "") {
|
|
74
|
+
obj.mobile = message.mobile;
|
|
75
|
+
}
|
|
76
|
+
if (message.message !== "") {
|
|
77
|
+
obj.message = message.message;
|
|
78
|
+
}
|
|
79
|
+
if (message.received_at !== "") {
|
|
80
|
+
obj.received_at = message.received_at;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.SMSRecord.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseSMSRecord();
|
|
89
|
+
message.mobile = object.mobile ?? "";
|
|
90
|
+
message.message = object.message ?? "";
|
|
91
|
+
message.received_at = object.received_at ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBasebulkSMSRequest() {
|
|
96
|
+
return { sms_records: [] };
|
|
97
|
+
}
|
|
98
|
+
exports.bulkSMSRequest = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
for (const v of message.sms_records) {
|
|
101
|
+
exports.SMSRecord.encode(v, writer.uint32(10).fork()).ldelim();
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBasebulkSMSRequest();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
if (tag !== 10) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.sms_records.push(exports.SMSRecord.decode(reader, reader.uint32()));
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
},
|
|
126
|
+
fromJSON(object) {
|
|
127
|
+
return {
|
|
128
|
+
sms_records: globalThis.Array.isArray(object?.sms_records)
|
|
129
|
+
? object.sms_records.map((e) => exports.SMSRecord.fromJSON(e))
|
|
130
|
+
: [],
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
toJSON(message) {
|
|
134
|
+
const obj = {};
|
|
135
|
+
if (message.sms_records?.length) {
|
|
136
|
+
obj.sms_records = message.sms_records.map((e) => exports.SMSRecord.toJSON(e));
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
create(base) {
|
|
141
|
+
return exports.bulkSMSRequest.fromPartial(base ?? {});
|
|
142
|
+
},
|
|
143
|
+
fromPartial(object) {
|
|
144
|
+
const message = createBasebulkSMSRequest();
|
|
145
|
+
message.sms_records = object.sms_records?.map((e) => exports.SMSRecord.fromPartial(e)) || [];
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
function createBasebulkSMSResponse() {
|
|
150
|
+
return { status: "" };
|
|
151
|
+
}
|
|
152
|
+
exports.bulkSMSResponse = {
|
|
153
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
154
|
+
if (message.status !== "") {
|
|
155
|
+
writer.uint32(10).string(message.status);
|
|
156
|
+
}
|
|
157
|
+
return writer;
|
|
158
|
+
},
|
|
159
|
+
decode(input, length) {
|
|
160
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
161
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
162
|
+
const message = createBasebulkSMSResponse();
|
|
163
|
+
while (reader.pos < end) {
|
|
164
|
+
const tag = reader.uint32();
|
|
165
|
+
switch (tag >>> 3) {
|
|
166
|
+
case 1:
|
|
167
|
+
if (tag !== 10) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.status = reader.string();
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
reader.skipType(tag & 7);
|
|
177
|
+
}
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
fromJSON(object) {
|
|
181
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
182
|
+
},
|
|
183
|
+
toJSON(message) {
|
|
184
|
+
const obj = {};
|
|
185
|
+
if (message.status !== "") {
|
|
186
|
+
obj.status = message.status;
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
create(base) {
|
|
191
|
+
return exports.bulkSMSResponse.fromPartial(base ?? {});
|
|
192
|
+
},
|
|
193
|
+
fromPartial(object) {
|
|
194
|
+
const message = createBasebulkSMSResponse();
|
|
195
|
+
message.status = object.status ?? "";
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
function isSet(value) {
|
|
200
|
+
return value !== null && value !== undefined;
|
|
201
|
+
}
|
|
@@ -50,18 +50,21 @@ exports.getBankAccountDetailsRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetBankAccountDetailsResponse() {
|
|
53
|
-
return { account_number: "", bank_name: "", ifsc_code: "" };
|
|
53
|
+
return { bank_id: 0, account_number: "", bank_name: "", ifsc_code: "" };
|
|
54
54
|
}
|
|
55
55
|
exports.getBankAccountDetailsResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.bank_id !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.bank_id);
|
|
59
|
+
}
|
|
57
60
|
if (message.account_number !== "") {
|
|
58
|
-
writer.uint32(
|
|
61
|
+
writer.uint32(18).string(message.account_number);
|
|
59
62
|
}
|
|
60
63
|
if (message.bank_name !== "") {
|
|
61
|
-
writer.uint32(
|
|
64
|
+
writer.uint32(26).string(message.bank_name);
|
|
62
65
|
}
|
|
63
66
|
if (message.ifsc_code !== "") {
|
|
64
|
-
writer.uint32(
|
|
67
|
+
writer.uint32(34).string(message.ifsc_code);
|
|
65
68
|
}
|
|
66
69
|
return writer;
|
|
67
70
|
},
|
|
@@ -73,21 +76,27 @@ exports.getBankAccountDetailsResponse = {
|
|
|
73
76
|
const tag = reader.uint32();
|
|
74
77
|
switch (tag >>> 3) {
|
|
75
78
|
case 1:
|
|
76
|
-
if (tag !==
|
|
79
|
+
if (tag !== 8) {
|
|
77
80
|
break;
|
|
78
81
|
}
|
|
79
|
-
message.
|
|
82
|
+
message.bank_id = reader.int32();
|
|
80
83
|
continue;
|
|
81
84
|
case 2:
|
|
82
85
|
if (tag !== 18) {
|
|
83
86
|
break;
|
|
84
87
|
}
|
|
85
|
-
message.
|
|
88
|
+
message.account_number = reader.string();
|
|
86
89
|
continue;
|
|
87
90
|
case 3:
|
|
88
91
|
if (tag !== 26) {
|
|
89
92
|
break;
|
|
90
93
|
}
|
|
94
|
+
message.bank_name = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
case 4:
|
|
97
|
+
if (tag !== 34) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
91
100
|
message.ifsc_code = reader.string();
|
|
92
101
|
continue;
|
|
93
102
|
}
|
|
@@ -100,6 +109,7 @@ exports.getBankAccountDetailsResponse = {
|
|
|
100
109
|
},
|
|
101
110
|
fromJSON(object) {
|
|
102
111
|
return {
|
|
112
|
+
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
103
113
|
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
104
114
|
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
105
115
|
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
@@ -107,6 +117,9 @@ exports.getBankAccountDetailsResponse = {
|
|
|
107
117
|
},
|
|
108
118
|
toJSON(message) {
|
|
109
119
|
const obj = {};
|
|
120
|
+
if (message.bank_id !== 0) {
|
|
121
|
+
obj.bank_id = Math.round(message.bank_id);
|
|
122
|
+
}
|
|
110
123
|
if (message.account_number !== "") {
|
|
111
124
|
obj.account_number = message.account_number;
|
|
112
125
|
}
|
|
@@ -123,6 +136,7 @@ exports.getBankAccountDetailsResponse = {
|
|
|
123
136
|
},
|
|
124
137
|
fromPartial(object) {
|
|
125
138
|
const message = createBasegetBankAccountDetailsResponse();
|
|
139
|
+
message.bank_id = object.bank_id ?? 0;
|
|
126
140
|
message.account_number = object.account_number ?? "";
|
|
127
141
|
message.bank_name = object.bank_name ?? "";
|
|
128
142
|
message.ifsc_code = object.ifsc_code ?? "";
|
package/ts/customers.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ import { getBankListRequest, getBankListResponse } from "./customers/aa/getbankl
|
|
|
3
3
|
import { initiateRequest, initiateResponse } from "./customers/aa/initiate";
|
|
4
4
|
import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
|
|
5
5
|
import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
|
|
6
|
+
import { addFathersNameRequest, addFathersNameResponse } from "./customers/addfathersname";
|
|
6
7
|
import { addGstNumberRequest, addGstNumberResponse } from "./customers/addgstnumber";
|
|
7
8
|
import { addMoreDetailsRequest, addMoreDetailsResponse } from "./customers/addmoredetails";
|
|
8
9
|
import { addSuspendedCustomerRequest, addSuspendedCustomerResponse } from "./customers/addsuspendedcustomer";
|
|
9
10
|
import { AddUserAppsRequest, AddUserAppsResponse } from "./customers/adduserapps";
|
|
11
|
+
import { bulkSMSRequest, bulkSMSResponse } from "./customers/bulksms";
|
|
10
12
|
import { changeMpinRequest, changeMpinResponse } from "./customers/changempin";
|
|
11
13
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
12
14
|
import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
|
|
@@ -540,6 +542,24 @@ export declare const customersService: {
|
|
|
540
542
|
readonly responseSerialize: (value: getCompanyAccDetailsResponse) => Buffer;
|
|
541
543
|
readonly responseDeserialize: (value: Buffer) => getCompanyAccDetailsResponse;
|
|
542
544
|
};
|
|
545
|
+
readonly bulkSms: {
|
|
546
|
+
readonly path: "/service.customers/bulkSms";
|
|
547
|
+
readonly requestStream: false;
|
|
548
|
+
readonly responseStream: false;
|
|
549
|
+
readonly requestSerialize: (value: bulkSMSRequest) => Buffer;
|
|
550
|
+
readonly requestDeserialize: (value: Buffer) => bulkSMSRequest;
|
|
551
|
+
readonly responseSerialize: (value: bulkSMSResponse) => Buffer;
|
|
552
|
+
readonly responseDeserialize: (value: Buffer) => bulkSMSResponse;
|
|
553
|
+
};
|
|
554
|
+
readonly addFathersName: {
|
|
555
|
+
readonly path: "/service.customers/addFathersName";
|
|
556
|
+
readonly requestStream: false;
|
|
557
|
+
readonly responseStream: false;
|
|
558
|
+
readonly requestSerialize: (value: addFathersNameRequest) => Buffer;
|
|
559
|
+
readonly requestDeserialize: (value: Buffer) => addFathersNameRequest;
|
|
560
|
+
readonly responseSerialize: (value: addFathersNameResponse) => Buffer;
|
|
561
|
+
readonly responseDeserialize: (value: Buffer) => addFathersNameResponse;
|
|
562
|
+
};
|
|
543
563
|
};
|
|
544
564
|
export interface customersServer extends UntypedServiceImplementation {
|
|
545
565
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -596,6 +616,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
596
616
|
uploadDocuments: handleUnaryCall<uploadDocumentsRequest, uploadDocumentsResponse>;
|
|
597
617
|
logout: handleUnaryCall<logoutRequest, logoutResponse>;
|
|
598
618
|
getCompanyAccDetails: handleUnaryCall<getCompanyAccDetailsRequest, getCompanyAccDetailsResponse>;
|
|
619
|
+
bulkSms: handleUnaryCall<bulkSMSRequest, bulkSMSResponse>;
|
|
620
|
+
addFathersName: handleUnaryCall<addFathersNameRequest, addFathersNameResponse>;
|
|
599
621
|
}
|
|
600
622
|
export interface customersClient extends Client {
|
|
601
623
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -760,6 +782,12 @@ export interface customersClient extends Client {
|
|
|
760
782
|
getCompanyAccDetails(request: getCompanyAccDetailsRequest, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
761
783
|
getCompanyAccDetails(request: getCompanyAccDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
762
784
|
getCompanyAccDetails(request: getCompanyAccDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
785
|
+
bulkSms(request: bulkSMSRequest, callback: (error: ServiceError | null, response: bulkSMSResponse) => void): ClientUnaryCall;
|
|
786
|
+
bulkSms(request: bulkSMSRequest, metadata: Metadata, callback: (error: ServiceError | null, response: bulkSMSResponse) => void): ClientUnaryCall;
|
|
787
|
+
bulkSms(request: bulkSMSRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: bulkSMSResponse) => void): ClientUnaryCall;
|
|
788
|
+
addFathersName(request: addFathersNameRequest, callback: (error: ServiceError | null, response: addFathersNameResponse) => void): ClientUnaryCall;
|
|
789
|
+
addFathersName(request: addFathersNameRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addFathersNameResponse) => void): ClientUnaryCall;
|
|
790
|
+
addFathersName(request: addFathersNameRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addFathersNameResponse) => void): ClientUnaryCall;
|
|
763
791
|
}
|
|
764
792
|
export declare const customersClient: {
|
|
765
793
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -12,10 +12,12 @@ const getbanklist_1 = require("./customers/aa/getbanklist");
|
|
|
12
12
|
const initiate_1 = require("./customers/aa/initiate");
|
|
13
13
|
const addaddress_1 = require("./customers/addaddress");
|
|
14
14
|
const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
|
|
15
|
+
const addfathersname_1 = require("./customers/addfathersname");
|
|
15
16
|
const addgstnumber_1 = require("./customers/addgstnumber");
|
|
16
17
|
const addmoredetails_1 = require("./customers/addmoredetails");
|
|
17
18
|
const addsuspendedcustomer_1 = require("./customers/addsuspendedcustomer");
|
|
18
19
|
const adduserapps_1 = require("./customers/adduserapps");
|
|
20
|
+
const bulksms_1 = require("./customers/bulksms");
|
|
19
21
|
const changempin_1 = require("./customers/changempin");
|
|
20
22
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
21
23
|
const deleteprofile_1 = require("./customers/deleteprofile");
|
|
@@ -548,5 +550,23 @@ exports.customersService = {
|
|
|
548
550
|
responseSerialize: (value) => Buffer.from(getcompanyaccdetails_1.getCompanyAccDetailsResponse.encode(value).finish()),
|
|
549
551
|
responseDeserialize: (value) => getcompanyaccdetails_1.getCompanyAccDetailsResponse.decode(value),
|
|
550
552
|
},
|
|
553
|
+
bulkSms: {
|
|
554
|
+
path: "/service.customers/bulkSms",
|
|
555
|
+
requestStream: false,
|
|
556
|
+
responseStream: false,
|
|
557
|
+
requestSerialize: (value) => Buffer.from(bulksms_1.bulkSMSRequest.encode(value).finish()),
|
|
558
|
+
requestDeserialize: (value) => bulksms_1.bulkSMSRequest.decode(value),
|
|
559
|
+
responseSerialize: (value) => Buffer.from(bulksms_1.bulkSMSResponse.encode(value).finish()),
|
|
560
|
+
responseDeserialize: (value) => bulksms_1.bulkSMSResponse.decode(value),
|
|
561
|
+
},
|
|
562
|
+
addFathersName: {
|
|
563
|
+
path: "/service.customers/addFathersName",
|
|
564
|
+
requestStream: false,
|
|
565
|
+
responseStream: false,
|
|
566
|
+
requestSerialize: (value) => Buffer.from(addfathersname_1.addFathersNameRequest.encode(value).finish()),
|
|
567
|
+
requestDeserialize: (value) => addfathersname_1.addFathersNameRequest.decode(value),
|
|
568
|
+
responseSerialize: (value) => Buffer.from(addfathersname_1.addFathersNameResponse.encode(value).finish()),
|
|
569
|
+
responseDeserialize: (value) => addfathersname_1.addFathersNameResponse.decode(value),
|
|
570
|
+
},
|
|
551
571
|
};
|
|
552
572
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "growth.processchrpayment";
|
|
3
|
+
export interface request {
|
|
4
|
+
txn_id: string;
|
|
5
|
+
txn_status: string;
|
|
6
|
+
report_type?: string | undefined;
|
|
7
|
+
plan_id?: number | undefined;
|
|
8
|
+
customer_id?: number | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface response {
|
|
11
|
+
status: string;
|
|
12
|
+
}
|
|
13
|
+
export interface response_Data {
|
|
14
|
+
txn_id: string;
|
|
15
|
+
txn_status: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const request: {
|
|
18
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
20
|
+
fromJSON(object: any): request;
|
|
21
|
+
toJSON(message: request): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
24
|
+
};
|
|
25
|
+
export declare const response: {
|
|
26
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
28
|
+
fromJSON(object: any): response;
|
|
29
|
+
toJSON(message: response): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
32
|
+
};
|
|
33
|
+
export declare const response_Data: {
|
|
34
|
+
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
36
|
+
fromJSON(object: any): response_Data;
|
|
37
|
+
toJSON(message: response_Data): unknown;
|
|
38
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
39
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
40
|
+
};
|
|
41
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
42
|
+
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 {} ? {
|
|
43
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
|
+
} : Partial<T>;
|
|
45
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
46
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
47
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
48
|
+
} & {
|
|
49
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,255 @@
|
|
|
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.27.3
|
|
6
|
+
// source: growth/processchrpayment.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 = "growth.processchrpayment";
|
|
16
|
+
function createBaserequest() {
|
|
17
|
+
return { txn_id: "", txn_status: "", report_type: undefined, plan_id: undefined, customer_id: undefined };
|
|
18
|
+
}
|
|
19
|
+
exports.request = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.txn_id !== "") {
|
|
22
|
+
writer.uint32(10).string(message.txn_id);
|
|
23
|
+
}
|
|
24
|
+
if (message.txn_status !== "") {
|
|
25
|
+
writer.uint32(18).string(message.txn_status);
|
|
26
|
+
}
|
|
27
|
+
if (message.report_type !== undefined) {
|
|
28
|
+
writer.uint32(26).string(message.report_type);
|
|
29
|
+
}
|
|
30
|
+
if (message.plan_id !== undefined) {
|
|
31
|
+
writer.uint32(32).int32(message.plan_id);
|
|
32
|
+
}
|
|
33
|
+
if (message.customer_id !== undefined) {
|
|
34
|
+
writer.uint32(40).int64(message.customer_id);
|
|
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 !== 10) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.txn_id = reader.string();
|
|
50
|
+
continue;
|
|
51
|
+
case 2:
|
|
52
|
+
if (tag !== 18) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.txn_status = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
case 3:
|
|
58
|
+
if (tag !== 26) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
message.report_type = reader.string();
|
|
62
|
+
continue;
|
|
63
|
+
case 4:
|
|
64
|
+
if (tag !== 32) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
message.plan_id = reader.int32();
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 40) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.customer_id = longToNumber(reader.int64());
|
|
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
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
86
|
+
txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
|
|
87
|
+
report_type: isSet(object.report_type) ? globalThis.String(object.report_type) : undefined,
|
|
88
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : undefined,
|
|
89
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
toJSON(message) {
|
|
93
|
+
const obj = {};
|
|
94
|
+
if (message.txn_id !== "") {
|
|
95
|
+
obj.txn_id = message.txn_id;
|
|
96
|
+
}
|
|
97
|
+
if (message.txn_status !== "") {
|
|
98
|
+
obj.txn_status = message.txn_status;
|
|
99
|
+
}
|
|
100
|
+
if (message.report_type !== undefined) {
|
|
101
|
+
obj.report_type = message.report_type;
|
|
102
|
+
}
|
|
103
|
+
if (message.plan_id !== undefined) {
|
|
104
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
105
|
+
}
|
|
106
|
+
if (message.customer_id !== undefined) {
|
|
107
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
108
|
+
}
|
|
109
|
+
return obj;
|
|
110
|
+
},
|
|
111
|
+
create(base) {
|
|
112
|
+
return exports.request.fromPartial(base ?? {});
|
|
113
|
+
},
|
|
114
|
+
fromPartial(object) {
|
|
115
|
+
const message = createBaserequest();
|
|
116
|
+
message.txn_id = object.txn_id ?? "";
|
|
117
|
+
message.txn_status = object.txn_status ?? "";
|
|
118
|
+
message.report_type = object.report_type ?? undefined;
|
|
119
|
+
message.plan_id = object.plan_id ?? undefined;
|
|
120
|
+
message.customer_id = object.customer_id ?? undefined;
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
function createBaseresponse() {
|
|
125
|
+
return { status: "" };
|
|
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
|
+
return writer;
|
|
133
|
+
},
|
|
134
|
+
decode(input, length) {
|
|
135
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
136
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
137
|
+
const message = createBaseresponse();
|
|
138
|
+
while (reader.pos < end) {
|
|
139
|
+
const tag = reader.uint32();
|
|
140
|
+
switch (tag >>> 3) {
|
|
141
|
+
case 1:
|
|
142
|
+
if (tag !== 10) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.status = reader.string();
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
reader.skipType(tag & 7);
|
|
152
|
+
}
|
|
153
|
+
return message;
|
|
154
|
+
},
|
|
155
|
+
fromJSON(object) {
|
|
156
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
157
|
+
},
|
|
158
|
+
toJSON(message) {
|
|
159
|
+
const obj = {};
|
|
160
|
+
if (message.status !== "") {
|
|
161
|
+
obj.status = message.status;
|
|
162
|
+
}
|
|
163
|
+
return obj;
|
|
164
|
+
},
|
|
165
|
+
create(base) {
|
|
166
|
+
return exports.response.fromPartial(base ?? {});
|
|
167
|
+
},
|
|
168
|
+
fromPartial(object) {
|
|
169
|
+
const message = createBaseresponse();
|
|
170
|
+
message.status = object.status ?? "";
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
function createBaseresponse_Data() {
|
|
175
|
+
return { txn_id: "", txn_status: "" };
|
|
176
|
+
}
|
|
177
|
+
exports.response_Data = {
|
|
178
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
179
|
+
if (message.txn_id !== "") {
|
|
180
|
+
writer.uint32(10).string(message.txn_id);
|
|
181
|
+
}
|
|
182
|
+
if (message.txn_status !== "") {
|
|
183
|
+
writer.uint32(18).string(message.txn_status);
|
|
184
|
+
}
|
|
185
|
+
return writer;
|
|
186
|
+
},
|
|
187
|
+
decode(input, length) {
|
|
188
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
189
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
190
|
+
const message = createBaseresponse_Data();
|
|
191
|
+
while (reader.pos < end) {
|
|
192
|
+
const tag = reader.uint32();
|
|
193
|
+
switch (tag >>> 3) {
|
|
194
|
+
case 1:
|
|
195
|
+
if (tag !== 10) {
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
message.txn_id = reader.string();
|
|
199
|
+
continue;
|
|
200
|
+
case 2:
|
|
201
|
+
if (tag !== 18) {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
message.txn_status = reader.string();
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
reader.skipType(tag & 7);
|
|
211
|
+
}
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
fromJSON(object) {
|
|
215
|
+
return {
|
|
216
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
217
|
+
txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
toJSON(message) {
|
|
221
|
+
const obj = {};
|
|
222
|
+
if (message.txn_id !== "") {
|
|
223
|
+
obj.txn_id = message.txn_id;
|
|
224
|
+
}
|
|
225
|
+
if (message.txn_status !== "") {
|
|
226
|
+
obj.txn_status = message.txn_status;
|
|
227
|
+
}
|
|
228
|
+
return obj;
|
|
229
|
+
},
|
|
230
|
+
create(base) {
|
|
231
|
+
return exports.response_Data.fromPartial(base ?? {});
|
|
232
|
+
},
|
|
233
|
+
fromPartial(object) {
|
|
234
|
+
const message = createBaseresponse_Data();
|
|
235
|
+
message.txn_id = object.txn_id ?? "";
|
|
236
|
+
message.txn_status = object.txn_status ?? "";
|
|
237
|
+
return message;
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
function longToNumber(long) {
|
|
241
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
242
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
243
|
+
}
|
|
244
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
245
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
246
|
+
}
|
|
247
|
+
return long.toNumber();
|
|
248
|
+
}
|
|
249
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
250
|
+
minimal_1.default.util.Long = long_1.default;
|
|
251
|
+
minimal_1.default.configure();
|
|
252
|
+
}
|
|
253
|
+
function isSet(value) {
|
|
254
|
+
return value !== null && value !== undefined;
|
|
255
|
+
}
|
package/ts/growth.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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";
|
|
3
|
+
export declare const protobufPackage = "service";
|
|
4
|
+
export type growthService = typeof growthService;
|
|
5
|
+
export declare const growthService: {
|
|
6
|
+
readonly processchrpayment: {
|
|
7
|
+
readonly path: "/service.growth/processchrpayment";
|
|
8
|
+
readonly requestStream: false;
|
|
9
|
+
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;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export interface growthServer extends UntypedServiceImplementation {
|
|
17
|
+
processchrpayment: handleUnaryCall<request, response>;
|
|
18
|
+
}
|
|
19
|
+
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;
|
|
23
|
+
}
|
|
24
|
+
export declare const growthClient: {
|
|
25
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): growthClient;
|
|
26
|
+
service: typeof growthService;
|
|
27
|
+
serviceName: string;
|
|
28
|
+
};
|
package/ts/growth.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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.27.3
|
|
6
|
+
// source: growth.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.growthClient = exports.growthService = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const processchrpayment_1 = require("./growth/processchrpayment");
|
|
12
|
+
exports.protobufPackage = "service";
|
|
13
|
+
exports.growthService = {
|
|
14
|
+
processchrpayment: {
|
|
15
|
+
path: "/service.growth/processchrpayment",
|
|
16
|
+
requestStream: false,
|
|
17
|
+
responseStream: false,
|
|
18
|
+
requestSerialize: (value) => Buffer.from(processchrpayment_1.request.encode(value).finish()),
|
|
19
|
+
requestDeserialize: (value) => processchrpayment_1.request.decode(value),
|
|
20
|
+
responseSerialize: (value) => Buffer.from(processchrpayment_1.response.encode(value).finish()),
|
|
21
|
+
responseDeserialize: (value) => processchrpayment_1.response.decode(value),
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
exports.growthClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.growthService, "service.growth");
|