@stashfin/grpc 1.5.22 → 1.5.31

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 (37) hide show
  1. package/package.json +1 -1
  2. package/ts/bbps/processwebhookv2.d.ts +157 -0
  3. package/ts/bbps/processwebhookv2.js +1175 -0
  4. package/ts/bbps/remindernotification.d.ts +13 -0
  5. package/ts/bbps/remindernotification.js +201 -0
  6. package/ts/eqxpayments/createmerchant.d.ts +73 -0
  7. package/ts/eqxpayments/createmerchant.js +397 -0
  8. package/ts/eqxpayments/createorderv2.d.ts +50 -0
  9. package/ts/eqxpayments/createorderv2.js +334 -0
  10. package/ts/eqxpayments/createpaymentcategoryclient.d.ts +74 -0
  11. package/ts/eqxpayments/createpaymentcategoryclient.js +411 -0
  12. package/ts/eqxpayments/createpaymentgateway.d.ts +71 -0
  13. package/ts/eqxpayments/createpaymentgateway.js +369 -0
  14. package/ts/eqxpayments/getgatewayconfiguration.d.ts +92 -0
  15. package/ts/eqxpayments/getgatewayconfiguration.js +430 -0
  16. package/ts/eqxpayments/getmerchantmodeconfigfees.d.ts +106 -0
  17. package/ts/eqxpayments/getmerchantmodeconfigfees.js +627 -0
  18. package/ts/eqxpayments/getorderv2.d.ts +41 -0
  19. package/ts/eqxpayments/getorderv2.js +211 -0
  20. package/ts/eqxpayments/initiateattemptv2.d.ts +58 -0
  21. package/ts/eqxpayments/initiateattemptv2.js +374 -0
  22. package/ts/eqxpayments/listcheckoutoptionsv2.d.ts +96 -0
  23. package/ts/eqxpayments/listcheckoutoptionsv2.js +489 -0
  24. package/ts/eqxpayments/listmerchants.d.ts +68 -0
  25. package/ts/eqxpayments/listmerchants.js +331 -0
  26. package/ts/eqxpayments/listpaymentcategoryclients.d.ts +87 -0
  27. package/ts/eqxpayments/listpaymentcategoryclients.js +477 -0
  28. package/ts/eqxpayments/listpaymentgateways.d.ts +84 -0
  29. package/ts/eqxpayments/listpaymentgateways.js +433 -0
  30. package/ts/eqxpayments/updatemerchant.d.ts +73 -0
  31. package/ts/eqxpayments/updatemerchant.js +397 -0
  32. package/ts/eqxpayments/updatemerchantmodeconfigfee.d.ts +75 -0
  33. package/ts/eqxpayments/updatemerchantmodeconfigfee.js +417 -0
  34. package/ts/eqxpayments/updatepaymentcategoryclient.d.ts +75 -0
  35. package/ts/eqxpayments/updatepaymentcategoryclient.js +425 -0
  36. package/ts/eqxpayments/updatepaymentgateway.d.ts +71 -0
  37. package/ts/eqxpayments/updatepaymentgateway.js +369 -0
@@ -0,0 +1,397 @@
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/updatemerchant.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.updatemerchant";
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 { merchant_id: "", merchant_name: "", merchant_code: "", status: "", configuration: undefined };
83
+ }
84
+ exports.request = {
85
+ encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.merchant_id !== "") {
87
+ writer.uint32(10).string(message.merchant_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.merchant_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
+ merchant_id: isSet(object.merchant_id) ? globalThis.String(object.merchant_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.merchant_id !== "") {
160
+ obj.merchant_id = message.merchant_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.merchant_id = object.merchant_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: "", updated_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.updated_at !== "") {
212
+ writer.uint32(50).string(message.updated_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.updated_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
+ updated_at: isSet(object.updated_at) ? globalThis.String(object.updated_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.updated_at !== "") {
295
+ obj.updated_at = message.updated_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.updated_at = object.updated_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
+ }
@@ -0,0 +1,75 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxpayments.updatemerchantmodeconfigfee";
3
+ /** Fee configuration structure */
4
+ export interface FeeConfiguration {
5
+ /** percentage or fixed */
6
+ fee_type: string;
7
+ fee_value: number;
8
+ minimum_fee: number;
9
+ maximum_fee: number;
10
+ }
11
+ /** Request message */
12
+ export interface request {
13
+ merchant_id: string;
14
+ payment_mode: string;
15
+ client_id: string;
16
+ fee_configuration: FeeConfiguration | undefined;
17
+ }
18
+ /** Response data structure */
19
+ export interface MerchantModeConfigData {
20
+ id: string;
21
+ merchant_id: string;
22
+ payment_mode: string;
23
+ client_id: string;
24
+ fee_configuration: FeeConfiguration | undefined;
25
+ updated_at: string;
26
+ }
27
+ /** Response message */
28
+ export interface response {
29
+ success: boolean;
30
+ message: string;
31
+ data: MerchantModeConfigData | undefined;
32
+ }
33
+ export declare const FeeConfiguration: {
34
+ encode(message: FeeConfiguration, writer?: _m0.Writer): _m0.Writer;
35
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeeConfiguration;
36
+ fromJSON(object: any): FeeConfiguration;
37
+ toJSON(message: FeeConfiguration): unknown;
38
+ create<I extends Exact<DeepPartial<FeeConfiguration>, I>>(base?: I): FeeConfiguration;
39
+ fromPartial<I extends Exact<DeepPartial<FeeConfiguration>, I>>(object: I): FeeConfiguration;
40
+ };
41
+ export declare const request: {
42
+ encode(message: request, writer?: _m0.Writer): _m0.Writer;
43
+ decode(input: _m0.Reader | Uint8Array, length?: number): request;
44
+ fromJSON(object: any): request;
45
+ toJSON(message: request): unknown;
46
+ create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
47
+ fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
48
+ };
49
+ export declare const MerchantModeConfigData: {
50
+ encode(message: MerchantModeConfigData, writer?: _m0.Writer): _m0.Writer;
51
+ decode(input: _m0.Reader | Uint8Array, length?: number): MerchantModeConfigData;
52
+ fromJSON(object: any): MerchantModeConfigData;
53
+ toJSON(message: MerchantModeConfigData): unknown;
54
+ create<I extends Exact<DeepPartial<MerchantModeConfigData>, I>>(base?: I): MerchantModeConfigData;
55
+ fromPartial<I extends Exact<DeepPartial<MerchantModeConfigData>, I>>(object: I): MerchantModeConfigData;
56
+ };
57
+ export declare const response: {
58
+ encode(message: response, writer?: _m0.Writer): _m0.Writer;
59
+ decode(input: _m0.Reader | Uint8Array, length?: number): response;
60
+ fromJSON(object: any): response;
61
+ toJSON(message: response): unknown;
62
+ create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
63
+ fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
64
+ };
65
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
66
+ 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 {} ? {
67
+ [K in keyof T]?: DeepPartial<T[K]>;
68
+ } : Partial<T>;
69
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
70
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
71
+ [K in keyof P]: Exact<P[K], I[K]>;
72
+ } & {
73
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
74
+ };
75
+ export {};