@stashfin/grpc 1.2.794 → 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
|
}
|
|
@@ -13,6 +13,10 @@ export interface request {
|
|
|
13
13
|
}
|
|
14
14
|
export interface response {
|
|
15
15
|
status: string;
|
|
16
|
+
status_code: number;
|
|
17
|
+
data?: response_Data | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface response_Data {
|
|
16
20
|
refundResponse: string;
|
|
17
21
|
}
|
|
18
22
|
export declare const request: {
|
|
@@ -31,6 +35,14 @@ export declare const response: {
|
|
|
31
35
|
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
32
36
|
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
33
37
|
};
|
|
38
|
+
export declare const response_Data: {
|
|
39
|
+
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
40
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
41
|
+
fromJSON(object: any): response_Data;
|
|
42
|
+
toJSON(message: response_Data): unknown;
|
|
43
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
44
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
45
|
+
};
|
|
34
46
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
35
47
|
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 {} ? {
|
|
36
48
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.response = exports.request = exports.protobufPackage = void 0;
|
|
11
|
+
exports.response_Data = exports.response = exports.request = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const long_1 = __importDefault(require("long"));
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -188,15 +188,18 @@ exports.request = {
|
|
|
188
188
|
},
|
|
189
189
|
};
|
|
190
190
|
function createBaseresponse() {
|
|
191
|
-
return { status: "",
|
|
191
|
+
return { status: "", status_code: 0, data: undefined };
|
|
192
192
|
}
|
|
193
193
|
exports.response = {
|
|
194
194
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
195
195
|
if (message.status !== "") {
|
|
196
196
|
writer.uint32(10).string(message.status);
|
|
197
197
|
}
|
|
198
|
-
if (message.
|
|
199
|
-
writer.uint32(
|
|
198
|
+
if (message.status_code !== 0) {
|
|
199
|
+
writer.uint32(16).int32(message.status_code);
|
|
200
|
+
}
|
|
201
|
+
if (message.data !== undefined) {
|
|
202
|
+
exports.response_Data.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
200
203
|
}
|
|
201
204
|
return writer;
|
|
202
205
|
},
|
|
@@ -214,10 +217,16 @@ exports.response = {
|
|
|
214
217
|
message.status = reader.string();
|
|
215
218
|
continue;
|
|
216
219
|
case 2:
|
|
217
|
-
if (tag !==
|
|
220
|
+
if (tag !== 16) {
|
|
218
221
|
break;
|
|
219
222
|
}
|
|
220
|
-
message.
|
|
223
|
+
message.status_code = reader.int32();
|
|
224
|
+
continue;
|
|
225
|
+
case 3:
|
|
226
|
+
if (tag !== 26) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.data = exports.response_Data.decode(reader, reader.uint32());
|
|
221
230
|
continue;
|
|
222
231
|
}
|
|
223
232
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -230,7 +239,8 @@ exports.response = {
|
|
|
230
239
|
fromJSON(object) {
|
|
231
240
|
return {
|
|
232
241
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
233
|
-
|
|
242
|
+
status_code: isSet(object.status_code) ? globalThis.Number(object.status_code) : 0,
|
|
243
|
+
data: isSet(object.data) ? exports.response_Data.fromJSON(object.data) : undefined,
|
|
234
244
|
};
|
|
235
245
|
},
|
|
236
246
|
toJSON(message) {
|
|
@@ -238,8 +248,11 @@ exports.response = {
|
|
|
238
248
|
if (message.status !== "") {
|
|
239
249
|
obj.status = message.status;
|
|
240
250
|
}
|
|
241
|
-
if (message.
|
|
242
|
-
obj.
|
|
251
|
+
if (message.status_code !== 0) {
|
|
252
|
+
obj.status_code = Math.round(message.status_code);
|
|
253
|
+
}
|
|
254
|
+
if (message.data !== undefined) {
|
|
255
|
+
obj.data = exports.response_Data.toJSON(message.data);
|
|
243
256
|
}
|
|
244
257
|
return obj;
|
|
245
258
|
},
|
|
@@ -249,6 +262,59 @@ exports.response = {
|
|
|
249
262
|
fromPartial(object) {
|
|
250
263
|
const message = createBaseresponse();
|
|
251
264
|
message.status = object.status ?? "";
|
|
265
|
+
message.status_code = object.status_code ?? 0;
|
|
266
|
+
message.data = (object.data !== undefined && object.data !== null)
|
|
267
|
+
? exports.response_Data.fromPartial(object.data)
|
|
268
|
+
: undefined;
|
|
269
|
+
return message;
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
function createBaseresponse_Data() {
|
|
273
|
+
return { refundResponse: "" };
|
|
274
|
+
}
|
|
275
|
+
exports.response_Data = {
|
|
276
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
277
|
+
if (message.refundResponse !== "") {
|
|
278
|
+
writer.uint32(10).string(message.refundResponse);
|
|
279
|
+
}
|
|
280
|
+
return writer;
|
|
281
|
+
},
|
|
282
|
+
decode(input, length) {
|
|
283
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
284
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
285
|
+
const message = createBaseresponse_Data();
|
|
286
|
+
while (reader.pos < end) {
|
|
287
|
+
const tag = reader.uint32();
|
|
288
|
+
switch (tag >>> 3) {
|
|
289
|
+
case 1:
|
|
290
|
+
if (tag !== 10) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
message.refundResponse = reader.string();
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
reader.skipType(tag & 7);
|
|
300
|
+
}
|
|
301
|
+
return message;
|
|
302
|
+
},
|
|
303
|
+
fromJSON(object) {
|
|
304
|
+
return { refundResponse: isSet(object.refundResponse) ? globalThis.String(object.refundResponse) : "" };
|
|
305
|
+
},
|
|
306
|
+
toJSON(message) {
|
|
307
|
+
const obj = {};
|
|
308
|
+
if (message.refundResponse !== "") {
|
|
309
|
+
obj.refundResponse = message.refundResponse;
|
|
310
|
+
}
|
|
311
|
+
return obj;
|
|
312
|
+
},
|
|
313
|
+
create(base) {
|
|
314
|
+
return exports.response_Data.fromPartial(base ?? {});
|
|
315
|
+
},
|
|
316
|
+
fromPartial(object) {
|
|
317
|
+
const message = createBaseresponse_Data();
|
|
252
318
|
message.refundResponse = object.refundResponse ?? "";
|
|
253
319
|
return message;
|
|
254
320
|
},
|