@stashfin/grpc 1.5.15 → 1.5.17

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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/ts/bbps.d.ts +7 -21
  3. package/ts/bbps.js +0 -10
  4. package/ts/bureau/getreport.d.ts +2 -0
  5. package/ts/bureau/getreport.js +32 -0
  6. package/ts/eqxpayments.d.ts +0 -59
  7. package/ts/eqxpayments.js +0 -41
  8. package/ts/kyc/getselfieurl.d.ts +1 -0
  9. package/ts/kyc/getselfieurl.js +15 -1
  10. package/ts/bbps/processwebhookv2.d.ts +0 -157
  11. package/ts/bbps/processwebhookv2.js +0 -1175
  12. package/ts/eqxpayments/createmerchant.d.ts +0 -73
  13. package/ts/eqxpayments/createmerchant.js +0 -397
  14. package/ts/eqxpayments/createorderv2.d.ts +0 -50
  15. package/ts/eqxpayments/createorderv2.js +0 -334
  16. package/ts/eqxpayments/createpaymentcategoryclient.d.ts +0 -74
  17. package/ts/eqxpayments/createpaymentcategoryclient.js +0 -411
  18. package/ts/eqxpayments/createpaymentgateway.d.ts +0 -71
  19. package/ts/eqxpayments/createpaymentgateway.js +0 -369
  20. package/ts/eqxpayments/getgatewayconfiguration.d.ts +0 -92
  21. package/ts/eqxpayments/getgatewayconfiguration.js +0 -430
  22. package/ts/eqxpayments/getmerchantmodeconfigfees.d.ts +0 -106
  23. package/ts/eqxpayments/getmerchantmodeconfigfees.js +0 -627
  24. package/ts/eqxpayments/getorderv2.d.ts +0 -41
  25. package/ts/eqxpayments/getorderv2.js +0 -211
  26. package/ts/eqxpayments/initiateattemptv2.d.ts +0 -58
  27. package/ts/eqxpayments/initiateattemptv2.js +0 -374
  28. package/ts/eqxpayments/listcheckoutoptionsv2.d.ts +0 -96
  29. package/ts/eqxpayments/listcheckoutoptionsv2.js +0 -489
  30. package/ts/eqxpayments/listmerchants.d.ts +0 -68
  31. package/ts/eqxpayments/listmerchants.js +0 -331
  32. package/ts/eqxpayments/listpaymentcategoryclients.d.ts +0 -87
  33. package/ts/eqxpayments/listpaymentcategoryclients.js +0 -477
  34. package/ts/eqxpayments/listpaymentgateways.d.ts +0 -84
  35. package/ts/eqxpayments/listpaymentgateways.js +0 -433
  36. package/ts/eqxpayments/updatemerchant.d.ts +0 -73
  37. package/ts/eqxpayments/updatemerchant.js +0 -397
  38. package/ts/eqxpayments/updatemerchantmodeconfigfee.d.ts +0 -75
  39. package/ts/eqxpayments/updatemerchantmodeconfigfee.js +0 -417
  40. package/ts/eqxpayments/updatepaymentcategoryclient.d.ts +0 -75
  41. package/ts/eqxpayments/updatepaymentcategoryclient.js +0 -425
  42. package/ts/eqxpayments/updatepaymentgateway.d.ts +0 -71
  43. package/ts/eqxpayments/updatepaymentgateway.js +0 -369
@@ -1,73 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "eqxpayments.createmerchant";
3
- /** Merchant configuration structure */
4
- export interface MerchantConfiguration {
5
- merchant_id: string;
6
- api_key: string;
7
- }
8
- /** Request message */
9
- export interface request {
10
- gateway_id: string;
11
- merchant_name: string;
12
- merchant_code: string;
13
- status: string;
14
- configuration: MerchantConfiguration | undefined;
15
- }
16
- /** Response data structure */
17
- export interface MerchantData {
18
- merchant_id: string;
19
- merchant_name: string;
20
- merchant_code: string;
21
- gateway_id: string;
22
- status: string;
23
- created_at: string;
24
- }
25
- /** Response message */
26
- export interface response {
27
- success: boolean;
28
- message: string;
29
- data: MerchantData | undefined;
30
- }
31
- export declare const MerchantConfiguration: {
32
- encode(message: MerchantConfiguration, writer?: _m0.Writer): _m0.Writer;
33
- decode(input: _m0.Reader | Uint8Array, length?: number): MerchantConfiguration;
34
- fromJSON(object: any): MerchantConfiguration;
35
- toJSON(message: MerchantConfiguration): unknown;
36
- create<I extends Exact<DeepPartial<MerchantConfiguration>, I>>(base?: I): MerchantConfiguration;
37
- fromPartial<I extends Exact<DeepPartial<MerchantConfiguration>, I>>(object: I): MerchantConfiguration;
38
- };
39
- export declare const request: {
40
- encode(message: request, writer?: _m0.Writer): _m0.Writer;
41
- decode(input: _m0.Reader | Uint8Array, length?: number): request;
42
- fromJSON(object: any): request;
43
- toJSON(message: request): unknown;
44
- create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
45
- fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
46
- };
47
- export declare const MerchantData: {
48
- encode(message: MerchantData, writer?: _m0.Writer): _m0.Writer;
49
- decode(input: _m0.Reader | Uint8Array, length?: number): MerchantData;
50
- fromJSON(object: any): MerchantData;
51
- toJSON(message: MerchantData): unknown;
52
- create<I extends Exact<DeepPartial<MerchantData>, I>>(base?: I): MerchantData;
53
- fromPartial<I extends Exact<DeepPartial<MerchantData>, I>>(object: I): MerchantData;
54
- };
55
- export declare const response: {
56
- encode(message: response, writer?: _m0.Writer): _m0.Writer;
57
- decode(input: _m0.Reader | Uint8Array, length?: number): response;
58
- fromJSON(object: any): response;
59
- toJSON(message: response): unknown;
60
- create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
61
- fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
62
- };
63
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
64
- 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 {} ? {
65
- [K in keyof T]?: DeepPartial<T[K]>;
66
- } : Partial<T>;
67
- type KeysOfUnion<T> = T extends T ? keyof T : never;
68
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
69
- [K in keyof P]: Exact<P[K], I[K]>;
70
- } & {
71
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
72
- };
73
- export {};
@@ -1,397 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.181.2
5
- // protoc v6.32.1
6
- // source: eqxpayments/createmerchant.proto
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.response = exports.MerchantData = exports.request = exports.MerchantConfiguration = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "eqxpayments.createmerchant";
15
- function createBaseMerchantConfiguration() {
16
- return { merchant_id: "", api_key: "" };
17
- }
18
- exports.MerchantConfiguration = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.merchant_id !== "") {
21
- writer.uint32(10).string(message.merchant_id);
22
- }
23
- if (message.api_key !== "") {
24
- writer.uint32(18).string(message.api_key);
25
- }
26
- return writer;
27
- },
28
- decode(input, length) {
29
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
- let end = length === undefined ? reader.len : reader.pos + length;
31
- const message = createBaseMerchantConfiguration();
32
- while (reader.pos < end) {
33
- const tag = reader.uint32();
34
- switch (tag >>> 3) {
35
- case 1:
36
- if (tag !== 10) {
37
- break;
38
- }
39
- message.merchant_id = reader.string();
40
- continue;
41
- case 2:
42
- if (tag !== 18) {
43
- break;
44
- }
45
- message.api_key = reader.string();
46
- continue;
47
- }
48
- if ((tag & 7) === 4 || tag === 0) {
49
- break;
50
- }
51
- reader.skipType(tag & 7);
52
- }
53
- return message;
54
- },
55
- fromJSON(object) {
56
- return {
57
- merchant_id: isSet(object.merchant_id) ? globalThis.String(object.merchant_id) : "",
58
- api_key: isSet(object.api_key) ? globalThis.String(object.api_key) : "",
59
- };
60
- },
61
- toJSON(message) {
62
- const obj = {};
63
- if (message.merchant_id !== "") {
64
- obj.merchant_id = message.merchant_id;
65
- }
66
- if (message.api_key !== "") {
67
- obj.api_key = message.api_key;
68
- }
69
- return obj;
70
- },
71
- create(base) {
72
- return exports.MerchantConfiguration.fromPartial(base ?? {});
73
- },
74
- fromPartial(object) {
75
- const message = createBaseMerchantConfiguration();
76
- message.merchant_id = object.merchant_id ?? "";
77
- message.api_key = object.api_key ?? "";
78
- return message;
79
- },
80
- };
81
- function createBaserequest() {
82
- return { gateway_id: "", merchant_name: "", merchant_code: "", status: "", configuration: undefined };
83
- }
84
- exports.request = {
85
- encode(message, writer = minimal_1.default.Writer.create()) {
86
- if (message.gateway_id !== "") {
87
- writer.uint32(10).string(message.gateway_id);
88
- }
89
- if (message.merchant_name !== "") {
90
- writer.uint32(18).string(message.merchant_name);
91
- }
92
- if (message.merchant_code !== "") {
93
- writer.uint32(26).string(message.merchant_code);
94
- }
95
- if (message.status !== "") {
96
- writer.uint32(34).string(message.status);
97
- }
98
- if (message.configuration !== undefined) {
99
- exports.MerchantConfiguration.encode(message.configuration, writer.uint32(42).fork()).ldelim();
100
- }
101
- return writer;
102
- },
103
- decode(input, length) {
104
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
105
- let end = length === undefined ? reader.len : reader.pos + length;
106
- const message = createBaserequest();
107
- while (reader.pos < end) {
108
- const tag = reader.uint32();
109
- switch (tag >>> 3) {
110
- case 1:
111
- if (tag !== 10) {
112
- break;
113
- }
114
- message.gateway_id = reader.string();
115
- continue;
116
- case 2:
117
- if (tag !== 18) {
118
- break;
119
- }
120
- message.merchant_name = reader.string();
121
- continue;
122
- case 3:
123
- if (tag !== 26) {
124
- break;
125
- }
126
- message.merchant_code = reader.string();
127
- continue;
128
- case 4:
129
- if (tag !== 34) {
130
- break;
131
- }
132
- message.status = reader.string();
133
- continue;
134
- case 5:
135
- if (tag !== 42) {
136
- break;
137
- }
138
- message.configuration = exports.MerchantConfiguration.decode(reader, reader.uint32());
139
- continue;
140
- }
141
- if ((tag & 7) === 4 || tag === 0) {
142
- break;
143
- }
144
- reader.skipType(tag & 7);
145
- }
146
- return message;
147
- },
148
- fromJSON(object) {
149
- return {
150
- gateway_id: isSet(object.gateway_id) ? globalThis.String(object.gateway_id) : "",
151
- merchant_name: isSet(object.merchant_name) ? globalThis.String(object.merchant_name) : "",
152
- merchant_code: isSet(object.merchant_code) ? globalThis.String(object.merchant_code) : "",
153
- status: isSet(object.status) ? globalThis.String(object.status) : "",
154
- configuration: isSet(object.configuration) ? exports.MerchantConfiguration.fromJSON(object.configuration) : undefined,
155
- };
156
- },
157
- toJSON(message) {
158
- const obj = {};
159
- if (message.gateway_id !== "") {
160
- obj.gateway_id = message.gateway_id;
161
- }
162
- if (message.merchant_name !== "") {
163
- obj.merchant_name = message.merchant_name;
164
- }
165
- if (message.merchant_code !== "") {
166
- obj.merchant_code = message.merchant_code;
167
- }
168
- if (message.status !== "") {
169
- obj.status = message.status;
170
- }
171
- if (message.configuration !== undefined) {
172
- obj.configuration = exports.MerchantConfiguration.toJSON(message.configuration);
173
- }
174
- return obj;
175
- },
176
- create(base) {
177
- return exports.request.fromPartial(base ?? {});
178
- },
179
- fromPartial(object) {
180
- const message = createBaserequest();
181
- message.gateway_id = object.gateway_id ?? "";
182
- message.merchant_name = object.merchant_name ?? "";
183
- message.merchant_code = object.merchant_code ?? "";
184
- message.status = object.status ?? "";
185
- message.configuration = (object.configuration !== undefined && object.configuration !== null)
186
- ? exports.MerchantConfiguration.fromPartial(object.configuration)
187
- : undefined;
188
- return message;
189
- },
190
- };
191
- function createBaseMerchantData() {
192
- return { merchant_id: "", merchant_name: "", merchant_code: "", gateway_id: "", status: "", created_at: "" };
193
- }
194
- exports.MerchantData = {
195
- encode(message, writer = minimal_1.default.Writer.create()) {
196
- if (message.merchant_id !== "") {
197
- writer.uint32(10).string(message.merchant_id);
198
- }
199
- if (message.merchant_name !== "") {
200
- writer.uint32(18).string(message.merchant_name);
201
- }
202
- if (message.merchant_code !== "") {
203
- writer.uint32(26).string(message.merchant_code);
204
- }
205
- if (message.gateway_id !== "") {
206
- writer.uint32(34).string(message.gateway_id);
207
- }
208
- if (message.status !== "") {
209
- writer.uint32(42).string(message.status);
210
- }
211
- if (message.created_at !== "") {
212
- writer.uint32(50).string(message.created_at);
213
- }
214
- return writer;
215
- },
216
- decode(input, length) {
217
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
218
- let end = length === undefined ? reader.len : reader.pos + length;
219
- const message = createBaseMerchantData();
220
- while (reader.pos < end) {
221
- const tag = reader.uint32();
222
- switch (tag >>> 3) {
223
- case 1:
224
- if (tag !== 10) {
225
- break;
226
- }
227
- message.merchant_id = reader.string();
228
- continue;
229
- case 2:
230
- if (tag !== 18) {
231
- break;
232
- }
233
- message.merchant_name = reader.string();
234
- continue;
235
- case 3:
236
- if (tag !== 26) {
237
- break;
238
- }
239
- message.merchant_code = reader.string();
240
- continue;
241
- case 4:
242
- if (tag !== 34) {
243
- break;
244
- }
245
- message.gateway_id = reader.string();
246
- continue;
247
- case 5:
248
- if (tag !== 42) {
249
- break;
250
- }
251
- message.status = reader.string();
252
- continue;
253
- case 6:
254
- if (tag !== 50) {
255
- break;
256
- }
257
- message.created_at = reader.string();
258
- continue;
259
- }
260
- if ((tag & 7) === 4 || tag === 0) {
261
- break;
262
- }
263
- reader.skipType(tag & 7);
264
- }
265
- return message;
266
- },
267
- fromJSON(object) {
268
- return {
269
- merchant_id: isSet(object.merchant_id) ? globalThis.String(object.merchant_id) : "",
270
- merchant_name: isSet(object.merchant_name) ? globalThis.String(object.merchant_name) : "",
271
- merchant_code: isSet(object.merchant_code) ? globalThis.String(object.merchant_code) : "",
272
- gateway_id: isSet(object.gateway_id) ? globalThis.String(object.gateway_id) : "",
273
- status: isSet(object.status) ? globalThis.String(object.status) : "",
274
- created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
275
- };
276
- },
277
- toJSON(message) {
278
- const obj = {};
279
- if (message.merchant_id !== "") {
280
- obj.merchant_id = message.merchant_id;
281
- }
282
- if (message.merchant_name !== "") {
283
- obj.merchant_name = message.merchant_name;
284
- }
285
- if (message.merchant_code !== "") {
286
- obj.merchant_code = message.merchant_code;
287
- }
288
- if (message.gateway_id !== "") {
289
- obj.gateway_id = message.gateway_id;
290
- }
291
- if (message.status !== "") {
292
- obj.status = message.status;
293
- }
294
- if (message.created_at !== "") {
295
- obj.created_at = message.created_at;
296
- }
297
- return obj;
298
- },
299
- create(base) {
300
- return exports.MerchantData.fromPartial(base ?? {});
301
- },
302
- fromPartial(object) {
303
- const message = createBaseMerchantData();
304
- message.merchant_id = object.merchant_id ?? "";
305
- message.merchant_name = object.merchant_name ?? "";
306
- message.merchant_code = object.merchant_code ?? "";
307
- message.gateway_id = object.gateway_id ?? "";
308
- message.status = object.status ?? "";
309
- message.created_at = object.created_at ?? "";
310
- return message;
311
- },
312
- };
313
- function createBaseresponse() {
314
- return { success: false, message: "", data: undefined };
315
- }
316
- exports.response = {
317
- encode(message, writer = minimal_1.default.Writer.create()) {
318
- if (message.success !== false) {
319
- writer.uint32(8).bool(message.success);
320
- }
321
- if (message.message !== "") {
322
- writer.uint32(18).string(message.message);
323
- }
324
- if (message.data !== undefined) {
325
- exports.MerchantData.encode(message.data, writer.uint32(26).fork()).ldelim();
326
- }
327
- return writer;
328
- },
329
- decode(input, length) {
330
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
331
- let end = length === undefined ? reader.len : reader.pos + length;
332
- const message = createBaseresponse();
333
- while (reader.pos < end) {
334
- const tag = reader.uint32();
335
- switch (tag >>> 3) {
336
- case 1:
337
- if (tag !== 8) {
338
- break;
339
- }
340
- message.success = reader.bool();
341
- continue;
342
- case 2:
343
- if (tag !== 18) {
344
- break;
345
- }
346
- message.message = reader.string();
347
- continue;
348
- case 3:
349
- if (tag !== 26) {
350
- break;
351
- }
352
- message.data = exports.MerchantData.decode(reader, reader.uint32());
353
- continue;
354
- }
355
- if ((tag & 7) === 4 || tag === 0) {
356
- break;
357
- }
358
- reader.skipType(tag & 7);
359
- }
360
- return message;
361
- },
362
- fromJSON(object) {
363
- return {
364
- success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
365
- message: isSet(object.message) ? globalThis.String(object.message) : "",
366
- data: isSet(object.data) ? exports.MerchantData.fromJSON(object.data) : undefined,
367
- };
368
- },
369
- toJSON(message) {
370
- const obj = {};
371
- if (message.success !== false) {
372
- obj.success = message.success;
373
- }
374
- if (message.message !== "") {
375
- obj.message = message.message;
376
- }
377
- if (message.data !== undefined) {
378
- obj.data = exports.MerchantData.toJSON(message.data);
379
- }
380
- return obj;
381
- },
382
- create(base) {
383
- return exports.response.fromPartial(base ?? {});
384
- },
385
- fromPartial(object) {
386
- const message = createBaseresponse();
387
- message.success = object.success ?? false;
388
- message.message = object.message ?? "";
389
- message.data = (object.data !== undefined && object.data !== null)
390
- ? exports.MerchantData.fromPartial(object.data)
391
- : undefined;
392
- return message;
393
- },
394
- };
395
- function isSet(value) {
396
- return value !== null && value !== undefined;
397
- }
@@ -1,50 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "eqxpayments.createorderv2";
3
- export interface request {
4
- subscriber_id: string;
5
- order_ref: string;
6
- amount_minor: number;
7
- currency: string;
8
- return_url: string;
9
- /** JSON string for customer context */
10
- customer_ctx_json: string;
11
- /** JSON string for metadata */
12
- metadata_json: string;
13
- }
14
- export interface response {
15
- transaction_id: string;
16
- order_ref: string;
17
- subscriber_id: string;
18
- status: string;
19
- status_page_url: string;
20
- redirect_url: string;
21
- checkout_token: string;
22
- created_at: string;
23
- }
24
- export declare const request: {
25
- encode(message: request, writer?: _m0.Writer): _m0.Writer;
26
- decode(input: _m0.Reader | Uint8Array, length?: number): request;
27
- fromJSON(object: any): request;
28
- toJSON(message: request): unknown;
29
- create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
30
- fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
31
- };
32
- export declare const response: {
33
- encode(message: response, writer?: _m0.Writer): _m0.Writer;
34
- decode(input: _m0.Reader | Uint8Array, length?: number): response;
35
- fromJSON(object: any): response;
36
- toJSON(message: response): unknown;
37
- create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
38
- fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
39
- };
40
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
41
- 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 {} ? {
42
- [K in keyof T]?: DeepPartial<T[K]>;
43
- } : Partial<T>;
44
- type KeysOfUnion<T> = T extends T ? keyof T : never;
45
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
46
- [K in keyof P]: Exact<P[K], I[K]>;
47
- } & {
48
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
49
- };
50
- export {};