@timbro/invoices 0.10.1 → 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.
@@ -10502,6 +10502,7 @@ export const invoiceApiContract = {
10502
10502
  "id",
10503
10503
  "environment",
10504
10504
  "issuerTaxId",
10505
+ "issuerLegalName",
10505
10506
  "buyerTaxId",
10506
10507
  "eNcf",
10507
10508
  "state",
@@ -10525,6 +10526,13 @@ export const invoiceApiContract = {
10525
10526
  type: "string",
10526
10527
  format: "uuid",
10527
10528
  },
10529
+ issuerLegalName: {
10530
+ type: ["string", "null"],
10531
+ description: "The issuer's `RazonSocialEmisor` as the delivered e-CF states it, or `null` when the\ndelivery carried no readable name.",
10532
+ maxLength: 150,
10533
+ minLength: 1,
10534
+ pattern: "\\S",
10535
+ },
10528
10536
  issuerTaxId: {
10529
10537
  type: "string",
10530
10538
  },
@@ -10636,6 +10644,7 @@ export const invoiceApiContract = {
10636
10644
  "id",
10637
10645
  "environment",
10638
10646
  "issuerTaxId",
10647
+ "issuerLegalName",
10639
10648
  "buyerTaxId",
10640
10649
  "eNcf",
10641
10650
  "state",
@@ -10661,6 +10670,13 @@ export const invoiceApiContract = {
10661
10670
  type: "string",
10662
10671
  format: "uuid",
10663
10672
  },
10673
+ issuerLegalName: {
10674
+ type: ["string", "null"],
10675
+ description: "The issuer's `RazonSocialEmisor` as the delivered e-CF states it, or `null` when the\ndelivery carried no readable name.",
10676
+ maxLength: 150,
10677
+ minLength: 1,
10678
+ pattern: "\\S",
10679
+ },
10664
10680
  issuerTaxId: {
10665
10681
  type: "string",
10666
10682
  },
@@ -510,6 +510,21 @@ export type FiscalArtifactMediaType = "application/xml" | "application/pdf";
510
510
  * DGII authority protocol selected by the Rust decision core from admitted fiscal facts.
511
511
  */
512
512
  export type FiscalAuthorityRoute = "complete_ecf_reception" | "consumer_summary_reception";
513
+ /**
514
+ * The identified party a fiscal document names opposite its issuer: the buyer of a sale, the
515
+ * supplier of a Type 41 purchase, or the payee of a Type 47 payment abroad.
516
+ *
517
+ * An anonymous consumer and a Type 43 minor expense name no counterparty.
518
+ */
519
+ export type FiscalCounterparty = {
520
+ identity_kind: "domestic";
521
+ legal_name: string;
522
+ tax_id: string;
523
+ } | {
524
+ foreign_identifier: string;
525
+ identity_kind: "foreign";
526
+ legal_name: string;
527
+ };
513
528
  /**
514
529
  * Counterparty class that selects the legal e-CF type set.
515
530
  */
@@ -2231,6 +2246,11 @@ export type ReceivedDocumentResource = {
2231
2246
  eNcf: string;
2232
2247
  environment: FiscalEnvironment;
2233
2248
  id: string;
2249
+ /**
2250
+ * The issuer's `RazonSocialEmisor` as the delivered e-CF states it, or `null` when the
2251
+ * delivery carried no readable name.
2252
+ */
2253
+ issuerLegalName: string | null;
2234
2254
  issuerTaxId: string;
2235
2255
  notReceivedReason: null | ReceivedDocumentNotReceivedReasonResource;
2236
2256
  receivedAt: string;
@@ -2246,6 +2266,11 @@ export type ReceivedDocumentSummary = {
2246
2266
  eNcf: string;
2247
2267
  environment: FiscalEnvironment;
2248
2268
  id: string;
2269
+ /**
2270
+ * The issuer's `RazonSocialEmisor` as the delivered e-CF states it, or `null` when the
2271
+ * delivery carried no readable name.
2272
+ */
2273
+ issuerLegalName: string | null;
2249
2274
  issuerTaxId: string;
2250
2275
  receivedAt: string;
2251
2276
  state: ReceivedDocumentStateResource;
@@ -4253,16 +4278,19 @@ export type WorkspaceFiscalOperationPage = {
4253
4278
  };
4254
4279
  export type WorkspaceFiscalOperationResource = {
4255
4280
  commercial_response: null | CommercialResponseProjection;
4281
+ counterparty: null | FiscalCounterparty;
4256
4282
  operation: FiscalOperationResource;
4257
4283
  timeline: WorkspaceFiscalTimelinePage;
4258
4284
  };
4259
4285
  export type WorkspaceFiscalOperationSummary = {
4260
4286
  action: SourceFiscalAction;
4287
+ counterparty: null | FiscalCounterparty;
4261
4288
  created_at: string;
4262
4289
  environment: FiscalEnvironment;
4263
4290
  operation_id: string;
4264
4291
  outcome: FiscalOperationOutcomeResource;
4265
4292
  source: FiscalOperationSource;
4293
+ totals: null | FiscalOperationAmountsResource;
4266
4294
  updated_at: string;
4267
4295
  };
4268
4296
  export type WorkspaceFiscalTimelineEntry = {