@stashfin/grpc 1.2.236 → 1.2.241
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/bureau/getbureaulist.d.ts +52 -0
- package/ts/bureau/getbureaulist.js +276 -0
- package/ts/customers/freedom/addressconfirmation.d.ts +36 -0
- package/ts/customers/{verifyemail.js → freedom/addressconfirmation.js} +46 -30
- package/ts/customers/freedom/freedompaynow.d.ts +36 -0
- package/ts/customers/{sendemailtoken.js → freedom/freedompaynow.js} +46 -30
- package/ts/customers/freedom/getfreedomtxnstatus.d.ts +35 -0
- package/ts/customers/{skipdlrcscreen.js → freedom/getfreedomtxnstatus.js} +22 -22
- package/ts/customers/freedom/updatefreedomtxnstatus.d.ts +37 -0
- package/ts/customers/freedom/updatefreedomtxnstatus.js +147 -0
- package/ts/customers.d.ts +56 -0
- package/ts/customers.js +40 -0
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/skipdlrcscreen.d.ts +0 -35
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/google/protobuf/timestamp.d.ts +0 -127
- package/ts/google/protobuf/timestamp.js +0 -97
|
@@ -2,30 +2,33 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc
|
|
6
|
-
// source: customers/
|
|
5
|
+
// protoc v5.28.1
|
|
6
|
+
// source: customers/freedom/freedompaynow.proto
|
|
7
7
|
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.
|
|
11
|
+
exports.freedomPayNowResponse = exports.freedomPayNowRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customers.
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
14
|
+
exports.protobufPackage = "customers.freedom.freedompaynow";
|
|
15
|
+
function createBasefreedomPayNowRequest() {
|
|
16
|
+
return { mode: "", order_id: "" };
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.freedomPayNowRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
20
|
+
if (message.mode !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mode);
|
|
22
|
+
}
|
|
23
|
+
if (message.order_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.order_id);
|
|
22
25
|
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
25
28
|
decode(input, length) {
|
|
26
29
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
30
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message =
|
|
31
|
+
const message = createBasefreedomPayNowRequest();
|
|
29
32
|
while (reader.pos < end) {
|
|
30
33
|
const tag = reader.uint32();
|
|
31
34
|
switch (tag >>> 3) {
|
|
@@ -33,7 +36,13 @@ exports.sendEmailTokenRequest = {
|
|
|
33
36
|
if (tag !== 10) {
|
|
34
37
|
break;
|
|
35
38
|
}
|
|
36
|
-
message.
|
|
39
|
+
message.mode = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.order_id = reader.string();
|
|
37
46
|
continue;
|
|
38
47
|
}
|
|
39
48
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -44,38 +53,45 @@ exports.sendEmailTokenRequest = {
|
|
|
44
53
|
return message;
|
|
45
54
|
},
|
|
46
55
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
58
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
59
|
+
};
|
|
48
60
|
},
|
|
49
61
|
toJSON(message) {
|
|
50
62
|
const obj = {};
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
63
|
+
if (message.mode !== "") {
|
|
64
|
+
obj.mode = message.mode;
|
|
65
|
+
}
|
|
66
|
+
if (message.order_id !== "") {
|
|
67
|
+
obj.order_id = message.order_id;
|
|
53
68
|
}
|
|
54
69
|
return obj;
|
|
55
70
|
},
|
|
56
71
|
create(base) {
|
|
57
|
-
return exports.
|
|
72
|
+
return exports.freedomPayNowRequest.fromPartial(base ?? {});
|
|
58
73
|
},
|
|
59
74
|
fromPartial(object) {
|
|
60
|
-
const message =
|
|
61
|
-
message.
|
|
75
|
+
const message = createBasefreedomPayNowRequest();
|
|
76
|
+
message.mode = object.mode ?? "";
|
|
77
|
+
message.order_id = object.order_id ?? "";
|
|
62
78
|
return message;
|
|
63
79
|
},
|
|
64
80
|
};
|
|
65
|
-
function
|
|
66
|
-
return {
|
|
81
|
+
function createBasefreedomPayNowResponse() {
|
|
82
|
+
return { web_url: "" };
|
|
67
83
|
}
|
|
68
|
-
exports.
|
|
84
|
+
exports.freedomPayNowResponse = {
|
|
69
85
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(10).string(message.
|
|
86
|
+
if (message.web_url !== "") {
|
|
87
|
+
writer.uint32(10).string(message.web_url);
|
|
72
88
|
}
|
|
73
89
|
return writer;
|
|
74
90
|
},
|
|
75
91
|
decode(input, length) {
|
|
76
92
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
93
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message =
|
|
94
|
+
const message = createBasefreedomPayNowResponse();
|
|
79
95
|
while (reader.pos < end) {
|
|
80
96
|
const tag = reader.uint32();
|
|
81
97
|
switch (tag >>> 3) {
|
|
@@ -83,7 +99,7 @@ exports.sendEmailTokenResponse = {
|
|
|
83
99
|
if (tag !== 10) {
|
|
84
100
|
break;
|
|
85
101
|
}
|
|
86
|
-
message.
|
|
102
|
+
message.web_url = reader.string();
|
|
87
103
|
continue;
|
|
88
104
|
}
|
|
89
105
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,21 +110,21 @@ exports.sendEmailTokenResponse = {
|
|
|
94
110
|
return message;
|
|
95
111
|
},
|
|
96
112
|
fromJSON(object) {
|
|
97
|
-
return {
|
|
113
|
+
return { web_url: isSet(object.web_url) ? globalThis.String(object.web_url) : "" };
|
|
98
114
|
},
|
|
99
115
|
toJSON(message) {
|
|
100
116
|
const obj = {};
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
117
|
+
if (message.web_url !== "") {
|
|
118
|
+
obj.web_url = message.web_url;
|
|
103
119
|
}
|
|
104
120
|
return obj;
|
|
105
121
|
},
|
|
106
122
|
create(base) {
|
|
107
|
-
return exports.
|
|
123
|
+
return exports.freedomPayNowResponse.fromPartial(base ?? {});
|
|
108
124
|
},
|
|
109
125
|
fromPartial(object) {
|
|
110
|
-
const message =
|
|
111
|
-
message.
|
|
126
|
+
const message = createBasefreedomPayNowResponse();
|
|
127
|
+
message.web_url = object.web_url ?? "";
|
|
112
128
|
return message;
|
|
113
129
|
},
|
|
114
130
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.freedom.getfreedomtxnstatus";
|
|
3
|
+
export interface getFreedomTxnStatusRequest {
|
|
4
|
+
order_id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface getFreedomTxnStatusResponse {
|
|
7
|
+
status: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const getFreedomTxnStatusRequest: {
|
|
10
|
+
encode(message: getFreedomTxnStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getFreedomTxnStatusRequest;
|
|
12
|
+
fromJSON(object: any): getFreedomTxnStatusRequest;
|
|
13
|
+
toJSON(message: getFreedomTxnStatusRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getFreedomTxnStatusRequest>, I>>(base?: I): getFreedomTxnStatusRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getFreedomTxnStatusRequest>, I>>(object: I): getFreedomTxnStatusRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getFreedomTxnStatusResponse: {
|
|
18
|
+
encode(message: getFreedomTxnStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getFreedomTxnStatusResponse;
|
|
20
|
+
fromJSON(object: any): getFreedomTxnStatusResponse;
|
|
21
|
+
toJSON(message: getFreedomTxnStatusResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getFreedomTxnStatusResponse>, I>>(base?: I): getFreedomTxnStatusResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getFreedomTxnStatusResponse>, I>>(object: I): getFreedomTxnStatusResponse;
|
|
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 {};
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
6
|
-
// source: customers/
|
|
5
|
+
// protoc v5.28.1
|
|
6
|
+
// source: customers/freedom/getfreedomtxnstatus.proto
|
|
7
7
|
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.
|
|
11
|
+
exports.getFreedomTxnStatusResponse = exports.getFreedomTxnStatusRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customers.
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
14
|
+
exports.protobufPackage = "customers.freedom.getfreedomtxnstatus";
|
|
15
|
+
function createBasegetFreedomTxnStatusRequest() {
|
|
16
|
+
return { order_id: "" };
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.getFreedomTxnStatusRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
20
|
+
if (message.order_id !== "") {
|
|
21
|
+
writer.uint32(10).string(message.order_id);
|
|
22
22
|
}
|
|
23
23
|
return writer;
|
|
24
24
|
},
|
|
25
25
|
decode(input, length) {
|
|
26
26
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
27
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message =
|
|
28
|
+
const message = createBasegetFreedomTxnStatusRequest();
|
|
29
29
|
while (reader.pos < end) {
|
|
30
30
|
const tag = reader.uint32();
|
|
31
31
|
switch (tag >>> 3) {
|
|
@@ -33,7 +33,7 @@ exports.skipDlRcScreenRequest = {
|
|
|
33
33
|
if (tag !== 10) {
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
|
-
message.
|
|
36
|
+
message.order_id = reader.string();
|
|
37
37
|
continue;
|
|
38
38
|
}
|
|
39
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -44,28 +44,28 @@ exports.skipDlRcScreenRequest = {
|
|
|
44
44
|
return message;
|
|
45
45
|
},
|
|
46
46
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
47
|
+
return { order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "" };
|
|
48
48
|
},
|
|
49
49
|
toJSON(message) {
|
|
50
50
|
const obj = {};
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
51
|
+
if (message.order_id !== "") {
|
|
52
|
+
obj.order_id = message.order_id;
|
|
53
53
|
}
|
|
54
54
|
return obj;
|
|
55
55
|
},
|
|
56
56
|
create(base) {
|
|
57
|
-
return exports.
|
|
57
|
+
return exports.getFreedomTxnStatusRequest.fromPartial(base ?? {});
|
|
58
58
|
},
|
|
59
59
|
fromPartial(object) {
|
|
60
|
-
const message =
|
|
61
|
-
message.
|
|
60
|
+
const message = createBasegetFreedomTxnStatusRequest();
|
|
61
|
+
message.order_id = object.order_id ?? "";
|
|
62
62
|
return message;
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
|
-
function
|
|
65
|
+
function createBasegetFreedomTxnStatusResponse() {
|
|
66
66
|
return { status: "" };
|
|
67
67
|
}
|
|
68
|
-
exports.
|
|
68
|
+
exports.getFreedomTxnStatusResponse = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
70
|
if (message.status !== "") {
|
|
71
71
|
writer.uint32(10).string(message.status);
|
|
@@ -75,7 +75,7 @@ exports.skipDlRcScreenResponse = {
|
|
|
75
75
|
decode(input, length) {
|
|
76
76
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
77
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message =
|
|
78
|
+
const message = createBasegetFreedomTxnStatusResponse();
|
|
79
79
|
while (reader.pos < end) {
|
|
80
80
|
const tag = reader.uint32();
|
|
81
81
|
switch (tag >>> 3) {
|
|
@@ -104,10 +104,10 @@ exports.skipDlRcScreenResponse = {
|
|
|
104
104
|
return obj;
|
|
105
105
|
},
|
|
106
106
|
create(base) {
|
|
107
|
-
return exports.
|
|
107
|
+
return exports.getFreedomTxnStatusResponse.fromPartial(base ?? {});
|
|
108
108
|
},
|
|
109
109
|
fromPartial(object) {
|
|
110
|
-
const message =
|
|
110
|
+
const message = createBasegetFreedomTxnStatusResponse();
|
|
111
111
|
message.status = object.status ?? "";
|
|
112
112
|
return message;
|
|
113
113
|
},
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.freedom.updatefreedomtxnstatus";
|
|
3
|
+
export interface updateFreedomTxnStatusRequest {
|
|
4
|
+
client_id: string;
|
|
5
|
+
order_id: string;
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export interface updateFreedomTxnStatusResponse {
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const updateFreedomTxnStatusRequest: {
|
|
12
|
+
encode(message: updateFreedomTxnStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateFreedomTxnStatusRequest;
|
|
14
|
+
fromJSON(object: any): updateFreedomTxnStatusRequest;
|
|
15
|
+
toJSON(message: updateFreedomTxnStatusRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<updateFreedomTxnStatusRequest>, I>>(base?: I): updateFreedomTxnStatusRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<updateFreedomTxnStatusRequest>, I>>(object: I): updateFreedomTxnStatusRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const updateFreedomTxnStatusResponse: {
|
|
20
|
+
encode(message: updateFreedomTxnStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateFreedomTxnStatusResponse;
|
|
22
|
+
fromJSON(object: any): updateFreedomTxnStatusResponse;
|
|
23
|
+
toJSON(message: updateFreedomTxnStatusResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<updateFreedomTxnStatusResponse>, I>>(base?: I): updateFreedomTxnStatusResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<updateFreedomTxnStatusResponse>, I>>(object: I): updateFreedomTxnStatusResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,147 @@
|
|
|
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.1
|
|
6
|
+
// source: customers/freedom/updatefreedomtxnstatus.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.updateFreedomTxnStatusResponse = exports.updateFreedomTxnStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.freedom.updatefreedomtxnstatus";
|
|
15
|
+
function createBaseupdateFreedomTxnStatusRequest() {
|
|
16
|
+
return { client_id: "", order_id: "", status: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.updateFreedomTxnStatusRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.client_id !== "") {
|
|
21
|
+
writer.uint32(10).string(message.client_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.order_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.order_id);
|
|
25
|
+
}
|
|
26
|
+
if (message.status !== "") {
|
|
27
|
+
writer.uint32(26).string(message.status);
|
|
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 = createBaseupdateFreedomTxnStatusRequest();
|
|
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.client_id = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.order_id = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.status = 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
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
67
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
68
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.client_id !== "") {
|
|
74
|
+
obj.client_id = message.client_id;
|
|
75
|
+
}
|
|
76
|
+
if (message.order_id !== "") {
|
|
77
|
+
obj.order_id = message.order_id;
|
|
78
|
+
}
|
|
79
|
+
if (message.status !== "") {
|
|
80
|
+
obj.status = message.status;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.updateFreedomTxnStatusRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseupdateFreedomTxnStatusRequest();
|
|
89
|
+
message.client_id = object.client_id ?? "";
|
|
90
|
+
message.order_id = object.order_id ?? "";
|
|
91
|
+
message.status = object.status ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBaseupdateFreedomTxnStatusResponse() {
|
|
96
|
+
return { message: "" };
|
|
97
|
+
}
|
|
98
|
+
exports.updateFreedomTxnStatusResponse = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.message !== "") {
|
|
101
|
+
writer.uint32(10).string(message.message);
|
|
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 = createBaseupdateFreedomTxnStatusResponse();
|
|
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.message = reader.string();
|
|
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 { message: isSet(object.message) ? globalThis.String(object.message) : "" };
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.message !== "") {
|
|
132
|
+
obj.message = message.message;
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.updateFreedomTxnStatusResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBaseupdateFreedomTxnStatusResponse();
|
|
141
|
+
message.message = object.message ?? "";
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
function isSet(value) {
|
|
146
|
+
return value !== null && value !== undefined;
|
|
147
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -26,6 +26,10 @@ import { fetchRCProfileRequest, fetchRCProfileResponse } from "./customers/fetch
|
|
|
26
26
|
import { getFloatingVideosRequest, getFloatingVideosResponse } from "./customers/floatingvideos";
|
|
27
27
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
28
28
|
import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/forgotmpinverify";
|
|
29
|
+
import { confirmAddressRequest, confirmAddressResponse } from "./customers/freedom/addressconfirmation";
|
|
30
|
+
import { freedomPayNowRequest, freedomPayNowResponse } from "./customers/freedom/freedompaynow";
|
|
31
|
+
import { getFreedomTxnStatusRequest, getFreedomTxnStatusResponse } from "./customers/freedom/getfreedomtxnstatus";
|
|
32
|
+
import { updateFreedomTxnStatusRequest, updateFreedomTxnStatusResponse } from "./customers/freedom/updatefreedomtxnstatus";
|
|
29
33
|
import { getAddressRequest, getAddressResponse } from "./customers/getaddresslist";
|
|
30
34
|
import { getAppSubmittedRequest, getAppSubmittedResponse } from "./customers/getappsubmittedscreen";
|
|
31
35
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
@@ -750,6 +754,42 @@ export declare const customersService: {
|
|
|
750
754
|
readonly responseSerialize: (value: updateCBTxnStatusResponse) => Buffer;
|
|
751
755
|
readonly responseDeserialize: (value: Buffer) => updateCBTxnStatusResponse;
|
|
752
756
|
};
|
|
757
|
+
readonly confirmAddress: {
|
|
758
|
+
readonly path: "/service.customers/confirmAddress";
|
|
759
|
+
readonly requestStream: false;
|
|
760
|
+
readonly responseStream: false;
|
|
761
|
+
readonly requestSerialize: (value: confirmAddressRequest) => Buffer;
|
|
762
|
+
readonly requestDeserialize: (value: Buffer) => confirmAddressRequest;
|
|
763
|
+
readonly responseSerialize: (value: confirmAddressResponse) => Buffer;
|
|
764
|
+
readonly responseDeserialize: (value: Buffer) => confirmAddressResponse;
|
|
765
|
+
};
|
|
766
|
+
readonly freedomPayNow: {
|
|
767
|
+
readonly path: "/service.customers/freedomPayNow";
|
|
768
|
+
readonly requestStream: false;
|
|
769
|
+
readonly responseStream: false;
|
|
770
|
+
readonly requestSerialize: (value: freedomPayNowRequest) => Buffer;
|
|
771
|
+
readonly requestDeserialize: (value: Buffer) => freedomPayNowRequest;
|
|
772
|
+
readonly responseSerialize: (value: freedomPayNowResponse) => Buffer;
|
|
773
|
+
readonly responseDeserialize: (value: Buffer) => freedomPayNowResponse;
|
|
774
|
+
};
|
|
775
|
+
readonly getFreedomTxnStatus: {
|
|
776
|
+
readonly path: "/service.customers/getFreedomTxnStatus";
|
|
777
|
+
readonly requestStream: false;
|
|
778
|
+
readonly responseStream: false;
|
|
779
|
+
readonly requestSerialize: (value: getFreedomTxnStatusRequest) => Buffer;
|
|
780
|
+
readonly requestDeserialize: (value: Buffer) => getFreedomTxnStatusRequest;
|
|
781
|
+
readonly responseSerialize: (value: getFreedomTxnStatusResponse) => Buffer;
|
|
782
|
+
readonly responseDeserialize: (value: Buffer) => getFreedomTxnStatusResponse;
|
|
783
|
+
};
|
|
784
|
+
readonly updateFreedomTxnStatus: {
|
|
785
|
+
readonly path: "/service.customers/updateFreedomTxnStatus";
|
|
786
|
+
readonly requestStream: false;
|
|
787
|
+
readonly responseStream: false;
|
|
788
|
+
readonly requestSerialize: (value: updateFreedomTxnStatusRequest) => Buffer;
|
|
789
|
+
readonly requestDeserialize: (value: Buffer) => updateFreedomTxnStatusRequest;
|
|
790
|
+
readonly responseSerialize: (value: updateFreedomTxnStatusResponse) => Buffer;
|
|
791
|
+
readonly responseDeserialize: (value: Buffer) => updateFreedomTxnStatusResponse;
|
|
792
|
+
};
|
|
753
793
|
};
|
|
754
794
|
export interface customersServer extends UntypedServiceImplementation {
|
|
755
795
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -827,6 +867,10 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
827
867
|
getRpdTransactionStatus: handleUnaryCall<getRpdTransactionStatusRequest, getRpdTransactionStatusResponse>;
|
|
828
868
|
getCbTxnStatus: handleUnaryCall<getCBTxnStatusRequest, getCBTxnStatusResponse>;
|
|
829
869
|
updateCbTxnStatus: handleUnaryCall<updateCBTxnStatusRequest, updateCBTxnStatusResponse>;
|
|
870
|
+
confirmAddress: handleUnaryCall<confirmAddressRequest, confirmAddressResponse>;
|
|
871
|
+
freedomPayNow: handleUnaryCall<freedomPayNowRequest, freedomPayNowResponse>;
|
|
872
|
+
getFreedomTxnStatus: handleUnaryCall<getFreedomTxnStatusRequest, getFreedomTxnStatusResponse>;
|
|
873
|
+
updateFreedomTxnStatus: handleUnaryCall<updateFreedomTxnStatusRequest, updateFreedomTxnStatusResponse>;
|
|
830
874
|
}
|
|
831
875
|
export interface customersClient extends Client {
|
|
832
876
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1054,6 +1098,18 @@ export interface customersClient extends Client {
|
|
|
1054
1098
|
updateCbTxnStatus(request: updateCBTxnStatusRequest, callback: (error: ServiceError | null, response: updateCBTxnStatusResponse) => void): ClientUnaryCall;
|
|
1055
1099
|
updateCbTxnStatus(request: updateCBTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCBTxnStatusResponse) => void): ClientUnaryCall;
|
|
1056
1100
|
updateCbTxnStatus(request: updateCBTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCBTxnStatusResponse) => void): ClientUnaryCall;
|
|
1101
|
+
confirmAddress(request: confirmAddressRequest, callback: (error: ServiceError | null, response: confirmAddressResponse) => void): ClientUnaryCall;
|
|
1102
|
+
confirmAddress(request: confirmAddressRequest, metadata: Metadata, callback: (error: ServiceError | null, response: confirmAddressResponse) => void): ClientUnaryCall;
|
|
1103
|
+
confirmAddress(request: confirmAddressRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: confirmAddressResponse) => void): ClientUnaryCall;
|
|
1104
|
+
freedomPayNow(request: freedomPayNowRequest, callback: (error: ServiceError | null, response: freedomPayNowResponse) => void): ClientUnaryCall;
|
|
1105
|
+
freedomPayNow(request: freedomPayNowRequest, metadata: Metadata, callback: (error: ServiceError | null, response: freedomPayNowResponse) => void): ClientUnaryCall;
|
|
1106
|
+
freedomPayNow(request: freedomPayNowRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: freedomPayNowResponse) => void): ClientUnaryCall;
|
|
1107
|
+
getFreedomTxnStatus(request: getFreedomTxnStatusRequest, callback: (error: ServiceError | null, response: getFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1108
|
+
getFreedomTxnStatus(request: getFreedomTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1109
|
+
getFreedomTxnStatus(request: getFreedomTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1110
|
+
updateFreedomTxnStatus(request: updateFreedomTxnStatusRequest, callback: (error: ServiceError | null, response: updateFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1111
|
+
updateFreedomTxnStatus(request: updateFreedomTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1112
|
+
updateFreedomTxnStatus(request: updateFreedomTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateFreedomTxnStatusResponse) => void): ClientUnaryCall;
|
|
1057
1113
|
}
|
|
1058
1114
|
export declare const customersClient: {
|
|
1059
1115
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -35,6 +35,10 @@ const fetchrcprofile_1 = require("./customers/fetchrcprofile");
|
|
|
35
35
|
const floatingvideos_1 = require("./customers/floatingvideos");
|
|
36
36
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
37
37
|
const forgotmpinverify_1 = require("./customers/forgotmpinverify");
|
|
38
|
+
const addressconfirmation_1 = require("./customers/freedom/addressconfirmation");
|
|
39
|
+
const freedompaynow_1 = require("./customers/freedom/freedompaynow");
|
|
40
|
+
const getfreedomtxnstatus_1 = require("./customers/freedom/getfreedomtxnstatus");
|
|
41
|
+
const updatefreedomtxnstatus_1 = require("./customers/freedom/updatefreedomtxnstatus");
|
|
38
42
|
const getaddresslist_1 = require("./customers/getaddresslist");
|
|
39
43
|
const getappsubmittedscreen_1 = require("./customers/getappsubmittedscreen");
|
|
40
44
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
@@ -758,5 +762,41 @@ exports.customersService = {
|
|
|
758
762
|
responseSerialize: (value) => Buffer.from(updatecbtxnstatus_1.updateCBTxnStatusResponse.encode(value).finish()),
|
|
759
763
|
responseDeserialize: (value) => updatecbtxnstatus_1.updateCBTxnStatusResponse.decode(value),
|
|
760
764
|
},
|
|
765
|
+
confirmAddress: {
|
|
766
|
+
path: "/service.customers/confirmAddress",
|
|
767
|
+
requestStream: false,
|
|
768
|
+
responseStream: false,
|
|
769
|
+
requestSerialize: (value) => Buffer.from(addressconfirmation_1.confirmAddressRequest.encode(value).finish()),
|
|
770
|
+
requestDeserialize: (value) => addressconfirmation_1.confirmAddressRequest.decode(value),
|
|
771
|
+
responseSerialize: (value) => Buffer.from(addressconfirmation_1.confirmAddressResponse.encode(value).finish()),
|
|
772
|
+
responseDeserialize: (value) => addressconfirmation_1.confirmAddressResponse.decode(value),
|
|
773
|
+
},
|
|
774
|
+
freedomPayNow: {
|
|
775
|
+
path: "/service.customers/freedomPayNow",
|
|
776
|
+
requestStream: false,
|
|
777
|
+
responseStream: false,
|
|
778
|
+
requestSerialize: (value) => Buffer.from(freedompaynow_1.freedomPayNowRequest.encode(value).finish()),
|
|
779
|
+
requestDeserialize: (value) => freedompaynow_1.freedomPayNowRequest.decode(value),
|
|
780
|
+
responseSerialize: (value) => Buffer.from(freedompaynow_1.freedomPayNowResponse.encode(value).finish()),
|
|
781
|
+
responseDeserialize: (value) => freedompaynow_1.freedomPayNowResponse.decode(value),
|
|
782
|
+
},
|
|
783
|
+
getFreedomTxnStatus: {
|
|
784
|
+
path: "/service.customers/getFreedomTxnStatus",
|
|
785
|
+
requestStream: false,
|
|
786
|
+
responseStream: false,
|
|
787
|
+
requestSerialize: (value) => Buffer.from(getfreedomtxnstatus_1.getFreedomTxnStatusRequest.encode(value).finish()),
|
|
788
|
+
requestDeserialize: (value) => getfreedomtxnstatus_1.getFreedomTxnStatusRequest.decode(value),
|
|
789
|
+
responseSerialize: (value) => Buffer.from(getfreedomtxnstatus_1.getFreedomTxnStatusResponse.encode(value).finish()),
|
|
790
|
+
responseDeserialize: (value) => getfreedomtxnstatus_1.getFreedomTxnStatusResponse.decode(value),
|
|
791
|
+
},
|
|
792
|
+
updateFreedomTxnStatus: {
|
|
793
|
+
path: "/service.customers/updateFreedomTxnStatus",
|
|
794
|
+
requestStream: false,
|
|
795
|
+
responseStream: false,
|
|
796
|
+
requestSerialize: (value) => Buffer.from(updatefreedomtxnstatus_1.updateFreedomTxnStatusRequest.encode(value).finish()),
|
|
797
|
+
requestDeserialize: (value) => updatefreedomtxnstatus_1.updateFreedomTxnStatusRequest.decode(value),
|
|
798
|
+
responseSerialize: (value) => Buffer.from(updatefreedomtxnstatus_1.updateFreedomTxnStatusResponse.encode(value).finish()),
|
|
799
|
+
responseDeserialize: (value) => updatefreedomtxnstatus_1.updateFreedomTxnStatusResponse.decode(value),
|
|
800
|
+
},
|
|
761
801
|
};
|
|
762
802
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "customers.sendemailtoken";
|
|
3
|
-
export interface sendEmailTokenRequest {
|
|
4
|
-
email: string;
|
|
5
|
-
}
|
|
6
|
-
export interface sendEmailTokenResponse {
|
|
7
|
-
token: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const sendEmailTokenRequest: {
|
|
10
|
-
encode(message: sendEmailTokenRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): sendEmailTokenRequest;
|
|
12
|
-
fromJSON(object: any): sendEmailTokenRequest;
|
|
13
|
-
toJSON(message: sendEmailTokenRequest): unknown;
|
|
14
|
-
create<I extends Exact<DeepPartial<sendEmailTokenRequest>, I>>(base?: I): sendEmailTokenRequest;
|
|
15
|
-
fromPartial<I extends Exact<DeepPartial<sendEmailTokenRequest>, I>>(object: I): sendEmailTokenRequest;
|
|
16
|
-
};
|
|
17
|
-
export declare const sendEmailTokenResponse: {
|
|
18
|
-
encode(message: sendEmailTokenResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): sendEmailTokenResponse;
|
|
20
|
-
fromJSON(object: any): sendEmailTokenResponse;
|
|
21
|
-
toJSON(message: sendEmailTokenResponse): unknown;
|
|
22
|
-
create<I extends Exact<DeepPartial<sendEmailTokenResponse>, I>>(base?: I): sendEmailTokenResponse;
|
|
23
|
-
fromPartial<I extends Exact<DeepPartial<sendEmailTokenResponse>, I>>(object: I): sendEmailTokenResponse;
|
|
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 {};
|