@stashfin/grpc 1.2.83 → 1.2.84
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
CHANGED
|
@@ -2,9 +2,6 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "customers.aa.initiate";
|
|
3
3
|
export interface initiateRequest {
|
|
4
4
|
loan_id: number;
|
|
5
|
-
phone_number: string;
|
|
6
|
-
template_type: string;
|
|
7
|
-
tracking_id: string;
|
|
8
5
|
journey_type: string;
|
|
9
6
|
fip_ids: string[];
|
|
10
7
|
}
|
|
@@ -14,27 +14,18 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "customers.aa.initiate";
|
|
16
16
|
function createBaseinitiateRequest() {
|
|
17
|
-
return { loan_id: 0,
|
|
17
|
+
return { loan_id: 0, journey_type: "", fip_ids: [] };
|
|
18
18
|
}
|
|
19
19
|
exports.initiateRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
21
|
if (message.loan_id !== 0) {
|
|
22
22
|
writer.uint32(8).int64(message.loan_id);
|
|
23
23
|
}
|
|
24
|
-
if (message.phone_number !== "") {
|
|
25
|
-
writer.uint32(18).string(message.phone_number);
|
|
26
|
-
}
|
|
27
|
-
if (message.template_type !== "") {
|
|
28
|
-
writer.uint32(26).string(message.template_type);
|
|
29
|
-
}
|
|
30
|
-
if (message.tracking_id !== "") {
|
|
31
|
-
writer.uint32(34).string(message.tracking_id);
|
|
32
|
-
}
|
|
33
24
|
if (message.journey_type !== "") {
|
|
34
|
-
writer.uint32(
|
|
25
|
+
writer.uint32(18).string(message.journey_type);
|
|
35
26
|
}
|
|
36
27
|
for (const v of message.fip_ids) {
|
|
37
|
-
writer.uint32(
|
|
28
|
+
writer.uint32(26).string(v);
|
|
38
29
|
}
|
|
39
30
|
return writer;
|
|
40
31
|
},
|
|
@@ -55,30 +46,12 @@ exports.initiateRequest = {
|
|
|
55
46
|
if (tag !== 18) {
|
|
56
47
|
break;
|
|
57
48
|
}
|
|
58
|
-
message.
|
|
49
|
+
message.journey_type = reader.string();
|
|
59
50
|
continue;
|
|
60
51
|
case 3:
|
|
61
52
|
if (tag !== 26) {
|
|
62
53
|
break;
|
|
63
54
|
}
|
|
64
|
-
message.template_type = reader.string();
|
|
65
|
-
continue;
|
|
66
|
-
case 4:
|
|
67
|
-
if (tag !== 34) {
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
message.tracking_id = reader.string();
|
|
71
|
-
continue;
|
|
72
|
-
case 5:
|
|
73
|
-
if (tag !== 42) {
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
message.journey_type = reader.string();
|
|
77
|
-
continue;
|
|
78
|
-
case 6:
|
|
79
|
-
if (tag !== 50) {
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
55
|
message.fip_ids.push(reader.string());
|
|
83
56
|
continue;
|
|
84
57
|
}
|
|
@@ -92,9 +65,6 @@ exports.initiateRequest = {
|
|
|
92
65
|
fromJSON(object) {
|
|
93
66
|
return {
|
|
94
67
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
95
|
-
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
96
|
-
template_type: isSet(object.template_type) ? globalThis.String(object.template_type) : "",
|
|
97
|
-
tracking_id: isSet(object.tracking_id) ? globalThis.String(object.tracking_id) : "",
|
|
98
68
|
journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
|
|
99
69
|
fip_ids: globalThis.Array.isArray(object?.fip_ids) ? object.fip_ids.map((e) => globalThis.String(e)) : [],
|
|
100
70
|
};
|
|
@@ -104,15 +74,6 @@ exports.initiateRequest = {
|
|
|
104
74
|
if (message.loan_id !== 0) {
|
|
105
75
|
obj.loan_id = Math.round(message.loan_id);
|
|
106
76
|
}
|
|
107
|
-
if (message.phone_number !== "") {
|
|
108
|
-
obj.phone_number = message.phone_number;
|
|
109
|
-
}
|
|
110
|
-
if (message.template_type !== "") {
|
|
111
|
-
obj.template_type = message.template_type;
|
|
112
|
-
}
|
|
113
|
-
if (message.tracking_id !== "") {
|
|
114
|
-
obj.tracking_id = message.tracking_id;
|
|
115
|
-
}
|
|
116
77
|
if (message.journey_type !== "") {
|
|
117
78
|
obj.journey_type = message.journey_type;
|
|
118
79
|
}
|
|
@@ -127,9 +88,6 @@ exports.initiateRequest = {
|
|
|
127
88
|
fromPartial(object) {
|
|
128
89
|
const message = createBaseinitiateRequest();
|
|
129
90
|
message.loan_id = object.loan_id ?? 0;
|
|
130
|
-
message.phone_number = object.phone_number ?? "";
|
|
131
|
-
message.template_type = object.template_type ?? "";
|
|
132
|
-
message.tracking_id = object.tracking_id ?? "";
|
|
133
91
|
message.journey_type = object.journey_type ?? "";
|
|
134
92
|
message.fip_ids = object.fip_ids?.map((e) => e) || [];
|
|
135
93
|
return message;
|