@timbro/invoices 0.10.1-next.0 → 0.10.2

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.
@@ -483,6 +483,45 @@ export declare const zBuyerDeliveryReadinessResource: z.ZodType<{
483
483
  status: "unavailable";
484
484
  terminal_result_code: "authority_status_accepted" | "authority_status_accepted_with_findings" | "authority_status_rejected" | "authority_submission_rejected" | "consumer_summary_accepted" | "consumer_summary_accepted_with_findings" | "consumer_summary_rejected";
485
485
  }>>;
486
+ /**
487
+ * The identified party a fiscal document names opposite its issuer: the buyer of a sale, the
488
+ * supplier of a Type 41 purchase, or the payee of a Type 47 payment abroad.
489
+ *
490
+ * An anonymous consumer and a Type 43 minor expense name no counterparty.
491
+ */
492
+ export declare const zFiscalCounterparty: z.ZodType<{
493
+ identity_kind: "domestic";
494
+ legal_name: string;
495
+ tax_id: string;
496
+ } | {
497
+ foreign_identifier: string;
498
+ identity_kind: "foreign";
499
+ legal_name: string;
500
+ }, {
501
+ identity_kind: "domestic";
502
+ legal_name: string;
503
+ tax_id: string;
504
+ } | {
505
+ foreign_identifier: string;
506
+ identity_kind: "foreign";
507
+ legal_name: string;
508
+ }, z.core.$ZodTypeInternals<{
509
+ identity_kind: "domestic";
510
+ legal_name: string;
511
+ tax_id: string;
512
+ } | {
513
+ foreign_identifier: string;
514
+ identity_kind: "foreign";
515
+ legal_name: string;
516
+ }, {
517
+ identity_kind: "domestic";
518
+ legal_name: string;
519
+ tax_id: string;
520
+ } | {
521
+ foreign_identifier: string;
522
+ identity_kind: "foreign";
523
+ legal_name: string;
524
+ }>>;
486
525
  /**
487
526
  * Counterparty class that selects the legal e-CF type set.
488
527
  */
@@ -4925,6 +4964,7 @@ export declare const zPrintedRepresentationPagePlan: z.ZodObject<{
4925
4964
  itbis_16_subtotal: z.ZodString;
4926
4965
  itbis_18_subtotal: z.ZodString;
4927
4966
  last_line_number: z.ZodInt;
4967
+ line_itbis: z.ZodArray<z.ZodString>;
4928
4968
  non_billable_subtotal: z.ZodString;
4929
4969
  page_number: z.ZodInt;
4930
4970
  page_total: z.ZodString;
@@ -5228,6 +5268,7 @@ export declare const zPrintedRepresentationPlan: z.ZodObject<{
5228
5268
  itbis_16_subtotal: z.ZodString;
5229
5269
  itbis_18_subtotal: z.ZodString;
5230
5270
  last_line_number: z.ZodInt;
5271
+ line_itbis: z.ZodArray<z.ZodString>;
5231
5272
  non_billable_subtotal: z.ZodString;
5232
5273
  page_number: z.ZodInt;
5233
5274
  page_total: z.ZodString;
@@ -5255,6 +5296,7 @@ export declare const zPlannedPrintedRepresentation: z.ZodObject<{
5255
5296
  itbis_16_subtotal: z.ZodString;
5256
5297
  itbis_18_subtotal: z.ZodString;
5257
5298
  last_line_number: z.ZodInt;
5299
+ line_itbis: z.ZodArray<z.ZodString>;
5258
5300
  non_billable_subtotal: z.ZodString;
5259
5301
  page_number: z.ZodInt;
5260
5302
  page_total: z.ZodString;
@@ -5305,6 +5347,7 @@ export declare const zEvaluatedEngineResponse: z.ZodObject<{
5305
5347
  itbis_16_subtotal: z.ZodString;
5306
5348
  itbis_18_subtotal: z.ZodString;
5307
5349
  last_line_number: z.ZodInt;
5350
+ line_itbis: z.ZodArray<z.ZodString>;
5308
5351
  non_billable_subtotal: z.ZodString;
5309
5352
  page_number: z.ZodInt;
5310
5353
  page_total: z.ZodString;
@@ -5789,6 +5832,7 @@ export declare const zReceivedDocumentResource: z.ZodObject<{
5789
5832
  sandbox: "sandbox";
5790
5833
  }>;
5791
5834
  id: z.ZodUUID;
5835
+ issuerLegalName: z.ZodNullable<z.ZodString>;
5792
5836
  issuerTaxId: z.ZodString;
5793
5837
  notReceivedReason: z.ZodNullable<z.ZodEnum<{
5794
5838
  buyerRncMismatch: "buyerRncMismatch";
@@ -5865,6 +5909,7 @@ export declare const zReceivedDocumentSummary: z.ZodObject<{
5865
5909
  sandbox: "sandbox";
5866
5910
  }>;
5867
5911
  id: z.ZodUUID;
5912
+ issuerLegalName: z.ZodNullable<z.ZodString>;
5868
5913
  issuerTaxId: z.ZodString;
5869
5914
  receivedAt: z.ZodISODateTime;
5870
5915
  state: z.ZodEnum<{
@@ -5935,6 +5980,7 @@ export declare const zReceivedDocumentPage: z.ZodObject<{
5935
5980
  sandbox: "sandbox";
5936
5981
  }>;
5937
5982
  id: z.ZodUUID;
5983
+ issuerLegalName: z.ZodNullable<z.ZodString>;
5938
5984
  issuerTaxId: z.ZodString;
5939
5985
  receivedAt: z.ZodISODateTime;
5940
5986
  state: z.ZodEnum<{
@@ -6009,6 +6055,7 @@ export declare const zFiscalEngineResponse: z.ZodType<{
6009
6055
  itbis_16_subtotal: string;
6010
6056
  itbis_18_subtotal: string;
6011
6057
  last_line_number: number;
6058
+ line_itbis: string[];
6012
6059
  non_billable_subtotal: string;
6013
6060
  page_number: number;
6014
6061
  page_total: string;
@@ -6069,6 +6116,7 @@ export declare const zFiscalEngineResponse: z.ZodType<{
6069
6116
  itbis_16_subtotal: string;
6070
6117
  itbis_18_subtotal: string;
6071
6118
  last_line_number: number;
6119
+ line_itbis: string[];
6072
6120
  non_billable_subtotal: string;
6073
6121
  page_number: number;
6074
6122
  page_total: string;
@@ -6129,6 +6177,7 @@ export declare const zFiscalEngineResponse: z.ZodType<{
6129
6177
  itbis_16_subtotal: string;
6130
6178
  itbis_18_subtotal: string;
6131
6179
  last_line_number: number;
6180
+ line_itbis: string[];
6132
6181
  non_billable_subtotal: string;
6133
6182
  page_number: number;
6134
6183
  page_total: string;
@@ -6189,6 +6238,7 @@ export declare const zFiscalEngineResponse: z.ZodType<{
6189
6238
  itbis_16_subtotal: string;
6190
6239
  itbis_18_subtotal: string;
6191
6240
  last_line_number: number;
6241
+ line_itbis: string[];
6192
6242
  non_billable_subtotal: string;
6193
6243
  page_number: number;
6194
6244
  page_total: string;
@@ -27663,6 +27713,39 @@ export declare const zWorkspaceFiscalOperationSummary: z.ZodObject<{
27663
27713
  debit_note: "debit_note";
27664
27714
  issue: "issue";
27665
27715
  }>;
27716
+ counterparty: z.ZodNullable<z.ZodType<{
27717
+ identity_kind: "domestic";
27718
+ legal_name: string;
27719
+ tax_id: string;
27720
+ } | {
27721
+ foreign_identifier: string;
27722
+ identity_kind: "foreign";
27723
+ legal_name: string;
27724
+ }, {
27725
+ identity_kind: "domestic";
27726
+ legal_name: string;
27727
+ tax_id: string;
27728
+ } | {
27729
+ foreign_identifier: string;
27730
+ identity_kind: "foreign";
27731
+ legal_name: string;
27732
+ }, z.core.$ZodTypeInternals<{
27733
+ identity_kind: "domestic";
27734
+ legal_name: string;
27735
+ tax_id: string;
27736
+ } | {
27737
+ foreign_identifier: string;
27738
+ identity_kind: "foreign";
27739
+ legal_name: string;
27740
+ }, {
27741
+ identity_kind: "domestic";
27742
+ legal_name: string;
27743
+ tax_id: string;
27744
+ } | {
27745
+ foreign_identifier: string;
27746
+ identity_kind: "foreign";
27747
+ legal_name: string;
27748
+ }>>>;
27666
27749
  created_at: z.ZodISODateTime;
27667
27750
  environment: z.ZodEnum<{
27668
27751
  certification: "certification";
@@ -28508,6 +28591,12 @@ export declare const zWorkspaceFiscalOperationSummary: z.ZodObject<{
28508
28591
  id: z.ZodString;
28509
28592
  version: z.ZodString;
28510
28593
  }, z.core.$strip>;
28594
+ totals: z.ZodNullable<z.ZodObject<{
28595
+ net: z.ZodString;
28596
+ non_billable: z.ZodString;
28597
+ tax: z.ZodString;
28598
+ total: z.ZodString;
28599
+ }, z.core.$strip>>;
28511
28600
  updated_at: z.ZodISODateTime;
28512
28601
  }, z.core.$strip>;
28513
28602
  export declare const zWorkspaceFiscalOperationPage: z.ZodObject<{
@@ -28517,6 +28606,39 @@ export declare const zWorkspaceFiscalOperationPage: z.ZodObject<{
28517
28606
  debit_note: "debit_note";
28518
28607
  issue: "issue";
28519
28608
  }>;
28609
+ counterparty: z.ZodNullable<z.ZodType<{
28610
+ identity_kind: "domestic";
28611
+ legal_name: string;
28612
+ tax_id: string;
28613
+ } | {
28614
+ foreign_identifier: string;
28615
+ identity_kind: "foreign";
28616
+ legal_name: string;
28617
+ }, {
28618
+ identity_kind: "domestic";
28619
+ legal_name: string;
28620
+ tax_id: string;
28621
+ } | {
28622
+ foreign_identifier: string;
28623
+ identity_kind: "foreign";
28624
+ legal_name: string;
28625
+ }, z.core.$ZodTypeInternals<{
28626
+ identity_kind: "domestic";
28627
+ legal_name: string;
28628
+ tax_id: string;
28629
+ } | {
28630
+ foreign_identifier: string;
28631
+ identity_kind: "foreign";
28632
+ legal_name: string;
28633
+ }, {
28634
+ identity_kind: "domestic";
28635
+ legal_name: string;
28636
+ tax_id: string;
28637
+ } | {
28638
+ foreign_identifier: string;
28639
+ identity_kind: "foreign";
28640
+ legal_name: string;
28641
+ }>>>;
28520
28642
  created_at: z.ZodISODateTime;
28521
28643
  environment: z.ZodEnum<{
28522
28644
  certification: "certification";
@@ -29362,6 +29484,12 @@ export declare const zWorkspaceFiscalOperationPage: z.ZodObject<{
29362
29484
  id: z.ZodString;
29363
29485
  version: z.ZodString;
29364
29486
  }, z.core.$strip>;
29487
+ totals: z.ZodNullable<z.ZodObject<{
29488
+ net: z.ZodString;
29489
+ non_billable: z.ZodString;
29490
+ tax: z.ZodString;
29491
+ total: z.ZodString;
29492
+ }, z.core.$strip>>;
29365
29493
  updated_at: z.ZodISODateTime;
29366
29494
  }, z.core.$strip>>;
29367
29495
  hasMore: z.ZodBoolean;
@@ -30192,6 +30320,39 @@ export declare const zWorkspaceFiscalOperationResource: z.ZodObject<{
30192
30320
  recorded_at: string;
30193
30321
  responded_at: string;
30194
30322
  }>>>;
30323
+ counterparty: z.ZodNullable<z.ZodType<{
30324
+ identity_kind: "domestic";
30325
+ legal_name: string;
30326
+ tax_id: string;
30327
+ } | {
30328
+ foreign_identifier: string;
30329
+ identity_kind: "foreign";
30330
+ legal_name: string;
30331
+ }, {
30332
+ identity_kind: "domestic";
30333
+ legal_name: string;
30334
+ tax_id: string;
30335
+ } | {
30336
+ foreign_identifier: string;
30337
+ identity_kind: "foreign";
30338
+ legal_name: string;
30339
+ }, z.core.$ZodTypeInternals<{
30340
+ identity_kind: "domestic";
30341
+ legal_name: string;
30342
+ tax_id: string;
30343
+ } | {
30344
+ foreign_identifier: string;
30345
+ identity_kind: "foreign";
30346
+ legal_name: string;
30347
+ }, {
30348
+ identity_kind: "domestic";
30349
+ legal_name: string;
30350
+ tax_id: string;
30351
+ } | {
30352
+ foreign_identifier: string;
30353
+ identity_kind: "foreign";
30354
+ legal_name: string;
30355
+ }>>>;
30195
30356
  operation: z.ZodObject<{
30196
30357
  accepted_at: z.ZodNullable<z.ZodISODateTime>;
30197
30358
  action: z.ZodEnum<{
@@ -83623,6 +83784,39 @@ export declare const zListOrganizationFiscalOperationsResponse: z.ZodObject<{
83623
83784
  debit_note: "debit_note";
83624
83785
  issue: "issue";
83625
83786
  }>;
83787
+ counterparty: z.ZodNullable<z.ZodType<{
83788
+ identity_kind: "domestic";
83789
+ legal_name: string;
83790
+ tax_id: string;
83791
+ } | {
83792
+ foreign_identifier: string;
83793
+ identity_kind: "foreign";
83794
+ legal_name: string;
83795
+ }, {
83796
+ identity_kind: "domestic";
83797
+ legal_name: string;
83798
+ tax_id: string;
83799
+ } | {
83800
+ foreign_identifier: string;
83801
+ identity_kind: "foreign";
83802
+ legal_name: string;
83803
+ }, z.core.$ZodTypeInternals<{
83804
+ identity_kind: "domestic";
83805
+ legal_name: string;
83806
+ tax_id: string;
83807
+ } | {
83808
+ foreign_identifier: string;
83809
+ identity_kind: "foreign";
83810
+ legal_name: string;
83811
+ }, {
83812
+ identity_kind: "domestic";
83813
+ legal_name: string;
83814
+ tax_id: string;
83815
+ } | {
83816
+ foreign_identifier: string;
83817
+ identity_kind: "foreign";
83818
+ legal_name: string;
83819
+ }>>>;
83626
83820
  created_at: z.ZodISODateTime;
83627
83821
  environment: z.ZodEnum<{
83628
83822
  certification: "certification";
@@ -84468,6 +84662,12 @@ export declare const zListOrganizationFiscalOperationsResponse: z.ZodObject<{
84468
84662
  id: z.ZodString;
84469
84663
  version: z.ZodString;
84470
84664
  }, z.core.$strip>;
84665
+ totals: z.ZodNullable<z.ZodObject<{
84666
+ net: z.ZodString;
84667
+ non_billable: z.ZodString;
84668
+ tax: z.ZodString;
84669
+ total: z.ZodString;
84670
+ }, z.core.$strip>>;
84471
84671
  updated_at: z.ZodISODateTime;
84472
84672
  }, z.core.$strip>>;
84473
84673
  hasMore: z.ZodBoolean;
@@ -84514,6 +84714,39 @@ export declare const zReadOrganizationFiscalOperationResponse: z.ZodObject<{
84514
84714
  recorded_at: string;
84515
84715
  responded_at: string;
84516
84716
  }>>>;
84717
+ counterparty: z.ZodNullable<z.ZodType<{
84718
+ identity_kind: "domestic";
84719
+ legal_name: string;
84720
+ tax_id: string;
84721
+ } | {
84722
+ foreign_identifier: string;
84723
+ identity_kind: "foreign";
84724
+ legal_name: string;
84725
+ }, {
84726
+ identity_kind: "domestic";
84727
+ legal_name: string;
84728
+ tax_id: string;
84729
+ } | {
84730
+ foreign_identifier: string;
84731
+ identity_kind: "foreign";
84732
+ legal_name: string;
84733
+ }, z.core.$ZodTypeInternals<{
84734
+ identity_kind: "domestic";
84735
+ legal_name: string;
84736
+ tax_id: string;
84737
+ } | {
84738
+ foreign_identifier: string;
84739
+ identity_kind: "foreign";
84740
+ legal_name: string;
84741
+ }, {
84742
+ identity_kind: "domestic";
84743
+ legal_name: string;
84744
+ tax_id: string;
84745
+ } | {
84746
+ foreign_identifier: string;
84747
+ identity_kind: "foreign";
84748
+ legal_name: string;
84749
+ }>>>;
84517
84750
  operation: z.ZodObject<{
84518
84751
  accepted_at: z.ZodNullable<z.ZodISODateTime>;
84519
84752
  action: z.ZodEnum<{
@@ -86507,6 +86740,7 @@ export declare const zListReceivedDocumentsResponse: z.ZodObject<{
86507
86740
  sandbox: "sandbox";
86508
86741
  }>;
86509
86742
  id: z.ZodUUID;
86743
+ issuerLegalName: z.ZodNullable<z.ZodString>;
86510
86744
  issuerTaxId: z.ZodString;
86511
86745
  receivedAt: z.ZodISODateTime;
86512
86746
  state: z.ZodEnum<{
@@ -86582,6 +86816,7 @@ export declare const zReadReceivedDocumentResponse: z.ZodObject<{
86582
86816
  sandbox: "sandbox";
86583
86817
  }>;
86584
86818
  id: z.ZodUUID;
86819
+ issuerLegalName: z.ZodNullable<z.ZodString>;
86585
86820
  issuerTaxId: z.ZodString;
86586
86821
  notReceivedReason: z.ZodNullable<z.ZodEnum<{
86587
86822
  buyerRncMismatch: "buyerRncMismatch";
@@ -86658,6 +86893,7 @@ export declare const zRecordCommercialResponseResponse: z.ZodObject<{
86658
86893
  sandbox: "sandbox";
86659
86894
  }>;
86660
86895
  id: z.ZodUUID;
86896
+ issuerLegalName: z.ZodNullable<z.ZodString>;
86661
86897
  issuerTaxId: z.ZodString;
86662
86898
  notReceivedReason: z.ZodNullable<z.ZodEnum<{
86663
86899
  buyerRncMismatch: "buyerRncMismatch";
@@ -87485,6 +87721,7 @@ export declare const zListSourceReceivedDocumentsResponse: z.ZodObject<{
87485
87721
  sandbox: "sandbox";
87486
87722
  }>;
87487
87723
  id: z.ZodUUID;
87724
+ issuerLegalName: z.ZodNullable<z.ZodString>;
87488
87725
  issuerTaxId: z.ZodString;
87489
87726
  receivedAt: z.ZodISODateTime;
87490
87727
  state: z.ZodEnum<{
@@ -87560,6 +87797,7 @@ export declare const zGetSourceReceivedDocumentResponse: z.ZodObject<{
87560
87797
  sandbox: "sandbox";
87561
87798
  }>;
87562
87799
  id: z.ZodUUID;
87800
+ issuerLegalName: z.ZodNullable<z.ZodString>;
87563
87801
  issuerTaxId: z.ZodString;
87564
87802
  notReceivedReason: z.ZodNullable<z.ZodEnum<{
87565
87803
  buyerRncMismatch: "buyerRncMismatch";
@@ -87636,6 +87874,7 @@ export declare const zRespondToReceivedDocumentResponse: z.ZodObject<{
87636
87874
  sandbox: "sandbox";
87637
87875
  }>;
87638
87876
  id: z.ZodUUID;
87877
+ issuerLegalName: z.ZodNullable<z.ZodString>;
87639
87878
  issuerTaxId: z.ZodString;
87640
87879
  notReceivedReason: z.ZodNullable<z.ZodEnum<{
87641
87880
  buyerRncMismatch: "buyerRncMismatch";