@stashfin/grpc 1.2.80 → 1.2.82
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
|
@@ -14,7 +14,7 @@ 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, phone_number: "", template_type: "", tracking_id: "",
|
|
17
|
+
return { loan_id: 0, phone_number: "", template_type: "", tracking_id: "", journey_type: "", fip_ids: [] };
|
|
18
18
|
}
|
|
19
19
|
exports.initiateRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -30,8 +30,11 @@ exports.initiateRequest = {
|
|
|
30
30
|
if (message.tracking_id !== "") {
|
|
31
31
|
writer.uint32(34).string(message.tracking_id);
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
writer.uint32(42).string(
|
|
33
|
+
if (message.journey_type !== "") {
|
|
34
|
+
writer.uint32(42).string(message.journey_type);
|
|
35
|
+
}
|
|
36
|
+
for (const v of message.fip_ids) {
|
|
37
|
+
writer.uint32(50).string(v);
|
|
35
38
|
}
|
|
36
39
|
return writer;
|
|
37
40
|
},
|
|
@@ -70,7 +73,13 @@ exports.initiateRequest = {
|
|
|
70
73
|
if (tag !== 42) {
|
|
71
74
|
break;
|
|
72
75
|
}
|
|
73
|
-
message.
|
|
76
|
+
message.journey_type = reader.string();
|
|
77
|
+
continue;
|
|
78
|
+
case 6:
|
|
79
|
+
if (tag !== 50) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.fip_ids.push(reader.string());
|
|
74
83
|
continue;
|
|
75
84
|
}
|
|
76
85
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -86,7 +95,8 @@ exports.initiateRequest = {
|
|
|
86
95
|
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
87
96
|
template_type: isSet(object.template_type) ? globalThis.String(object.template_type) : "",
|
|
88
97
|
tracking_id: isSet(object.tracking_id) ? globalThis.String(object.tracking_id) : "",
|
|
89
|
-
|
|
98
|
+
journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
|
|
99
|
+
fip_ids: globalThis.Array.isArray(object?.fip_ids) ? object.fip_ids.map((e) => globalThis.String(e)) : [],
|
|
90
100
|
};
|
|
91
101
|
},
|
|
92
102
|
toJSON(message) {
|
|
@@ -103,8 +113,11 @@ exports.initiateRequest = {
|
|
|
103
113
|
if (message.tracking_id !== "") {
|
|
104
114
|
obj.tracking_id = message.tracking_id;
|
|
105
115
|
}
|
|
106
|
-
if (message.
|
|
107
|
-
obj.
|
|
116
|
+
if (message.journey_type !== "") {
|
|
117
|
+
obj.journey_type = message.journey_type;
|
|
118
|
+
}
|
|
119
|
+
if (message.fip_ids?.length) {
|
|
120
|
+
obj.fip_ids = message.fip_ids;
|
|
108
121
|
}
|
|
109
122
|
return obj;
|
|
110
123
|
},
|
|
@@ -117,7 +130,8 @@ exports.initiateRequest = {
|
|
|
117
130
|
message.phone_number = object.phone_number ?? "";
|
|
118
131
|
message.template_type = object.template_type ?? "";
|
|
119
132
|
message.tracking_id = object.tracking_id ?? "";
|
|
120
|
-
message.
|
|
133
|
+
message.journey_type = object.journey_type ?? "";
|
|
134
|
+
message.fip_ids = object.fip_ids?.map((e) => e) || [];
|
|
121
135
|
return message;
|
|
122
136
|
},
|
|
123
137
|
};
|