@stashfin/grpc 1.2.789 → 1.2.791
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
|
@@ -20,6 +20,8 @@ function createBaserequest() {
|
|
|
20
20
|
txn_amount: 0,
|
|
21
21
|
refund_amount: 0,
|
|
22
22
|
merc_refund_ref_no: "",
|
|
23
|
+
client_id: "",
|
|
24
|
+
mode: "",
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
exports.request = {
|
|
@@ -42,6 +44,12 @@ exports.request = {
|
|
|
42
44
|
if (message.merc_refund_ref_no !== "") {
|
|
43
45
|
writer.uint32(50).string(message.merc_refund_ref_no);
|
|
44
46
|
}
|
|
47
|
+
if (message.client_id !== "") {
|
|
48
|
+
writer.uint32(66).string(message.client_id);
|
|
49
|
+
}
|
|
50
|
+
if (message.mode !== "") {
|
|
51
|
+
writer.uint32(74).string(message.mode);
|
|
52
|
+
}
|
|
45
53
|
return writer;
|
|
46
54
|
},
|
|
47
55
|
decode(input, length) {
|
|
@@ -87,6 +95,18 @@ exports.request = {
|
|
|
87
95
|
}
|
|
88
96
|
message.merc_refund_ref_no = reader.string();
|
|
89
97
|
continue;
|
|
98
|
+
case 8:
|
|
99
|
+
if (tag !== 66) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.client_id = reader.string();
|
|
103
|
+
continue;
|
|
104
|
+
case 9:
|
|
105
|
+
if (tag !== 74) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.mode = reader.string();
|
|
109
|
+
continue;
|
|
90
110
|
}
|
|
91
111
|
if ((tag & 7) === 4 || tag === 0) {
|
|
92
112
|
break;
|
|
@@ -103,6 +123,8 @@ exports.request = {
|
|
|
103
123
|
txn_amount: isSet(object.txn_amount) ? globalThis.Number(object.txn_amount) : 0,
|
|
104
124
|
refund_amount: isSet(object.refund_amount) ? globalThis.Number(object.refund_amount) : 0,
|
|
105
125
|
merc_refund_ref_no: isSet(object.merc_refund_ref_no) ? globalThis.String(object.merc_refund_ref_no) : "",
|
|
126
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
127
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
106
128
|
};
|
|
107
129
|
},
|
|
108
130
|
toJSON(message) {
|
|
@@ -125,6 +147,12 @@ exports.request = {
|
|
|
125
147
|
if (message.merc_refund_ref_no !== "") {
|
|
126
148
|
obj.merc_refund_ref_no = message.merc_refund_ref_no;
|
|
127
149
|
}
|
|
150
|
+
if (message.client_id !== "") {
|
|
151
|
+
obj.client_id = message.client_id;
|
|
152
|
+
}
|
|
153
|
+
if (message.mode !== "") {
|
|
154
|
+
obj.mode = message.mode;
|
|
155
|
+
}
|
|
128
156
|
return obj;
|
|
129
157
|
},
|
|
130
158
|
create(base) {
|
|
@@ -138,6 +166,8 @@ exports.request = {
|
|
|
138
166
|
message.txn_amount = object.txn_amount ?? 0;
|
|
139
167
|
message.refund_amount = object.refund_amount ?? 0;
|
|
140
168
|
message.merc_refund_ref_no = object.merc_refund_ref_no ?? "";
|
|
169
|
+
message.client_id = object.client_id ?? "";
|
|
170
|
+
message.mode = object.mode ?? "";
|
|
141
171
|
return message;
|
|
142
172
|
},
|
|
143
173
|
};
|