@stashfin/grpc 1.2.883 → 1.3.3
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 +1 -1
- package/ts/eqxpayments/createmerchant.d.ts +73 -0
- package/ts/eqxpayments/createmerchant.js +397 -0
- package/ts/eqxpayments/createpaymentcategoryclient.d.ts +74 -0
- package/ts/eqxpayments/createpaymentcategoryclient.js +411 -0
- package/ts/eqxpayments/createpaymentgateway.d.ts +71 -0
- package/ts/eqxpayments/createpaymentgateway.js +369 -0
- package/ts/eqxpayments/getgatewayconfiguration.d.ts +92 -0
- package/ts/eqxpayments/getgatewayconfiguration.js +430 -0
- package/ts/eqxpayments/getmerchantmodeconfigfees.d.ts +106 -0
- package/ts/eqxpayments/getmerchantmodeconfigfees.js +627 -0
- package/ts/eqxpayments/listmerchants.d.ts +68 -0
- package/ts/eqxpayments/listmerchants.js +331 -0
- package/ts/eqxpayments/listpaymentcategoryclients.d.ts +87 -0
- package/ts/eqxpayments/listpaymentcategoryclients.js +477 -0
- package/ts/eqxpayments/listpaymentgateways.d.ts +84 -0
- package/ts/eqxpayments/listpaymentgateways.js +433 -0
- package/ts/eqxpayments/merchants_create.d.ts +47 -0
- package/ts/eqxpayments/merchants_create.js +275 -0
- package/ts/eqxpayments/merchants_credentials_rotate.d.ts +41 -0
- package/ts/eqxpayments/merchants_credentials_rotate.js +177 -0
- package/ts/eqxpayments/merchants_get.d.ts +43 -0
- package/ts/eqxpayments/merchants_get.js +255 -0
- package/ts/eqxpayments/merchants_list.d.ts +74 -0
- package/ts/eqxpayments/merchants_list.js +456 -0
- package/ts/eqxpayments/merchants_update.d.ts +44 -0
- package/ts/eqxpayments/merchants_update.js +247 -0
- package/ts/eqxpayments/payment_modes_get.d.ts +40 -0
- package/ts/eqxpayments/payment_modes_get.js +189 -0
- package/ts/eqxpayments/payment_modes_list.d.ts +66 -0
- package/ts/eqxpayments/payment_modes_list.js +365 -0
- package/ts/eqxpayments/routes_create.d.ts +52 -0
- package/ts/eqxpayments/routes_create.js +394 -0
- package/ts/eqxpayments/routes_list.d.ts +62 -0
- package/ts/eqxpayments/routes_list.js +412 -0
- package/ts/eqxpayments/routes_update.d.ts +50 -0
- package/ts/eqxpayments/routes_update.js +364 -0
- package/ts/eqxpayments/spmc_delete.d.ts +38 -0
- package/ts/eqxpayments/spmc_delete.js +162 -0
- package/ts/eqxpayments/spmc_list.d.ts +56 -0
- package/ts/eqxpayments/spmc_list.js +323 -0
- package/ts/eqxpayments/spmc_patch.d.ts +47 -0
- package/ts/eqxpayments/spmc_patch.js +319 -0
- package/ts/eqxpayments/spmc_upsert.d.ts +48 -0
- package/ts/eqxpayments/spmc_upsert.js +312 -0
- package/ts/eqxpayments/subscribers_client_secret_rotate.d.ts +36 -0
- package/ts/eqxpayments/subscribers_client_secret_rotate.js +133 -0
- package/ts/eqxpayments/subscribers_create.d.ts +50 -0
- package/ts/eqxpayments/subscribers_create.js +317 -0
- package/ts/eqxpayments/subscribers_get.d.ts +42 -0
- package/ts/eqxpayments/subscribers_get.js +228 -0
- package/ts/eqxpayments/subscribers_list.d.ts +72 -0
- package/ts/eqxpayments/subscribers_list.js +432 -0
- package/ts/eqxpayments/subscribers_update.d.ts +46 -0
- package/ts/eqxpayments/subscribers_update.js +274 -0
- package/ts/eqxpayments/updatemerchant.d.ts +73 -0
- package/ts/eqxpayments/updatemerchant.js +397 -0
- package/ts/eqxpayments/updatemerchantmodeconfigfee.d.ts +75 -0
- package/ts/eqxpayments/updatemerchantmodeconfigfee.js +417 -0
- package/ts/eqxpayments/updatepaymentcategoryclient.d.ts +75 -0
- package/ts/eqxpayments/updatepaymentcategoryclient.js +425 -0
- package/ts/eqxpayments/updatepaymentgateway.d.ts +71 -0
- package/ts/eqxpayments/updatepaymentgateway.js +369 -0
- package/ts/eqxpayments/vendors_create.d.ts +82 -0
- package/ts/eqxpayments/vendors_create.js +481 -0
- package/ts/eqxpayments/vendors_get.d.ts +78 -0
- package/ts/eqxpayments/vendors_get.js +435 -0
- package/ts/eqxpayments/vendors_list.d.ts +111 -0
- package/ts/eqxpayments/vendors_list.js +653 -0
- package/ts/eqxpayments/vendors_update.d.ts +82 -0
- package/ts/eqxpayments/vendors_update.js +481 -0
- package/ts/eqxpayments.d.ts +325 -0
- package/ts/eqxpayments.js +231 -0
package/package.json
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
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 {};
|
|
@@ -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/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
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxpayments.createpaymentcategoryclient";
|
|
3
|
+
/** Merchant mode configuration structure */
|
|
4
|
+
export interface MerchantModeConfig {
|
|
5
|
+
merchant_id: string;
|
|
6
|
+
payment_mode: string;
|
|
7
|
+
status: string;
|
|
8
|
+
}
|
|
9
|
+
/** Request message */
|
|
10
|
+
export interface request {
|
|
11
|
+
client_name: string;
|
|
12
|
+
client_code: string;
|
|
13
|
+
payment_category: string;
|
|
14
|
+
status: string;
|
|
15
|
+
merchant_mode_configs: MerchantModeConfig[];
|
|
16
|
+
}
|
|
17
|
+
/** Response data structure */
|
|
18
|
+
export interface PaymentCategoryClientData {
|
|
19
|
+
id: string;
|
|
20
|
+
client_name: string;
|
|
21
|
+
client_code: string;
|
|
22
|
+
payment_category: string;
|
|
23
|
+
status: string;
|
|
24
|
+
created_at: string;
|
|
25
|
+
}
|
|
26
|
+
/** Response message */
|
|
27
|
+
export interface response {
|
|
28
|
+
success: boolean;
|
|
29
|
+
message: string;
|
|
30
|
+
data: PaymentCategoryClientData | undefined;
|
|
31
|
+
}
|
|
32
|
+
export declare const MerchantModeConfig: {
|
|
33
|
+
encode(message: MerchantModeConfig, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MerchantModeConfig;
|
|
35
|
+
fromJSON(object: any): MerchantModeConfig;
|
|
36
|
+
toJSON(message: MerchantModeConfig): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<MerchantModeConfig>, I>>(base?: I): MerchantModeConfig;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<MerchantModeConfig>, I>>(object: I): MerchantModeConfig;
|
|
39
|
+
};
|
|
40
|
+
export declare const request: {
|
|
41
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
43
|
+
fromJSON(object: any): request;
|
|
44
|
+
toJSON(message: request): unknown;
|
|
45
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
46
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
47
|
+
};
|
|
48
|
+
export declare const PaymentCategoryClientData: {
|
|
49
|
+
encode(message: PaymentCategoryClientData, writer?: _m0.Writer): _m0.Writer;
|
|
50
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PaymentCategoryClientData;
|
|
51
|
+
fromJSON(object: any): PaymentCategoryClientData;
|
|
52
|
+
toJSON(message: PaymentCategoryClientData): unknown;
|
|
53
|
+
create<I extends Exact<DeepPartial<PaymentCategoryClientData>, I>>(base?: I): PaymentCategoryClientData;
|
|
54
|
+
fromPartial<I extends Exact<DeepPartial<PaymentCategoryClientData>, I>>(object: I): PaymentCategoryClientData;
|
|
55
|
+
};
|
|
56
|
+
export declare const response: {
|
|
57
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
58
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
59
|
+
fromJSON(object: any): response;
|
|
60
|
+
toJSON(message: response): unknown;
|
|
61
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
62
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
63
|
+
};
|
|
64
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
65
|
+
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 {} ? {
|
|
66
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
67
|
+
} : Partial<T>;
|
|
68
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
69
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
70
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
71
|
+
} & {
|
|
72
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
73
|
+
};
|
|
74
|
+
export {};
|