@technova-tech/olive-proto-lib 1.2.0
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/accounts/accounts.js +11726 -0
- package/admin/admin.js +6902 -0
- package/audit/audit.js +984 -0
- package/bills/bills.js +2363 -0
- package/business/business.js +16432 -0
- package/google/protobuf/any.js +113 -0
- package/google/protobuf/struct.js +357 -0
- package/image/recognition.js +456 -0
- package/index.js +46 -0
- package/package.json +31 -0
- package/pos/transactions.js +2084 -0
- package/pos.v1/auth.js +1179 -0
- package/pos.v1/card-transactions.js +2473 -0
- package/pos.v1/eod.js +2416 -0
- package/pos.v1/merchants.js +1552 -0
- package/pos.v1/terminal-transactions.js +3792 -0
- package/pos.v1/terminal-types.js +3888 -0
- package/pos.v1/terminals.js +32605 -0
- package/pos.v1/transactions.js +2918 -0
- package/shared/response.js +233 -0
- package/storage/storage.js +476 -0
- package/terminal/terminal.js +12583 -0
- package/transfer/transfer.js +3609 -0
- package/types/accounts/accounts.d.ts +3943 -0
- package/types/admin/admin.d.ts +2348 -0
- package/types/audit/audit.d.ts +323 -0
- package/types/bills/bills.d.ts +731 -0
- package/types/business/business.d.ts +7630 -0
- package/types/google/protobuf/any.d.ts +27 -0
- package/types/google/protobuf/struct.d.ts +175 -0
- package/types/image/recognition.d.ts +147 -0
- package/types/index.d.ts +43 -0
- package/types/pos/transactions.d.ts +667 -0
- package/types/pos.v1/auth.d.ts +374 -0
- package/types/pos.v1/card-transactions.d.ts +808 -0
- package/types/pos.v1/eod.d.ts +819 -0
- package/types/pos.v1/merchants.d.ts +566 -0
- package/types/pos.v1/terminal-transactions.d.ts +1342 -0
- package/types/pos.v1/terminal-types.d.ts +1215 -0
- package/types/pos.v1/terminals.d.ts +11142 -0
- package/types/pos.v1/transactions.d.ts +1057 -0
- package/types/shared/response.d.ts +65 -0
- package/types/storage/storage.d.ts +153 -0
- package/types/terminal/terminal.d.ts +5482 -0
- package/types/transfer/transfer.d.ts +1148 -0
- package/types/users/users.d.ts +4336 -0
- package/types/verifications/verifications.d.ts +2952 -0
- package/users/users.js +12683 -0
- package/verifications/verifications.js +8194 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as pb_1 from "google-protobuf";
|
|
3
|
+
import * as grpc_1 from "@grpc/grpc-js";
|
|
4
|
+
export declare namespace com.pkg.pos {
|
|
5
|
+
export class InitializePOSTransactionRequest extends pb_1.Message {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(data?: any[] | {
|
|
8
|
+
accountId?: string;
|
|
9
|
+
businessId?: string;
|
|
10
|
+
terminalId?: string;
|
|
11
|
+
amount?: number;
|
|
12
|
+
meta?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
});
|
|
15
|
+
get accountId(): string;
|
|
16
|
+
set accountId(value: string);
|
|
17
|
+
get businessId(): string;
|
|
18
|
+
set businessId(value: string);
|
|
19
|
+
get terminalId(): string;
|
|
20
|
+
set terminalId(value: string);
|
|
21
|
+
get amount(): number;
|
|
22
|
+
set amount(value: number);
|
|
23
|
+
get meta(): string;
|
|
24
|
+
set meta(value: string);
|
|
25
|
+
get type(): string;
|
|
26
|
+
set type(value: string);
|
|
27
|
+
static fromObject(data: {
|
|
28
|
+
accountId?: string;
|
|
29
|
+
businessId?: string;
|
|
30
|
+
terminalId?: string;
|
|
31
|
+
amount?: number;
|
|
32
|
+
meta?: string;
|
|
33
|
+
type?: string;
|
|
34
|
+
}): InitializePOSTransactionRequest;
|
|
35
|
+
toObject(): {
|
|
36
|
+
accountId?: string | undefined;
|
|
37
|
+
businessId?: string | undefined;
|
|
38
|
+
terminalId?: string | undefined;
|
|
39
|
+
amount?: number | undefined;
|
|
40
|
+
meta?: string | undefined;
|
|
41
|
+
type?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
serialize(): Uint8Array;
|
|
44
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
45
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InitializePOSTransactionRequest;
|
|
46
|
+
serializeBinary(): Uint8Array;
|
|
47
|
+
static deserializeBinary(bytes: Uint8Array): InitializePOSTransactionRequest;
|
|
48
|
+
}
|
|
49
|
+
export class ConfirmPOSTransactionRequest extends pb_1.Message {
|
|
50
|
+
#private;
|
|
51
|
+
constructor(data?: any[] | {
|
|
52
|
+
reference?: string;
|
|
53
|
+
status?: string;
|
|
54
|
+
meta?: string;
|
|
55
|
+
type?: string;
|
|
56
|
+
});
|
|
57
|
+
get reference(): string;
|
|
58
|
+
set reference(value: string);
|
|
59
|
+
get status(): string;
|
|
60
|
+
set status(value: string);
|
|
61
|
+
get meta(): string;
|
|
62
|
+
set meta(value: string);
|
|
63
|
+
get type(): string;
|
|
64
|
+
set type(value: string);
|
|
65
|
+
static fromObject(data: {
|
|
66
|
+
reference?: string;
|
|
67
|
+
status?: string;
|
|
68
|
+
meta?: string;
|
|
69
|
+
type?: string;
|
|
70
|
+
}): ConfirmPOSTransactionRequest;
|
|
71
|
+
toObject(): {
|
|
72
|
+
reference?: string | undefined;
|
|
73
|
+
status?: string | undefined;
|
|
74
|
+
meta?: string | undefined;
|
|
75
|
+
type?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
serialize(): Uint8Array;
|
|
78
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
79
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ConfirmPOSTransactionRequest;
|
|
80
|
+
serializeBinary(): Uint8Array;
|
|
81
|
+
static deserializeBinary(bytes: Uint8Array): ConfirmPOSTransactionRequest;
|
|
82
|
+
}
|
|
83
|
+
export class ValidationErrors extends pb_1.Message {
|
|
84
|
+
#private;
|
|
85
|
+
constructor(data?: any[] | {
|
|
86
|
+
field?: string;
|
|
87
|
+
message?: string;
|
|
88
|
+
});
|
|
89
|
+
get field(): string;
|
|
90
|
+
set field(value: string);
|
|
91
|
+
get message(): string;
|
|
92
|
+
set message(value: string);
|
|
93
|
+
static fromObject(data: {
|
|
94
|
+
field?: string;
|
|
95
|
+
message?: string;
|
|
96
|
+
}): ValidationErrors;
|
|
97
|
+
toObject(): {
|
|
98
|
+
field?: string | undefined;
|
|
99
|
+
message?: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
serialize(): Uint8Array;
|
|
102
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
103
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ValidationErrors;
|
|
104
|
+
serializeBinary(): Uint8Array;
|
|
105
|
+
static deserializeBinary(bytes: Uint8Array): ValidationErrors;
|
|
106
|
+
}
|
|
107
|
+
export class PosTransaction extends pb_1.Message {
|
|
108
|
+
#private;
|
|
109
|
+
constructor(data?: any[] | {
|
|
110
|
+
account?: string;
|
|
111
|
+
provider?: string;
|
|
112
|
+
reference?: string;
|
|
113
|
+
amount?: string;
|
|
114
|
+
meta?: string;
|
|
115
|
+
status?: string;
|
|
116
|
+
rrn?: string;
|
|
117
|
+
stan?: string;
|
|
118
|
+
type?: string;
|
|
119
|
+
createdAt?: string;
|
|
120
|
+
updatedAt?: string;
|
|
121
|
+
});
|
|
122
|
+
get account(): string;
|
|
123
|
+
set account(value: string);
|
|
124
|
+
get provider(): string;
|
|
125
|
+
set provider(value: string);
|
|
126
|
+
get reference(): string;
|
|
127
|
+
set reference(value: string);
|
|
128
|
+
get amount(): string;
|
|
129
|
+
set amount(value: string);
|
|
130
|
+
get meta(): string;
|
|
131
|
+
set meta(value: string);
|
|
132
|
+
get status(): string;
|
|
133
|
+
set status(value: string);
|
|
134
|
+
get rrn(): string;
|
|
135
|
+
set rrn(value: string);
|
|
136
|
+
get stan(): string;
|
|
137
|
+
set stan(value: string);
|
|
138
|
+
get type(): string;
|
|
139
|
+
set type(value: string);
|
|
140
|
+
get createdAt(): string;
|
|
141
|
+
set createdAt(value: string);
|
|
142
|
+
get updatedAt(): string;
|
|
143
|
+
set updatedAt(value: string);
|
|
144
|
+
static fromObject(data: {
|
|
145
|
+
account?: string;
|
|
146
|
+
provider?: string;
|
|
147
|
+
reference?: string;
|
|
148
|
+
amount?: string;
|
|
149
|
+
meta?: string;
|
|
150
|
+
status?: string;
|
|
151
|
+
rrn?: string;
|
|
152
|
+
stan?: string;
|
|
153
|
+
type?: string;
|
|
154
|
+
createdAt?: string;
|
|
155
|
+
updatedAt?: string;
|
|
156
|
+
}): PosTransaction;
|
|
157
|
+
toObject(): {
|
|
158
|
+
account?: string | undefined;
|
|
159
|
+
provider?: string | undefined;
|
|
160
|
+
reference?: string | undefined;
|
|
161
|
+
amount?: string | undefined;
|
|
162
|
+
meta?: string | undefined;
|
|
163
|
+
status?: string | undefined;
|
|
164
|
+
rrn?: string | undefined;
|
|
165
|
+
stan?: string | undefined;
|
|
166
|
+
type?: string | undefined;
|
|
167
|
+
createdAt?: string | undefined;
|
|
168
|
+
updatedAt?: string | undefined;
|
|
169
|
+
};
|
|
170
|
+
serialize(): Uint8Array;
|
|
171
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
172
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PosTransaction;
|
|
173
|
+
serializeBinary(): Uint8Array;
|
|
174
|
+
static deserializeBinary(bytes: Uint8Array): PosTransaction;
|
|
175
|
+
}
|
|
176
|
+
export class InitiatePOSTransactionResponseData extends pb_1.Message {
|
|
177
|
+
#private;
|
|
178
|
+
constructor(data?: any[] | {
|
|
179
|
+
rrn?: string;
|
|
180
|
+
stan?: string;
|
|
181
|
+
route?: string;
|
|
182
|
+
});
|
|
183
|
+
get rrn(): string;
|
|
184
|
+
set rrn(value: string);
|
|
185
|
+
get stan(): string;
|
|
186
|
+
set stan(value: string);
|
|
187
|
+
get route(): string;
|
|
188
|
+
set route(value: string);
|
|
189
|
+
static fromObject(data: {
|
|
190
|
+
rrn?: string;
|
|
191
|
+
stan?: string;
|
|
192
|
+
route?: string;
|
|
193
|
+
}): InitiatePOSTransactionResponseData;
|
|
194
|
+
toObject(): {
|
|
195
|
+
rrn?: string | undefined;
|
|
196
|
+
stan?: string | undefined;
|
|
197
|
+
route?: string | undefined;
|
|
198
|
+
};
|
|
199
|
+
serialize(): Uint8Array;
|
|
200
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
201
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InitiatePOSTransactionResponseData;
|
|
202
|
+
serializeBinary(): Uint8Array;
|
|
203
|
+
static deserializeBinary(bytes: Uint8Array): InitiatePOSTransactionResponseData;
|
|
204
|
+
}
|
|
205
|
+
export class InitiatePOSTransactionResponse extends pb_1.Message {
|
|
206
|
+
#private;
|
|
207
|
+
constructor(data?: any[] | {
|
|
208
|
+
success?: boolean;
|
|
209
|
+
status?: number;
|
|
210
|
+
message?: string;
|
|
211
|
+
data?: InitiatePOSTransactionResponseData;
|
|
212
|
+
errors?: ValidationErrors;
|
|
213
|
+
});
|
|
214
|
+
get success(): boolean;
|
|
215
|
+
set success(value: boolean);
|
|
216
|
+
get status(): number;
|
|
217
|
+
set status(value: number);
|
|
218
|
+
get message(): string;
|
|
219
|
+
set message(value: string);
|
|
220
|
+
get data(): InitiatePOSTransactionResponseData;
|
|
221
|
+
set data(value: InitiatePOSTransactionResponseData);
|
|
222
|
+
get hasData(): boolean;
|
|
223
|
+
get errors(): ValidationErrors;
|
|
224
|
+
set errors(value: ValidationErrors);
|
|
225
|
+
get hasErrors(): boolean;
|
|
226
|
+
static fromObject(data: {
|
|
227
|
+
success?: boolean;
|
|
228
|
+
status?: number;
|
|
229
|
+
message?: string;
|
|
230
|
+
data?: ReturnType<typeof InitiatePOSTransactionResponseData.prototype.toObject>;
|
|
231
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>;
|
|
232
|
+
}): InitiatePOSTransactionResponse;
|
|
233
|
+
toObject(): {
|
|
234
|
+
success?: boolean | undefined;
|
|
235
|
+
status?: number | undefined;
|
|
236
|
+
message?: string | undefined;
|
|
237
|
+
data?: {
|
|
238
|
+
rrn?: string | undefined;
|
|
239
|
+
stan?: string | undefined;
|
|
240
|
+
route?: string | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
errors?: {
|
|
243
|
+
field?: string | undefined;
|
|
244
|
+
message?: string | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
};
|
|
247
|
+
serialize(): Uint8Array;
|
|
248
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
249
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InitiatePOSTransactionResponse;
|
|
250
|
+
serializeBinary(): Uint8Array;
|
|
251
|
+
static deserializeBinary(bytes: Uint8Array): InitiatePOSTransactionResponse;
|
|
252
|
+
}
|
|
253
|
+
export class DefaultResponse extends pb_1.Message {
|
|
254
|
+
#private;
|
|
255
|
+
constructor(data?: any[] | {
|
|
256
|
+
success?: boolean;
|
|
257
|
+
status?: number;
|
|
258
|
+
message?: string;
|
|
259
|
+
data?: PosTransaction;
|
|
260
|
+
errors?: ValidationErrors;
|
|
261
|
+
});
|
|
262
|
+
get success(): boolean;
|
|
263
|
+
set success(value: boolean);
|
|
264
|
+
get status(): number;
|
|
265
|
+
set status(value: number);
|
|
266
|
+
get message(): string;
|
|
267
|
+
set message(value: string);
|
|
268
|
+
get data(): PosTransaction;
|
|
269
|
+
set data(value: PosTransaction);
|
|
270
|
+
get hasData(): boolean;
|
|
271
|
+
get errors(): ValidationErrors;
|
|
272
|
+
set errors(value: ValidationErrors);
|
|
273
|
+
get hasErrors(): boolean;
|
|
274
|
+
static fromObject(data: {
|
|
275
|
+
success?: boolean;
|
|
276
|
+
status?: number;
|
|
277
|
+
message?: string;
|
|
278
|
+
data?: ReturnType<typeof PosTransaction.prototype.toObject>;
|
|
279
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>;
|
|
280
|
+
}): DefaultResponse;
|
|
281
|
+
toObject(): {
|
|
282
|
+
success?: boolean | undefined;
|
|
283
|
+
status?: number | undefined;
|
|
284
|
+
message?: string | undefined;
|
|
285
|
+
data?: {
|
|
286
|
+
account?: string | undefined;
|
|
287
|
+
provider?: string | undefined;
|
|
288
|
+
reference?: string | undefined;
|
|
289
|
+
amount?: string | undefined;
|
|
290
|
+
meta?: string | undefined;
|
|
291
|
+
status?: string | undefined;
|
|
292
|
+
rrn?: string | undefined;
|
|
293
|
+
stan?: string | undefined;
|
|
294
|
+
type?: string | undefined;
|
|
295
|
+
createdAt?: string | undefined;
|
|
296
|
+
updatedAt?: string | undefined;
|
|
297
|
+
} | undefined;
|
|
298
|
+
errors?: {
|
|
299
|
+
field?: string | undefined;
|
|
300
|
+
message?: string | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
};
|
|
303
|
+
serialize(): Uint8Array;
|
|
304
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
305
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DefaultResponse;
|
|
306
|
+
serializeBinary(): Uint8Array;
|
|
307
|
+
static deserializeBinary(bytes: Uint8Array): DefaultResponse;
|
|
308
|
+
}
|
|
309
|
+
export class QueryTransactionsRequest extends pb_1.Message {
|
|
310
|
+
#private;
|
|
311
|
+
constructor(data?: any[] | {
|
|
312
|
+
accountId?: string;
|
|
313
|
+
startDate?: string;
|
|
314
|
+
endDate?: string;
|
|
315
|
+
rrn?: string;
|
|
316
|
+
amount?: string;
|
|
317
|
+
type?: string;
|
|
318
|
+
});
|
|
319
|
+
get accountId(): string;
|
|
320
|
+
set accountId(value: string);
|
|
321
|
+
get startDate(): string;
|
|
322
|
+
set startDate(value: string);
|
|
323
|
+
get endDate(): string;
|
|
324
|
+
set endDate(value: string);
|
|
325
|
+
get rrn(): string;
|
|
326
|
+
set rrn(value: string);
|
|
327
|
+
get amount(): string;
|
|
328
|
+
set amount(value: string);
|
|
329
|
+
get type(): string;
|
|
330
|
+
set type(value: string);
|
|
331
|
+
static fromObject(data: {
|
|
332
|
+
accountId?: string;
|
|
333
|
+
startDate?: string;
|
|
334
|
+
endDate?: string;
|
|
335
|
+
rrn?: string;
|
|
336
|
+
amount?: string;
|
|
337
|
+
type?: string;
|
|
338
|
+
}): QueryTransactionsRequest;
|
|
339
|
+
toObject(): {
|
|
340
|
+
accountId?: string | undefined;
|
|
341
|
+
startDate?: string | undefined;
|
|
342
|
+
endDate?: string | undefined;
|
|
343
|
+
rrn?: string | undefined;
|
|
344
|
+
amount?: string | undefined;
|
|
345
|
+
type?: string | undefined;
|
|
346
|
+
};
|
|
347
|
+
serialize(): Uint8Array;
|
|
348
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
349
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryTransactionsRequest;
|
|
350
|
+
serializeBinary(): Uint8Array;
|
|
351
|
+
static deserializeBinary(bytes: Uint8Array): QueryTransactionsRequest;
|
|
352
|
+
}
|
|
353
|
+
export class GetTransactionRequest extends pb_1.Message {
|
|
354
|
+
#private;
|
|
355
|
+
constructor(data?: any[] | {
|
|
356
|
+
accountId?: string;
|
|
357
|
+
rrn?: string;
|
|
358
|
+
type?: string;
|
|
359
|
+
});
|
|
360
|
+
get accountId(): string;
|
|
361
|
+
set accountId(value: string);
|
|
362
|
+
get rrn(): string;
|
|
363
|
+
set rrn(value: string);
|
|
364
|
+
get type(): string;
|
|
365
|
+
set type(value: string);
|
|
366
|
+
static fromObject(data: {
|
|
367
|
+
accountId?: string;
|
|
368
|
+
rrn?: string;
|
|
369
|
+
type?: string;
|
|
370
|
+
}): GetTransactionRequest;
|
|
371
|
+
toObject(): {
|
|
372
|
+
accountId?: string | undefined;
|
|
373
|
+
rrn?: string | undefined;
|
|
374
|
+
type?: string | undefined;
|
|
375
|
+
};
|
|
376
|
+
serialize(): Uint8Array;
|
|
377
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
378
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetTransactionRequest;
|
|
379
|
+
serializeBinary(): Uint8Array;
|
|
380
|
+
static deserializeBinary(bytes: Uint8Array): GetTransactionRequest;
|
|
381
|
+
}
|
|
382
|
+
export class TransactionResponse extends pb_1.Message {
|
|
383
|
+
#private;
|
|
384
|
+
constructor(data?: any[] | {
|
|
385
|
+
success?: boolean;
|
|
386
|
+
status?: number;
|
|
387
|
+
message?: string;
|
|
388
|
+
data?: PosTransaction;
|
|
389
|
+
errors?: ValidationErrors;
|
|
390
|
+
});
|
|
391
|
+
get success(): boolean;
|
|
392
|
+
set success(value: boolean);
|
|
393
|
+
get status(): number;
|
|
394
|
+
set status(value: number);
|
|
395
|
+
get message(): string;
|
|
396
|
+
set message(value: string);
|
|
397
|
+
get data(): PosTransaction;
|
|
398
|
+
set data(value: PosTransaction);
|
|
399
|
+
get hasData(): boolean;
|
|
400
|
+
get errors(): ValidationErrors;
|
|
401
|
+
set errors(value: ValidationErrors);
|
|
402
|
+
get hasErrors(): boolean;
|
|
403
|
+
static fromObject(data: {
|
|
404
|
+
success?: boolean;
|
|
405
|
+
status?: number;
|
|
406
|
+
message?: string;
|
|
407
|
+
data?: ReturnType<typeof PosTransaction.prototype.toObject>;
|
|
408
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>;
|
|
409
|
+
}): TransactionResponse;
|
|
410
|
+
toObject(): {
|
|
411
|
+
success?: boolean | undefined;
|
|
412
|
+
status?: number | undefined;
|
|
413
|
+
message?: string | undefined;
|
|
414
|
+
data?: {
|
|
415
|
+
account?: string | undefined;
|
|
416
|
+
provider?: string | undefined;
|
|
417
|
+
reference?: string | undefined;
|
|
418
|
+
amount?: string | undefined;
|
|
419
|
+
meta?: string | undefined;
|
|
420
|
+
status?: string | undefined;
|
|
421
|
+
rrn?: string | undefined;
|
|
422
|
+
stan?: string | undefined;
|
|
423
|
+
type?: string | undefined;
|
|
424
|
+
createdAt?: string | undefined;
|
|
425
|
+
updatedAt?: string | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
errors?: {
|
|
428
|
+
field?: string | undefined;
|
|
429
|
+
message?: string | undefined;
|
|
430
|
+
} | undefined;
|
|
431
|
+
};
|
|
432
|
+
serialize(): Uint8Array;
|
|
433
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
434
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TransactionResponse;
|
|
435
|
+
serializeBinary(): Uint8Array;
|
|
436
|
+
static deserializeBinary(bytes: Uint8Array): TransactionResponse;
|
|
437
|
+
}
|
|
438
|
+
export class TransactionsResponse extends pb_1.Message {
|
|
439
|
+
#private;
|
|
440
|
+
constructor(data?: any[] | {
|
|
441
|
+
success?: boolean;
|
|
442
|
+
status?: number;
|
|
443
|
+
message?: string;
|
|
444
|
+
data?: PosTransaction[];
|
|
445
|
+
errors?: ValidationErrors;
|
|
446
|
+
});
|
|
447
|
+
get success(): boolean;
|
|
448
|
+
set success(value: boolean);
|
|
449
|
+
get status(): number;
|
|
450
|
+
set status(value: number);
|
|
451
|
+
get message(): string;
|
|
452
|
+
set message(value: string);
|
|
453
|
+
get data(): PosTransaction[];
|
|
454
|
+
set data(value: PosTransaction[]);
|
|
455
|
+
get errors(): ValidationErrors;
|
|
456
|
+
set errors(value: ValidationErrors);
|
|
457
|
+
get hasErrors(): boolean;
|
|
458
|
+
static fromObject(data: {
|
|
459
|
+
success?: boolean;
|
|
460
|
+
status?: number;
|
|
461
|
+
message?: string;
|
|
462
|
+
data?: ReturnType<typeof PosTransaction.prototype.toObject>[];
|
|
463
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>;
|
|
464
|
+
}): TransactionsResponse;
|
|
465
|
+
toObject(): {
|
|
466
|
+
success?: boolean | undefined;
|
|
467
|
+
status?: number | undefined;
|
|
468
|
+
message?: string | undefined;
|
|
469
|
+
data?: {
|
|
470
|
+
account?: string | undefined;
|
|
471
|
+
provider?: string | undefined;
|
|
472
|
+
reference?: string | undefined;
|
|
473
|
+
amount?: string | undefined;
|
|
474
|
+
meta?: string | undefined;
|
|
475
|
+
status?: string | undefined;
|
|
476
|
+
rrn?: string | undefined;
|
|
477
|
+
stan?: string | undefined;
|
|
478
|
+
type?: string | undefined;
|
|
479
|
+
createdAt?: string | undefined;
|
|
480
|
+
updatedAt?: string | undefined;
|
|
481
|
+
}[] | undefined;
|
|
482
|
+
errors?: {
|
|
483
|
+
field?: string | undefined;
|
|
484
|
+
message?: string | undefined;
|
|
485
|
+
} | undefined;
|
|
486
|
+
};
|
|
487
|
+
serialize(): Uint8Array;
|
|
488
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
489
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TransactionsResponse;
|
|
490
|
+
serializeBinary(): Uint8Array;
|
|
491
|
+
static deserializeBinary(bytes: Uint8Array): TransactionsResponse;
|
|
492
|
+
}
|
|
493
|
+
export class SaveReversalTransactionRequest extends pb_1.Message {
|
|
494
|
+
#private;
|
|
495
|
+
constructor(data?: any[] | {
|
|
496
|
+
accountId?: string;
|
|
497
|
+
businessId?: string;
|
|
498
|
+
terminalId?: string;
|
|
499
|
+
amount?: number;
|
|
500
|
+
meta?: string;
|
|
501
|
+
rrn?: string;
|
|
502
|
+
stan?: string;
|
|
503
|
+
type?: string;
|
|
504
|
+
});
|
|
505
|
+
get accountId(): string;
|
|
506
|
+
set accountId(value: string);
|
|
507
|
+
get businessId(): string;
|
|
508
|
+
set businessId(value: string);
|
|
509
|
+
get terminalId(): string;
|
|
510
|
+
set terminalId(value: string);
|
|
511
|
+
get amount(): number;
|
|
512
|
+
set amount(value: number);
|
|
513
|
+
get meta(): string;
|
|
514
|
+
set meta(value: string);
|
|
515
|
+
get rrn(): string;
|
|
516
|
+
set rrn(value: string);
|
|
517
|
+
get stan(): string;
|
|
518
|
+
set stan(value: string);
|
|
519
|
+
get type(): string;
|
|
520
|
+
set type(value: string);
|
|
521
|
+
static fromObject(data: {
|
|
522
|
+
accountId?: string;
|
|
523
|
+
businessId?: string;
|
|
524
|
+
terminalId?: string;
|
|
525
|
+
amount?: number;
|
|
526
|
+
meta?: string;
|
|
527
|
+
rrn?: string;
|
|
528
|
+
stan?: string;
|
|
529
|
+
type?: string;
|
|
530
|
+
}): SaveReversalTransactionRequest;
|
|
531
|
+
toObject(): {
|
|
532
|
+
accountId?: string | undefined;
|
|
533
|
+
businessId?: string | undefined;
|
|
534
|
+
terminalId?: string | undefined;
|
|
535
|
+
amount?: number | undefined;
|
|
536
|
+
meta?: string | undefined;
|
|
537
|
+
rrn?: string | undefined;
|
|
538
|
+
stan?: string | undefined;
|
|
539
|
+
type?: string | undefined;
|
|
540
|
+
};
|
|
541
|
+
serialize(): Uint8Array;
|
|
542
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
543
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SaveReversalTransactionRequest;
|
|
544
|
+
serializeBinary(): Uint8Array;
|
|
545
|
+
static deserializeBinary(bytes: Uint8Array): SaveReversalTransactionRequest;
|
|
546
|
+
}
|
|
547
|
+
export class DeleteReversalTransactionRequest extends pb_1.Message {
|
|
548
|
+
#private;
|
|
549
|
+
constructor(data?: any[] | {
|
|
550
|
+
accountId?: string;
|
|
551
|
+
rrn?: string;
|
|
552
|
+
type?: string;
|
|
553
|
+
});
|
|
554
|
+
get accountId(): string;
|
|
555
|
+
set accountId(value: string);
|
|
556
|
+
get rrn(): string;
|
|
557
|
+
set rrn(value: string);
|
|
558
|
+
get type(): string;
|
|
559
|
+
set type(value: string);
|
|
560
|
+
static fromObject(data: {
|
|
561
|
+
accountId?: string;
|
|
562
|
+
rrn?: string;
|
|
563
|
+
type?: string;
|
|
564
|
+
}): DeleteReversalTransactionRequest;
|
|
565
|
+
toObject(): {
|
|
566
|
+
accountId?: string | undefined;
|
|
567
|
+
rrn?: string | undefined;
|
|
568
|
+
type?: string | undefined;
|
|
569
|
+
};
|
|
570
|
+
serialize(): Uint8Array;
|
|
571
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
572
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DeleteReversalTransactionRequest;
|
|
573
|
+
serializeBinary(): Uint8Array;
|
|
574
|
+
static deserializeBinary(bytes: Uint8Array): DeleteReversalTransactionRequest;
|
|
575
|
+
}
|
|
576
|
+
interface GrpcPromiseServiceInterface<P, R> {
|
|
577
|
+
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
578
|
+
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
579
|
+
}
|
|
580
|
+
export abstract class UnimplementedPOSTransactionServiceService {
|
|
581
|
+
static definition: {
|
|
582
|
+
InitializeTransaction: {
|
|
583
|
+
path: string;
|
|
584
|
+
requestStream: boolean;
|
|
585
|
+
responseStream: boolean;
|
|
586
|
+
requestSerialize: (message: InitializePOSTransactionRequest) => Buffer;
|
|
587
|
+
requestDeserialize: (bytes: Buffer) => InitializePOSTransactionRequest;
|
|
588
|
+
responseSerialize: (message: InitiatePOSTransactionResponse) => Buffer;
|
|
589
|
+
responseDeserialize: (bytes: Buffer) => InitiatePOSTransactionResponse;
|
|
590
|
+
};
|
|
591
|
+
ConfirmTransaction: {
|
|
592
|
+
path: string;
|
|
593
|
+
requestStream: boolean;
|
|
594
|
+
responseStream: boolean;
|
|
595
|
+
requestSerialize: (message: ConfirmPOSTransactionRequest) => Buffer;
|
|
596
|
+
requestDeserialize: (bytes: Buffer) => ConfirmPOSTransactionRequest;
|
|
597
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
598
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
599
|
+
};
|
|
600
|
+
GetTransaction: {
|
|
601
|
+
path: string;
|
|
602
|
+
requestStream: boolean;
|
|
603
|
+
responseStream: boolean;
|
|
604
|
+
requestSerialize: (message: GetTransactionRequest) => Buffer;
|
|
605
|
+
requestDeserialize: (bytes: Buffer) => GetTransactionRequest;
|
|
606
|
+
responseSerialize: (message: TransactionResponse) => Buffer;
|
|
607
|
+
responseDeserialize: (bytes: Buffer) => TransactionResponse;
|
|
608
|
+
};
|
|
609
|
+
GetTransactions: {
|
|
610
|
+
path: string;
|
|
611
|
+
requestStream: boolean;
|
|
612
|
+
responseStream: boolean;
|
|
613
|
+
requestSerialize: (message: QueryTransactionsRequest) => Buffer;
|
|
614
|
+
requestDeserialize: (bytes: Buffer) => QueryTransactionsRequest;
|
|
615
|
+
responseSerialize: (message: TransactionsResponse) => Buffer;
|
|
616
|
+
responseDeserialize: (bytes: Buffer) => TransactionsResponse;
|
|
617
|
+
};
|
|
618
|
+
GetReversalTransactions: {
|
|
619
|
+
path: string;
|
|
620
|
+
requestStream: boolean;
|
|
621
|
+
responseStream: boolean;
|
|
622
|
+
requestSerialize: (message: GetTransactionRequest) => Buffer;
|
|
623
|
+
requestDeserialize: (bytes: Buffer) => GetTransactionRequest;
|
|
624
|
+
responseSerialize: (message: TransactionsResponse) => Buffer;
|
|
625
|
+
responseDeserialize: (bytes: Buffer) => TransactionsResponse;
|
|
626
|
+
};
|
|
627
|
+
SaveReversalTransaction: {
|
|
628
|
+
path: string;
|
|
629
|
+
requestStream: boolean;
|
|
630
|
+
responseStream: boolean;
|
|
631
|
+
requestSerialize: (message: SaveReversalTransactionRequest) => Buffer;
|
|
632
|
+
requestDeserialize: (bytes: Buffer) => SaveReversalTransactionRequest;
|
|
633
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
634
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
635
|
+
};
|
|
636
|
+
DeleteReversalTransaction: {
|
|
637
|
+
path: string;
|
|
638
|
+
requestStream: boolean;
|
|
639
|
+
responseStream: boolean;
|
|
640
|
+
requestSerialize: (message: DeleteReversalTransactionRequest) => Buffer;
|
|
641
|
+
requestDeserialize: (bytes: Buffer) => DeleteReversalTransactionRequest;
|
|
642
|
+
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
643
|
+
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
[method: string]: grpc_1.UntypedHandleCall;
|
|
647
|
+
abstract InitializeTransaction(call: grpc_1.ServerUnaryCall<InitializePOSTransactionRequest, InitiatePOSTransactionResponse>, callback: grpc_1.sendUnaryData<InitiatePOSTransactionResponse>): void;
|
|
648
|
+
abstract ConfirmTransaction(call: grpc_1.ServerUnaryCall<ConfirmPOSTransactionRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
649
|
+
abstract GetTransaction(call: grpc_1.ServerUnaryCall<GetTransactionRequest, TransactionResponse>, callback: grpc_1.sendUnaryData<TransactionResponse>): void;
|
|
650
|
+
abstract GetTransactions(call: grpc_1.ServerUnaryCall<QueryTransactionsRequest, TransactionsResponse>, callback: grpc_1.sendUnaryData<TransactionsResponse>): void;
|
|
651
|
+
abstract GetReversalTransactions(call: grpc_1.ServerUnaryCall<GetTransactionRequest, TransactionsResponse>, callback: grpc_1.sendUnaryData<TransactionsResponse>): void;
|
|
652
|
+
abstract SaveReversalTransaction(call: grpc_1.ServerUnaryCall<SaveReversalTransactionRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
653
|
+
abstract DeleteReversalTransaction(call: grpc_1.ServerUnaryCall<DeleteReversalTransactionRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
654
|
+
}
|
|
655
|
+
const POSTransactionServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
656
|
+
export class POSTransactionServiceClient extends POSTransactionServiceClient_base {
|
|
657
|
+
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>);
|
|
658
|
+
InitializeTransaction: GrpcPromiseServiceInterface<InitializePOSTransactionRequest, InitiatePOSTransactionResponse>;
|
|
659
|
+
ConfirmTransaction: GrpcPromiseServiceInterface<ConfirmPOSTransactionRequest, DefaultResponse>;
|
|
660
|
+
GetTransaction: GrpcPromiseServiceInterface<GetTransactionRequest, TransactionResponse>;
|
|
661
|
+
GetTransactions: GrpcPromiseServiceInterface<QueryTransactionsRequest, TransactionsResponse>;
|
|
662
|
+
GetReversalTransactions: GrpcPromiseServiceInterface<GetTransactionRequest, TransactionsResponse>;
|
|
663
|
+
SaveReversalTransaction: GrpcPromiseServiceInterface<SaveReversalTransactionRequest, DefaultResponse>;
|
|
664
|
+
DeleteReversalTransaction: GrpcPromiseServiceInterface<DeleteReversalTransactionRequest, DefaultResponse>;
|
|
665
|
+
}
|
|
666
|
+
export {};
|
|
667
|
+
}
|