@timbro/invoices 0.9.0-next.1 → 0.10.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.
Files changed (38) hide show
  1. package/LICENSE +219 -0
  2. package/README.md +23 -0
  3. package/dist/admin.d.ts +2 -2
  4. package/dist/admin.d.ts.map +1 -1
  5. package/dist/admin.js +1 -1
  6. package/dist/generated/hosted/sdk.gen.js +1 -1
  7. package/dist/generated/hosted/types.gen.d.ts +2 -2
  8. package/dist/generated/hosted/types.gen.d.ts.map +1 -1
  9. package/dist/generated/hosted/zod-response.gen.d.ts +4007 -0
  10. package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -0
  11. package/dist/generated/hosted/zod-response.gen.js +1967 -0
  12. package/dist/generated/hosted/zod.gen.d.ts +3 -0
  13. package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
  14. package/dist/generated/hosted/zod.gen.js +3 -0
  15. package/dist/generated/sdk.gen.js +1 -1
  16. package/dist/generated/zod-response.gen.d.ts +87940 -0
  17. package/dist/generated/zod-response.gen.d.ts.map +1 -0
  18. package/dist/generated/zod-response.gen.js +4946 -0
  19. package/dist/generated-problem.js +1 -1
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +1 -0
  23. package/dist/invoice-receipt.d.ts.map +1 -1
  24. package/dist/invoice-receipt.js +2 -1
  25. package/dist/invoice.d.ts +2 -2
  26. package/dist/invoice.d.ts.map +1 -1
  27. package/dist/invoice.js +1 -1
  28. package/dist/source-connection-activation.d.ts.map +1 -1
  29. package/dist/source-connection-activation.js +2 -1
  30. package/dist/timbro-client.d.ts +2 -2
  31. package/dist/timbro-client.d.ts.map +1 -1
  32. package/dist/webhook-event.d.ts +4680 -1983
  33. package/dist/webhook-event.d.ts.map +1 -1
  34. package/dist/webhook-event.js +27 -1
  35. package/dist/webhook-verification.d.ts +4 -2
  36. package/dist/webhook-verification.d.ts.map +1 -1
  37. package/dist/webhook-verification.js +4 -2
  38. package/package.json +7 -2
@@ -0,0 +1,4007 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * MerchantBusinessFiscalSetupUnavailable
4
+ */
5
+ export declare const zMerchantBusinessFiscalSetupUnavailable: z.ZodObject<{
6
+ status: z.ZodLiteral<"unavailable">;
7
+ cause: z.ZodLiteral<"timbro_unreachable">;
8
+ }, z.core.$strip>;
9
+ /**
10
+ * MerchantBusinessFiscalBinding
11
+ *
12
+ * The Timbro Organization, Legal issuer, Source connection, and webhook.
13
+ */
14
+ export declare const zMerchantBusinessFiscalBinding: z.ZodType<{
15
+ status: "unbound";
16
+ } | {
17
+ status: "provisioning";
18
+ } | {
19
+ status: "bound";
20
+ webhookSecret: "pending" | "sealed";
21
+ } | {
22
+ status: "failed";
23
+ } | {
24
+ status: "conflict";
25
+ }, {
26
+ status: "unbound";
27
+ } | {
28
+ status: "provisioning";
29
+ } | {
30
+ status: "bound";
31
+ webhookSecret: "pending" | "sealed";
32
+ } | {
33
+ status: "failed";
34
+ } | {
35
+ status: "conflict";
36
+ }, z.core.$ZodTypeInternals<{
37
+ status: "unbound";
38
+ } | {
39
+ status: "provisioning";
40
+ } | {
41
+ status: "bound";
42
+ webhookSecret: "pending" | "sealed";
43
+ } | {
44
+ status: "failed";
45
+ } | {
46
+ status: "conflict";
47
+ }, {
48
+ status: "unbound";
49
+ } | {
50
+ status: "provisioning";
51
+ } | {
52
+ status: "bound";
53
+ webhookSecret: "pending" | "sealed";
54
+ } | {
55
+ status: "failed";
56
+ } | {
57
+ status: "conflict";
58
+ }>>;
59
+ /**
60
+ * MerchantBusinessLegalIssuer
61
+ *
62
+ * Whether Timbro holds every profile field the hosted Legal issuer requires.
63
+ */
64
+ export declare const zMerchantBusinessLegalIssuer: z.ZodType<{
65
+ status: "missing";
66
+ } | {
67
+ status: "incomplete";
68
+ } | {
69
+ status: "complete";
70
+ }, {
71
+ status: "missing";
72
+ } | {
73
+ status: "incomplete";
74
+ } | {
75
+ status: "complete";
76
+ }, z.core.$ZodTypeInternals<{
77
+ status: "missing";
78
+ } | {
79
+ status: "incomplete";
80
+ } | {
81
+ status: "complete";
82
+ }, {
83
+ status: "missing";
84
+ } | {
85
+ status: "incomplete";
86
+ } | {
87
+ status: "complete";
88
+ }>>;
89
+ /**
90
+ * MerchantBusinessSigningCertificate
91
+ *
92
+ * The certificate Timbro's custody holds for the Legal issuer.
93
+ */
94
+ export declare const zMerchantBusinessSigningCertificate: z.ZodType<{
95
+ status: "missing";
96
+ } | {
97
+ status: "active";
98
+ sha256: string;
99
+ signerSerialNumber: string;
100
+ notBefore: string;
101
+ notAfter: string;
102
+ }, {
103
+ status: "missing";
104
+ } | {
105
+ status: "active";
106
+ sha256: string;
107
+ signerSerialNumber: string;
108
+ notBefore: string;
109
+ notAfter: string;
110
+ }, z.core.$ZodTypeInternals<{
111
+ status: "missing";
112
+ } | {
113
+ status: "active";
114
+ sha256: string;
115
+ signerSerialNumber: string;
116
+ notBefore: string;
117
+ notAfter: string;
118
+ }, {
119
+ status: "missing";
120
+ } | {
121
+ status: "active";
122
+ sha256: string;
123
+ signerSerialNumber: string;
124
+ notBefore: string;
125
+ notAfter: string;
126
+ }>>;
127
+ /**
128
+ * MerchantBusinessFiscalSetupAvailable
129
+ */
130
+ export declare const zMerchantBusinessFiscalSetupAvailable: z.ZodObject<{
131
+ status: z.ZodLiteral<"available">;
132
+ binding: z.ZodType<{
133
+ status: "unbound";
134
+ } | {
135
+ status: "provisioning";
136
+ } | {
137
+ status: "bound";
138
+ webhookSecret: "pending" | "sealed";
139
+ } | {
140
+ status: "failed";
141
+ } | {
142
+ status: "conflict";
143
+ }, {
144
+ status: "unbound";
145
+ } | {
146
+ status: "provisioning";
147
+ } | {
148
+ status: "bound";
149
+ webhookSecret: "pending" | "sealed";
150
+ } | {
151
+ status: "failed";
152
+ } | {
153
+ status: "conflict";
154
+ }, z.core.$ZodTypeInternals<{
155
+ status: "unbound";
156
+ } | {
157
+ status: "provisioning";
158
+ } | {
159
+ status: "bound";
160
+ webhookSecret: "pending" | "sealed";
161
+ } | {
162
+ status: "failed";
163
+ } | {
164
+ status: "conflict";
165
+ }, {
166
+ status: "unbound";
167
+ } | {
168
+ status: "provisioning";
169
+ } | {
170
+ status: "bound";
171
+ webhookSecret: "pending" | "sealed";
172
+ } | {
173
+ status: "failed";
174
+ } | {
175
+ status: "conflict";
176
+ }>>;
177
+ legalIssuer: z.ZodType<{
178
+ status: "missing";
179
+ } | {
180
+ status: "incomplete";
181
+ } | {
182
+ status: "complete";
183
+ }, {
184
+ status: "missing";
185
+ } | {
186
+ status: "incomplete";
187
+ } | {
188
+ status: "complete";
189
+ }, z.core.$ZodTypeInternals<{
190
+ status: "missing";
191
+ } | {
192
+ status: "incomplete";
193
+ } | {
194
+ status: "complete";
195
+ }, {
196
+ status: "missing";
197
+ } | {
198
+ status: "incomplete";
199
+ } | {
200
+ status: "complete";
201
+ }>>;
202
+ signingCertificate: z.ZodType<{
203
+ status: "missing";
204
+ } | {
205
+ status: "active";
206
+ sha256: string;
207
+ signerSerialNumber: string;
208
+ notBefore: string;
209
+ notAfter: string;
210
+ }, {
211
+ status: "missing";
212
+ } | {
213
+ status: "active";
214
+ sha256: string;
215
+ signerSerialNumber: string;
216
+ notBefore: string;
217
+ notAfter: string;
218
+ }, z.core.$ZodTypeInternals<{
219
+ status: "missing";
220
+ } | {
221
+ status: "active";
222
+ sha256: string;
223
+ signerSerialNumber: string;
224
+ notBefore: string;
225
+ notAfter: string;
226
+ }, {
227
+ status: "missing";
228
+ } | {
229
+ status: "active";
230
+ sha256: string;
231
+ signerSerialNumber: string;
232
+ notBefore: string;
233
+ notAfter: string;
234
+ }>>;
235
+ testFiscalDocument: z.ZodType<{
236
+ status: "not_sent";
237
+ } | {
238
+ status: "processing";
239
+ id: string;
240
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
241
+ } | {
242
+ status: "accepted";
243
+ id: string;
244
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
245
+ } | {
246
+ status: "rejected";
247
+ id: string;
248
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
249
+ reason: "authority_rejected" | "timbro_rejected";
250
+ messages: string[];
251
+ } | {
252
+ status: "operator_required";
253
+ id: string;
254
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
255
+ }, {
256
+ status: "not_sent";
257
+ } | {
258
+ status: "processing";
259
+ id: string;
260
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
261
+ } | {
262
+ status: "accepted";
263
+ id: string;
264
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
265
+ } | {
266
+ status: "rejected";
267
+ id: string;
268
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
269
+ reason: "authority_rejected" | "timbro_rejected";
270
+ messages: string[];
271
+ } | {
272
+ status: "operator_required";
273
+ id: string;
274
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
275
+ }, z.core.$ZodTypeInternals<{
276
+ status: "not_sent";
277
+ } | {
278
+ status: "processing";
279
+ id: string;
280
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
281
+ } | {
282
+ status: "accepted";
283
+ id: string;
284
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
285
+ } | {
286
+ status: "rejected";
287
+ id: string;
288
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
289
+ reason: "authority_rejected" | "timbro_rejected";
290
+ messages: string[];
291
+ } | {
292
+ status: "operator_required";
293
+ id: string;
294
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
295
+ }, {
296
+ status: "not_sent";
297
+ } | {
298
+ status: "processing";
299
+ id: string;
300
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
301
+ } | {
302
+ status: "accepted";
303
+ id: string;
304
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
305
+ } | {
306
+ status: "rejected";
307
+ id: string;
308
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
309
+ reason: "authority_rejected" | "timbro_rejected";
310
+ messages: string[];
311
+ } | {
312
+ status: "operator_required";
313
+ id: string;
314
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
315
+ }>>;
316
+ }, z.core.$strip>;
317
+ /**
318
+ * MerchantBusinessFiscalSetup
319
+ *
320
+ * Timbro's view of electronic invoicing provisioning, or why it cannot be read.
321
+ */
322
+ export declare const zMerchantBusinessFiscalSetup: z.ZodType<{
323
+ status: "unavailable";
324
+ cause: "timbro_unreachable";
325
+ } | {
326
+ status: "available";
327
+ binding: {
328
+ status: "unbound";
329
+ } | {
330
+ status: "provisioning";
331
+ } | {
332
+ status: "bound";
333
+ webhookSecret: "pending" | "sealed";
334
+ } | {
335
+ status: "failed";
336
+ } | {
337
+ status: "conflict";
338
+ };
339
+ legalIssuer: {
340
+ status: "missing";
341
+ } | {
342
+ status: "incomplete";
343
+ } | {
344
+ status: "complete";
345
+ };
346
+ signingCertificate: {
347
+ status: "missing";
348
+ } | {
349
+ status: "active";
350
+ sha256: string;
351
+ signerSerialNumber: string;
352
+ notBefore: string;
353
+ notAfter: string;
354
+ };
355
+ testFiscalDocument: {
356
+ status: "not_sent";
357
+ } | {
358
+ status: "processing";
359
+ id: string;
360
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
361
+ } | {
362
+ status: "accepted";
363
+ id: string;
364
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
365
+ } | {
366
+ status: "rejected";
367
+ id: string;
368
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
369
+ reason: "authority_rejected" | "timbro_rejected";
370
+ messages: string[];
371
+ } | {
372
+ status: "operator_required";
373
+ id: string;
374
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
375
+ };
376
+ }, {
377
+ status: "unavailable";
378
+ cause: "timbro_unreachable";
379
+ } | {
380
+ status: "available";
381
+ binding: {
382
+ status: "unbound";
383
+ } | {
384
+ status: "provisioning";
385
+ } | {
386
+ status: "bound";
387
+ webhookSecret: "pending" | "sealed";
388
+ } | {
389
+ status: "failed";
390
+ } | {
391
+ status: "conflict";
392
+ };
393
+ legalIssuer: {
394
+ status: "missing";
395
+ } | {
396
+ status: "incomplete";
397
+ } | {
398
+ status: "complete";
399
+ };
400
+ signingCertificate: {
401
+ status: "missing";
402
+ } | {
403
+ status: "active";
404
+ sha256: string;
405
+ signerSerialNumber: string;
406
+ notBefore: string;
407
+ notAfter: string;
408
+ };
409
+ testFiscalDocument: {
410
+ status: "not_sent";
411
+ } | {
412
+ status: "processing";
413
+ id: string;
414
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
415
+ } | {
416
+ status: "accepted";
417
+ id: string;
418
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
419
+ } | {
420
+ status: "rejected";
421
+ id: string;
422
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
423
+ reason: "authority_rejected" | "timbro_rejected";
424
+ messages: string[];
425
+ } | {
426
+ status: "operator_required";
427
+ id: string;
428
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
429
+ };
430
+ }, z.core.$ZodTypeInternals<{
431
+ status: "unavailable";
432
+ cause: "timbro_unreachable";
433
+ } | {
434
+ status: "available";
435
+ binding: {
436
+ status: "unbound";
437
+ } | {
438
+ status: "provisioning";
439
+ } | {
440
+ status: "bound";
441
+ webhookSecret: "pending" | "sealed";
442
+ } | {
443
+ status: "failed";
444
+ } | {
445
+ status: "conflict";
446
+ };
447
+ legalIssuer: {
448
+ status: "missing";
449
+ } | {
450
+ status: "incomplete";
451
+ } | {
452
+ status: "complete";
453
+ };
454
+ signingCertificate: {
455
+ status: "missing";
456
+ } | {
457
+ status: "active";
458
+ sha256: string;
459
+ signerSerialNumber: string;
460
+ notBefore: string;
461
+ notAfter: string;
462
+ };
463
+ testFiscalDocument: {
464
+ status: "not_sent";
465
+ } | {
466
+ status: "processing";
467
+ id: string;
468
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
469
+ } | {
470
+ status: "accepted";
471
+ id: string;
472
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
473
+ } | {
474
+ status: "rejected";
475
+ id: string;
476
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
477
+ reason: "authority_rejected" | "timbro_rejected";
478
+ messages: string[];
479
+ } | {
480
+ status: "operator_required";
481
+ id: string;
482
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
483
+ };
484
+ }, {
485
+ status: "unavailable";
486
+ cause: "timbro_unreachable";
487
+ } | {
488
+ status: "available";
489
+ binding: {
490
+ status: "unbound";
491
+ } | {
492
+ status: "provisioning";
493
+ } | {
494
+ status: "bound";
495
+ webhookSecret: "pending" | "sealed";
496
+ } | {
497
+ status: "failed";
498
+ } | {
499
+ status: "conflict";
500
+ };
501
+ legalIssuer: {
502
+ status: "missing";
503
+ } | {
504
+ status: "incomplete";
505
+ } | {
506
+ status: "complete";
507
+ };
508
+ signingCertificate: {
509
+ status: "missing";
510
+ } | {
511
+ status: "active";
512
+ sha256: string;
513
+ signerSerialNumber: string;
514
+ notBefore: string;
515
+ notAfter: string;
516
+ };
517
+ testFiscalDocument: {
518
+ status: "not_sent";
519
+ } | {
520
+ status: "processing";
521
+ id: string;
522
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
523
+ } | {
524
+ status: "accepted";
525
+ id: string;
526
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
527
+ } | {
528
+ status: "rejected";
529
+ id: string;
530
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
531
+ reason: "authority_rejected" | "timbro_rejected";
532
+ messages: string[];
533
+ } | {
534
+ status: "operator_required";
535
+ id: string;
536
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
537
+ };
538
+ }>>;
539
+ /**
540
+ * MerchantBusinessLiveFiscalSetupAvailable
541
+ */
542
+ export declare const zMerchantBusinessLiveFiscalSetupAvailable: z.ZodObject<{
543
+ status: z.ZodLiteral<"available">;
544
+ binding: z.ZodType<{
545
+ status: "unbound";
546
+ } | {
547
+ status: "provisioning";
548
+ } | {
549
+ status: "bound";
550
+ webhookSecret: "pending" | "sealed";
551
+ } | {
552
+ status: "failed";
553
+ } | {
554
+ status: "conflict";
555
+ }, {
556
+ status: "unbound";
557
+ } | {
558
+ status: "provisioning";
559
+ } | {
560
+ status: "bound";
561
+ webhookSecret: "pending" | "sealed";
562
+ } | {
563
+ status: "failed";
564
+ } | {
565
+ status: "conflict";
566
+ }, z.core.$ZodTypeInternals<{
567
+ status: "unbound";
568
+ } | {
569
+ status: "provisioning";
570
+ } | {
571
+ status: "bound";
572
+ webhookSecret: "pending" | "sealed";
573
+ } | {
574
+ status: "failed";
575
+ } | {
576
+ status: "conflict";
577
+ }, {
578
+ status: "unbound";
579
+ } | {
580
+ status: "provisioning";
581
+ } | {
582
+ status: "bound";
583
+ webhookSecret: "pending" | "sealed";
584
+ } | {
585
+ status: "failed";
586
+ } | {
587
+ status: "conflict";
588
+ }>>;
589
+ legalIssuer: z.ZodType<{
590
+ status: "missing";
591
+ } | {
592
+ status: "incomplete";
593
+ } | {
594
+ status: "complete";
595
+ }, {
596
+ status: "missing";
597
+ } | {
598
+ status: "incomplete";
599
+ } | {
600
+ status: "complete";
601
+ }, z.core.$ZodTypeInternals<{
602
+ status: "missing";
603
+ } | {
604
+ status: "incomplete";
605
+ } | {
606
+ status: "complete";
607
+ }, {
608
+ status: "missing";
609
+ } | {
610
+ status: "incomplete";
611
+ } | {
612
+ status: "complete";
613
+ }>>;
614
+ signingCertificate: z.ZodType<{
615
+ status: "missing";
616
+ } | {
617
+ status: "active";
618
+ sha256: string;
619
+ signerSerialNumber: string;
620
+ notBefore: string;
621
+ notAfter: string;
622
+ }, {
623
+ status: "missing";
624
+ } | {
625
+ status: "active";
626
+ sha256: string;
627
+ signerSerialNumber: string;
628
+ notBefore: string;
629
+ notAfter: string;
630
+ }, z.core.$ZodTypeInternals<{
631
+ status: "missing";
632
+ } | {
633
+ status: "active";
634
+ sha256: string;
635
+ signerSerialNumber: string;
636
+ notBefore: string;
637
+ notAfter: string;
638
+ }, {
639
+ status: "missing";
640
+ } | {
641
+ status: "active";
642
+ sha256: string;
643
+ signerSerialNumber: string;
644
+ notBefore: string;
645
+ notAfter: string;
646
+ }>>;
647
+ }, z.core.$strip>;
648
+ /**
649
+ * MerchantBusinessLiveFiscalSetup
650
+ *
651
+ * Production binding and custody facts. These do not establish DGII production qualification.
652
+ */
653
+ export declare const zMerchantBusinessLiveFiscalSetup: z.ZodType<{
654
+ status: "unavailable";
655
+ cause: "timbro_unreachable";
656
+ } | {
657
+ status: "available";
658
+ binding: {
659
+ status: "unbound";
660
+ } | {
661
+ status: "provisioning";
662
+ } | {
663
+ status: "bound";
664
+ webhookSecret: "pending" | "sealed";
665
+ } | {
666
+ status: "failed";
667
+ } | {
668
+ status: "conflict";
669
+ };
670
+ legalIssuer: {
671
+ status: "missing";
672
+ } | {
673
+ status: "incomplete";
674
+ } | {
675
+ status: "complete";
676
+ };
677
+ signingCertificate: {
678
+ status: "missing";
679
+ } | {
680
+ status: "active";
681
+ sha256: string;
682
+ signerSerialNumber: string;
683
+ notBefore: string;
684
+ notAfter: string;
685
+ };
686
+ }, {
687
+ status: "unavailable";
688
+ cause: "timbro_unreachable";
689
+ } | {
690
+ status: "available";
691
+ binding: {
692
+ status: "unbound";
693
+ } | {
694
+ status: "provisioning";
695
+ } | {
696
+ status: "bound";
697
+ webhookSecret: "pending" | "sealed";
698
+ } | {
699
+ status: "failed";
700
+ } | {
701
+ status: "conflict";
702
+ };
703
+ legalIssuer: {
704
+ status: "missing";
705
+ } | {
706
+ status: "incomplete";
707
+ } | {
708
+ status: "complete";
709
+ };
710
+ signingCertificate: {
711
+ status: "missing";
712
+ } | {
713
+ status: "active";
714
+ sha256: string;
715
+ signerSerialNumber: string;
716
+ notBefore: string;
717
+ notAfter: string;
718
+ };
719
+ }, z.core.$ZodTypeInternals<{
720
+ status: "unavailable";
721
+ cause: "timbro_unreachable";
722
+ } | {
723
+ status: "available";
724
+ binding: {
725
+ status: "unbound";
726
+ } | {
727
+ status: "provisioning";
728
+ } | {
729
+ status: "bound";
730
+ webhookSecret: "pending" | "sealed";
731
+ } | {
732
+ status: "failed";
733
+ } | {
734
+ status: "conflict";
735
+ };
736
+ legalIssuer: {
737
+ status: "missing";
738
+ } | {
739
+ status: "incomplete";
740
+ } | {
741
+ status: "complete";
742
+ };
743
+ signingCertificate: {
744
+ status: "missing";
745
+ } | {
746
+ status: "active";
747
+ sha256: string;
748
+ signerSerialNumber: string;
749
+ notBefore: string;
750
+ notAfter: string;
751
+ };
752
+ }, {
753
+ status: "unavailable";
754
+ cause: "timbro_unreachable";
755
+ } | {
756
+ status: "available";
757
+ binding: {
758
+ status: "unbound";
759
+ } | {
760
+ status: "provisioning";
761
+ } | {
762
+ status: "bound";
763
+ webhookSecret: "pending" | "sealed";
764
+ } | {
765
+ status: "failed";
766
+ } | {
767
+ status: "conflict";
768
+ };
769
+ legalIssuer: {
770
+ status: "missing";
771
+ } | {
772
+ status: "incomplete";
773
+ } | {
774
+ status: "complete";
775
+ };
776
+ signingCertificate: {
777
+ status: "missing";
778
+ } | {
779
+ status: "active";
780
+ sha256: string;
781
+ signerSerialNumber: string;
782
+ notBefore: string;
783
+ notAfter: string;
784
+ };
785
+ }>>;
786
+ /**
787
+ * Problem
788
+ *
789
+ * RFC 9457 problem details. Every failure of this API is one of these, and each operation narrows `code` to the subset it can emit.
790
+ */
791
+ export declare const zProblem: z.ZodObject<{
792
+ code: z.ZodEnum<{
793
+ affected_fiscal_operation_unsupported: "affected_fiscal_operation_unsupported";
794
+ agent_client_not_found: "agent_client_not_found";
795
+ already_a_member: "already_a_member";
796
+ amount_above_maximum: "amount_above_maximum";
797
+ amount_below_minimum: "amount_below_minimum";
798
+ api_key_invalid: "api_key_invalid";
799
+ api_key_missing: "api_key_missing";
800
+ api_key_not_found: "api_key_not_found";
801
+ api_key_retired: "api_key_retired";
802
+ authority_rejected_replacement: "authority_rejected_replacement";
803
+ certificate_archive_not_supported: "certificate_archive_not_supported";
804
+ certificate_custody_binding_conflict: "certificate_custody_binding_conflict";
805
+ certificate_custody_binding_not_found: "certificate_custody_binding_not_found";
806
+ certificate_custody_certificate_version_not_active: "certificate_custody_certificate_version_not_active";
807
+ certificate_expired: "certificate_expired";
808
+ certificate_handoff_expired: "certificate_handoff_expired";
809
+ certificate_handoff_not_found: "certificate_handoff_not_found";
810
+ certificate_handoff_person_mismatch: "certificate_handoff_person_mismatch";
811
+ certificate_handoff_used: "certificate_handoff_used";
812
+ certificate_not_supported: "certificate_not_supported";
813
+ certificate_not_yet_valid: "certificate_not_yet_valid";
814
+ certificate_p12_password_invalid: "certificate_p12_password_invalid";
815
+ certificate_pkcs12_invalid: "certificate_pkcs12_invalid";
816
+ checkout_reference_expired: "checkout_reference_expired";
817
+ checkout_reference_invalid: "checkout_reference_invalid";
818
+ checkout_token_expired: "checkout_token_expired";
819
+ checkout_token_invalid: "checkout_token_invalid";
820
+ checkout_window_closed: "checkout_window_closed";
821
+ collection_cursor_invalid: "collection_cursor_invalid";
822
+ commercial_response_decision_conflict: "commercial_response_decision_conflict";
823
+ commercial_response_motive_invalid: "commercial_response_motive_invalid";
824
+ connected_agent_not_found: "connected_agent_not_found";
825
+ contact_request_delivery_unavailable: "contact_request_delivery_unavailable";
826
+ correction_target_unsettled: "correction_target_unsettled";
827
+ credential_revoked: "credential_revoked";
828
+ credential_storage_unavailable: "credential_storage_unavailable";
829
+ currency_not_supported: "currency_not_supported";
830
+ currency_not_supported_by_provider: "currency_not_supported_by_provider";
831
+ currency_not_supported_for_fiscal_document: "currency_not_supported_for_fiscal_document";
832
+ custody_certificate_chain_untrusted: "custody_certificate_chain_untrusted";
833
+ custody_certificate_expired: "custody_certificate_expired";
834
+ custody_certificate_malformed: "custody_certificate_malformed";
835
+ custody_certificate_not_yet_valid: "custody_certificate_not_yet_valid";
836
+ custody_certificate_purpose_unsupported: "custody_certificate_purpose_unsupported";
837
+ custody_certificate_trust_profile_unsupported: "custody_certificate_trust_profile_unsupported";
838
+ custody_p12_work_limit_exceeded: "custody_p12_work_limit_exceeded";
839
+ custody_signature_algorithm_unsupported: "custody_signature_algorithm_unsupported";
840
+ custody_unavailable: "custody_unavailable";
841
+ decline_not_retryable: "decline_not_retryable";
842
+ delegated_authorization_verifier_forbidden: "delegated_authorization_verifier_forbidden";
843
+ document_type_not_enabled: "document_type_not_enabled";
844
+ email_already_registered: "email_already_registered";
845
+ environment_not_active: "environment_not_active";
846
+ fiscal_artifact_not_found: "fiscal_artifact_not_found";
847
+ fiscal_artifact_not_ready: "fiscal_artifact_not_ready";
848
+ fiscal_artifact_retrieval_unavailable: "fiscal_artifact_retrieval_unavailable";
849
+ fiscal_artifact_unavailable: "fiscal_artifact_unavailable";
850
+ fiscal_artifact_unverified: "fiscal_artifact_unverified";
851
+ fiscal_buyer_required: "fiscal_buyer_required";
852
+ fiscal_buyer_tax_id_invalid: "fiscal_buyer_tax_id_invalid";
853
+ fiscal_delivery_not_found: "fiscal_delivery_not_found";
854
+ fiscal_delivery_not_ready: "fiscal_delivery_not_ready";
855
+ fiscal_delivery_outcome_conflict: "fiscal_delivery_outcome_conflict";
856
+ fiscal_delivery_unavailable: "fiscal_delivery_unavailable";
857
+ fiscal_document_kind_not_allowed: "fiscal_document_kind_not_allowed";
858
+ fiscal_document_kind_unsupported: "fiscal_document_kind_unsupported";
859
+ fiscal_document_not_found: "fiscal_document_not_found";
860
+ fiscal_government_eligibility_not_allowed: "fiscal_government_eligibility_not_allowed";
861
+ fiscal_government_eligibility_required: "fiscal_government_eligibility_required";
862
+ fiscal_intent_rejected: "fiscal_intent_rejected";
863
+ fiscal_issuance_blocked: "fiscal_issuance_blocked";
864
+ fiscal_line_legal_tip_invalid: "fiscal_line_legal_tip_invalid";
865
+ fiscal_line_total_invalid: "fiscal_line_total_invalid";
866
+ fiscal_lines_required: "fiscal_lines_required";
867
+ fiscal_number_already_used: "fiscal_number_already_used";
868
+ fiscal_number_authorization_changed: "fiscal_number_authorization_changed";
869
+ fiscal_number_authorization_source_record_conflict: "fiscal_number_authorization_source_record_conflict";
870
+ fiscal_operation_not_found: "fiscal_operation_not_found";
871
+ fiscal_total_mismatch: "fiscal_total_mismatch";
872
+ hosted_tenant_conflict: "hosted_tenant_conflict";
873
+ idempotency_key_conflict: "idempotency_key_conflict";
874
+ idempotency_key_expired: "idempotency_key_expired";
875
+ idempotency_key_reused: "idempotency_key_reused";
876
+ idempotency_request_in_progress: "idempotency_request_in_progress";
877
+ insufficient_role: "insufficient_role";
878
+ internal_error: "internal_error";
879
+ invalid_certificate_custody_signer_identity: "invalid_certificate_custody_signer_identity";
880
+ invalid_collection_cursor: "invalid_collection_cursor";
881
+ invalid_collection_query: "invalid_collection_query";
882
+ invalid_credential: "invalid_credential";
883
+ invalid_fiscal_identity: "invalid_fiscal_identity";
884
+ invalid_idempotency_key: "invalid_idempotency_key";
885
+ invalid_login: "invalid_login";
886
+ invalid_replay_scope: "invalid_replay_scope";
887
+ invalid_request: "invalid_request";
888
+ invitation_expired: "invitation_expired";
889
+ invitation_invalid: "invitation_invalid";
890
+ invoice_delivery_not_permitted: "invoice_delivery_not_permitted";
891
+ invoice_not_found: "invoice_not_found";
892
+ invoice_receipt_not_found: "invoice_receipt_not_found";
893
+ invoice_receipt_not_ready: "invoice_receipt_not_ready";
894
+ invoice_receipt_unavailable: "invoice_receipt_unavailable";
895
+ invoice_reference_conflict: "invoice_reference_conflict";
896
+ invoice_reference_stale: "invoice_reference_stale";
897
+ invoice_totals_mismatch: "invoice_totals_mismatch";
898
+ invoicing_locked: "invoicing_locked";
899
+ issuer_not_authorized: "issuer_not_authorized";
900
+ journey_marks_unavailable: "journey_marks_unavailable";
901
+ journey_report_timeout: "journey_report_timeout";
902
+ journey_scope_mismatch: "journey_scope_mismatch";
903
+ legal_issuer_already_registered: "legal_issuer_already_registered";
904
+ legal_issuer_not_found: "legal_issuer_not_found";
905
+ legal_issuer_profile_incomplete: "legal_issuer_profile_incomplete";
906
+ live_mode_not_enabled: "live_mode_not_enabled";
907
+ malformed_json: "malformed_json";
908
+ merchant_account_card_capability_not_found: "merchant_account_card_capability_not_found";
909
+ merchant_account_identity_mismatch: "merchant_account_identity_mismatch";
910
+ merchant_account_not_found: "merchant_account_not_found";
911
+ merchant_account_not_ready: "merchant_account_not_ready";
912
+ merchant_account_provider_mismatch: "merchant_account_provider_mismatch";
913
+ merchant_authentication_unavailable: "merchant_authentication_unavailable";
914
+ merchant_business_address_required: "merchant_business_address_required";
915
+ merchant_business_already_claimed: "merchant_business_already_claimed";
916
+ merchant_business_attachment_conflict: "merchant_business_attachment_conflict";
917
+ merchant_business_capabilities_required: "merchant_business_capabilities_required";
918
+ merchant_business_contact_required: "merchant_business_contact_required";
919
+ merchant_business_details_invalid: "merchant_business_details_invalid";
920
+ merchant_business_identity_required: "merchant_business_identity_required";
921
+ merchant_business_location_official_codes_required: "merchant_business_location_official_codes_required";
922
+ merchant_business_not_found: "merchant_business_not_found";
923
+ merchant_business_not_member: "merchant_business_not_member";
924
+ merchant_business_revision_conflict: "merchant_business_revision_conflict";
925
+ merchant_business_type_not_applicable: "merchant_business_type_not_applicable";
926
+ merchant_certificate_conflict: "merchant_certificate_conflict";
927
+ merchant_charge_timing_not_applicable: "merchant_charge_timing_not_applicable";
928
+ merchant_charge_timing_required: "merchant_charge_timing_required";
929
+ merchant_checkout_policy_invalid: "merchant_checkout_policy_invalid";
930
+ merchant_checkout_policy_revision_conflict: "merchant_checkout_policy_revision_conflict";
931
+ merchant_contact_email_confirmation_required: "merchant_contact_email_confirmation_required";
932
+ merchant_current_payment_methods_required: "merchant_current_payment_methods_required";
933
+ merchant_current_sales_channels_required: "merchant_current_sales_channels_required";
934
+ merchant_dgii_assistance_not_applicable: "merchant_dgii_assistance_not_applicable";
935
+ merchant_dgii_assistance_notes_invalid: "merchant_dgii_assistance_notes_invalid";
936
+ merchant_existing_card_service_not_applicable: "merchant_existing_card_service_not_applicable";
937
+ merchant_existing_card_service_other_provider_name_invalid: "merchant_existing_card_service_other_provider_name_invalid";
938
+ merchant_existing_card_service_other_provider_name_not_allowed: "merchant_existing_card_service_other_provider_name_not_allowed";
939
+ merchant_existing_card_service_other_provider_name_required: "merchant_existing_card_service_other_provider_name_required";
940
+ merchant_existing_card_service_providers_exclusive_choice: "merchant_existing_card_service_providers_exclusive_choice";
941
+ merchant_existing_card_service_providers_required: "merchant_existing_card_service_providers_required";
942
+ merchant_existing_card_service_required: "merchant_existing_card_service_required";
943
+ merchant_fiscal_binding_conflict: "merchant_fiscal_binding_conflict";
944
+ merchant_fiscal_binding_unavailable: "merchant_fiscal_binding_unavailable";
945
+ merchant_fiscal_setup_incomplete: "merchant_fiscal_setup_incomplete";
946
+ merchant_fiscal_setup_unavailable: "merchant_fiscal_setup_unavailable";
947
+ merchant_guest_notice_acceptance_required: "merchant_guest_notice_acceptance_required";
948
+ merchant_location_catalog_changed: "merchant_location_catalog_changed";
949
+ merchant_location_catalog_unavailable: "merchant_location_catalog_unavailable";
950
+ merchant_location_selection_invalid: "merchant_location_selection_invalid";
951
+ merchant_onboarding_revision_conflict: "merchant_onboarding_revision_conflict";
952
+ merchant_payment_methods_exclusive_choice: "merchant_payment_methods_exclusive_choice";
953
+ merchant_payment_methods_not_applicable: "merchant_payment_methods_not_applicable";
954
+ merchant_payment_setup_assessment_incomplete: "merchant_payment_setup_assessment_incomplete";
955
+ merchant_payments_api_paused: "merchant_payments_api_paused";
956
+ merchant_profile_incomplete: "merchant_profile_incomplete";
957
+ merchant_sales_channels_exclusive_choice: "merchant_sales_channels_exclusive_choice";
958
+ merchant_sales_channels_not_applicable: "merchant_sales_channels_not_applicable";
959
+ merchant_service_scope_required: "merchant_service_scope_required";
960
+ merchant_session_missing: "merchant_session_missing";
961
+ merchant_test_fiscal_document_blocked: "merchant_test_fiscal_document_blocked";
962
+ merchant_workspace_organization_required: "merchant_workspace_organization_required";
963
+ method_not_allowed: "method_not_allowed";
964
+ missing_idempotency_key: "missing_idempotency_key";
965
+ no_eligible_provider: "no_eligible_provider";
966
+ onboarding_legal_issuer_identity_conflict: "onboarding_legal_issuer_identity_conflict";
967
+ operation_not_permitted: "operation_not_permitted";
968
+ organization_not_found: "organization_not_found";
969
+ organization_slug_taken: "organization_slug_taken";
970
+ origin_not_allowed: "origin_not_allowed";
971
+ parameter_invalid: "parameter_invalid";
972
+ parameter_missing: "parameter_missing";
973
+ payer_claim_conflict: "payer_claim_conflict";
974
+ payer_claim_proof_invalid: "payer_claim_proof_invalid";
975
+ payer_claim_unavailable: "payer_claim_unavailable";
976
+ payer_credential_not_found: "payer_credential_not_found";
977
+ payer_delivery_address_unavailable: "payer_delivery_address_unavailable";
978
+ payer_enrollment_unavailable: "payer_enrollment_unavailable";
979
+ payer_fiscal_profile_invalid: "payer_fiscal_profile_invalid";
980
+ payer_fiscal_profile_not_found: "payer_fiscal_profile_not_found";
981
+ payer_fiscal_profile_unavailable: "payer_fiscal_profile_unavailable";
982
+ payer_not_found: "payer_not_found";
983
+ payer_purchase_not_found: "payer_purchase_not_found";
984
+ payer_session_missing: "payer_session_missing";
985
+ payer_step_up_required: "payer_step_up_required";
986
+ payment_attempt_invalid: "payment_attempt_invalid";
987
+ payment_attempt_mismatch: "payment_attempt_mismatch";
988
+ payment_attempt_stale: "payment_attempt_stale";
989
+ payment_awaiting_verification: "payment_awaiting_verification";
990
+ payment_cancel_not_allowed: "payment_cancel_not_allowed";
991
+ payment_cancellation_pending: "payment_cancellation_pending";
992
+ payment_description_required: "payment_description_required";
993
+ payment_invoice_item_fields_required: "payment_invoice_item_fields_required";
994
+ payment_invoice_not_allowed: "payment_invoice_not_allowed";
995
+ payment_invoice_not_ready: "payment_invoice_not_ready";
996
+ payment_items_invalid: "payment_items_invalid";
997
+ payment_method_already_in_progress: "payment_method_already_in_progress";
998
+ payment_method_mismatch: "payment_method_mismatch";
999
+ payment_not_editable: "payment_not_editable";
1000
+ payment_not_found: "payment_not_found";
1001
+ payment_not_payable: "payment_not_payable";
1002
+ payment_part_not_found: "payment_part_not_found";
1003
+ payment_part_not_payable: "payment_part_not_payable";
1004
+ payment_reference_conflict: "payment_reference_conflict";
1005
+ payment_reference_invalid: "payment_reference_invalid";
1006
+ payment_split_complete: "payment_split_complete";
1007
+ payment_split_exists: "payment_split_exists";
1008
+ payment_split_invalid: "payment_split_invalid";
1009
+ payment_split_locked: "payment_split_locked";
1010
+ payment_split_not_allowed: "payment_split_not_allowed";
1011
+ payment_split_not_capturable: "payment_split_not_capturable";
1012
+ payment_split_not_expired: "payment_split_not_expired";
1013
+ payment_split_not_found: "payment_split_not_found";
1014
+ payment_split_not_renewable: "payment_split_not_renewable";
1015
+ payment_split_part_required: "payment_split_part_required";
1016
+ payment_tax_invalid: "payment_tax_invalid";
1017
+ payment_tax_required: "payment_tax_required";
1018
+ payment_totals_mismatch: "payment_totals_mismatch";
1019
+ payments_contract_migration_required: "payments_contract_migration_required";
1020
+ platform_test_profile_unavailable: "platform_test_profile_unavailable";
1021
+ printed_representation_profile_conflict: "printed_representation_profile_conflict";
1022
+ provider_not_available: "provider_not_available";
1023
+ provider_not_eligible: "provider_not_eligible";
1024
+ provider_rejected_request: "provider_rejected_request";
1025
+ provider_response_invalid: "provider_response_invalid";
1026
+ provider_unavailable: "provider_unavailable";
1027
+ rate_limit_exceeded: "rate_limit_exceeded";
1028
+ receipt_retention_elapsed: "receipt_retention_elapsed";
1029
+ received_document_not_found: "received_document_not_found";
1030
+ refund_allocation_conflict: "refund_allocation_conflict";
1031
+ refund_allocation_ledger_unavailable: "refund_allocation_ledger_unavailable";
1032
+ refund_allocation_not_found: "refund_allocation_not_found";
1033
+ refund_already_exists: "refund_already_exists";
1034
+ refund_amount_invalid: "refund_amount_invalid";
1035
+ refund_credentials_unavailable: "refund_credentials_unavailable";
1036
+ refund_currency_mismatch: "refund_currency_mismatch";
1037
+ refund_exceeds_captured: "refund_exceeds_captured";
1038
+ refund_invoice_conflict: "refund_invoice_conflict";
1039
+ refund_invoice_mismatch: "refund_invoice_mismatch";
1040
+ refund_invoice_not_accepted: "refund_invoice_not_accepted";
1041
+ refund_invoice_not_ready: "refund_invoice_not_ready";
1042
+ refund_not_allowed: "refund_not_allowed";
1043
+ refund_not_found: "refund_not_found";
1044
+ refund_payment_not_captured: "refund_payment_not_captured";
1045
+ refund_provider_reference_unavailable: "refund_provider_reference_unavailable";
1046
+ refund_provider_unavailable: "refund_provider_unavailable";
1047
+ refund_reference_conflict: "refund_reference_conflict";
1048
+ refund_reference_invalid: "refund_reference_invalid";
1049
+ refund_source_identity_conflict: "refund_source_identity_conflict";
1050
+ refund_tip_allocation_unknown: "refund_tip_allocation_unknown";
1051
+ refund_tip_amount_invalid: "refund_tip_amount_invalid";
1052
+ request_body_malformed: "request_body_malformed";
1053
+ request_body_timeout: "request_body_timeout";
1054
+ request_body_too_large: "request_body_too_large";
1055
+ request_too_large: "request_too_large";
1056
+ route_not_found: "route_not_found";
1057
+ sale_amount_invalid: "sale_amount_invalid";
1058
+ saved_card_not_found: "saved_card_not_found";
1059
+ service_role_not_permitted: "service_role_not_permitted";
1060
+ signed_document_schema_invalid: "signed_document_schema_invalid";
1061
+ source_action_conflict: "source_action_conflict";
1062
+ source_command_conflict: "source_command_conflict";
1063
+ source_connection_activation_conflict: "source_connection_activation_conflict";
1064
+ source_connection_activation_verification_rejected: "source_connection_activation_verification_rejected";
1065
+ source_connection_creation_conflict: "source_connection_creation_conflict";
1066
+ source_connection_not_connected: "source_connection_not_connected";
1067
+ source_connection_not_found: "source_connection_not_found";
1068
+ source_content_conflict: "source_content_conflict";
1069
+ source_history_requires_reconciliation: "source_history_requires_reconciliation";
1070
+ source_identity_conflict: "source_identity_conflict";
1071
+ source_operation_pending: "source_operation_pending";
1072
+ source_outcome_unknown: "source_outcome_unknown";
1073
+ source_predecessor_conflict: "source_predecessor_conflict";
1074
+ source_provider_authorization_conflict: "source_provider_authorization_conflict";
1075
+ source_provider_authorization_not_found: "source_provider_authorization_not_found";
1076
+ source_provider_authorization_required: "source_provider_authorization_required";
1077
+ source_provider_installation_callback_replayed: "source_provider_installation_callback_replayed";
1078
+ source_provider_installation_disabled: "source_provider_installation_disabled";
1079
+ source_provider_installation_removed: "source_provider_installation_removed";
1080
+ source_provider_installation_request_expired: "source_provider_installation_request_expired";
1081
+ source_provider_installation_request_invalid: "source_provider_installation_request_invalid";
1082
+ source_provider_outcome_unknown: "source_provider_outcome_unknown";
1083
+ source_provider_scope_insufficient: "source_provider_scope_insufficient";
1084
+ source_provider_target_access_removed: "source_provider_target_access_removed";
1085
+ source_provider_throttled: "source_provider_throttled";
1086
+ source_provider_unavailable: "source_provider_unavailable";
1087
+ source_record_already_fiscalized: "source_record_already_fiscalized";
1088
+ source_version_stale: "source_version_stale";
1089
+ submission_token_expired: "submission_token_expired";
1090
+ submission_token_invalid: "submission_token_invalid";
1091
+ taxpayer_directory_unavailable: "taxpayer_directory_unavailable";
1092
+ taxpayer_inactive: "taxpayer_inactive";
1093
+ taxpayer_unregistered: "taxpayer_unregistered";
1094
+ three_ds_binding_mismatch: "three_ds_binding_mismatch";
1095
+ three_ds_not_found: "three_ds_not_found";
1096
+ unauthenticated: "unauthenticated";
1097
+ unsigned_document_schema_invalid: "unsigned_document_schema_invalid";
1098
+ unsupported_media_type: "unsupported_media_type";
1099
+ unsupported_printed_representation_profile: "unsupported_printed_representation_profile";
1100
+ voluntary_tip_currency_mismatch: "voluntary_tip_currency_mismatch";
1101
+ voluntary_tip_exceeds_maximum: "voluntary_tip_exceeds_maximum";
1102
+ voluntary_tip_not_allowed_for_split: "voluntary_tip_not_allowed_for_split";
1103
+ voluntary_tip_not_available: "voluntary_tip_not_available";
1104
+ webhook_destination_not_allowed: "webhook_destination_not_allowed";
1105
+ webhook_endpoint_deleted: "webhook_endpoint_deleted";
1106
+ webhook_endpoint_not_found: "webhook_endpoint_not_found";
1107
+ webhook_endpoint_registration_conflict: "webhook_endpoint_registration_conflict";
1108
+ webhook_endpoint_suspended: "webhook_endpoint_suspended";
1109
+ webhook_event_not_found: "webhook_event_not_found";
1110
+ webhook_replay_scope_invalid: "webhook_replay_scope_invalid";
1111
+ }>;
1112
+ detail: z.ZodOptional<z.ZodString>;
1113
+ invoiceId: z.ZodOptional<z.ZodString>;
1114
+ issuanceBlockers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1115
+ authorization_cancelled: "authorization_cancelled";
1116
+ authorization_conflicting: "authorization_conflicting";
1117
+ authorization_document_type_mismatch: "authorization_document_type_mismatch";
1118
+ authorization_exhausted: "authorization_exhausted";
1119
+ authorization_expired: "authorization_expired";
1120
+ authorization_missing: "authorization_missing";
1121
+ authorization_not_observed_on_effective_date: "authorization_not_observed_on_effective_date";
1122
+ authorization_range_overlap: "authorization_range_overlap";
1123
+ authorization_superseded: "authorization_superseded";
1124
+ authorization_suspended: "authorization_suspended";
1125
+ central_assignment_requires_verified_authorization: "central_assignment_requires_verified_authorization";
1126
+ document_type_not_recognized: "document_type_not_recognized";
1127
+ fiscal_number_before_verified_floor: "fiscal_number_before_verified_floor";
1128
+ fiscal_number_capacity_exhausted: "fiscal_number_capacity_exhausted";
1129
+ fiscal_number_outside_authorized_range: "fiscal_number_outside_authorized_range";
1130
+ invalid_fiscal_number: "invalid_fiscal_number";
1131
+ invalid_request: "invalid_request";
1132
+ invalid_resolved_facts: "invalid_resolved_facts";
1133
+ numbering_mode_not_enabled: "numbering_mode_not_enabled";
1134
+ numbering_verifier_missing: "numbering_verifier_missing";
1135
+ sequence_expiration_mismatch: "sequence_expiration_mismatch";
1136
+ unsupported_protocol: "unsupported_protocol";
1137
+ unsupported_rules_version: "unsupported_rules_version";
1138
+ }>>>;
1139
+ problems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1140
+ code: z.ZodString;
1141
+ message: z.ZodString;
1142
+ path: z.ZodString;
1143
+ }, z.core.$strip>>>;
1144
+ requestId: z.ZodString;
1145
+ status: z.ZodInt;
1146
+ title: z.ZodString;
1147
+ type: z.ZodEnum<{
1148
+ "about:blank": "about:blank";
1149
+ }>;
1150
+ }, z.core.$strip>;
1151
+ /**
1152
+ * MerchantBusiness
1153
+ *
1154
+ * The business the credential selects, its capabilities, and the requirements that remain.
1155
+ */
1156
+ export declare const zRetrieveBusinessResponse: z.ZodObject<{
1157
+ object: z.ZodLiteral<"merchant_business">;
1158
+ id: z.ZodString;
1159
+ rnc: z.ZodString;
1160
+ legalName: z.ZodString;
1161
+ revision: z.ZodInt;
1162
+ capabilities: z.ZodObject<{
1163
+ payments: z.ZodObject<{
1164
+ requested: z.ZodBoolean;
1165
+ test: z.ZodObject<{
1166
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1167
+ }, z.core.$strip>;
1168
+ live: z.ZodObject<{
1169
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1170
+ }, z.core.$strip>;
1171
+ }, z.core.$strip>;
1172
+ invoices: z.ZodObject<{
1173
+ requested: z.ZodBoolean;
1174
+ test: z.ZodObject<{
1175
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1176
+ }, z.core.$strip>;
1177
+ live: z.ZodObject<{
1178
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1179
+ }, z.core.$strip>;
1180
+ }, z.core.$strip>;
1181
+ }, z.core.$strip>;
1182
+ fiscalDetails: z.ZodObject<{
1183
+ commercialName: z.ZodNullable<z.ZodString>;
1184
+ address: z.ZodNullable<z.ZodString>;
1185
+ location: z.ZodNullable<z.ZodObject<{
1186
+ placeId: z.ZodString;
1187
+ catalogReleaseId: z.ZodString;
1188
+ municipalityCode: z.ZodNullable<z.ZodString>;
1189
+ name: z.ZodString;
1190
+ kind: z.ZodType<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", z.core.$ZodTypeInternals<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone">>;
1191
+ qualityStatus: z.ZodType<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified", z.core.$ZodTypeInternals<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified">>;
1192
+ ancestors: z.ZodArray<z.ZodObject<{
1193
+ placeId: z.ZodString;
1194
+ name: z.ZodString;
1195
+ kind: z.ZodType<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", z.core.$ZodTypeInternals<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone">>;
1196
+ qualityStatus: z.ZodType<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified", z.core.$ZodTypeInternals<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified">>;
1197
+ }, z.core.$strip>>;
1198
+ }, z.core.$strip>>;
1199
+ phone: z.ZodNullable<z.ZodString>;
1200
+ email: z.ZodNullable<z.ZodString>;
1201
+ defaultIncomeType: z.ZodNullable<z.ZodString>;
1202
+ }, z.core.$strip>;
1203
+ paymentsProfile: z.ZodNullable<z.ZodObject<{
1204
+ displayName: z.ZodString;
1205
+ statementDescriptor: z.ZodString;
1206
+ permanentAddress: z.ZodObject<{
1207
+ line1: z.ZodString;
1208
+ line2: z.ZodOptional<z.ZodString>;
1209
+ city: z.ZodString;
1210
+ province: z.ZodOptional<z.ZodString>;
1211
+ postalCode: z.ZodOptional<z.ZodString>;
1212
+ countryCode: z.ZodString;
1213
+ }, z.core.$strip>;
1214
+ supportEmail: z.ZodEmail;
1215
+ supportPhone: z.ZodString;
1216
+ deliveryPolicy: z.ZodType<{
1217
+ kind: "not_offered";
1218
+ } | {
1219
+ kind: "merchant_managed";
1220
+ summary: string;
1221
+ url?: string | undefined;
1222
+ }, {
1223
+ kind: "not_offered";
1224
+ } | {
1225
+ kind: "merchant_managed";
1226
+ summary: string;
1227
+ url?: string | undefined;
1228
+ }, z.core.$ZodTypeInternals<{
1229
+ kind: "not_offered";
1230
+ } | {
1231
+ kind: "merchant_managed";
1232
+ summary: string;
1233
+ url?: string | undefined;
1234
+ }, {
1235
+ kind: "not_offered";
1236
+ } | {
1237
+ kind: "merchant_managed";
1238
+ summary: string;
1239
+ url?: string | undefined;
1240
+ }>>;
1241
+ }, z.core.$strip>>;
1242
+ invoicing: z.ZodObject<{
1243
+ test: z.ZodType<{
1244
+ status: "unavailable";
1245
+ cause: "timbro_unreachable";
1246
+ } | {
1247
+ status: "available";
1248
+ binding: {
1249
+ status: "unbound";
1250
+ } | {
1251
+ status: "provisioning";
1252
+ } | {
1253
+ status: "bound";
1254
+ webhookSecret: "pending" | "sealed";
1255
+ } | {
1256
+ status: "failed";
1257
+ } | {
1258
+ status: "conflict";
1259
+ };
1260
+ legalIssuer: {
1261
+ status: "missing";
1262
+ } | {
1263
+ status: "incomplete";
1264
+ } | {
1265
+ status: "complete";
1266
+ };
1267
+ signingCertificate: {
1268
+ status: "missing";
1269
+ } | {
1270
+ status: "active";
1271
+ sha256: string;
1272
+ signerSerialNumber: string;
1273
+ notBefore: string;
1274
+ notAfter: string;
1275
+ };
1276
+ testFiscalDocument: {
1277
+ status: "not_sent";
1278
+ } | {
1279
+ status: "processing";
1280
+ id: string;
1281
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1282
+ } | {
1283
+ status: "accepted";
1284
+ id: string;
1285
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1286
+ } | {
1287
+ status: "rejected";
1288
+ id: string;
1289
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1290
+ reason: "authority_rejected" | "timbro_rejected";
1291
+ messages: string[];
1292
+ } | {
1293
+ status: "operator_required";
1294
+ id: string;
1295
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1296
+ };
1297
+ }, {
1298
+ status: "unavailable";
1299
+ cause: "timbro_unreachable";
1300
+ } | {
1301
+ status: "available";
1302
+ binding: {
1303
+ status: "unbound";
1304
+ } | {
1305
+ status: "provisioning";
1306
+ } | {
1307
+ status: "bound";
1308
+ webhookSecret: "pending" | "sealed";
1309
+ } | {
1310
+ status: "failed";
1311
+ } | {
1312
+ status: "conflict";
1313
+ };
1314
+ legalIssuer: {
1315
+ status: "missing";
1316
+ } | {
1317
+ status: "incomplete";
1318
+ } | {
1319
+ status: "complete";
1320
+ };
1321
+ signingCertificate: {
1322
+ status: "missing";
1323
+ } | {
1324
+ status: "active";
1325
+ sha256: string;
1326
+ signerSerialNumber: string;
1327
+ notBefore: string;
1328
+ notAfter: string;
1329
+ };
1330
+ testFiscalDocument: {
1331
+ status: "not_sent";
1332
+ } | {
1333
+ status: "processing";
1334
+ id: string;
1335
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1336
+ } | {
1337
+ status: "accepted";
1338
+ id: string;
1339
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1340
+ } | {
1341
+ status: "rejected";
1342
+ id: string;
1343
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1344
+ reason: "authority_rejected" | "timbro_rejected";
1345
+ messages: string[];
1346
+ } | {
1347
+ status: "operator_required";
1348
+ id: string;
1349
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1350
+ };
1351
+ }, z.core.$ZodTypeInternals<{
1352
+ status: "unavailable";
1353
+ cause: "timbro_unreachable";
1354
+ } | {
1355
+ status: "available";
1356
+ binding: {
1357
+ status: "unbound";
1358
+ } | {
1359
+ status: "provisioning";
1360
+ } | {
1361
+ status: "bound";
1362
+ webhookSecret: "pending" | "sealed";
1363
+ } | {
1364
+ status: "failed";
1365
+ } | {
1366
+ status: "conflict";
1367
+ };
1368
+ legalIssuer: {
1369
+ status: "missing";
1370
+ } | {
1371
+ status: "incomplete";
1372
+ } | {
1373
+ status: "complete";
1374
+ };
1375
+ signingCertificate: {
1376
+ status: "missing";
1377
+ } | {
1378
+ status: "active";
1379
+ sha256: string;
1380
+ signerSerialNumber: string;
1381
+ notBefore: string;
1382
+ notAfter: string;
1383
+ };
1384
+ testFiscalDocument: {
1385
+ status: "not_sent";
1386
+ } | {
1387
+ status: "processing";
1388
+ id: string;
1389
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1390
+ } | {
1391
+ status: "accepted";
1392
+ id: string;
1393
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1394
+ } | {
1395
+ status: "rejected";
1396
+ id: string;
1397
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1398
+ reason: "authority_rejected" | "timbro_rejected";
1399
+ messages: string[];
1400
+ } | {
1401
+ status: "operator_required";
1402
+ id: string;
1403
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1404
+ };
1405
+ }, {
1406
+ status: "unavailable";
1407
+ cause: "timbro_unreachable";
1408
+ } | {
1409
+ status: "available";
1410
+ binding: {
1411
+ status: "unbound";
1412
+ } | {
1413
+ status: "provisioning";
1414
+ } | {
1415
+ status: "bound";
1416
+ webhookSecret: "pending" | "sealed";
1417
+ } | {
1418
+ status: "failed";
1419
+ } | {
1420
+ status: "conflict";
1421
+ };
1422
+ legalIssuer: {
1423
+ status: "missing";
1424
+ } | {
1425
+ status: "incomplete";
1426
+ } | {
1427
+ status: "complete";
1428
+ };
1429
+ signingCertificate: {
1430
+ status: "missing";
1431
+ } | {
1432
+ status: "active";
1433
+ sha256: string;
1434
+ signerSerialNumber: string;
1435
+ notBefore: string;
1436
+ notAfter: string;
1437
+ };
1438
+ testFiscalDocument: {
1439
+ status: "not_sent";
1440
+ } | {
1441
+ status: "processing";
1442
+ id: string;
1443
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1444
+ } | {
1445
+ status: "accepted";
1446
+ id: string;
1447
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1448
+ } | {
1449
+ status: "rejected";
1450
+ id: string;
1451
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1452
+ reason: "authority_rejected" | "timbro_rejected";
1453
+ messages: string[];
1454
+ } | {
1455
+ status: "operator_required";
1456
+ id: string;
1457
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1458
+ };
1459
+ }>>;
1460
+ live: z.ZodType<{
1461
+ status: "unavailable";
1462
+ cause: "timbro_unreachable";
1463
+ } | {
1464
+ status: "available";
1465
+ binding: {
1466
+ status: "unbound";
1467
+ } | {
1468
+ status: "provisioning";
1469
+ } | {
1470
+ status: "bound";
1471
+ webhookSecret: "pending" | "sealed";
1472
+ } | {
1473
+ status: "failed";
1474
+ } | {
1475
+ status: "conflict";
1476
+ };
1477
+ legalIssuer: {
1478
+ status: "missing";
1479
+ } | {
1480
+ status: "incomplete";
1481
+ } | {
1482
+ status: "complete";
1483
+ };
1484
+ signingCertificate: {
1485
+ status: "missing";
1486
+ } | {
1487
+ status: "active";
1488
+ sha256: string;
1489
+ signerSerialNumber: string;
1490
+ notBefore: string;
1491
+ notAfter: string;
1492
+ };
1493
+ }, {
1494
+ status: "unavailable";
1495
+ cause: "timbro_unreachable";
1496
+ } | {
1497
+ status: "available";
1498
+ binding: {
1499
+ status: "unbound";
1500
+ } | {
1501
+ status: "provisioning";
1502
+ } | {
1503
+ status: "bound";
1504
+ webhookSecret: "pending" | "sealed";
1505
+ } | {
1506
+ status: "failed";
1507
+ } | {
1508
+ status: "conflict";
1509
+ };
1510
+ legalIssuer: {
1511
+ status: "missing";
1512
+ } | {
1513
+ status: "incomplete";
1514
+ } | {
1515
+ status: "complete";
1516
+ };
1517
+ signingCertificate: {
1518
+ status: "missing";
1519
+ } | {
1520
+ status: "active";
1521
+ sha256: string;
1522
+ signerSerialNumber: string;
1523
+ notBefore: string;
1524
+ notAfter: string;
1525
+ };
1526
+ }, z.core.$ZodTypeInternals<{
1527
+ status: "unavailable";
1528
+ cause: "timbro_unreachable";
1529
+ } | {
1530
+ status: "available";
1531
+ binding: {
1532
+ status: "unbound";
1533
+ } | {
1534
+ status: "provisioning";
1535
+ } | {
1536
+ status: "bound";
1537
+ webhookSecret: "pending" | "sealed";
1538
+ } | {
1539
+ status: "failed";
1540
+ } | {
1541
+ status: "conflict";
1542
+ };
1543
+ legalIssuer: {
1544
+ status: "missing";
1545
+ } | {
1546
+ status: "incomplete";
1547
+ } | {
1548
+ status: "complete";
1549
+ };
1550
+ signingCertificate: {
1551
+ status: "missing";
1552
+ } | {
1553
+ status: "active";
1554
+ sha256: string;
1555
+ signerSerialNumber: string;
1556
+ notBefore: string;
1557
+ notAfter: string;
1558
+ };
1559
+ }, {
1560
+ status: "unavailable";
1561
+ cause: "timbro_unreachable";
1562
+ } | {
1563
+ status: "available";
1564
+ binding: {
1565
+ status: "unbound";
1566
+ } | {
1567
+ status: "provisioning";
1568
+ } | {
1569
+ status: "bound";
1570
+ webhookSecret: "pending" | "sealed";
1571
+ } | {
1572
+ status: "failed";
1573
+ } | {
1574
+ status: "conflict";
1575
+ };
1576
+ legalIssuer: {
1577
+ status: "missing";
1578
+ } | {
1579
+ status: "incomplete";
1580
+ } | {
1581
+ status: "complete";
1582
+ };
1583
+ signingCertificate: {
1584
+ status: "missing";
1585
+ } | {
1586
+ status: "active";
1587
+ sha256: string;
1588
+ signerSerialNumber: string;
1589
+ notBefore: string;
1590
+ notAfter: string;
1591
+ };
1592
+ }>>;
1593
+ }, z.core.$strip>;
1594
+ requirements: z.ZodArray<z.ZodObject<{
1595
+ code: z.ZodType<"active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", z.core.$ZodTypeInternals<"active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable">>;
1596
+ owner: z.ZodType<"dgii" | "merchant" | "operator" | "provider" | "timbro", "dgii" | "merchant" | "operator" | "provider" | "timbro", z.core.$ZodTypeInternals<"dgii" | "merchant" | "operator" | "provider" | "timbro", "dgii" | "merchant" | "operator" | "provider" | "timbro">>;
1597
+ blocks: z.ZodArray<z.ZodType<"invoices" | "payments", "invoices" | "payments", z.core.$ZodTypeInternals<"invoices" | "payments", "invoices" | "payments">>>;
1598
+ mode: z.ZodOptional<z.ZodType<"live" | "test", "live" | "test", z.core.$ZodTypeInternals<"live" | "test", "live" | "test">>>;
1599
+ field: z.ZodOptional<z.ZodString>;
1600
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1601
+ code: z.ZodString;
1602
+ message: z.ZodString;
1603
+ }, z.core.$strip>>>;
1604
+ }, z.core.$strip>>;
1605
+ onboardingUrl: z.ZodURL;
1606
+ }, z.core.$strip>;
1607
+ /**
1608
+ * MerchantBusinessUpdateRequest
1609
+ *
1610
+ * Each member the request carries replaces that member of the business.
1611
+ */
1612
+ export declare const zUpdateBusinessResponse: z.ZodObject<{
1613
+ object: z.ZodLiteral<"merchant_business">;
1614
+ id: z.ZodString;
1615
+ rnc: z.ZodString;
1616
+ legalName: z.ZodString;
1617
+ revision: z.ZodInt;
1618
+ capabilities: z.ZodObject<{
1619
+ payments: z.ZodObject<{
1620
+ requested: z.ZodBoolean;
1621
+ test: z.ZodObject<{
1622
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1623
+ }, z.core.$strip>;
1624
+ live: z.ZodObject<{
1625
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1626
+ }, z.core.$strip>;
1627
+ }, z.core.$strip>;
1628
+ invoices: z.ZodObject<{
1629
+ requested: z.ZodBoolean;
1630
+ test: z.ZodObject<{
1631
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1632
+ }, z.core.$strip>;
1633
+ live: z.ZodObject<{
1634
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
1635
+ }, z.core.$strip>;
1636
+ }, z.core.$strip>;
1637
+ }, z.core.$strip>;
1638
+ fiscalDetails: z.ZodObject<{
1639
+ commercialName: z.ZodNullable<z.ZodString>;
1640
+ address: z.ZodNullable<z.ZodString>;
1641
+ location: z.ZodNullable<z.ZodObject<{
1642
+ placeId: z.ZodString;
1643
+ catalogReleaseId: z.ZodString;
1644
+ municipalityCode: z.ZodNullable<z.ZodString>;
1645
+ name: z.ZodString;
1646
+ kind: z.ZodType<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", z.core.$ZodTypeInternals<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone">>;
1647
+ qualityStatus: z.ZodType<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified", z.core.$ZodTypeInternals<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified">>;
1648
+ ancestors: z.ZodArray<z.ZodObject<{
1649
+ placeId: z.ZodString;
1650
+ name: z.ZodString;
1651
+ kind: z.ZodType<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", z.core.$ZodTypeInternals<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone">>;
1652
+ qualityStatus: z.ZodType<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified", z.core.$ZodTypeInternals<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified">>;
1653
+ }, z.core.$strip>>;
1654
+ }, z.core.$strip>>;
1655
+ phone: z.ZodNullable<z.ZodString>;
1656
+ email: z.ZodNullable<z.ZodString>;
1657
+ defaultIncomeType: z.ZodNullable<z.ZodString>;
1658
+ }, z.core.$strip>;
1659
+ paymentsProfile: z.ZodNullable<z.ZodObject<{
1660
+ displayName: z.ZodString;
1661
+ statementDescriptor: z.ZodString;
1662
+ permanentAddress: z.ZodObject<{
1663
+ line1: z.ZodString;
1664
+ line2: z.ZodOptional<z.ZodString>;
1665
+ city: z.ZodString;
1666
+ province: z.ZodOptional<z.ZodString>;
1667
+ postalCode: z.ZodOptional<z.ZodString>;
1668
+ countryCode: z.ZodString;
1669
+ }, z.core.$strip>;
1670
+ supportEmail: z.ZodEmail;
1671
+ supportPhone: z.ZodString;
1672
+ deliveryPolicy: z.ZodType<{
1673
+ kind: "not_offered";
1674
+ } | {
1675
+ kind: "merchant_managed";
1676
+ summary: string;
1677
+ url?: string | undefined;
1678
+ }, {
1679
+ kind: "not_offered";
1680
+ } | {
1681
+ kind: "merchant_managed";
1682
+ summary: string;
1683
+ url?: string | undefined;
1684
+ }, z.core.$ZodTypeInternals<{
1685
+ kind: "not_offered";
1686
+ } | {
1687
+ kind: "merchant_managed";
1688
+ summary: string;
1689
+ url?: string | undefined;
1690
+ }, {
1691
+ kind: "not_offered";
1692
+ } | {
1693
+ kind: "merchant_managed";
1694
+ summary: string;
1695
+ url?: string | undefined;
1696
+ }>>;
1697
+ }, z.core.$strip>>;
1698
+ invoicing: z.ZodObject<{
1699
+ test: z.ZodType<{
1700
+ status: "unavailable";
1701
+ cause: "timbro_unreachable";
1702
+ } | {
1703
+ status: "available";
1704
+ binding: {
1705
+ status: "unbound";
1706
+ } | {
1707
+ status: "provisioning";
1708
+ } | {
1709
+ status: "bound";
1710
+ webhookSecret: "pending" | "sealed";
1711
+ } | {
1712
+ status: "failed";
1713
+ } | {
1714
+ status: "conflict";
1715
+ };
1716
+ legalIssuer: {
1717
+ status: "missing";
1718
+ } | {
1719
+ status: "incomplete";
1720
+ } | {
1721
+ status: "complete";
1722
+ };
1723
+ signingCertificate: {
1724
+ status: "missing";
1725
+ } | {
1726
+ status: "active";
1727
+ sha256: string;
1728
+ signerSerialNumber: string;
1729
+ notBefore: string;
1730
+ notAfter: string;
1731
+ };
1732
+ testFiscalDocument: {
1733
+ status: "not_sent";
1734
+ } | {
1735
+ status: "processing";
1736
+ id: string;
1737
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1738
+ } | {
1739
+ status: "accepted";
1740
+ id: string;
1741
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1742
+ } | {
1743
+ status: "rejected";
1744
+ id: string;
1745
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1746
+ reason: "authority_rejected" | "timbro_rejected";
1747
+ messages: string[];
1748
+ } | {
1749
+ status: "operator_required";
1750
+ id: string;
1751
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1752
+ };
1753
+ }, {
1754
+ status: "unavailable";
1755
+ cause: "timbro_unreachable";
1756
+ } | {
1757
+ status: "available";
1758
+ binding: {
1759
+ status: "unbound";
1760
+ } | {
1761
+ status: "provisioning";
1762
+ } | {
1763
+ status: "bound";
1764
+ webhookSecret: "pending" | "sealed";
1765
+ } | {
1766
+ status: "failed";
1767
+ } | {
1768
+ status: "conflict";
1769
+ };
1770
+ legalIssuer: {
1771
+ status: "missing";
1772
+ } | {
1773
+ status: "incomplete";
1774
+ } | {
1775
+ status: "complete";
1776
+ };
1777
+ signingCertificate: {
1778
+ status: "missing";
1779
+ } | {
1780
+ status: "active";
1781
+ sha256: string;
1782
+ signerSerialNumber: string;
1783
+ notBefore: string;
1784
+ notAfter: string;
1785
+ };
1786
+ testFiscalDocument: {
1787
+ status: "not_sent";
1788
+ } | {
1789
+ status: "processing";
1790
+ id: string;
1791
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1792
+ } | {
1793
+ status: "accepted";
1794
+ id: string;
1795
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1796
+ } | {
1797
+ status: "rejected";
1798
+ id: string;
1799
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1800
+ reason: "authority_rejected" | "timbro_rejected";
1801
+ messages: string[];
1802
+ } | {
1803
+ status: "operator_required";
1804
+ id: string;
1805
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1806
+ };
1807
+ }, z.core.$ZodTypeInternals<{
1808
+ status: "unavailable";
1809
+ cause: "timbro_unreachable";
1810
+ } | {
1811
+ status: "available";
1812
+ binding: {
1813
+ status: "unbound";
1814
+ } | {
1815
+ status: "provisioning";
1816
+ } | {
1817
+ status: "bound";
1818
+ webhookSecret: "pending" | "sealed";
1819
+ } | {
1820
+ status: "failed";
1821
+ } | {
1822
+ status: "conflict";
1823
+ };
1824
+ legalIssuer: {
1825
+ status: "missing";
1826
+ } | {
1827
+ status: "incomplete";
1828
+ } | {
1829
+ status: "complete";
1830
+ };
1831
+ signingCertificate: {
1832
+ status: "missing";
1833
+ } | {
1834
+ status: "active";
1835
+ sha256: string;
1836
+ signerSerialNumber: string;
1837
+ notBefore: string;
1838
+ notAfter: string;
1839
+ };
1840
+ testFiscalDocument: {
1841
+ status: "not_sent";
1842
+ } | {
1843
+ status: "processing";
1844
+ id: string;
1845
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1846
+ } | {
1847
+ status: "accepted";
1848
+ id: string;
1849
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1850
+ } | {
1851
+ status: "rejected";
1852
+ id: string;
1853
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1854
+ reason: "authority_rejected" | "timbro_rejected";
1855
+ messages: string[];
1856
+ } | {
1857
+ status: "operator_required";
1858
+ id: string;
1859
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1860
+ };
1861
+ }, {
1862
+ status: "unavailable";
1863
+ cause: "timbro_unreachable";
1864
+ } | {
1865
+ status: "available";
1866
+ binding: {
1867
+ status: "unbound";
1868
+ } | {
1869
+ status: "provisioning";
1870
+ } | {
1871
+ status: "bound";
1872
+ webhookSecret: "pending" | "sealed";
1873
+ } | {
1874
+ status: "failed";
1875
+ } | {
1876
+ status: "conflict";
1877
+ };
1878
+ legalIssuer: {
1879
+ status: "missing";
1880
+ } | {
1881
+ status: "incomplete";
1882
+ } | {
1883
+ status: "complete";
1884
+ };
1885
+ signingCertificate: {
1886
+ status: "missing";
1887
+ } | {
1888
+ status: "active";
1889
+ sha256: string;
1890
+ signerSerialNumber: string;
1891
+ notBefore: string;
1892
+ notAfter: string;
1893
+ };
1894
+ testFiscalDocument: {
1895
+ status: "not_sent";
1896
+ } | {
1897
+ status: "processing";
1898
+ id: string;
1899
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1900
+ } | {
1901
+ status: "accepted";
1902
+ id: string;
1903
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1904
+ } | {
1905
+ status: "rejected";
1906
+ id: string;
1907
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1908
+ reason: "authority_rejected" | "timbro_rejected";
1909
+ messages: string[];
1910
+ } | {
1911
+ status: "operator_required";
1912
+ id: string;
1913
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
1914
+ };
1915
+ }>>;
1916
+ live: z.ZodType<{
1917
+ status: "unavailable";
1918
+ cause: "timbro_unreachable";
1919
+ } | {
1920
+ status: "available";
1921
+ binding: {
1922
+ status: "unbound";
1923
+ } | {
1924
+ status: "provisioning";
1925
+ } | {
1926
+ status: "bound";
1927
+ webhookSecret: "pending" | "sealed";
1928
+ } | {
1929
+ status: "failed";
1930
+ } | {
1931
+ status: "conflict";
1932
+ };
1933
+ legalIssuer: {
1934
+ status: "missing";
1935
+ } | {
1936
+ status: "incomplete";
1937
+ } | {
1938
+ status: "complete";
1939
+ };
1940
+ signingCertificate: {
1941
+ status: "missing";
1942
+ } | {
1943
+ status: "active";
1944
+ sha256: string;
1945
+ signerSerialNumber: string;
1946
+ notBefore: string;
1947
+ notAfter: string;
1948
+ };
1949
+ }, {
1950
+ status: "unavailable";
1951
+ cause: "timbro_unreachable";
1952
+ } | {
1953
+ status: "available";
1954
+ binding: {
1955
+ status: "unbound";
1956
+ } | {
1957
+ status: "provisioning";
1958
+ } | {
1959
+ status: "bound";
1960
+ webhookSecret: "pending" | "sealed";
1961
+ } | {
1962
+ status: "failed";
1963
+ } | {
1964
+ status: "conflict";
1965
+ };
1966
+ legalIssuer: {
1967
+ status: "missing";
1968
+ } | {
1969
+ status: "incomplete";
1970
+ } | {
1971
+ status: "complete";
1972
+ };
1973
+ signingCertificate: {
1974
+ status: "missing";
1975
+ } | {
1976
+ status: "active";
1977
+ sha256: string;
1978
+ signerSerialNumber: string;
1979
+ notBefore: string;
1980
+ notAfter: string;
1981
+ };
1982
+ }, z.core.$ZodTypeInternals<{
1983
+ status: "unavailable";
1984
+ cause: "timbro_unreachable";
1985
+ } | {
1986
+ status: "available";
1987
+ binding: {
1988
+ status: "unbound";
1989
+ } | {
1990
+ status: "provisioning";
1991
+ } | {
1992
+ status: "bound";
1993
+ webhookSecret: "pending" | "sealed";
1994
+ } | {
1995
+ status: "failed";
1996
+ } | {
1997
+ status: "conflict";
1998
+ };
1999
+ legalIssuer: {
2000
+ status: "missing";
2001
+ } | {
2002
+ status: "incomplete";
2003
+ } | {
2004
+ status: "complete";
2005
+ };
2006
+ signingCertificate: {
2007
+ status: "missing";
2008
+ } | {
2009
+ status: "active";
2010
+ sha256: string;
2011
+ signerSerialNumber: string;
2012
+ notBefore: string;
2013
+ notAfter: string;
2014
+ };
2015
+ }, {
2016
+ status: "unavailable";
2017
+ cause: "timbro_unreachable";
2018
+ } | {
2019
+ status: "available";
2020
+ binding: {
2021
+ status: "unbound";
2022
+ } | {
2023
+ status: "provisioning";
2024
+ } | {
2025
+ status: "bound";
2026
+ webhookSecret: "pending" | "sealed";
2027
+ } | {
2028
+ status: "failed";
2029
+ } | {
2030
+ status: "conflict";
2031
+ };
2032
+ legalIssuer: {
2033
+ status: "missing";
2034
+ } | {
2035
+ status: "incomplete";
2036
+ } | {
2037
+ status: "complete";
2038
+ };
2039
+ signingCertificate: {
2040
+ status: "missing";
2041
+ } | {
2042
+ status: "active";
2043
+ sha256: string;
2044
+ signerSerialNumber: string;
2045
+ notBefore: string;
2046
+ notAfter: string;
2047
+ };
2048
+ }>>;
2049
+ }, z.core.$strip>;
2050
+ requirements: z.ZodArray<z.ZodObject<{
2051
+ code: z.ZodType<"active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", z.core.$ZodTypeInternals<"active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable">>;
2052
+ owner: z.ZodType<"dgii" | "merchant" | "operator" | "provider" | "timbro", "dgii" | "merchant" | "operator" | "provider" | "timbro", z.core.$ZodTypeInternals<"dgii" | "merchant" | "operator" | "provider" | "timbro", "dgii" | "merchant" | "operator" | "provider" | "timbro">>;
2053
+ blocks: z.ZodArray<z.ZodType<"invoices" | "payments", "invoices" | "payments", z.core.$ZodTypeInternals<"invoices" | "payments", "invoices" | "payments">>>;
2054
+ mode: z.ZodOptional<z.ZodType<"live" | "test", "live" | "test", z.core.$ZodTypeInternals<"live" | "test", "live" | "test">>>;
2055
+ field: z.ZodOptional<z.ZodString>;
2056
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2057
+ code: z.ZodString;
2058
+ message: z.ZodString;
2059
+ }, z.core.$strip>>>;
2060
+ }, z.core.$strip>>;
2061
+ onboardingUrl: z.ZodURL;
2062
+ }, z.core.$strip>;
2063
+ /**
2064
+ * MerchantBusinessConfigureInvoicingRequest
2065
+ */
2066
+ export declare const zConfigureInvoicingResponse: z.ZodObject<{
2067
+ object: z.ZodLiteral<"merchant_business_invoicing_setup">;
2068
+ mode: z.ZodType<"live" | "test", "live" | "test", z.core.$ZodTypeInternals<"live" | "test", "live" | "test">>;
2069
+ }, z.core.$strip>;
2070
+ /**
2071
+ * MerchantBusinessSigningCertificateRequest
2072
+ */
2073
+ export declare const zImportSigningCertificateResponse: z.ZodObject<{
2074
+ object: z.ZodLiteral<"merchant_business">;
2075
+ id: z.ZodString;
2076
+ rnc: z.ZodString;
2077
+ legalName: z.ZodString;
2078
+ revision: z.ZodInt;
2079
+ capabilities: z.ZodObject<{
2080
+ payments: z.ZodObject<{
2081
+ requested: z.ZodBoolean;
2082
+ test: z.ZodObject<{
2083
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
2084
+ }, z.core.$strip>;
2085
+ live: z.ZodObject<{
2086
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
2087
+ }, z.core.$strip>;
2088
+ }, z.core.$strip>;
2089
+ invoices: z.ZodObject<{
2090
+ requested: z.ZodBoolean;
2091
+ test: z.ZodObject<{
2092
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
2093
+ }, z.core.$strip>;
2094
+ live: z.ZodObject<{
2095
+ status: z.ZodType<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable", z.core.$ZodTypeInternals<"active" | "inactive" | "pending" | "unavailable", "active" | "inactive" | "pending" | "unavailable">>;
2096
+ }, z.core.$strip>;
2097
+ }, z.core.$strip>;
2098
+ }, z.core.$strip>;
2099
+ fiscalDetails: z.ZodObject<{
2100
+ commercialName: z.ZodNullable<z.ZodString>;
2101
+ address: z.ZodNullable<z.ZodString>;
2102
+ location: z.ZodNullable<z.ZodObject<{
2103
+ placeId: z.ZodString;
2104
+ catalogReleaseId: z.ZodString;
2105
+ municipalityCode: z.ZodNullable<z.ZodString>;
2106
+ name: z.ZodString;
2107
+ kind: z.ZodType<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", z.core.$ZodTypeInternals<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone">>;
2108
+ qualityStatus: z.ZodType<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified", z.core.$ZodTypeInternals<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified">>;
2109
+ ancestors: z.ZodArray<z.ZodObject<{
2110
+ placeId: z.ZodString;
2111
+ name: z.ZodString;
2112
+ kind: z.ZodType<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", z.core.$ZodTypeInternals<"barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone", "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone">>;
2113
+ qualityStatus: z.ZodType<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified", z.core.$ZodTypeInternals<"conflicted" | "provisional" | "verified", "conflicted" | "provisional" | "verified">>;
2114
+ }, z.core.$strip>>;
2115
+ }, z.core.$strip>>;
2116
+ phone: z.ZodNullable<z.ZodString>;
2117
+ email: z.ZodNullable<z.ZodString>;
2118
+ defaultIncomeType: z.ZodNullable<z.ZodString>;
2119
+ }, z.core.$strip>;
2120
+ paymentsProfile: z.ZodNullable<z.ZodObject<{
2121
+ displayName: z.ZodString;
2122
+ statementDescriptor: z.ZodString;
2123
+ permanentAddress: z.ZodObject<{
2124
+ line1: z.ZodString;
2125
+ line2: z.ZodOptional<z.ZodString>;
2126
+ city: z.ZodString;
2127
+ province: z.ZodOptional<z.ZodString>;
2128
+ postalCode: z.ZodOptional<z.ZodString>;
2129
+ countryCode: z.ZodString;
2130
+ }, z.core.$strip>;
2131
+ supportEmail: z.ZodEmail;
2132
+ supportPhone: z.ZodString;
2133
+ deliveryPolicy: z.ZodType<{
2134
+ kind: "not_offered";
2135
+ } | {
2136
+ kind: "merchant_managed";
2137
+ summary: string;
2138
+ url?: string | undefined;
2139
+ }, {
2140
+ kind: "not_offered";
2141
+ } | {
2142
+ kind: "merchant_managed";
2143
+ summary: string;
2144
+ url?: string | undefined;
2145
+ }, z.core.$ZodTypeInternals<{
2146
+ kind: "not_offered";
2147
+ } | {
2148
+ kind: "merchant_managed";
2149
+ summary: string;
2150
+ url?: string | undefined;
2151
+ }, {
2152
+ kind: "not_offered";
2153
+ } | {
2154
+ kind: "merchant_managed";
2155
+ summary: string;
2156
+ url?: string | undefined;
2157
+ }>>;
2158
+ }, z.core.$strip>>;
2159
+ invoicing: z.ZodObject<{
2160
+ test: z.ZodType<{
2161
+ status: "unavailable";
2162
+ cause: "timbro_unreachable";
2163
+ } | {
2164
+ status: "available";
2165
+ binding: {
2166
+ status: "unbound";
2167
+ } | {
2168
+ status: "provisioning";
2169
+ } | {
2170
+ status: "bound";
2171
+ webhookSecret: "pending" | "sealed";
2172
+ } | {
2173
+ status: "failed";
2174
+ } | {
2175
+ status: "conflict";
2176
+ };
2177
+ legalIssuer: {
2178
+ status: "missing";
2179
+ } | {
2180
+ status: "incomplete";
2181
+ } | {
2182
+ status: "complete";
2183
+ };
2184
+ signingCertificate: {
2185
+ status: "missing";
2186
+ } | {
2187
+ status: "active";
2188
+ sha256: string;
2189
+ signerSerialNumber: string;
2190
+ notBefore: string;
2191
+ notAfter: string;
2192
+ };
2193
+ testFiscalDocument: {
2194
+ status: "not_sent";
2195
+ } | {
2196
+ status: "processing";
2197
+ id: string;
2198
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2199
+ } | {
2200
+ status: "accepted";
2201
+ id: string;
2202
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2203
+ } | {
2204
+ status: "rejected";
2205
+ id: string;
2206
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2207
+ reason: "authority_rejected" | "timbro_rejected";
2208
+ messages: string[];
2209
+ } | {
2210
+ status: "operator_required";
2211
+ id: string;
2212
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2213
+ };
2214
+ }, {
2215
+ status: "unavailable";
2216
+ cause: "timbro_unreachable";
2217
+ } | {
2218
+ status: "available";
2219
+ binding: {
2220
+ status: "unbound";
2221
+ } | {
2222
+ status: "provisioning";
2223
+ } | {
2224
+ status: "bound";
2225
+ webhookSecret: "pending" | "sealed";
2226
+ } | {
2227
+ status: "failed";
2228
+ } | {
2229
+ status: "conflict";
2230
+ };
2231
+ legalIssuer: {
2232
+ status: "missing";
2233
+ } | {
2234
+ status: "incomplete";
2235
+ } | {
2236
+ status: "complete";
2237
+ };
2238
+ signingCertificate: {
2239
+ status: "missing";
2240
+ } | {
2241
+ status: "active";
2242
+ sha256: string;
2243
+ signerSerialNumber: string;
2244
+ notBefore: string;
2245
+ notAfter: string;
2246
+ };
2247
+ testFiscalDocument: {
2248
+ status: "not_sent";
2249
+ } | {
2250
+ status: "processing";
2251
+ id: string;
2252
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2253
+ } | {
2254
+ status: "accepted";
2255
+ id: string;
2256
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2257
+ } | {
2258
+ status: "rejected";
2259
+ id: string;
2260
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2261
+ reason: "authority_rejected" | "timbro_rejected";
2262
+ messages: string[];
2263
+ } | {
2264
+ status: "operator_required";
2265
+ id: string;
2266
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2267
+ };
2268
+ }, z.core.$ZodTypeInternals<{
2269
+ status: "unavailable";
2270
+ cause: "timbro_unreachable";
2271
+ } | {
2272
+ status: "available";
2273
+ binding: {
2274
+ status: "unbound";
2275
+ } | {
2276
+ status: "provisioning";
2277
+ } | {
2278
+ status: "bound";
2279
+ webhookSecret: "pending" | "sealed";
2280
+ } | {
2281
+ status: "failed";
2282
+ } | {
2283
+ status: "conflict";
2284
+ };
2285
+ legalIssuer: {
2286
+ status: "missing";
2287
+ } | {
2288
+ status: "incomplete";
2289
+ } | {
2290
+ status: "complete";
2291
+ };
2292
+ signingCertificate: {
2293
+ status: "missing";
2294
+ } | {
2295
+ status: "active";
2296
+ sha256: string;
2297
+ signerSerialNumber: string;
2298
+ notBefore: string;
2299
+ notAfter: string;
2300
+ };
2301
+ testFiscalDocument: {
2302
+ status: "not_sent";
2303
+ } | {
2304
+ status: "processing";
2305
+ id: string;
2306
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2307
+ } | {
2308
+ status: "accepted";
2309
+ id: string;
2310
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2311
+ } | {
2312
+ status: "rejected";
2313
+ id: string;
2314
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2315
+ reason: "authority_rejected" | "timbro_rejected";
2316
+ messages: string[];
2317
+ } | {
2318
+ status: "operator_required";
2319
+ id: string;
2320
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2321
+ };
2322
+ }, {
2323
+ status: "unavailable";
2324
+ cause: "timbro_unreachable";
2325
+ } | {
2326
+ status: "available";
2327
+ binding: {
2328
+ status: "unbound";
2329
+ } | {
2330
+ status: "provisioning";
2331
+ } | {
2332
+ status: "bound";
2333
+ webhookSecret: "pending" | "sealed";
2334
+ } | {
2335
+ status: "failed";
2336
+ } | {
2337
+ status: "conflict";
2338
+ };
2339
+ legalIssuer: {
2340
+ status: "missing";
2341
+ } | {
2342
+ status: "incomplete";
2343
+ } | {
2344
+ status: "complete";
2345
+ };
2346
+ signingCertificate: {
2347
+ status: "missing";
2348
+ } | {
2349
+ status: "active";
2350
+ sha256: string;
2351
+ signerSerialNumber: string;
2352
+ notBefore: string;
2353
+ notAfter: string;
2354
+ };
2355
+ testFiscalDocument: {
2356
+ status: "not_sent";
2357
+ } | {
2358
+ status: "processing";
2359
+ id: string;
2360
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2361
+ } | {
2362
+ status: "accepted";
2363
+ id: string;
2364
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2365
+ } | {
2366
+ status: "rejected";
2367
+ id: string;
2368
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2369
+ reason: "authority_rejected" | "timbro_rejected";
2370
+ messages: string[];
2371
+ } | {
2372
+ status: "operator_required";
2373
+ id: string;
2374
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2375
+ };
2376
+ }>>;
2377
+ live: z.ZodType<{
2378
+ status: "unavailable";
2379
+ cause: "timbro_unreachable";
2380
+ } | {
2381
+ status: "available";
2382
+ binding: {
2383
+ status: "unbound";
2384
+ } | {
2385
+ status: "provisioning";
2386
+ } | {
2387
+ status: "bound";
2388
+ webhookSecret: "pending" | "sealed";
2389
+ } | {
2390
+ status: "failed";
2391
+ } | {
2392
+ status: "conflict";
2393
+ };
2394
+ legalIssuer: {
2395
+ status: "missing";
2396
+ } | {
2397
+ status: "incomplete";
2398
+ } | {
2399
+ status: "complete";
2400
+ };
2401
+ signingCertificate: {
2402
+ status: "missing";
2403
+ } | {
2404
+ status: "active";
2405
+ sha256: string;
2406
+ signerSerialNumber: string;
2407
+ notBefore: string;
2408
+ notAfter: string;
2409
+ };
2410
+ }, {
2411
+ status: "unavailable";
2412
+ cause: "timbro_unreachable";
2413
+ } | {
2414
+ status: "available";
2415
+ binding: {
2416
+ status: "unbound";
2417
+ } | {
2418
+ status: "provisioning";
2419
+ } | {
2420
+ status: "bound";
2421
+ webhookSecret: "pending" | "sealed";
2422
+ } | {
2423
+ status: "failed";
2424
+ } | {
2425
+ status: "conflict";
2426
+ };
2427
+ legalIssuer: {
2428
+ status: "missing";
2429
+ } | {
2430
+ status: "incomplete";
2431
+ } | {
2432
+ status: "complete";
2433
+ };
2434
+ signingCertificate: {
2435
+ status: "missing";
2436
+ } | {
2437
+ status: "active";
2438
+ sha256: string;
2439
+ signerSerialNumber: string;
2440
+ notBefore: string;
2441
+ notAfter: string;
2442
+ };
2443
+ }, z.core.$ZodTypeInternals<{
2444
+ status: "unavailable";
2445
+ cause: "timbro_unreachable";
2446
+ } | {
2447
+ status: "available";
2448
+ binding: {
2449
+ status: "unbound";
2450
+ } | {
2451
+ status: "provisioning";
2452
+ } | {
2453
+ status: "bound";
2454
+ webhookSecret: "pending" | "sealed";
2455
+ } | {
2456
+ status: "failed";
2457
+ } | {
2458
+ status: "conflict";
2459
+ };
2460
+ legalIssuer: {
2461
+ status: "missing";
2462
+ } | {
2463
+ status: "incomplete";
2464
+ } | {
2465
+ status: "complete";
2466
+ };
2467
+ signingCertificate: {
2468
+ status: "missing";
2469
+ } | {
2470
+ status: "active";
2471
+ sha256: string;
2472
+ signerSerialNumber: string;
2473
+ notBefore: string;
2474
+ notAfter: string;
2475
+ };
2476
+ }, {
2477
+ status: "unavailable";
2478
+ cause: "timbro_unreachable";
2479
+ } | {
2480
+ status: "available";
2481
+ binding: {
2482
+ status: "unbound";
2483
+ } | {
2484
+ status: "provisioning";
2485
+ } | {
2486
+ status: "bound";
2487
+ webhookSecret: "pending" | "sealed";
2488
+ } | {
2489
+ status: "failed";
2490
+ } | {
2491
+ status: "conflict";
2492
+ };
2493
+ legalIssuer: {
2494
+ status: "missing";
2495
+ } | {
2496
+ status: "incomplete";
2497
+ } | {
2498
+ status: "complete";
2499
+ };
2500
+ signingCertificate: {
2501
+ status: "missing";
2502
+ } | {
2503
+ status: "active";
2504
+ sha256: string;
2505
+ signerSerialNumber: string;
2506
+ notBefore: string;
2507
+ notAfter: string;
2508
+ };
2509
+ }>>;
2510
+ }, z.core.$strip>;
2511
+ requirements: z.ZodArray<z.ZodObject<{
2512
+ code: z.ZodType<"active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", z.core.$ZodTypeInternals<"active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable", "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable">>;
2513
+ owner: z.ZodType<"dgii" | "merchant" | "operator" | "provider" | "timbro", "dgii" | "merchant" | "operator" | "provider" | "timbro", z.core.$ZodTypeInternals<"dgii" | "merchant" | "operator" | "provider" | "timbro", "dgii" | "merchant" | "operator" | "provider" | "timbro">>;
2514
+ blocks: z.ZodArray<z.ZodType<"invoices" | "payments", "invoices" | "payments", z.core.$ZodTypeInternals<"invoices" | "payments", "invoices" | "payments">>>;
2515
+ mode: z.ZodOptional<z.ZodType<"live" | "test", "live" | "test", z.core.$ZodTypeInternals<"live" | "test", "live" | "test">>>;
2516
+ field: z.ZodOptional<z.ZodString>;
2517
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2518
+ code: z.ZodString;
2519
+ message: z.ZodString;
2520
+ }, z.core.$strip>>>;
2521
+ }, z.core.$strip>>;
2522
+ onboardingUrl: z.ZodURL;
2523
+ }, z.core.$strip>;
2524
+ /**
2525
+ * MerchantBusinessTestFiscalDocumentRequest
2526
+ */
2527
+ export declare const zIssueTestInvoiceResponse: z.ZodType<{
2528
+ object: "merchant_business";
2529
+ id: string;
2530
+ rnc: string;
2531
+ legalName: string;
2532
+ revision: number;
2533
+ capabilities: {
2534
+ payments: {
2535
+ requested: boolean;
2536
+ test: {
2537
+ status: "active" | "inactive" | "pending" | "unavailable";
2538
+ };
2539
+ live: {
2540
+ status: "active" | "inactive" | "pending" | "unavailable";
2541
+ };
2542
+ };
2543
+ invoices: {
2544
+ requested: boolean;
2545
+ test: {
2546
+ status: "active" | "inactive" | "pending" | "unavailable";
2547
+ };
2548
+ live: {
2549
+ status: "active" | "inactive" | "pending" | "unavailable";
2550
+ };
2551
+ };
2552
+ };
2553
+ fiscalDetails: {
2554
+ commercialName: string | null;
2555
+ address: string | null;
2556
+ location: {
2557
+ placeId: string;
2558
+ catalogReleaseId: string;
2559
+ municipalityCode: string | null;
2560
+ name: string;
2561
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
2562
+ qualityStatus: "conflicted" | "provisional" | "verified";
2563
+ ancestors: {
2564
+ placeId: string;
2565
+ name: string;
2566
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
2567
+ qualityStatus: "conflicted" | "provisional" | "verified";
2568
+ }[];
2569
+ } | null;
2570
+ phone: string | null;
2571
+ email: string | null;
2572
+ defaultIncomeType: string | null;
2573
+ };
2574
+ paymentsProfile: {
2575
+ displayName: string;
2576
+ statementDescriptor: string;
2577
+ permanentAddress: {
2578
+ line1: string;
2579
+ line2?: string | undefined;
2580
+ city: string;
2581
+ province?: string | undefined;
2582
+ postalCode?: string | undefined;
2583
+ countryCode: string;
2584
+ };
2585
+ supportEmail: string;
2586
+ supportPhone: string;
2587
+ deliveryPolicy: {
2588
+ kind: "not_offered";
2589
+ } | {
2590
+ kind: "merchant_managed";
2591
+ summary: string;
2592
+ url?: string | undefined;
2593
+ };
2594
+ } | null;
2595
+ invoicing: {
2596
+ test: {
2597
+ status: "unavailable";
2598
+ cause: "timbro_unreachable";
2599
+ } | {
2600
+ status: "available";
2601
+ binding: {
2602
+ status: "unbound";
2603
+ } | {
2604
+ status: "provisioning";
2605
+ } | {
2606
+ status: "bound";
2607
+ webhookSecret: "pending" | "sealed";
2608
+ } | {
2609
+ status: "failed";
2610
+ } | {
2611
+ status: "conflict";
2612
+ };
2613
+ legalIssuer: {
2614
+ status: "missing";
2615
+ } | {
2616
+ status: "incomplete";
2617
+ } | {
2618
+ status: "complete";
2619
+ };
2620
+ signingCertificate: {
2621
+ status: "missing";
2622
+ } | {
2623
+ status: "active";
2624
+ sha256: string;
2625
+ signerSerialNumber: string;
2626
+ notBefore: string;
2627
+ notAfter: string;
2628
+ };
2629
+ testFiscalDocument: {
2630
+ status: "not_sent";
2631
+ } | {
2632
+ status: "processing";
2633
+ id: string;
2634
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2635
+ } | {
2636
+ status: "accepted";
2637
+ id: string;
2638
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2639
+ } | {
2640
+ status: "rejected";
2641
+ id: string;
2642
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2643
+ reason: "authority_rejected" | "timbro_rejected";
2644
+ messages: string[];
2645
+ } | {
2646
+ status: "operator_required";
2647
+ id: string;
2648
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2649
+ };
2650
+ };
2651
+ live: {
2652
+ status: "unavailable";
2653
+ cause: "timbro_unreachable";
2654
+ } | {
2655
+ status: "available";
2656
+ binding: {
2657
+ status: "unbound";
2658
+ } | {
2659
+ status: "provisioning";
2660
+ } | {
2661
+ status: "bound";
2662
+ webhookSecret: "pending" | "sealed";
2663
+ } | {
2664
+ status: "failed";
2665
+ } | {
2666
+ status: "conflict";
2667
+ };
2668
+ legalIssuer: {
2669
+ status: "missing";
2670
+ } | {
2671
+ status: "incomplete";
2672
+ } | {
2673
+ status: "complete";
2674
+ };
2675
+ signingCertificate: {
2676
+ status: "missing";
2677
+ } | {
2678
+ status: "active";
2679
+ sha256: string;
2680
+ signerSerialNumber: string;
2681
+ notBefore: string;
2682
+ notAfter: string;
2683
+ };
2684
+ };
2685
+ };
2686
+ requirements: {
2687
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
2688
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
2689
+ blocks: ("invoices" | "payments")[];
2690
+ mode?: "live" | "test" | undefined;
2691
+ field?: string | undefined;
2692
+ errors?: {
2693
+ code: string;
2694
+ message: string;
2695
+ }[] | undefined;
2696
+ }[];
2697
+ onboardingUrl: string;
2698
+ } | {
2699
+ object: "merchant_business";
2700
+ id: string;
2701
+ rnc: string;
2702
+ legalName: string;
2703
+ revision: number;
2704
+ capabilities: {
2705
+ payments: {
2706
+ requested: boolean;
2707
+ test: {
2708
+ status: "active" | "inactive" | "pending" | "unavailable";
2709
+ };
2710
+ live: {
2711
+ status: "active" | "inactive" | "pending" | "unavailable";
2712
+ };
2713
+ };
2714
+ invoices: {
2715
+ requested: boolean;
2716
+ test: {
2717
+ status: "active" | "inactive" | "pending" | "unavailable";
2718
+ };
2719
+ live: {
2720
+ status: "active" | "inactive" | "pending" | "unavailable";
2721
+ };
2722
+ };
2723
+ };
2724
+ fiscalDetails: {
2725
+ commercialName: string | null;
2726
+ address: string | null;
2727
+ location: {
2728
+ placeId: string;
2729
+ catalogReleaseId: string;
2730
+ municipalityCode: string | null;
2731
+ name: string;
2732
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
2733
+ qualityStatus: "conflicted" | "provisional" | "verified";
2734
+ ancestors: {
2735
+ placeId: string;
2736
+ name: string;
2737
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
2738
+ qualityStatus: "conflicted" | "provisional" | "verified";
2739
+ }[];
2740
+ } | null;
2741
+ phone: string | null;
2742
+ email: string | null;
2743
+ defaultIncomeType: string | null;
2744
+ };
2745
+ paymentsProfile: {
2746
+ displayName: string;
2747
+ statementDescriptor: string;
2748
+ permanentAddress: {
2749
+ line1: string;
2750
+ line2?: string | undefined;
2751
+ city: string;
2752
+ province?: string | undefined;
2753
+ postalCode?: string | undefined;
2754
+ countryCode: string;
2755
+ };
2756
+ supportEmail: string;
2757
+ supportPhone: string;
2758
+ deliveryPolicy: {
2759
+ kind: "not_offered";
2760
+ } | {
2761
+ kind: "merchant_managed";
2762
+ summary: string;
2763
+ url?: string | undefined;
2764
+ };
2765
+ } | null;
2766
+ invoicing: {
2767
+ test: {
2768
+ status: "unavailable";
2769
+ cause: "timbro_unreachable";
2770
+ } | {
2771
+ status: "available";
2772
+ binding: {
2773
+ status: "unbound";
2774
+ } | {
2775
+ status: "provisioning";
2776
+ } | {
2777
+ status: "bound";
2778
+ webhookSecret: "pending" | "sealed";
2779
+ } | {
2780
+ status: "failed";
2781
+ } | {
2782
+ status: "conflict";
2783
+ };
2784
+ legalIssuer: {
2785
+ status: "missing";
2786
+ } | {
2787
+ status: "incomplete";
2788
+ } | {
2789
+ status: "complete";
2790
+ };
2791
+ signingCertificate: {
2792
+ status: "missing";
2793
+ } | {
2794
+ status: "active";
2795
+ sha256: string;
2796
+ signerSerialNumber: string;
2797
+ notBefore: string;
2798
+ notAfter: string;
2799
+ };
2800
+ testFiscalDocument: {
2801
+ status: "not_sent";
2802
+ } | {
2803
+ status: "processing";
2804
+ id: string;
2805
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2806
+ } | {
2807
+ status: "accepted";
2808
+ id: string;
2809
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2810
+ } | {
2811
+ status: "rejected";
2812
+ id: string;
2813
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2814
+ reason: "authority_rejected" | "timbro_rejected";
2815
+ messages: string[];
2816
+ } | {
2817
+ status: "operator_required";
2818
+ id: string;
2819
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2820
+ };
2821
+ };
2822
+ live: {
2823
+ status: "unavailable";
2824
+ cause: "timbro_unreachable";
2825
+ } | {
2826
+ status: "available";
2827
+ binding: {
2828
+ status: "unbound";
2829
+ } | {
2830
+ status: "provisioning";
2831
+ } | {
2832
+ status: "bound";
2833
+ webhookSecret: "pending" | "sealed";
2834
+ } | {
2835
+ status: "failed";
2836
+ } | {
2837
+ status: "conflict";
2838
+ };
2839
+ legalIssuer: {
2840
+ status: "missing";
2841
+ } | {
2842
+ status: "incomplete";
2843
+ } | {
2844
+ status: "complete";
2845
+ };
2846
+ signingCertificate: {
2847
+ status: "missing";
2848
+ } | {
2849
+ status: "active";
2850
+ sha256: string;
2851
+ signerSerialNumber: string;
2852
+ notBefore: string;
2853
+ notAfter: string;
2854
+ };
2855
+ };
2856
+ };
2857
+ requirements: {
2858
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
2859
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
2860
+ blocks: ("invoices" | "payments")[];
2861
+ mode?: "live" | "test" | undefined;
2862
+ field?: string | undefined;
2863
+ errors?: {
2864
+ code: string;
2865
+ message: string;
2866
+ }[] | undefined;
2867
+ }[];
2868
+ onboardingUrl: string;
2869
+ }, {
2870
+ object: "merchant_business";
2871
+ id: string;
2872
+ rnc: string;
2873
+ legalName: string;
2874
+ revision: number;
2875
+ capabilities: {
2876
+ payments: {
2877
+ requested: boolean;
2878
+ test: {
2879
+ status: "active" | "inactive" | "pending" | "unavailable";
2880
+ };
2881
+ live: {
2882
+ status: "active" | "inactive" | "pending" | "unavailable";
2883
+ };
2884
+ };
2885
+ invoices: {
2886
+ requested: boolean;
2887
+ test: {
2888
+ status: "active" | "inactive" | "pending" | "unavailable";
2889
+ };
2890
+ live: {
2891
+ status: "active" | "inactive" | "pending" | "unavailable";
2892
+ };
2893
+ };
2894
+ };
2895
+ fiscalDetails: {
2896
+ commercialName: string | null;
2897
+ address: string | null;
2898
+ location: {
2899
+ placeId: string;
2900
+ catalogReleaseId: string;
2901
+ municipalityCode: string | null;
2902
+ name: string;
2903
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
2904
+ qualityStatus: "conflicted" | "provisional" | "verified";
2905
+ ancestors: {
2906
+ placeId: string;
2907
+ name: string;
2908
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
2909
+ qualityStatus: "conflicted" | "provisional" | "verified";
2910
+ }[];
2911
+ } | null;
2912
+ phone: string | null;
2913
+ email: string | null;
2914
+ defaultIncomeType: string | null;
2915
+ };
2916
+ paymentsProfile: {
2917
+ displayName: string;
2918
+ statementDescriptor: string;
2919
+ permanentAddress: {
2920
+ line1: string;
2921
+ line2?: string | undefined;
2922
+ city: string;
2923
+ province?: string | undefined;
2924
+ postalCode?: string | undefined;
2925
+ countryCode: string;
2926
+ };
2927
+ supportEmail: string;
2928
+ supportPhone: string;
2929
+ deliveryPolicy: {
2930
+ kind: "not_offered";
2931
+ } | {
2932
+ kind: "merchant_managed";
2933
+ summary: string;
2934
+ url?: string | undefined;
2935
+ };
2936
+ } | null;
2937
+ invoicing: {
2938
+ test: {
2939
+ status: "unavailable";
2940
+ cause: "timbro_unreachable";
2941
+ } | {
2942
+ status: "available";
2943
+ binding: {
2944
+ status: "unbound";
2945
+ } | {
2946
+ status: "provisioning";
2947
+ } | {
2948
+ status: "bound";
2949
+ webhookSecret: "pending" | "sealed";
2950
+ } | {
2951
+ status: "failed";
2952
+ } | {
2953
+ status: "conflict";
2954
+ };
2955
+ legalIssuer: {
2956
+ status: "missing";
2957
+ } | {
2958
+ status: "incomplete";
2959
+ } | {
2960
+ status: "complete";
2961
+ };
2962
+ signingCertificate: {
2963
+ status: "missing";
2964
+ } | {
2965
+ status: "active";
2966
+ sha256: string;
2967
+ signerSerialNumber: string;
2968
+ notBefore: string;
2969
+ notAfter: string;
2970
+ };
2971
+ testFiscalDocument: {
2972
+ status: "not_sent";
2973
+ } | {
2974
+ status: "processing";
2975
+ id: string;
2976
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2977
+ } | {
2978
+ status: "accepted";
2979
+ id: string;
2980
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2981
+ } | {
2982
+ status: "rejected";
2983
+ id: string;
2984
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2985
+ reason: "authority_rejected" | "timbro_rejected";
2986
+ messages: string[];
2987
+ } | {
2988
+ status: "operator_required";
2989
+ id: string;
2990
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
2991
+ };
2992
+ };
2993
+ live: {
2994
+ status: "unavailable";
2995
+ cause: "timbro_unreachable";
2996
+ } | {
2997
+ status: "available";
2998
+ binding: {
2999
+ status: "unbound";
3000
+ } | {
3001
+ status: "provisioning";
3002
+ } | {
3003
+ status: "bound";
3004
+ webhookSecret: "pending" | "sealed";
3005
+ } | {
3006
+ status: "failed";
3007
+ } | {
3008
+ status: "conflict";
3009
+ };
3010
+ legalIssuer: {
3011
+ status: "missing";
3012
+ } | {
3013
+ status: "incomplete";
3014
+ } | {
3015
+ status: "complete";
3016
+ };
3017
+ signingCertificate: {
3018
+ status: "missing";
3019
+ } | {
3020
+ status: "active";
3021
+ sha256: string;
3022
+ signerSerialNumber: string;
3023
+ notBefore: string;
3024
+ notAfter: string;
3025
+ };
3026
+ };
3027
+ };
3028
+ requirements: {
3029
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
3030
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
3031
+ blocks: ("invoices" | "payments")[];
3032
+ mode?: "live" | "test" | undefined;
3033
+ field?: string | undefined;
3034
+ errors?: {
3035
+ code: string;
3036
+ message: string;
3037
+ }[] | undefined;
3038
+ }[];
3039
+ onboardingUrl: string;
3040
+ } | {
3041
+ object: "merchant_business";
3042
+ id: string;
3043
+ rnc: string;
3044
+ legalName: string;
3045
+ revision: number;
3046
+ capabilities: {
3047
+ payments: {
3048
+ requested: boolean;
3049
+ test: {
3050
+ status: "active" | "inactive" | "pending" | "unavailable";
3051
+ };
3052
+ live: {
3053
+ status: "active" | "inactive" | "pending" | "unavailable";
3054
+ };
3055
+ };
3056
+ invoices: {
3057
+ requested: boolean;
3058
+ test: {
3059
+ status: "active" | "inactive" | "pending" | "unavailable";
3060
+ };
3061
+ live: {
3062
+ status: "active" | "inactive" | "pending" | "unavailable";
3063
+ };
3064
+ };
3065
+ };
3066
+ fiscalDetails: {
3067
+ commercialName: string | null;
3068
+ address: string | null;
3069
+ location: {
3070
+ placeId: string;
3071
+ catalogReleaseId: string;
3072
+ municipalityCode: string | null;
3073
+ name: string;
3074
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3075
+ qualityStatus: "conflicted" | "provisional" | "verified";
3076
+ ancestors: {
3077
+ placeId: string;
3078
+ name: string;
3079
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3080
+ qualityStatus: "conflicted" | "provisional" | "verified";
3081
+ }[];
3082
+ } | null;
3083
+ phone: string | null;
3084
+ email: string | null;
3085
+ defaultIncomeType: string | null;
3086
+ };
3087
+ paymentsProfile: {
3088
+ displayName: string;
3089
+ statementDescriptor: string;
3090
+ permanentAddress: {
3091
+ line1: string;
3092
+ line2?: string | undefined;
3093
+ city: string;
3094
+ province?: string | undefined;
3095
+ postalCode?: string | undefined;
3096
+ countryCode: string;
3097
+ };
3098
+ supportEmail: string;
3099
+ supportPhone: string;
3100
+ deliveryPolicy: {
3101
+ kind: "not_offered";
3102
+ } | {
3103
+ kind: "merchant_managed";
3104
+ summary: string;
3105
+ url?: string | undefined;
3106
+ };
3107
+ } | null;
3108
+ invoicing: {
3109
+ test: {
3110
+ status: "unavailable";
3111
+ cause: "timbro_unreachable";
3112
+ } | {
3113
+ status: "available";
3114
+ binding: {
3115
+ status: "unbound";
3116
+ } | {
3117
+ status: "provisioning";
3118
+ } | {
3119
+ status: "bound";
3120
+ webhookSecret: "pending" | "sealed";
3121
+ } | {
3122
+ status: "failed";
3123
+ } | {
3124
+ status: "conflict";
3125
+ };
3126
+ legalIssuer: {
3127
+ status: "missing";
3128
+ } | {
3129
+ status: "incomplete";
3130
+ } | {
3131
+ status: "complete";
3132
+ };
3133
+ signingCertificate: {
3134
+ status: "missing";
3135
+ } | {
3136
+ status: "active";
3137
+ sha256: string;
3138
+ signerSerialNumber: string;
3139
+ notBefore: string;
3140
+ notAfter: string;
3141
+ };
3142
+ testFiscalDocument: {
3143
+ status: "not_sent";
3144
+ } | {
3145
+ status: "processing";
3146
+ id: string;
3147
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3148
+ } | {
3149
+ status: "accepted";
3150
+ id: string;
3151
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3152
+ } | {
3153
+ status: "rejected";
3154
+ id: string;
3155
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3156
+ reason: "authority_rejected" | "timbro_rejected";
3157
+ messages: string[];
3158
+ } | {
3159
+ status: "operator_required";
3160
+ id: string;
3161
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3162
+ };
3163
+ };
3164
+ live: {
3165
+ status: "unavailable";
3166
+ cause: "timbro_unreachable";
3167
+ } | {
3168
+ status: "available";
3169
+ binding: {
3170
+ status: "unbound";
3171
+ } | {
3172
+ status: "provisioning";
3173
+ } | {
3174
+ status: "bound";
3175
+ webhookSecret: "pending" | "sealed";
3176
+ } | {
3177
+ status: "failed";
3178
+ } | {
3179
+ status: "conflict";
3180
+ };
3181
+ legalIssuer: {
3182
+ status: "missing";
3183
+ } | {
3184
+ status: "incomplete";
3185
+ } | {
3186
+ status: "complete";
3187
+ };
3188
+ signingCertificate: {
3189
+ status: "missing";
3190
+ } | {
3191
+ status: "active";
3192
+ sha256: string;
3193
+ signerSerialNumber: string;
3194
+ notBefore: string;
3195
+ notAfter: string;
3196
+ };
3197
+ };
3198
+ };
3199
+ requirements: {
3200
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
3201
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
3202
+ blocks: ("invoices" | "payments")[];
3203
+ mode?: "live" | "test" | undefined;
3204
+ field?: string | undefined;
3205
+ errors?: {
3206
+ code: string;
3207
+ message: string;
3208
+ }[] | undefined;
3209
+ }[];
3210
+ onboardingUrl: string;
3211
+ }, z.core.$ZodTypeInternals<{
3212
+ object: "merchant_business";
3213
+ id: string;
3214
+ rnc: string;
3215
+ legalName: string;
3216
+ revision: number;
3217
+ capabilities: {
3218
+ payments: {
3219
+ requested: boolean;
3220
+ test: {
3221
+ status: "active" | "inactive" | "pending" | "unavailable";
3222
+ };
3223
+ live: {
3224
+ status: "active" | "inactive" | "pending" | "unavailable";
3225
+ };
3226
+ };
3227
+ invoices: {
3228
+ requested: boolean;
3229
+ test: {
3230
+ status: "active" | "inactive" | "pending" | "unavailable";
3231
+ };
3232
+ live: {
3233
+ status: "active" | "inactive" | "pending" | "unavailable";
3234
+ };
3235
+ };
3236
+ };
3237
+ fiscalDetails: {
3238
+ commercialName: string | null;
3239
+ address: string | null;
3240
+ location: {
3241
+ placeId: string;
3242
+ catalogReleaseId: string;
3243
+ municipalityCode: string | null;
3244
+ name: string;
3245
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3246
+ qualityStatus: "conflicted" | "provisional" | "verified";
3247
+ ancestors: {
3248
+ placeId: string;
3249
+ name: string;
3250
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3251
+ qualityStatus: "conflicted" | "provisional" | "verified";
3252
+ }[];
3253
+ } | null;
3254
+ phone: string | null;
3255
+ email: string | null;
3256
+ defaultIncomeType: string | null;
3257
+ };
3258
+ paymentsProfile: {
3259
+ displayName: string;
3260
+ statementDescriptor: string;
3261
+ permanentAddress: {
3262
+ line1: string;
3263
+ line2?: string | undefined;
3264
+ city: string;
3265
+ province?: string | undefined;
3266
+ postalCode?: string | undefined;
3267
+ countryCode: string;
3268
+ };
3269
+ supportEmail: string;
3270
+ supportPhone: string;
3271
+ deliveryPolicy: {
3272
+ kind: "not_offered";
3273
+ } | {
3274
+ kind: "merchant_managed";
3275
+ summary: string;
3276
+ url?: string | undefined;
3277
+ };
3278
+ } | null;
3279
+ invoicing: {
3280
+ test: {
3281
+ status: "unavailable";
3282
+ cause: "timbro_unreachable";
3283
+ } | {
3284
+ status: "available";
3285
+ binding: {
3286
+ status: "unbound";
3287
+ } | {
3288
+ status: "provisioning";
3289
+ } | {
3290
+ status: "bound";
3291
+ webhookSecret: "pending" | "sealed";
3292
+ } | {
3293
+ status: "failed";
3294
+ } | {
3295
+ status: "conflict";
3296
+ };
3297
+ legalIssuer: {
3298
+ status: "missing";
3299
+ } | {
3300
+ status: "incomplete";
3301
+ } | {
3302
+ status: "complete";
3303
+ };
3304
+ signingCertificate: {
3305
+ status: "missing";
3306
+ } | {
3307
+ status: "active";
3308
+ sha256: string;
3309
+ signerSerialNumber: string;
3310
+ notBefore: string;
3311
+ notAfter: string;
3312
+ };
3313
+ testFiscalDocument: {
3314
+ status: "not_sent";
3315
+ } | {
3316
+ status: "processing";
3317
+ id: string;
3318
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3319
+ } | {
3320
+ status: "accepted";
3321
+ id: string;
3322
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3323
+ } | {
3324
+ status: "rejected";
3325
+ id: string;
3326
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3327
+ reason: "authority_rejected" | "timbro_rejected";
3328
+ messages: string[];
3329
+ } | {
3330
+ status: "operator_required";
3331
+ id: string;
3332
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3333
+ };
3334
+ };
3335
+ live: {
3336
+ status: "unavailable";
3337
+ cause: "timbro_unreachable";
3338
+ } | {
3339
+ status: "available";
3340
+ binding: {
3341
+ status: "unbound";
3342
+ } | {
3343
+ status: "provisioning";
3344
+ } | {
3345
+ status: "bound";
3346
+ webhookSecret: "pending" | "sealed";
3347
+ } | {
3348
+ status: "failed";
3349
+ } | {
3350
+ status: "conflict";
3351
+ };
3352
+ legalIssuer: {
3353
+ status: "missing";
3354
+ } | {
3355
+ status: "incomplete";
3356
+ } | {
3357
+ status: "complete";
3358
+ };
3359
+ signingCertificate: {
3360
+ status: "missing";
3361
+ } | {
3362
+ status: "active";
3363
+ sha256: string;
3364
+ signerSerialNumber: string;
3365
+ notBefore: string;
3366
+ notAfter: string;
3367
+ };
3368
+ };
3369
+ };
3370
+ requirements: {
3371
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
3372
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
3373
+ blocks: ("invoices" | "payments")[];
3374
+ mode?: "live" | "test" | undefined;
3375
+ field?: string | undefined;
3376
+ errors?: {
3377
+ code: string;
3378
+ message: string;
3379
+ }[] | undefined;
3380
+ }[];
3381
+ onboardingUrl: string;
3382
+ } | {
3383
+ object: "merchant_business";
3384
+ id: string;
3385
+ rnc: string;
3386
+ legalName: string;
3387
+ revision: number;
3388
+ capabilities: {
3389
+ payments: {
3390
+ requested: boolean;
3391
+ test: {
3392
+ status: "active" | "inactive" | "pending" | "unavailable";
3393
+ };
3394
+ live: {
3395
+ status: "active" | "inactive" | "pending" | "unavailable";
3396
+ };
3397
+ };
3398
+ invoices: {
3399
+ requested: boolean;
3400
+ test: {
3401
+ status: "active" | "inactive" | "pending" | "unavailable";
3402
+ };
3403
+ live: {
3404
+ status: "active" | "inactive" | "pending" | "unavailable";
3405
+ };
3406
+ };
3407
+ };
3408
+ fiscalDetails: {
3409
+ commercialName: string | null;
3410
+ address: string | null;
3411
+ location: {
3412
+ placeId: string;
3413
+ catalogReleaseId: string;
3414
+ municipalityCode: string | null;
3415
+ name: string;
3416
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3417
+ qualityStatus: "conflicted" | "provisional" | "verified";
3418
+ ancestors: {
3419
+ placeId: string;
3420
+ name: string;
3421
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3422
+ qualityStatus: "conflicted" | "provisional" | "verified";
3423
+ }[];
3424
+ } | null;
3425
+ phone: string | null;
3426
+ email: string | null;
3427
+ defaultIncomeType: string | null;
3428
+ };
3429
+ paymentsProfile: {
3430
+ displayName: string;
3431
+ statementDescriptor: string;
3432
+ permanentAddress: {
3433
+ line1: string;
3434
+ line2?: string | undefined;
3435
+ city: string;
3436
+ province?: string | undefined;
3437
+ postalCode?: string | undefined;
3438
+ countryCode: string;
3439
+ };
3440
+ supportEmail: string;
3441
+ supportPhone: string;
3442
+ deliveryPolicy: {
3443
+ kind: "not_offered";
3444
+ } | {
3445
+ kind: "merchant_managed";
3446
+ summary: string;
3447
+ url?: string | undefined;
3448
+ };
3449
+ } | null;
3450
+ invoicing: {
3451
+ test: {
3452
+ status: "unavailable";
3453
+ cause: "timbro_unreachable";
3454
+ } | {
3455
+ status: "available";
3456
+ binding: {
3457
+ status: "unbound";
3458
+ } | {
3459
+ status: "provisioning";
3460
+ } | {
3461
+ status: "bound";
3462
+ webhookSecret: "pending" | "sealed";
3463
+ } | {
3464
+ status: "failed";
3465
+ } | {
3466
+ status: "conflict";
3467
+ };
3468
+ legalIssuer: {
3469
+ status: "missing";
3470
+ } | {
3471
+ status: "incomplete";
3472
+ } | {
3473
+ status: "complete";
3474
+ };
3475
+ signingCertificate: {
3476
+ status: "missing";
3477
+ } | {
3478
+ status: "active";
3479
+ sha256: string;
3480
+ signerSerialNumber: string;
3481
+ notBefore: string;
3482
+ notAfter: string;
3483
+ };
3484
+ testFiscalDocument: {
3485
+ status: "not_sent";
3486
+ } | {
3487
+ status: "processing";
3488
+ id: string;
3489
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3490
+ } | {
3491
+ status: "accepted";
3492
+ id: string;
3493
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3494
+ } | {
3495
+ status: "rejected";
3496
+ id: string;
3497
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3498
+ reason: "authority_rejected" | "timbro_rejected";
3499
+ messages: string[];
3500
+ } | {
3501
+ status: "operator_required";
3502
+ id: string;
3503
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3504
+ };
3505
+ };
3506
+ live: {
3507
+ status: "unavailable";
3508
+ cause: "timbro_unreachable";
3509
+ } | {
3510
+ status: "available";
3511
+ binding: {
3512
+ status: "unbound";
3513
+ } | {
3514
+ status: "provisioning";
3515
+ } | {
3516
+ status: "bound";
3517
+ webhookSecret: "pending" | "sealed";
3518
+ } | {
3519
+ status: "failed";
3520
+ } | {
3521
+ status: "conflict";
3522
+ };
3523
+ legalIssuer: {
3524
+ status: "missing";
3525
+ } | {
3526
+ status: "incomplete";
3527
+ } | {
3528
+ status: "complete";
3529
+ };
3530
+ signingCertificate: {
3531
+ status: "missing";
3532
+ } | {
3533
+ status: "active";
3534
+ sha256: string;
3535
+ signerSerialNumber: string;
3536
+ notBefore: string;
3537
+ notAfter: string;
3538
+ };
3539
+ };
3540
+ };
3541
+ requirements: {
3542
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
3543
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
3544
+ blocks: ("invoices" | "payments")[];
3545
+ mode?: "live" | "test" | undefined;
3546
+ field?: string | undefined;
3547
+ errors?: {
3548
+ code: string;
3549
+ message: string;
3550
+ }[] | undefined;
3551
+ }[];
3552
+ onboardingUrl: string;
3553
+ }, {
3554
+ object: "merchant_business";
3555
+ id: string;
3556
+ rnc: string;
3557
+ legalName: string;
3558
+ revision: number;
3559
+ capabilities: {
3560
+ payments: {
3561
+ requested: boolean;
3562
+ test: {
3563
+ status: "active" | "inactive" | "pending" | "unavailable";
3564
+ };
3565
+ live: {
3566
+ status: "active" | "inactive" | "pending" | "unavailable";
3567
+ };
3568
+ };
3569
+ invoices: {
3570
+ requested: boolean;
3571
+ test: {
3572
+ status: "active" | "inactive" | "pending" | "unavailable";
3573
+ };
3574
+ live: {
3575
+ status: "active" | "inactive" | "pending" | "unavailable";
3576
+ };
3577
+ };
3578
+ };
3579
+ fiscalDetails: {
3580
+ commercialName: string | null;
3581
+ address: string | null;
3582
+ location: {
3583
+ placeId: string;
3584
+ catalogReleaseId: string;
3585
+ municipalityCode: string | null;
3586
+ name: string;
3587
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3588
+ qualityStatus: "conflicted" | "provisional" | "verified";
3589
+ ancestors: {
3590
+ placeId: string;
3591
+ name: string;
3592
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3593
+ qualityStatus: "conflicted" | "provisional" | "verified";
3594
+ }[];
3595
+ } | null;
3596
+ phone: string | null;
3597
+ email: string | null;
3598
+ defaultIncomeType: string | null;
3599
+ };
3600
+ paymentsProfile: {
3601
+ displayName: string;
3602
+ statementDescriptor: string;
3603
+ permanentAddress: {
3604
+ line1: string;
3605
+ line2?: string | undefined;
3606
+ city: string;
3607
+ province?: string | undefined;
3608
+ postalCode?: string | undefined;
3609
+ countryCode: string;
3610
+ };
3611
+ supportEmail: string;
3612
+ supportPhone: string;
3613
+ deliveryPolicy: {
3614
+ kind: "not_offered";
3615
+ } | {
3616
+ kind: "merchant_managed";
3617
+ summary: string;
3618
+ url?: string | undefined;
3619
+ };
3620
+ } | null;
3621
+ invoicing: {
3622
+ test: {
3623
+ status: "unavailable";
3624
+ cause: "timbro_unreachable";
3625
+ } | {
3626
+ status: "available";
3627
+ binding: {
3628
+ status: "unbound";
3629
+ } | {
3630
+ status: "provisioning";
3631
+ } | {
3632
+ status: "bound";
3633
+ webhookSecret: "pending" | "sealed";
3634
+ } | {
3635
+ status: "failed";
3636
+ } | {
3637
+ status: "conflict";
3638
+ };
3639
+ legalIssuer: {
3640
+ status: "missing";
3641
+ } | {
3642
+ status: "incomplete";
3643
+ } | {
3644
+ status: "complete";
3645
+ };
3646
+ signingCertificate: {
3647
+ status: "missing";
3648
+ } | {
3649
+ status: "active";
3650
+ sha256: string;
3651
+ signerSerialNumber: string;
3652
+ notBefore: string;
3653
+ notAfter: string;
3654
+ };
3655
+ testFiscalDocument: {
3656
+ status: "not_sent";
3657
+ } | {
3658
+ status: "processing";
3659
+ id: string;
3660
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3661
+ } | {
3662
+ status: "accepted";
3663
+ id: string;
3664
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3665
+ } | {
3666
+ status: "rejected";
3667
+ id: string;
3668
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3669
+ reason: "authority_rejected" | "timbro_rejected";
3670
+ messages: string[];
3671
+ } | {
3672
+ status: "operator_required";
3673
+ id: string;
3674
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3675
+ };
3676
+ };
3677
+ live: {
3678
+ status: "unavailable";
3679
+ cause: "timbro_unreachable";
3680
+ } | {
3681
+ status: "available";
3682
+ binding: {
3683
+ status: "unbound";
3684
+ } | {
3685
+ status: "provisioning";
3686
+ } | {
3687
+ status: "bound";
3688
+ webhookSecret: "pending" | "sealed";
3689
+ } | {
3690
+ status: "failed";
3691
+ } | {
3692
+ status: "conflict";
3693
+ };
3694
+ legalIssuer: {
3695
+ status: "missing";
3696
+ } | {
3697
+ status: "incomplete";
3698
+ } | {
3699
+ status: "complete";
3700
+ };
3701
+ signingCertificate: {
3702
+ status: "missing";
3703
+ } | {
3704
+ status: "active";
3705
+ sha256: string;
3706
+ signerSerialNumber: string;
3707
+ notBefore: string;
3708
+ notAfter: string;
3709
+ };
3710
+ };
3711
+ };
3712
+ requirements: {
3713
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
3714
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
3715
+ blocks: ("invoices" | "payments")[];
3716
+ mode?: "live" | "test" | undefined;
3717
+ field?: string | undefined;
3718
+ errors?: {
3719
+ code: string;
3720
+ message: string;
3721
+ }[] | undefined;
3722
+ }[];
3723
+ onboardingUrl: string;
3724
+ } | {
3725
+ object: "merchant_business";
3726
+ id: string;
3727
+ rnc: string;
3728
+ legalName: string;
3729
+ revision: number;
3730
+ capabilities: {
3731
+ payments: {
3732
+ requested: boolean;
3733
+ test: {
3734
+ status: "active" | "inactive" | "pending" | "unavailable";
3735
+ };
3736
+ live: {
3737
+ status: "active" | "inactive" | "pending" | "unavailable";
3738
+ };
3739
+ };
3740
+ invoices: {
3741
+ requested: boolean;
3742
+ test: {
3743
+ status: "active" | "inactive" | "pending" | "unavailable";
3744
+ };
3745
+ live: {
3746
+ status: "active" | "inactive" | "pending" | "unavailable";
3747
+ };
3748
+ };
3749
+ };
3750
+ fiscalDetails: {
3751
+ commercialName: string | null;
3752
+ address: string | null;
3753
+ location: {
3754
+ placeId: string;
3755
+ catalogReleaseId: string;
3756
+ municipalityCode: string | null;
3757
+ name: string;
3758
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3759
+ qualityStatus: "conflicted" | "provisional" | "verified";
3760
+ ancestors: {
3761
+ placeId: string;
3762
+ name: string;
3763
+ kind: "barrio" | "country" | "municipal_district" | "municipality" | "national_district" | "paraje" | "province" | "region" | "section" | "subbarrio" | "urban_zone";
3764
+ qualityStatus: "conflicted" | "provisional" | "verified";
3765
+ }[];
3766
+ } | null;
3767
+ phone: string | null;
3768
+ email: string | null;
3769
+ defaultIncomeType: string | null;
3770
+ };
3771
+ paymentsProfile: {
3772
+ displayName: string;
3773
+ statementDescriptor: string;
3774
+ permanentAddress: {
3775
+ line1: string;
3776
+ line2?: string | undefined;
3777
+ city: string;
3778
+ province?: string | undefined;
3779
+ postalCode?: string | undefined;
3780
+ countryCode: string;
3781
+ };
3782
+ supportEmail: string;
3783
+ supportPhone: string;
3784
+ deliveryPolicy: {
3785
+ kind: "not_offered";
3786
+ } | {
3787
+ kind: "merchant_managed";
3788
+ summary: string;
3789
+ url?: string | undefined;
3790
+ };
3791
+ } | null;
3792
+ invoicing: {
3793
+ test: {
3794
+ status: "unavailable";
3795
+ cause: "timbro_unreachable";
3796
+ } | {
3797
+ status: "available";
3798
+ binding: {
3799
+ status: "unbound";
3800
+ } | {
3801
+ status: "provisioning";
3802
+ } | {
3803
+ status: "bound";
3804
+ webhookSecret: "pending" | "sealed";
3805
+ } | {
3806
+ status: "failed";
3807
+ } | {
3808
+ status: "conflict";
3809
+ };
3810
+ legalIssuer: {
3811
+ status: "missing";
3812
+ } | {
3813
+ status: "incomplete";
3814
+ } | {
3815
+ status: "complete";
3816
+ };
3817
+ signingCertificate: {
3818
+ status: "missing";
3819
+ } | {
3820
+ status: "active";
3821
+ sha256: string;
3822
+ signerSerialNumber: string;
3823
+ notBefore: string;
3824
+ notAfter: string;
3825
+ };
3826
+ testFiscalDocument: {
3827
+ status: "not_sent";
3828
+ } | {
3829
+ status: "processing";
3830
+ id: string;
3831
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3832
+ } | {
3833
+ status: "accepted";
3834
+ id: string;
3835
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3836
+ } | {
3837
+ status: "rejected";
3838
+ id: string;
3839
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3840
+ reason: "authority_rejected" | "timbro_rejected";
3841
+ messages: string[];
3842
+ } | {
3843
+ status: "operator_required";
3844
+ id: string;
3845
+ documentType: "31" | "32" | "33" | "34" | "41" | "43" | "44" | "45" | "46" | "47";
3846
+ };
3847
+ };
3848
+ live: {
3849
+ status: "unavailable";
3850
+ cause: "timbro_unreachable";
3851
+ } | {
3852
+ status: "available";
3853
+ binding: {
3854
+ status: "unbound";
3855
+ } | {
3856
+ status: "provisioning";
3857
+ } | {
3858
+ status: "bound";
3859
+ webhookSecret: "pending" | "sealed";
3860
+ } | {
3861
+ status: "failed";
3862
+ } | {
3863
+ status: "conflict";
3864
+ };
3865
+ legalIssuer: {
3866
+ status: "missing";
3867
+ } | {
3868
+ status: "incomplete";
3869
+ } | {
3870
+ status: "complete";
3871
+ };
3872
+ signingCertificate: {
3873
+ status: "missing";
3874
+ } | {
3875
+ status: "active";
3876
+ sha256: string;
3877
+ signerSerialNumber: string;
3878
+ notBefore: string;
3879
+ notAfter: string;
3880
+ };
3881
+ };
3882
+ };
3883
+ requirements: {
3884
+ code: "active_credential_required" | "address_required" | "callback_configuration_failed" | "callback_configuration_required" | "capabilities_required" | "commercial_name_required" | "connectivity_check_failed" | "connectivity_check_required" | "contact_email_verification_required" | "credential_material_invalid" | "default_income_type_required" | "fiscal_binding_conflict" | "fiscal_binding_pending" | "fiscal_details_rejected" | "fiscal_issuer_rejected" | "fiscal_setup_unavailable" | "legal_issuer_sync_pending" | "location_required" | "merchant_account_disabled" | "merchant_account_required" | "payments_profile_required" | "phone_required" | "provider_adapter_unavailable" | "provider_qualification_failed" | "provider_qualification_required" | "signing_certificate_expiring" | "signing_certificate_required" | "taxpayer_registration_required" | "test_fiscal_document_operator_required" | "test_fiscal_document_pending" | "test_fiscal_document_rejected" | "test_fiscal_document_send_pending" | "test_live_mode_mismatch" | "test_payments_unavailable";
3885
+ owner: "dgii" | "merchant" | "operator" | "provider" | "timbro";
3886
+ blocks: ("invoices" | "payments")[];
3887
+ mode?: "live" | "test" | undefined;
3888
+ field?: string | undefined;
3889
+ errors?: {
3890
+ code: string;
3891
+ message: string;
3892
+ }[] | undefined;
3893
+ }[];
3894
+ onboardingUrl: string;
3895
+ }>>;
3896
+ /**
3897
+ * MerchantBusinessInvoiceKeyRequest
3898
+ */
3899
+ export declare const zIssueInvoiceKeyResponse: z.ZodObject<{
3900
+ object: z.ZodLiteral<"merchant_business_invoice_key">;
3901
+ key: z.ZodString;
3902
+ invoiceOrigin: z.ZodURL;
3903
+ }, z.core.$strip>;
3904
+ export declare const zListWebhookEndpointsResponse: z.ZodObject<{
3905
+ object: z.ZodLiteral<"list">;
3906
+ data: z.ZodArray<z.ZodObject<{
3907
+ id: z.ZodString;
3908
+ object: z.ZodLiteral<"webhook_endpoint">;
3909
+ url: z.ZodURL;
3910
+ enabledEvents: z.ZodArray<z.ZodString>;
3911
+ status: z.ZodType<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended", z.core.$ZodTypeInternals<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended">>;
3912
+ secretCreatedAt: z.ZodISODateTime;
3913
+ previousSecretExpiresAt: z.ZodNullable<z.ZodISODateTime>;
3914
+ createdAt: z.ZodISODateTime;
3915
+ }, z.core.$strip>>;
3916
+ hasMore: z.ZodBoolean;
3917
+ nextCursor: z.ZodNullable<z.ZodString>;
3918
+ }, z.core.$strip>;
3919
+ /**
3920
+ * CreateWebhookEndpointRequest
3921
+ */
3922
+ export declare const zCreateWebhookEndpointResponse: z.ZodObject<{
3923
+ id: z.ZodString;
3924
+ object: z.ZodLiteral<"webhook_endpoint">;
3925
+ url: z.ZodURL;
3926
+ enabledEvents: z.ZodArray<z.ZodString>;
3927
+ status: z.ZodType<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended", z.core.$ZodTypeInternals<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended">>;
3928
+ secretCreatedAt: z.ZodISODateTime;
3929
+ previousSecretExpiresAt: z.ZodNullable<z.ZodISODateTime>;
3930
+ createdAt: z.ZodISODateTime;
3931
+ secret: z.ZodString;
3932
+ }, z.core.$strip>;
3933
+ export declare const zDeleteWebhookEndpointResponse: z.ZodVoid;
3934
+ export declare const zRetrieveWebhookEndpointResponse: z.ZodObject<{
3935
+ id: z.ZodString;
3936
+ object: z.ZodLiteral<"webhook_endpoint">;
3937
+ url: z.ZodURL;
3938
+ enabledEvents: z.ZodArray<z.ZodString>;
3939
+ status: z.ZodType<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended", z.core.$ZodTypeInternals<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended">>;
3940
+ secretCreatedAt: z.ZodISODateTime;
3941
+ previousSecretExpiresAt: z.ZodNullable<z.ZodISODateTime>;
3942
+ createdAt: z.ZodISODateTime;
3943
+ }, z.core.$strip>;
3944
+ export declare const zListWebhookDeliveriesResponse: z.ZodObject<{
3945
+ object: z.ZodLiteral<"list">;
3946
+ data: z.ZodArray<z.ZodObject<{
3947
+ id: z.ZodString;
3948
+ object: z.ZodLiteral<"webhook_delivery">;
3949
+ eventId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
3950
+ eventType: z.ZodString;
3951
+ state: z.ZodType<"dead_lettered" | "delivered" | "pending" | "processing", "dead_lettered" | "delivered" | "pending" | "processing", z.core.$ZodTypeInternals<"dead_lettered" | "delivered" | "pending" | "processing", "dead_lettered" | "delivered" | "pending" | "processing">>;
3952
+ attemptCount: z.ZodInt;
3953
+ nextAttemptAt: z.ZodISODateTime;
3954
+ lastStatusCode: z.ZodNullable<z.ZodInt>;
3955
+ resultCode: z.ZodNullable<z.ZodType<"attempt_budget_exhausted" | "delivered" | "delivery_deadline_exceeded", "attempt_budget_exhausted" | "delivered" | "delivery_deadline_exceeded", z.core.$ZodTypeInternals<"attempt_budget_exhausted" | "delivered" | "delivery_deadline_exceeded", "attempt_budget_exhausted" | "delivered" | "delivery_deadline_exceeded">>>;
3956
+ lastResponseExcerpt: z.ZodNullable<z.ZodString>;
3957
+ replayId: z.ZodNullable<z.ZodString>;
3958
+ occurredAt: z.ZodISODateTime;
3959
+ createdAt: z.ZodISODateTime;
3960
+ }, z.core.$strip>>;
3961
+ hasMore: z.ZodBoolean;
3962
+ nextCursor: z.ZodNullable<z.ZodString>;
3963
+ }, z.core.$strip>;
3964
+ /**
3965
+ * ReplayWebhookEventsRequest
3966
+ *
3967
+ * The events to send again: either up to 100 event ids, or an occurredAfter and occurredBefore window of at most seven days that selects at most 100 events. A body naming both, or an incomplete window, answers webhook_replay_scope_invalid with a pointer at the property at fault.
3968
+ */
3969
+ export declare const zReplayWebhookEventsResponse: z.ZodObject<{
3970
+ id: z.ZodString;
3971
+ object: z.ZodLiteral<"webhook_replay">;
3972
+ webhookEndpointId: z.ZodString;
3973
+ deliveryCount: z.ZodInt;
3974
+ createdAt: z.ZodISODateTime;
3975
+ }, z.core.$strip>;
3976
+ export declare const zRotateWebhookEndpointSecretResponse: z.ZodObject<{
3977
+ id: z.ZodString;
3978
+ object: z.ZodLiteral<"webhook_endpoint">;
3979
+ url: z.ZodURL;
3980
+ enabledEvents: z.ZodArray<z.ZodString>;
3981
+ status: z.ZodType<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended", z.core.$ZodTypeInternals<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended">>;
3982
+ secretCreatedAt: z.ZodISODateTime;
3983
+ previousSecretExpiresAt: z.ZodNullable<z.ZodISODateTime>;
3984
+ createdAt: z.ZodISODateTime;
3985
+ secret: z.ZodString;
3986
+ }, z.core.$strip>;
3987
+ export declare const zSuspendWebhookEndpointResponse: z.ZodObject<{
3988
+ id: z.ZodString;
3989
+ object: z.ZodLiteral<"webhook_endpoint">;
3990
+ url: z.ZodURL;
3991
+ enabledEvents: z.ZodArray<z.ZodString>;
3992
+ status: z.ZodType<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended", z.core.$ZodTypeInternals<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended">>;
3993
+ secretCreatedAt: z.ZodISODateTime;
3994
+ previousSecretExpiresAt: z.ZodNullable<z.ZodISODateTime>;
3995
+ createdAt: z.ZodISODateTime;
3996
+ }, z.core.$strip>;
3997
+ export declare const zReactivateWebhookEndpointResponse: z.ZodObject<{
3998
+ id: z.ZodString;
3999
+ object: z.ZodLiteral<"webhook_endpoint">;
4000
+ url: z.ZodURL;
4001
+ enabledEvents: z.ZodArray<z.ZodString>;
4002
+ status: z.ZodType<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended", z.core.$ZodTypeInternals<"active" | "deleted" | "suspended", "active" | "deleted" | "suspended">>;
4003
+ secretCreatedAt: z.ZodISODateTime;
4004
+ previousSecretExpiresAt: z.ZodNullable<z.ZodISODateTime>;
4005
+ createdAt: z.ZodISODateTime;
4006
+ }, z.core.$strip>;
4007
+ //# sourceMappingURL=zod-response.gen.d.ts.map