@stashfin/grpc 1.2.330 → 1.2.331
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/enach/updatetxnstatus.d.ts +1 -4
- package/ts/customers/enach/updatetxnstatus.js +8 -64
- package/ts/customers/getrpdlink.d.ts +40 -0
- package/ts/customers/getrpdlink.js +190 -0
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/skipdlrcscreen.d.ts +35 -0
- package/ts/customers/skipdlrcscreen.js +117 -0
- package/ts/customers/step1.d.ts +69 -0
- package/ts/customers/step1.js +395 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +68 -0
- package/ts/customers/step2.js +381 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/{loans/getvirtualaccountnumber.js → customers/verifyemail.js} +32 -32
- package/ts/google/protobuf/timestamp.d.ts +127 -0
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/payments/fundtransfer.d.ts +3 -2
- package/ts/payments/fundtransfer.js +35 -22
- package/ts/loans/getvirtualaccountnumber.d.ts +0 -35
|
@@ -0,0 +1,97 @@
|
|
|
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: google/protobuf/timestamp.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.Timestamp = 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 = "google.protobuf";
|
|
16
|
+
function createBaseTimestamp() {
|
|
17
|
+
return { seconds: 0, nanos: 0 };
|
|
18
|
+
}
|
|
19
|
+
exports.Timestamp = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.seconds !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.seconds);
|
|
23
|
+
}
|
|
24
|
+
if (message.nanos !== 0) {
|
|
25
|
+
writer.uint32(16).int32(message.nanos);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseTimestamp();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 8) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.seconds = longToNumber(reader.int64());
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 16) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.nanos = reader.int32();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
return {
|
|
58
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
59
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.seconds !== 0) {
|
|
65
|
+
obj.seconds = Math.round(message.seconds);
|
|
66
|
+
}
|
|
67
|
+
if (message.nanos !== 0) {
|
|
68
|
+
obj.nanos = Math.round(message.nanos);
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.Timestamp.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseTimestamp();
|
|
77
|
+
message.seconds = object.seconds ?? 0;
|
|
78
|
+
message.nanos = object.nanos ?? 0;
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function longToNumber(long) {
|
|
83
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
84
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
85
|
+
}
|
|
86
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
87
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
88
|
+
}
|
|
89
|
+
return long.toNumber();
|
|
90
|
+
}
|
|
91
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
92
|
+
minimal_1.default.util.Long = long_1.default;
|
|
93
|
+
minimal_1.default.configure();
|
|
94
|
+
}
|
|
95
|
+
function isSet(value) {
|
|
96
|
+
return value !== null && value !== undefined;
|
|
97
|
+
}
|
|
@@ -5,8 +5,9 @@ export interface request {
|
|
|
5
5
|
client_id: string;
|
|
6
6
|
external_order_id: string;
|
|
7
7
|
amount: number;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
transfer_source: string;
|
|
9
|
+
transfer_account_id: string;
|
|
10
|
+
customer_bank_details: request_bank_details[];
|
|
10
11
|
loan_id?: string | undefined;
|
|
11
12
|
mode: string;
|
|
12
13
|
}
|
|
@@ -18,8 +18,9 @@ function createBaserequest() {
|
|
|
18
18
|
client_id: "",
|
|
19
19
|
external_order_id: "",
|
|
20
20
|
amount: 0,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
transfer_source: "",
|
|
22
|
+
transfer_account_id: "",
|
|
23
|
+
customer_bank_details: [],
|
|
23
24
|
loan_id: undefined,
|
|
24
25
|
mode: "",
|
|
25
26
|
};
|
|
@@ -38,17 +39,20 @@ exports.request = {
|
|
|
38
39
|
if (message.amount !== 0) {
|
|
39
40
|
writer.uint32(33).double(message.amount);
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
if (message.transfer_source !== "") {
|
|
43
|
+
writer.uint32(42).string(message.transfer_source);
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
if (message.transfer_account_id !== "") {
|
|
46
|
+
writer.uint32(50).string(message.transfer_account_id);
|
|
47
|
+
}
|
|
48
|
+
for (const v of message.customer_bank_details) {
|
|
49
|
+
exports.request_bank_details.encode(v, writer.uint32(58).fork()).ldelim();
|
|
46
50
|
}
|
|
47
51
|
if (message.loan_id !== undefined) {
|
|
48
|
-
writer.uint32(
|
|
52
|
+
writer.uint32(66).string(message.loan_id);
|
|
49
53
|
}
|
|
50
54
|
if (message.mode !== "") {
|
|
51
|
-
writer.uint32(
|
|
55
|
+
writer.uint32(74).string(message.mode);
|
|
52
56
|
}
|
|
53
57
|
return writer;
|
|
54
58
|
},
|
|
@@ -87,24 +91,30 @@ exports.request = {
|
|
|
87
91
|
if (tag !== 42) {
|
|
88
92
|
break;
|
|
89
93
|
}
|
|
90
|
-
message.
|
|
94
|
+
message.transfer_source = reader.string();
|
|
91
95
|
continue;
|
|
92
96
|
case 6:
|
|
93
97
|
if (tag !== 50) {
|
|
94
98
|
break;
|
|
95
99
|
}
|
|
96
|
-
message.
|
|
100
|
+
message.transfer_account_id = reader.string();
|
|
97
101
|
continue;
|
|
98
102
|
case 7:
|
|
99
103
|
if (tag !== 58) {
|
|
100
104
|
break;
|
|
101
105
|
}
|
|
102
|
-
message.
|
|
106
|
+
message.customer_bank_details.push(exports.request_bank_details.decode(reader, reader.uint32()));
|
|
103
107
|
continue;
|
|
104
108
|
case 8:
|
|
105
109
|
if (tag !== 66) {
|
|
106
110
|
break;
|
|
107
111
|
}
|
|
112
|
+
message.loan_id = reader.string();
|
|
113
|
+
continue;
|
|
114
|
+
case 9:
|
|
115
|
+
if (tag !== 74) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
108
118
|
message.mode = reader.string();
|
|
109
119
|
continue;
|
|
110
120
|
}
|
|
@@ -121,11 +131,10 @@ exports.request = {
|
|
|
121
131
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
122
132
|
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
123
133
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
? object.destination.map((e) => exports.request_bank_details.fromJSON(e))
|
|
134
|
+
transfer_source: isSet(object.transfer_source) ? globalThis.String(object.transfer_source) : "",
|
|
135
|
+
transfer_account_id: isSet(object.transfer_account_id) ? globalThis.String(object.transfer_account_id) : "",
|
|
136
|
+
customer_bank_details: globalThis.Array.isArray(object?.customer_bank_details)
|
|
137
|
+
? object.customer_bank_details.map((e) => exports.request_bank_details.fromJSON(e))
|
|
129
138
|
: [],
|
|
130
139
|
loan_id: isSet(object.loan_id) ? globalThis.String(object.loan_id) : undefined,
|
|
131
140
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
@@ -145,11 +154,14 @@ exports.request = {
|
|
|
145
154
|
if (message.amount !== 0) {
|
|
146
155
|
obj.amount = message.amount;
|
|
147
156
|
}
|
|
148
|
-
if (message.
|
|
149
|
-
obj.
|
|
157
|
+
if (message.transfer_source !== "") {
|
|
158
|
+
obj.transfer_source = message.transfer_source;
|
|
159
|
+
}
|
|
160
|
+
if (message.transfer_account_id !== "") {
|
|
161
|
+
obj.transfer_account_id = message.transfer_account_id;
|
|
150
162
|
}
|
|
151
|
-
if (message.
|
|
152
|
-
obj.
|
|
163
|
+
if (message.customer_bank_details?.length) {
|
|
164
|
+
obj.customer_bank_details = message.customer_bank_details.map((e) => exports.request_bank_details.toJSON(e));
|
|
153
165
|
}
|
|
154
166
|
if (message.loan_id !== undefined) {
|
|
155
167
|
obj.loan_id = message.loan_id;
|
|
@@ -168,8 +180,9 @@ exports.request = {
|
|
|
168
180
|
message.client_id = object.client_id ?? "";
|
|
169
181
|
message.external_order_id = object.external_order_id ?? "";
|
|
170
182
|
message.amount = object.amount ?? 0;
|
|
171
|
-
message.
|
|
172
|
-
message.
|
|
183
|
+
message.transfer_source = object.transfer_source ?? "";
|
|
184
|
+
message.transfer_account_id = object.transfer_account_id ?? "";
|
|
185
|
+
message.customer_bank_details = object.customer_bank_details?.map((e) => exports.request_bank_details.fromPartial(e)) || [];
|
|
173
186
|
message.loan_id = object.loan_id ?? undefined;
|
|
174
187
|
message.mode = object.mode ?? "";
|
|
175
188
|
return message;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "loans.getvirtualaccountnumber";
|
|
3
|
-
export interface getVirtualAccountNumberRequest {
|
|
4
|
-
customer_id: number;
|
|
5
|
-
}
|
|
6
|
-
export interface getVirtualAccountNumberResponse {
|
|
7
|
-
account_number: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const getVirtualAccountNumberRequest: {
|
|
10
|
-
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberRequest;
|
|
12
|
-
fromJSON(object: any): getVirtualAccountNumberRequest;
|
|
13
|
-
toJSON(message: getVirtualAccountNumberRequest): unknown;
|
|
14
|
-
create<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(base?: I): getVirtualAccountNumberRequest;
|
|
15
|
-
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(object: I): getVirtualAccountNumberRequest;
|
|
16
|
-
};
|
|
17
|
-
export declare const getVirtualAccountNumberResponse: {
|
|
18
|
-
encode(message: getVirtualAccountNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberResponse;
|
|
20
|
-
fromJSON(object: any): getVirtualAccountNumberResponse;
|
|
21
|
-
toJSON(message: getVirtualAccountNumberResponse): unknown;
|
|
22
|
-
create<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(base?: I): getVirtualAccountNumberResponse;
|
|
23
|
-
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(object: I): getVirtualAccountNumberResponse;
|
|
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 {};
|