@stashfin/grpc 1.2.795 → 1.2.796
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
|
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.response = exports.request = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
15
|
exports.protobufPackage = "eqxpayments.initiaterefund";
|
|
15
16
|
function createBaserequest() {
|
|
@@ -22,6 +23,7 @@ function createBaserequest() {
|
|
|
22
23
|
merc_refund_ref_no: "",
|
|
23
24
|
client_id: "",
|
|
24
25
|
mode: "",
|
|
26
|
+
customer_id: 0,
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
exports.request = {
|
|
@@ -50,6 +52,9 @@ exports.request = {
|
|
|
50
52
|
if (message.mode !== "") {
|
|
51
53
|
writer.uint32(74).string(message.mode);
|
|
52
54
|
}
|
|
55
|
+
if (message.customer_id !== 0) {
|
|
56
|
+
writer.uint32(80).int64(message.customer_id);
|
|
57
|
+
}
|
|
53
58
|
return writer;
|
|
54
59
|
},
|
|
55
60
|
decode(input, length) {
|
|
@@ -107,6 +112,12 @@ exports.request = {
|
|
|
107
112
|
}
|
|
108
113
|
message.mode = reader.string();
|
|
109
114
|
continue;
|
|
115
|
+
case 10:
|
|
116
|
+
if (tag !== 80) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
message.customer_id = longToNumber(reader.int64());
|
|
120
|
+
continue;
|
|
110
121
|
}
|
|
111
122
|
if ((tag & 7) === 4 || tag === 0) {
|
|
112
123
|
break;
|
|
@@ -125,6 +136,7 @@ exports.request = {
|
|
|
125
136
|
merc_refund_ref_no: isSet(object.merc_refund_ref_no) ? globalThis.String(object.merc_refund_ref_no) : "",
|
|
126
137
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
127
138
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
139
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
128
140
|
};
|
|
129
141
|
},
|
|
130
142
|
toJSON(message) {
|
|
@@ -153,6 +165,9 @@ exports.request = {
|
|
|
153
165
|
if (message.mode !== "") {
|
|
154
166
|
obj.mode = message.mode;
|
|
155
167
|
}
|
|
168
|
+
if (message.customer_id !== 0) {
|
|
169
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
170
|
+
}
|
|
156
171
|
return obj;
|
|
157
172
|
},
|
|
158
173
|
create(base) {
|
|
@@ -168,6 +183,7 @@ exports.request = {
|
|
|
168
183
|
message.merc_refund_ref_no = object.merc_refund_ref_no ?? "";
|
|
169
184
|
message.client_id = object.client_id ?? "";
|
|
170
185
|
message.mode = object.mode ?? "";
|
|
186
|
+
message.customer_id = object.customer_id ?? 0;
|
|
171
187
|
return message;
|
|
172
188
|
},
|
|
173
189
|
};
|
|
@@ -251,6 +267,19 @@ exports.response = {
|
|
|
251
267
|
return message;
|
|
252
268
|
},
|
|
253
269
|
};
|
|
270
|
+
function longToNumber(long) {
|
|
271
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
272
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
273
|
+
}
|
|
274
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
275
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
276
|
+
}
|
|
277
|
+
return long.toNumber();
|
|
278
|
+
}
|
|
279
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
280
|
+
minimal_1.default.util.Long = long_1.default;
|
|
281
|
+
minimal_1.default.configure();
|
|
282
|
+
}
|
|
254
283
|
function isSet(value) {
|
|
255
284
|
return value !== null && value !== undefined;
|
|
256
285
|
}
|