@mainarchitech/ibuy-api 0.0.0-feat-trader-vnd-amount.02e0ad1c

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 (46) hide show
  1. package/dist/gen/bank/v1/bank_public_pb.d.ts +72 -0
  2. package/dist/gen/bank/v1/bank_public_pb.js +27 -0
  3. package/dist/gen/bank/v1/index.d.ts +1 -0
  4. package/dist/gen/bank/v1/index.js +4 -0
  5. package/dist/gen/billing/v1/index.d.ts +1 -0
  6. package/dist/gen/billing/v1/index.js +4 -0
  7. package/dist/gen/billing/v1/types_pb.d.ts +90 -0
  8. package/dist/gen/billing/v1/types_pb.js +28 -0
  9. package/dist/gen/invoice/v1/index.d.ts +2 -0
  10. package/dist/gen/invoice/v1/index.js +5 -0
  11. package/dist/gen/invoice/v1/invoice_public_pb.d.ts +559 -0
  12. package/dist/gen/invoice/v1/invoice_public_pb.js +100 -0
  13. package/dist/gen/invoice/v1/types_pb.d.ts +4 -0
  14. package/dist/gen/invoice/v1/types_pb.js +2 -0
  15. package/dist/gen/market/v1/index.d.ts +1 -0
  16. package/dist/gen/market/v1/index.js +4 -0
  17. package/dist/gen/market/v1/market_public_pb.d.ts +42 -0
  18. package/dist/gen/market/v1/market_public_pb.js +22 -0
  19. package/dist/gen/payment/v1/index.d.ts +2 -0
  20. package/dist/gen/payment/v1/index.js +5 -0
  21. package/dist/gen/payment/v1/payment_public_pb.d.ts +337 -0
  22. package/dist/gen/payment/v1/payment_public_pb.js +75 -0
  23. package/dist/gen/payment/v1/types_pb.d.ts +202 -0
  24. package/dist/gen/payment/v1/types_pb.js +191 -0
  25. package/dist/gen/user/v1/index.d.ts +1 -0
  26. package/dist/gen/user/v1/index.js +4 -0
  27. package/dist/gen/user/v1/types_pb.d.ts +178 -0
  28. package/dist/gen/user/v1/types_pb.js +117 -0
  29. package/dist/index.d.ts +6 -0
  30. package/dist/index.js +9 -0
  31. package/package.json +40 -0
  32. package/src/gen/bank/v1/bank_public_pb.ts +96 -0
  33. package/src/gen/bank/v1/index.ts +4 -0
  34. package/src/gen/billing/v1/index.ts +4 -0
  35. package/src/gen/billing/v1/types_pb.ts +117 -0
  36. package/src/gen/invoice/v1/index.ts +5 -0
  37. package/src/gen/invoice/v1/invoice_public_pb.ts +673 -0
  38. package/src/gen/invoice/v1/types_pb.ts +4 -0
  39. package/src/gen/market/v1/index.ts +4 -0
  40. package/src/gen/market/v1/market_public_pb.ts +59 -0
  41. package/src/gen/payment/v1/index.ts +5 -0
  42. package/src/gen/payment/v1/payment_public_pb.ts +405 -0
  43. package/src/gen/payment/v1/types_pb.ts +258 -0
  44. package/src/gen/user/v1/index.ts +4 -0
  45. package/src/gen/user/v1/types_pb.ts +226 -0
  46. package/src/index.ts +9 -0
@@ -0,0 +1,673 @@
1
+ // @generated by protoc-gen-es v2.6.3 with parameter "target=ts"
2
+ // @generated from file invoice/v1/invoice_public.proto (package invoice.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { TransactionMode, TransactionStatus } from "./types_pb";
10
+ import { file_payment_v1_types } from "./types_pb";
11
+ import type { BankTransferDetails, CardDetails, PhoneDetails, VietnamBankTransferDetails } from "./types_pb";
12
+ import { file_billing_v1_types } from "./types_pb";
13
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
14
+
15
+ /**
16
+ * Describes the file invoice/v1/invoice_public.proto.
17
+ */
18
+ export const file_invoice_v1_invoice_public: GenFile = /*@__PURE__*/
19
+ fileDesc("Ch9pbnZvaWNlL3YxL2ludm9pY2VfcHVibGljLnByb3RvEgppbnZvaWNlLnYxIpsBCglQYX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ZvaWNlcxIgLmludm9pY2UudjEuRmV0Y2hJbnZvaWNlc1JlcXVlc3QaIS5pbnZvaWNlLnYxLkZldGNoSW52b2ljZXNSZXNwb25zZRJmChNGZXRjaFBheW1lbnRPcHRpb25zEiYuaW52b2ljZS52MS5GZXRjaFBheW1lbnRPcHRpb25zUmVxdWVzdBonLmludm9pY2UudjEuRmV0Y2hQYXltZW50T3B0aW9uc1Jlc3BvbnNlQpoBCg5jb20uaW52b2ljZS52MUISSW52b2ljZVB1YmxpY1Byb3RvUAFaK3BheXByb2MvcGtnL2dlbi9wdWJsaWMvaW52b2ljZS92MTtpbnZvaWNldjGiAgNJWFiqAgpJbnZvaWNlLlYxygIKSW52b2ljZVxWMeICFkludm9pY2VcVjFcR1BCTWV0YWRhdGHqAgtJbnZvaWNlOjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_google_protobuf_struct, file_payment_v1_types, file_billing_v1_types, file_google_protobuf_duration]);
20
+
21
+ /**
22
+ * @generated from message invoice.v1.PaymentQr
23
+ */
24
+ export type PaymentQr = Message<"invoice.v1.PaymentQr"> & {
25
+ /**
26
+ * @generated from field: string format = 1;
27
+ */
28
+ format: string;
29
+
30
+ /**
31
+ * @generated from field: string emv_payload = 2;
32
+ */
33
+ emvPayload: string;
34
+
35
+ /**
36
+ * @generated from field: optional string image_url = 3;
37
+ */
38
+ imageUrl?: string;
39
+
40
+ /**
41
+ * @generated from field: string payment_amount = 4;
42
+ */
43
+ paymentAmount: string;
44
+
45
+ /**
46
+ * @generated from field: string payment_currency = 5;
47
+ */
48
+ paymentCurrency: string;
49
+
50
+ /**
51
+ * @generated from field: string reference = 6;
52
+ */
53
+ reference: string;
54
+ };
55
+
56
+ /**
57
+ * Describes the message invoice.v1.PaymentQr.
58
+ * Use `create(PaymentQrSchema)` to create a new message.
59
+ */
60
+ export const PaymentQrSchema: GenMessage<PaymentQr> = /*@__PURE__*/
61
+ messageDesc(file_invoice_v1_invoice_public, 0);
62
+
63
+ /**
64
+ * @generated from message invoice.v1.CreateInvoiceRequest
65
+ */
66
+ export type CreateInvoiceRequest = Message<"invoice.v1.CreateInvoiceRequest"> & {
67
+ /**
68
+ * @generated from field: optional string external_id = 1;
69
+ */
70
+ externalId?: string;
71
+
72
+ /**
73
+ * @generated from field: string amount = 2;
74
+ */
75
+ amount: string;
76
+
77
+ /**
78
+ * @generated from field: invoice.v1.CreateInvoiceRequest.UrlConfig url_config = 3;
79
+ */
80
+ urlConfig?: CreateInvoiceRequest_UrlConfig;
81
+
82
+ /**
83
+ * @generated from field: optional google.protobuf.Struct metadata = 4;
84
+ */
85
+ metadata?: JsonObject;
86
+
87
+ /**
88
+ * @generated from field: optional string payment_method_id = 5;
89
+ */
90
+ paymentMethodId?: string;
91
+
92
+ /**
93
+ * @generated from field: optional payment.v1.TransactionMode mode = 6;
94
+ */
95
+ mode?: TransactionMode;
96
+
97
+ /**
98
+ * @generated from field: optional invoice.v1.CreateInvoiceRequest.QR qr = 7;
99
+ */
100
+ qr?: CreateInvoiceRequest_QR;
101
+ };
102
+
103
+ /**
104
+ * Describes the message invoice.v1.CreateInvoiceRequest.
105
+ * Use `create(CreateInvoiceRequestSchema)` to create a new message.
106
+ */
107
+ export const CreateInvoiceRequestSchema: GenMessage<CreateInvoiceRequest> = /*@__PURE__*/
108
+ messageDesc(file_invoice_v1_invoice_public, 1);
109
+
110
+ /**
111
+ * @generated from message invoice.v1.CreateInvoiceRequest.UrlConfig
112
+ */
113
+ export type CreateInvoiceRequest_UrlConfig = Message<"invoice.v1.CreateInvoiceRequest.UrlConfig"> & {
114
+ /**
115
+ * @generated from field: optional string hook_url = 1;
116
+ */
117
+ hookUrl?: string;
118
+
119
+ /**
120
+ * @generated from field: optional string fail_url = 2;
121
+ */
122
+ failUrl?: string;
123
+
124
+ /**
125
+ * @generated from field: optional string success_url = 3;
126
+ */
127
+ successUrl?: string;
128
+ };
129
+
130
+ /**
131
+ * Describes the message invoice.v1.CreateInvoiceRequest.UrlConfig.
132
+ * Use `create(CreateInvoiceRequest_UrlConfigSchema)` to create a new message.
133
+ */
134
+ export const CreateInvoiceRequest_UrlConfigSchema: GenMessage<CreateInvoiceRequest_UrlConfig> = /*@__PURE__*/
135
+ messageDesc(file_invoice_v1_invoice_public, 1, 0);
136
+
137
+ /**
138
+ * @generated from message invoice.v1.CreateInvoiceRequest.QR
139
+ */
140
+ export type CreateInvoiceRequest_QR = Message<"invoice.v1.CreateInvoiceRequest.QR"> & {
141
+ /**
142
+ * @generated from field: bool generate = 1;
143
+ */
144
+ generate: boolean;
145
+
146
+ /**
147
+ * @generated from field: optional google.protobuf.Duration timeout = 2;
148
+ */
149
+ timeout?: Duration;
150
+ };
151
+
152
+ /**
153
+ * Describes the message invoice.v1.CreateInvoiceRequest.QR.
154
+ * Use `create(CreateInvoiceRequest_QRSchema)` to create a new message.
155
+ */
156
+ export const CreateInvoiceRequest_QRSchema: GenMessage<CreateInvoiceRequest_QR> = /*@__PURE__*/
157
+ messageDesc(file_invoice_v1_invoice_public, 1, 1);
158
+
159
+ /**
160
+ * @generated from message invoice.v1.CreateInvoiceResponse
161
+ */
162
+ export type CreateInvoiceResponse = Message<"invoice.v1.CreateInvoiceResponse"> & {
163
+ /**
164
+ * @generated from field: string id = 1;
165
+ */
166
+ id: string;
167
+
168
+ /**
169
+ * @generated from field: string user_id = 2;
170
+ */
171
+ userId: string;
172
+
173
+ /**
174
+ * @generated from field: optional string external_id = 3;
175
+ */
176
+ externalId?: string;
177
+
178
+ /**
179
+ * @generated from oneof invoice.v1.CreateInvoiceResponse.billing_details
180
+ */
181
+ billingDetails: {
182
+ /**
183
+ * @generated from field: billing.v1.CardDetails card = 4;
184
+ */
185
+ value: CardDetails;
186
+ case: "card";
187
+ } | {
188
+ /**
189
+ * @generated from field: billing.v1.PhoneDetails sbp = 5;
190
+ */
191
+ value: PhoneDetails;
192
+ case: "sbp";
193
+ } | {
194
+ /**
195
+ * @generated from field: billing.v1.BankTransferDetails bank_transfer = 6;
196
+ */
197
+ value: BankTransferDetails;
198
+ case: "bankTransfer";
199
+ } | {
200
+ /**
201
+ * @generated from field: billing.v1.VietnamBankTransferDetails vietnam_bank_transfer = 12;
202
+ */
203
+ value: VietnamBankTransferDetails;
204
+ case: "vietnamBankTransfer";
205
+ } | { case: undefined; value?: undefined };
206
+
207
+ /**
208
+ * @generated from field: optional invoice.v1.CreateInvoiceResponse.Bank bank = 7;
209
+ */
210
+ bank?: CreateInvoiceResponse_Bank;
211
+
212
+ /**
213
+ * @generated from field: string payment_url = 8;
214
+ */
215
+ paymentUrl: string;
216
+
217
+ /**
218
+ * @generated from field: string amount = 9;
219
+ */
220
+ amount: string;
221
+
222
+ /**
223
+ * @generated from field: google.protobuf.Timestamp expires_at = 10;
224
+ */
225
+ expiresAt?: Timestamp;
226
+
227
+ /**
228
+ * @generated from field: optional string nspk_url = 11;
229
+ */
230
+ nspkUrl?: string;
231
+
232
+ /**
233
+ * @generated from field: string currency = 13;
234
+ */
235
+ currency: string;
236
+
237
+ /**
238
+ * @generated from field: string usdt_amount = 14;
239
+ */
240
+ usdtAmount: string;
241
+
242
+ /**
243
+ * @generated from field: invoice.v1.PaymentQr payment_qr = 15;
244
+ */
245
+ paymentQr?: PaymentQr;
246
+ };
247
+
248
+ /**
249
+ * Describes the message invoice.v1.CreateInvoiceResponse.
250
+ * Use `create(CreateInvoiceResponseSchema)` to create a new message.
251
+ */
252
+ export const CreateInvoiceResponseSchema: GenMessage<CreateInvoiceResponse> = /*@__PURE__*/
253
+ messageDesc(file_invoice_v1_invoice_public, 2);
254
+
255
+ /**
256
+ * @generated from message invoice.v1.CreateInvoiceResponse.Bank
257
+ */
258
+ export type CreateInvoiceResponse_Bank = Message<"invoice.v1.CreateInvoiceResponse.Bank"> & {
259
+ /**
260
+ * @generated from field: string id = 1;
261
+ */
262
+ id: string;
263
+
264
+ /**
265
+ * @generated from field: string code = 2;
266
+ */
267
+ code: string;
268
+
269
+ /**
270
+ * @generated from field: string name = 3;
271
+ */
272
+ name: string;
273
+ };
274
+
275
+ /**
276
+ * Describes the message invoice.v1.CreateInvoiceResponse.Bank.
277
+ * Use `create(CreateInvoiceResponse_BankSchema)` to create a new message.
278
+ */
279
+ export const CreateInvoiceResponse_BankSchema: GenMessage<CreateInvoiceResponse_Bank> = /*@__PURE__*/
280
+ messageDesc(file_invoice_v1_invoice_public, 2, 0);
281
+
282
+ /**
283
+ * @generated from message invoice.v1.FetchInvoicesRequest
284
+ */
285
+ export type FetchInvoicesRequest = Message<"invoice.v1.FetchInvoicesRequest"> & {
286
+ /**
287
+ * @generated from field: repeated string ids = 1;
288
+ */
289
+ ids: string[];
290
+ };
291
+
292
+ /**
293
+ * Describes the message invoice.v1.FetchInvoicesRequest.
294
+ * Use `create(FetchInvoicesRequestSchema)` to create a new message.
295
+ */
296
+ export const FetchInvoicesRequestSchema: GenMessage<FetchInvoicesRequest> = /*@__PURE__*/
297
+ messageDesc(file_invoice_v1_invoice_public, 3);
298
+
299
+ /**
300
+ * @generated from message invoice.v1.FetchInvoicesResponse
301
+ */
302
+ export type FetchInvoicesResponse = Message<"invoice.v1.FetchInvoicesResponse"> & {
303
+ /**
304
+ * @generated from field: repeated invoice.v1.FetchInvoicesResponse.Invoice invoices = 1;
305
+ */
306
+ invoices: FetchInvoicesResponse_Invoice[];
307
+ };
308
+
309
+ /**
310
+ * Describes the message invoice.v1.FetchInvoicesResponse.
311
+ * Use `create(FetchInvoicesResponseSchema)` to create a new message.
312
+ */
313
+ export const FetchInvoicesResponseSchema: GenMessage<FetchInvoicesResponse> = /*@__PURE__*/
314
+ messageDesc(file_invoice_v1_invoice_public, 4);
315
+
316
+ /**
317
+ * @generated from message invoice.v1.FetchInvoicesResponse.Invoice
318
+ */
319
+ export type FetchInvoicesResponse_Invoice = Message<"invoice.v1.FetchInvoicesResponse.Invoice"> & {
320
+ /**
321
+ * @generated from field: string id = 1;
322
+ */
323
+ id: string;
324
+
325
+ /**
326
+ * @generated from field: string merchant_id = 2;
327
+ */
328
+ merchantId: string;
329
+
330
+ /**
331
+ * @generated from field: optional string external_id = 3;
332
+ */
333
+ externalId?: string;
334
+
335
+ /**
336
+ * @generated from field: string payment_url = 4;
337
+ */
338
+ paymentUrl: string;
339
+
340
+ /**
341
+ * @generated from field: string amount = 5;
342
+ */
343
+ amount: string;
344
+
345
+ /**
346
+ * @generated from field: payment.v1.TransactionStatus status = 6;
347
+ */
348
+ status: TransactionStatus;
349
+
350
+ /**
351
+ * @generated from field: google.protobuf.Timestamp created_at = 7;
352
+ */
353
+ createdAt?: Timestamp;
354
+
355
+ /**
356
+ * @generated from field: google.protobuf.Timestamp expires_at = 8;
357
+ */
358
+ expiresAt?: Timestamp;
359
+
360
+ /**
361
+ * @generated from oneof invoice.v1.FetchInvoicesResponse.Invoice.billing_details
362
+ */
363
+ billingDetails: {
364
+ /**
365
+ * @generated from field: billing.v1.CardDetails card = 9;
366
+ */
367
+ value: CardDetails;
368
+ case: "card";
369
+ } | {
370
+ /**
371
+ * @generated from field: billing.v1.PhoneDetails sbp = 10;
372
+ */
373
+ value: PhoneDetails;
374
+ case: "sbp";
375
+ } | {
376
+ /**
377
+ * @generated from field: billing.v1.BankTransferDetails bank_transfer = 11;
378
+ */
379
+ value: BankTransferDetails;
380
+ case: "bankTransfer";
381
+ } | {
382
+ /**
383
+ * @generated from field: billing.v1.VietnamBankTransferDetails vietnam_bank_transfer = 15;
384
+ */
385
+ value: VietnamBankTransferDetails;
386
+ case: "vietnamBankTransfer";
387
+ } | { case: undefined; value?: undefined };
388
+
389
+ /**
390
+ * @generated from field: invoice.v1.FetchInvoicesResponse.Invoice.Bank bank = 12;
391
+ */
392
+ bank?: FetchInvoicesResponse_Invoice_Bank;
393
+
394
+ /**
395
+ * @generated from field: optional string payment_method_id = 13;
396
+ */
397
+ paymentMethodId?: string;
398
+
399
+ /**
400
+ * @generated from field: invoice.v1.FetchInvoicesResponse.Invoice.Metadata metadata = 14;
401
+ */
402
+ metadata?: FetchInvoicesResponse_Invoice_Metadata;
403
+
404
+ /**
405
+ * @generated from field: optional string nspk_url = 16;
406
+ */
407
+ nspkUrl?: string;
408
+
409
+ /**
410
+ * @generated from field: string currency = 17;
411
+ */
412
+ currency: string;
413
+
414
+ /**
415
+ * @generated from field: string usdt_amount = 18;
416
+ */
417
+ usdtAmount: string;
418
+
419
+ /**
420
+ * @generated from field: invoice.v1.PaymentQr payment_qr = 19;
421
+ */
422
+ paymentQr?: PaymentQr;
423
+ };
424
+
425
+ /**
426
+ * Describes the message invoice.v1.FetchInvoicesResponse.Invoice.
427
+ * Use `create(FetchInvoicesResponse_InvoiceSchema)` to create a new message.
428
+ */
429
+ export const FetchInvoicesResponse_InvoiceSchema: GenMessage<FetchInvoicesResponse_Invoice> = /*@__PURE__*/
430
+ messageDesc(file_invoice_v1_invoice_public, 4, 0);
431
+
432
+ /**
433
+ * @generated from message invoice.v1.FetchInvoicesResponse.Invoice.Bank
434
+ */
435
+ export type FetchInvoicesResponse_Invoice_Bank = Message<"invoice.v1.FetchInvoicesResponse.Invoice.Bank"> & {
436
+ /**
437
+ * @generated from field: string id = 1;
438
+ */
439
+ id: string;
440
+
441
+ /**
442
+ * @generated from field: string code = 2;
443
+ */
444
+ code: string;
445
+
446
+ /**
447
+ * @generated from field: string name = 3;
448
+ */
449
+ name: string;
450
+ };
451
+
452
+ /**
453
+ * Describes the message invoice.v1.FetchInvoicesResponse.Invoice.Bank.
454
+ * Use `create(FetchInvoicesResponse_Invoice_BankSchema)` to create a new message.
455
+ */
456
+ export const FetchInvoicesResponse_Invoice_BankSchema: GenMessage<FetchInvoicesResponse_Invoice_Bank> = /*@__PURE__*/
457
+ messageDesc(file_invoice_v1_invoice_public, 4, 0, 0);
458
+
459
+ /**
460
+ * @generated from message invoice.v1.FetchInvoicesResponse.Invoice.Metadata
461
+ */
462
+ export type FetchInvoicesResponse_Invoice_Metadata = Message<"invoice.v1.FetchInvoicesResponse.Invoice.Metadata"> & {
463
+ /**
464
+ * @generated from field: invoice.v1.FetchInvoicesResponse.Invoice.Metadata.UrlConfig urls = 1;
465
+ */
466
+ urls?: FetchInvoicesResponse_Invoice_Metadata_UrlConfig;
467
+
468
+ /**
469
+ * This field contains metadata provided by user during invoice creation
470
+ *
471
+ * @generated from field: optional string user_data = 2;
472
+ */
473
+ userData?: string;
474
+ };
475
+
476
+ /**
477
+ * Describes the message invoice.v1.FetchInvoicesResponse.Invoice.Metadata.
478
+ * Use `create(FetchInvoicesResponse_Invoice_MetadataSchema)` to create a new message.
479
+ */
480
+ export const FetchInvoicesResponse_Invoice_MetadataSchema: GenMessage<FetchInvoicesResponse_Invoice_Metadata> = /*@__PURE__*/
481
+ messageDesc(file_invoice_v1_invoice_public, 4, 0, 1);
482
+
483
+ /**
484
+ * @generated from message invoice.v1.FetchInvoicesResponse.Invoice.Metadata.UrlConfig
485
+ */
486
+ export type FetchInvoicesResponse_Invoice_Metadata_UrlConfig = Message<"invoice.v1.FetchInvoicesResponse.Invoice.Metadata.UrlConfig"> & {
487
+ /**
488
+ * @generated from field: optional string success_url = 1;
489
+ */
490
+ successUrl?: string;
491
+
492
+ /**
493
+ * @generated from field: optional string fail_url = 2;
494
+ */
495
+ failUrl?: string;
496
+ };
497
+
498
+ /**
499
+ * Describes the message invoice.v1.FetchInvoicesResponse.Invoice.Metadata.UrlConfig.
500
+ * Use `create(FetchInvoicesResponse_Invoice_Metadata_UrlConfigSchema)` to create a new message.
501
+ */
502
+ export const FetchInvoicesResponse_Invoice_Metadata_UrlConfigSchema: GenMessage<FetchInvoicesResponse_Invoice_Metadata_UrlConfig> = /*@__PURE__*/
503
+ messageDesc(file_invoice_v1_invoice_public, 4, 0, 1, 0);
504
+
505
+ /**
506
+ * @generated from message invoice.v1.FetchPaymentOptionsRequest
507
+ */
508
+ export type FetchPaymentOptionsRequest = Message<"invoice.v1.FetchPaymentOptionsRequest"> & {
509
+ /**
510
+ * @generated from field: optional string amount = 2;
511
+ */
512
+ amount?: string;
513
+ };
514
+
515
+ /**
516
+ * Describes the message invoice.v1.FetchPaymentOptionsRequest.
517
+ * Use `create(FetchPaymentOptionsRequestSchema)` to create a new message.
518
+ */
519
+ export const FetchPaymentOptionsRequestSchema: GenMessage<FetchPaymentOptionsRequest> = /*@__PURE__*/
520
+ messageDesc(file_invoice_v1_invoice_public, 5);
521
+
522
+ /**
523
+ * @generated from message invoice.v1.FetchPaymentOptionsResponse
524
+ */
525
+ export type FetchPaymentOptionsResponse = Message<"invoice.v1.FetchPaymentOptionsResponse"> & {
526
+ /**
527
+ * @generated from field: repeated invoice.v1.FetchPaymentOptionsResponse.PaymentOption options = 1;
528
+ */
529
+ options: FetchPaymentOptionsResponse_PaymentOption[];
530
+ };
531
+
532
+ /**
533
+ * Describes the message invoice.v1.FetchPaymentOptionsResponse.
534
+ * Use `create(FetchPaymentOptionsResponseSchema)` to create a new message.
535
+ */
536
+ export const FetchPaymentOptionsResponseSchema: GenMessage<FetchPaymentOptionsResponse> = /*@__PURE__*/
537
+ messageDesc(file_invoice_v1_invoice_public, 6);
538
+
539
+ /**
540
+ * @generated from message invoice.v1.FetchPaymentOptionsResponse.AmountLimits
541
+ */
542
+ export type FetchPaymentOptionsResponse_AmountLimits = Message<"invoice.v1.FetchPaymentOptionsResponse.AmountLimits"> & {
543
+ /**
544
+ * @generated from field: string min_amount = 1;
545
+ */
546
+ minAmount: string;
547
+
548
+ /**
549
+ * @generated from field: string max_amount = 2;
550
+ */
551
+ maxAmount: string;
552
+ };
553
+
554
+ /**
555
+ * Describes the message invoice.v1.FetchPaymentOptionsResponse.AmountLimits.
556
+ * Use `create(FetchPaymentOptionsResponse_AmountLimitsSchema)` to create a new message.
557
+ */
558
+ export const FetchPaymentOptionsResponse_AmountLimitsSchema: GenMessage<FetchPaymentOptionsResponse_AmountLimits> = /*@__PURE__*/
559
+ messageDesc(file_invoice_v1_invoice_public, 6, 0);
560
+
561
+ /**
562
+ * @generated from message invoice.v1.FetchPaymentOptionsResponse.BankOption
563
+ */
564
+ export type FetchPaymentOptionsResponse_BankOption = Message<"invoice.v1.FetchPaymentOptionsResponse.BankOption"> & {
565
+ /**
566
+ * @generated from field: string code = 1;
567
+ */
568
+ code: string;
569
+
570
+ /**
571
+ * @generated from field: string name = 2;
572
+ */
573
+ name: string;
574
+
575
+ /**
576
+ * @generated from field: bool available = 3;
577
+ */
578
+ available: boolean;
579
+
580
+ /**
581
+ * @generated from field: invoice.v1.FetchPaymentOptionsResponse.AmountLimits limits = 4;
582
+ */
583
+ limits?: FetchPaymentOptionsResponse_AmountLimits;
584
+ };
585
+
586
+ /**
587
+ * Describes the message invoice.v1.FetchPaymentOptionsResponse.BankOption.
588
+ * Use `create(FetchPaymentOptionsResponse_BankOptionSchema)` to create a new message.
589
+ */
590
+ export const FetchPaymentOptionsResponse_BankOptionSchema: GenMessage<FetchPaymentOptionsResponse_BankOption> = /*@__PURE__*/
591
+ messageDesc(file_invoice_v1_invoice_public, 6, 1);
592
+
593
+ /**
594
+ * @generated from message invoice.v1.FetchPaymentOptionsResponse.PaymentOption
595
+ */
596
+ export type FetchPaymentOptionsResponse_PaymentOption = Message<"invoice.v1.FetchPaymentOptionsResponse.PaymentOption"> & {
597
+ /**
598
+ * @generated from field: string id = 1;
599
+ */
600
+ id: string;
601
+
602
+ /**
603
+ * @generated from field: string code = 2;
604
+ */
605
+ code: string;
606
+
607
+ /**
608
+ * @generated from field: string type = 3;
609
+ */
610
+ type: string;
611
+
612
+ /**
613
+ * @generated from field: string name = 4;
614
+ */
615
+ name: string;
616
+
617
+ /**
618
+ * @generated from field: bool available = 5;
619
+ */
620
+ available: boolean;
621
+
622
+ /**
623
+ * @generated from field: invoice.v1.FetchPaymentOptionsResponse.AmountLimits limits = 6;
624
+ */
625
+ limits?: FetchPaymentOptionsResponse_AmountLimits;
626
+
627
+ /**
628
+ * @generated from field: repeated invoice.v1.FetchPaymentOptionsResponse.BankOption banks = 7;
629
+ */
630
+ banks: FetchPaymentOptionsResponse_BankOption[];
631
+ };
632
+
633
+ /**
634
+ * Describes the message invoice.v1.FetchPaymentOptionsResponse.PaymentOption.
635
+ * Use `create(FetchPaymentOptionsResponse_PaymentOptionSchema)` to create a new message.
636
+ */
637
+ export const FetchPaymentOptionsResponse_PaymentOptionSchema: GenMessage<FetchPaymentOptionsResponse_PaymentOption> = /*@__PURE__*/
638
+ messageDesc(file_invoice_v1_invoice_public, 6, 2);
639
+
640
+ /**
641
+ * @generated from service invoice.v1.PubInvoiceService
642
+ */
643
+ export const PubInvoiceService: GenService<{
644
+ /**
645
+ * @generated from rpc invoice.v1.PubInvoiceService.CreateInvoice
646
+ */
647
+ createInvoice: {
648
+ methodKind: "unary";
649
+ input: typeof CreateInvoiceRequestSchema;
650
+ output: typeof CreateInvoiceResponseSchema;
651
+ },
652
+ /**
653
+ * @generated from rpc invoice.v1.PubInvoiceService.FetchInvoices
654
+ */
655
+ fetchInvoices: {
656
+ methodKind: "unary";
657
+ input: typeof FetchInvoicesRequestSchema;
658
+ output: typeof FetchInvoicesResponseSchema;
659
+ },
660
+ /**
661
+ * TODO: change name to FetchInvoicePaymentMethods
662
+ * TODO: add FetchPayoutMethods method
663
+ *
664
+ * @generated from rpc invoice.v1.PubInvoiceService.FetchPaymentOptions
665
+ */
666
+ fetchPaymentOptions: {
667
+ methodKind: "unary";
668
+ input: typeof FetchPaymentOptionsRequestSchema;
669
+ output: typeof FetchPaymentOptionsResponseSchema;
670
+ },
671
+ }> = /*@__PURE__*/
672
+ serviceDesc(file_invoice_v1_invoice_public, 0);
673
+
@@ -0,0 +1,4 @@
1
+ export type { TransactionMode, TransactionStatus } from "../../payment/v1/types_pb";
2
+ export { file_payment_v1_types } from "../../payment/v1/types_pb";
3
+ export type { BankTransferDetails, CardDetails, PhoneDetails, VietnamBankTransferDetails } from "../../billing/v1/types_pb";
4
+ export { file_billing_v1_types } from "../../billing/v1/types_pb";
@@ -0,0 +1,4 @@
1
+ /* AUTO-GENERATED FILE. DO NOT EDIT.
2
+ * This file is generated by generate-barrels.sh
3
+ */
4
+ export * from './market_public_pb';