@facturino/node 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,15 @@ export interface PaginatedResponse<T> {
22
22
  has_more: boolean;
23
23
  next_cursor: string | null;
24
24
  }
25
+ /** One detailed reason inside an {@link ApiErrorBody}. */
26
+ export interface ApiErrorIssue {
27
+ /** Stable code, safe to branch on. */
28
+ code: string;
29
+ /** Field in cause (dotted path), or `null` when the reason names no field. */
30
+ param: string | null;
31
+ /** Human-readable reason. */
32
+ message: string;
33
+ }
25
34
  export interface ApiErrorBody {
26
35
  error: {
27
36
  type: string;
@@ -31,6 +40,13 @@ export interface ApiErrorBody {
31
40
  doc_url?: string;
32
41
  request_id: string;
33
42
  hint?: string;
43
+ /**
44
+ * Detailed reasons, present only when one refusal carries several.
45
+ *
46
+ * Additive: `code`, `param`, `message` and `hint` are unchanged, and `param`
47
+ * still points at the first field in cause.
48
+ */
49
+ issues?: ApiErrorIssue[];
34
50
  };
35
51
  }
36
52
  export interface Address {
@@ -1470,6 +1486,15 @@ export interface IntegrationTaxDecisionLineParam {
1470
1486
  category: SupplyCategory;
1471
1487
  /** Required when `category` is `deposit` or `ancillary_costs`. */
1472
1488
  relatedCategory?: PrimarySupplyCategory;
1489
+ /**
1490
+ * Physical movement of the goods.
1491
+ *
1492
+ * Required as soon as the buyer is a consumer established in another member
1493
+ * state: that movement decides whether the intra-EU distance-sale rule applies
1494
+ * (Directive 2006/112/CE art. 33, a), and it is never assumed. Irrelevant on a
1495
+ * service.
1496
+ */
1497
+ goodsMovement?: GoodsMovement;
1473
1498
  /** Unit amount in integer cents, in the request's `priceMode`. */
1474
1499
  unitAmount: number;
1475
1500
  /** Decimal quantity sent as a STRING, never a float. Up to 6 decimals. */
@@ -1481,7 +1506,15 @@ export interface IntegrationTaxDecisionLineParam {
1481
1506
  vatCode: VatCode;
1482
1507
  /** VATEX code (BT-121). Required for E/AE/K/G/O; refused for S/Z. */
1483
1508
  vatexCode?: string;
1484
- /** Declared place of supply (canonical territory id, e.g. `FR-MET`, `DE`). */
1509
+ /**
1510
+ * Declared place of supply (canonical territory id, e.g. `FR-MET`, `DE`).
1511
+ *
1512
+ * Required as soon as the buyer is established in a French overseas
1513
+ * collectivity or the TAAF (`PM`, `BL`, `MF`, `PF`, `NC`, `WF`, `TF`): the
1514
+ * place is what says whether the local tax of that collectivity is at stake,
1515
+ * and it is never assumed. A place located in one of those seven makes the
1516
+ * decision non-final, except the sourced New Caledonian B2B case.
1517
+ */
1485
1518
  placeOfSupply?: string;
1486
1519
  }
1487
1520
  /**
@@ -1507,7 +1540,13 @@ export interface ViesResult {
1507
1540
  /** Normalized territorial evidence kept with the decision. No raw signal is exposed. */
1508
1541
  export interface LocationEvidenceResult {
1509
1542
  kind: LocationEvidenceKind;
1510
- territoryId: string;
1543
+ /**
1544
+ * Canonical territory the evidence points to, or `null` when it resolved at
1545
+ * COUNTRY level only: a network kind (`ip_geolocation`, `bank_details`,
1546
+ * `sim_mobile_country`, `fixed_line`) supplied without a postal code. The
1547
+ * country is then `declaredCountry`.
1548
+ */
1549
+ territoryId: string | null;
1511
1550
  declaredCountry: string;
1512
1551
  declaredPostalCode: string | null;
1513
1552
  thirdParty: boolean;
@@ -1552,6 +1591,411 @@ export interface TaxDecisionLine {
1552
1591
  transactionReporting: TransactionReporting | null;
1553
1592
  paymentReporting: PaymentReporting | null;
1554
1593
  }
1594
+ /** How much of the seller's covered activity Facturino actually sees. */
1595
+ export type EuThresholdCoverageMode = 'facturino_only' | 'mixed_channels';
1596
+ /**
1597
+ * The slice of the ANNUAL LEDGER this decision took, frozen with it.
1598
+ *
1599
+ * The running total is not a photograph left on the fiscal profile: it is a
1600
+ * transactional ledger per company, per mode and per year, and the decision
1601
+ * freezes the slice it occupied there — which ledger, at which version, at which
1602
+ * position in the total order of movements.
1603
+ */
1604
+ export interface TaxDecisionThresholdTrace {
1605
+ /**
1606
+ * Which fact settled the question. On `previous_year` the previous calendar
1607
+ * year closes it on its own, and the running total is reported without
1608
+ * deciding anything.
1609
+ */
1610
+ decidedOn: 'previous_year' | 'ledger_cumulative';
1611
+ /** Cap of art. 59 quater §1, in integer cents. */
1612
+ capCents: number;
1613
+ /** Ledger the figures come from (`2026_live`, `2026_test`). */
1614
+ stateId: string;
1615
+ year: string;
1616
+ /** Ledger version the slice was taken at. */
1617
+ stateVersion: number;
1618
+ /** Position of the operation in the ledger's total order. */
1619
+ sequence: number;
1620
+ /** Reservation the slice was held under — the decision's idempotency claim. */
1621
+ reservationId: string;
1622
+ coverageMode: EuThresholdCoverageMode;
1623
+ previousYearAmountCents: number;
1624
+ currentYearOpeningCents: number;
1625
+ openingDeclaredAt: string;
1626
+ /** Day the channels other than Facturino are declared complete through. */
1627
+ externalCompleteThroughDate: string;
1628
+ adjustmentTotalCents: number;
1629
+ adjustmentCount: number;
1630
+ /** Total that CERTAINLY precedes the operation: settled movements only. */
1631
+ cumulativeBeforeMinCents: number;
1632
+ /**
1633
+ * The same total plus every slice held by an operation being decided at the
1634
+ * same moment. The gap between the two bounds IS that concurrency, and a
1635
+ * verdict is frozen only when it holds at both — which is what makes it
1636
+ * immune to the abandonment of any of those operations.
1637
+ */
1638
+ cumulativeBeforeMaxCents: number;
1639
+ /** How many concurrent operations the upper bound accounts for. */
1640
+ pendingPredecessorCount: number;
1641
+ /**
1642
+ * Value the operation adds to the running total. Under a tax-inclusive price
1643
+ * the VAT-exclusive value depends on the rate the threshold has to decide, so
1644
+ * it is an interval; under a tax-exclusive price both bounds coincide.
1645
+ */
1646
+ operationValueMinCents: number;
1647
+ operationValueMaxCents: number;
1648
+ cumulativeAfterMinCents: number;
1649
+ cumulativeAfterMaxCents: number;
1650
+ }
1651
+ /** Why an amount already counted is taken back out of the running total. */
1652
+ export type EuThresholdCorrectionKind = 'credit_note' | 'cancellation' | 'refund';
1653
+ /** One movement of the ledger. Written once, never rewritten. */
1654
+ export interface EuThresholdLedgerEntry {
1655
+ /**
1656
+ * Deterministic, path-safe id derived from the movement. Your own `reference`
1657
+ * is DATA, never an identifier.
1658
+ */
1659
+ id: string;
1660
+ sequence: number;
1661
+ kind: 'opening' | 'external_adjustment' | 'external_correction' | 'reservation_consumed' | 'reservation_released' | 'review_opened' | 'review_resolved';
1662
+ /** Signed effect on the running total: negative for a qualified correction. */
1663
+ amountMin: number;
1664
+ amountMax: number;
1665
+ /** The same effect, in the art. 24 ter services perimeter. Independent. */
1666
+ evidenceAmountMin: number;
1667
+ evidenceAmountMax: number;
1668
+ cumulativeMin: number;
1669
+ cumulativeMax: number;
1670
+ evidenceCumulativeMin: number;
1671
+ evidenceCumulativeMax: number;
1672
+ taxDecisionId: string | null;
1673
+ effectiveAt: string | null;
1674
+ /** Your own reference, kept verbatim. */
1675
+ reference: string | null;
1676
+ correction: {
1677
+ kind: EuThresholdCorrectionKind;
1678
+ correctsEntryId: string;
1679
+ relatedResourceType: string;
1680
+ relatedResourceId: string;
1681
+ evidenceReference: string;
1682
+ } | null;
1683
+ reason: string;
1684
+ recordedAt: string;
1685
+ /** Did this movement bring turnover in, and therefore have anything to give back? */
1686
+ correctable: boolean;
1687
+ /** What it has ALREADY given back, over every correction that named it. */
1688
+ correctedMin: number;
1689
+ correctedEvidenceMin: number;
1690
+ correctionCount: number;
1691
+ /**
1692
+ * What is LEFT to give back on it. A movement gives back what it brought in,
1693
+ * ONCE, whatever the number of corrections: the balance is kept inside the
1694
+ * transaction, and a correction beyond it answers
1695
+ * `eu_threshold_correction_exceeds_counted`.
1696
+ */
1697
+ remainingMin: number;
1698
+ remainingEvidenceMin: number;
1699
+ }
1700
+ /** One page of movements, newest first. */
1701
+ export interface EuThresholdLedgerEntryList {
1702
+ object: 'list';
1703
+ url: string;
1704
+ data: EuThresholdLedgerEntry[];
1705
+ has_more: boolean;
1706
+ next_cursor: string | null;
1707
+ }
1708
+ /**
1709
+ * A slice held by a decision in flight.
1710
+ *
1711
+ * It is NOT acquired: it may still be given back, and it is published apart
1712
+ * from the acquired total for exactly that reason.
1713
+ */
1714
+ export interface EuThresholdReservation {
1715
+ id: string;
1716
+ sequence: number;
1717
+ effectiveAt: string;
1718
+ contributionMin: number;
1719
+ contributionMax: number;
1720
+ evidenceContributionMin: number;
1721
+ evidenceContributionMax: number;
1722
+ reservedAt: string;
1723
+ expiresAt: string;
1724
+ }
1725
+ /** Why the ledger stopped serving decisions. */
1726
+ export type EuThresholdReviewCode = 'consumed_slice_missing' | 'correction_not_qualifiable' | 'declared_by_administrator';
1727
+ /**
1728
+ * The annual ledger of the two EU B2C thresholds.
1729
+ *
1730
+ * It carries TWO counters, strictly apart: the common EUR 10,000 threshold
1731
+ * (art. 59 quater §1 — intra-EU distance sales of goods AND cross-border
1732
+ * services to consumers) and the EUR 100,000 location-evidence threshold
1733
+ * (Reg. 282/2011 art. 24 ter, 2nd subparagraph — electronically supplied
1734
+ * services only). A distance sale of goods raises the first and never the
1735
+ * second.
1736
+ */
1737
+ export interface EuThresholdLedger {
1738
+ object: 'eu_threshold_ledger';
1739
+ id: string;
1740
+ companyId: string;
1741
+ livemode: boolean;
1742
+ year: string;
1743
+ version: number;
1744
+ /**
1745
+ * `review_required` blocks every new reservation: the running total is known
1746
+ * to be wrong, and a decision is frozen on the figures it reads.
1747
+ */
1748
+ status: 'open' | 'review_required';
1749
+ review: {
1750
+ code: EuThresholdReviewCode;
1751
+ detail: string;
1752
+ openedAt: string;
1753
+ } | null;
1754
+ capCents: number;
1755
+ evidenceCapCents: number;
1756
+ opening: {
1757
+ previousYearAmount: number;
1758
+ currentYearOpening: number;
1759
+ previousYearEvidenceAmount: number;
1760
+ currentYearEvidenceOpening: number;
1761
+ coverageMode: EuThresholdCoverageMode;
1762
+ externalCompleteThroughDate: string;
1763
+ /** ISO instant the opening was actually declared. */
1764
+ declaredAt: string;
1765
+ };
1766
+ externalCompleteThroughDate: string;
1767
+ adjustmentTotal: number;
1768
+ adjustmentEvidenceTotal: number;
1769
+ adjustmentCount: number;
1770
+ /** Total of the qualified corrections, POSITIVE and subtracted. */
1771
+ correctionTotal: number;
1772
+ correctionEvidenceTotal: number;
1773
+ correctionCount: number;
1774
+ /** Total already ACQUIRED: opening + adjustments − corrections + final decisions. */
1775
+ acquiredMin: number;
1776
+ acquiredMax: number;
1777
+ acquiredEvidenceMin: number;
1778
+ acquiredEvidenceMax: number;
1779
+ /**
1780
+ * Slices held right now by operations being decided. NOT acquired, and never
1781
+ * summed with the figures above: they may still disappear.
1782
+ */
1783
+ reservedMin: number;
1784
+ reservedMax: number;
1785
+ reservedEvidenceMin: number;
1786
+ reservedEvidenceMax: number;
1787
+ /** What is left before each cap, on the figures already acquired. */
1788
+ remainingMin: number;
1789
+ evidenceRemainingMin: number;
1790
+ settledCount: number;
1791
+ lastConsumedEffectiveAt: string | null;
1792
+ reservations: EuThresholdReservation[];
1793
+ /** First page of movements, newest first. */
1794
+ entries: EuThresholdLedgerEntry[];
1795
+ entriesHasMore: boolean;
1796
+ entriesNextCursor: string | null;
1797
+ created: string;
1798
+ updated: string;
1799
+ }
1800
+ export interface OpenEuThresholdLedgerParams {
1801
+ year: string;
1802
+ /** Covered supplies of the PREVIOUS calendar year, VAT excluded, in cents. */
1803
+ previousYearAmount: number;
1804
+ /** Covered supplies ALREADY made this year, VAT excluded, in cents. */
1805
+ currentYearOpening: number;
1806
+ /**
1807
+ * Electronically supplied services to consumers of the Union over the same
1808
+ * period, DOMESTIC ones included — the perimeter of the EUR 100,000 art. 24b
1809
+ * location-evidence threshold. INDEPENDENT of `previousYearAmount` in both
1810
+ * directions: the common threshold counts only cross-border supplies, so this
1811
+ * figure can legitimately be larger.
1812
+ */
1813
+ previousYearEvidenceAmount: number;
1814
+ /** Same perimeter for the current year, independent of `currentYearOpening`. */
1815
+ currentYearEvidenceOpening: number;
1816
+ coverageMode: EuThresholdCoverageMode;
1817
+ /**
1818
+ * Day the channels other than Facturino are complete through. It must belong
1819
+ * to the ledger's own year and never be in the future.
1820
+ */
1821
+ externalCompleteThroughDate: string;
1822
+ }
1823
+ export interface EuThresholdAdjustmentParams {
1824
+ /**
1825
+ * Your own identifier: it is the entry's identity, so replaying the SAME body
1826
+ * adds nothing and reusing it for a different one answers
1827
+ * `eu_threshold_entry_conflict`. It never becomes a document id.
1828
+ */
1829
+ reference: string;
1830
+ /** VAT-exclusive amount to add, in cents. NEVER negative. */
1831
+ amount: number;
1832
+ /**
1833
+ * The art. 24b part of the same movement. INDEPENDENT of `amount`: a domestic
1834
+ * electronic service raises this counter and not the other.
1835
+ */
1836
+ evidenceAmount: number;
1837
+ externalCompleteThroughDate: string;
1838
+ reason: string;
1839
+ }
1840
+ /**
1841
+ * Take a qualified amount back out of the running total.
1842
+ *
1843
+ * This is NOT a negative adjustment. Directive 2006/112/EC art. 90(1) reduces
1844
+ * the taxable amount of a supply on cancellation, refusal or a price reduction
1845
+ * after the supply, and the thresholds count the VALUE of the supplies — so a
1846
+ * correction NAMES the movement it corrects, its qualification, the resource it
1847
+ * rests on and its evidence, and never gives back more than that movement
1848
+ * brought in.
1849
+ */
1850
+ export interface EuThresholdCorrectionParams {
1851
+ reference: string;
1852
+ /**
1853
+ * Movement of THIS ledger whose taxable amount is reduced. Constrained to the
1854
+ * ids the ledger mints (`opening`, or `adj_`/`cor_`/`con_`/`rel_`/`rev_`
1855
+ * followed by 32 hex characters): it reaches a document path, and free text
1856
+ * must not. A movement that brought no turnover in answers
1857
+ * `eu_threshold_correction_target_not_correctable`.
1858
+ */
1859
+ correctsEntryId: string;
1860
+ kind: EuThresholdCorrectionKind;
1861
+ /**
1862
+ * VAT-exclusive amount given back, in cents. The ledger keeps the BALANCE of
1863
+ * each movement inside the transaction: the corrections of one movement never
1864
+ * add up to more than it brought in.
1865
+ */
1866
+ amount: number;
1867
+ /** Its services part; independent of `amount`. */
1868
+ evidenceAmount: number;
1869
+ relatedResourceType: string;
1870
+ relatedResourceId: string;
1871
+ evidenceReference: string;
1872
+ reason: string;
1873
+ }
1874
+ /** Put the ledger under review: a declaration, so a stated reason is enough. */
1875
+ export interface EuThresholdReviewParams {
1876
+ reason: string;
1877
+ }
1878
+ /**
1879
+ * Settle a review — by RECONCILIATION, never by comment.
1880
+ *
1881
+ * A review says the running total is known to be wrong. Reopening the ledger on
1882
+ * a free-text note would put that same total back in front of the next verdict
1883
+ * with a sentence for only guarantee. So you state the figures you actually
1884
+ * verified, and the server compares them to its own: `reconciledVersion` pins
1885
+ * the state that was checked (a movement recorded since answers
1886
+ * `eu_threshold_reconciliation_stale`), and the two acquired totals must match
1887
+ * (`eu_threshold_reconciliation_mismatch`, which returns both figures).
1888
+ *
1889
+ * What was verified is written into the immutable `review_resolved` movement,
1890
+ * with its evidence reference.
1891
+ */
1892
+ export interface EuThresholdReviewResolutionParams {
1893
+ /** Ledger version the reconciliation was carried out against. */
1894
+ reconciledVersion: number;
1895
+ /** Acquired total of the common counter, as verified. */
1896
+ reconciledAcquiredMin: number;
1897
+ /** Acquired total of the art. 24b counter, as verified. */
1898
+ reconciledAcquiredEvidenceMin: number;
1899
+ /** Where the reconciliation itself is filed. */
1900
+ evidenceReference: string;
1901
+ reason: string;
1902
+ }
1903
+ export interface EuThresholdEntryListParams {
1904
+ limit?: number;
1905
+ starting_after?: string;
1906
+ }
1907
+ /** The rate entry a destination-taxed decision was taken under. */
1908
+ export interface TaxDecisionDestinationRate {
1909
+ registryVersion: string;
1910
+ memberState: string;
1911
+ /** Canonical territory rated — a region when the state publishes one. */
1912
+ territoryId: string;
1913
+ regionId: string | null;
1914
+ centipercent: number;
1915
+ validFrom: string;
1916
+ validTo: string | null;
1917
+ source: string;
1918
+ verifiedAt: string;
1919
+ }
1920
+ /**
1921
+ * How the tax due at destination is declared. Never a place-of-supply rule.
1922
+ *
1923
+ * The registration is DATED: a one-stop shop opened in October does not declare
1924
+ * a September sale.
1925
+ */
1926
+ export interface TaxDecisionDestinationMechanism {
1927
+ kind: 'oss_union' | 'local_registration';
1928
+ memberState: string;
1929
+ reference: string;
1930
+ /** Member state of identification of the scheme; `null` for a local one. */
1931
+ memberStateOfIdentification: string | null;
1932
+ effectiveFrom: string;
1933
+ effectiveTo: string | null;
1934
+ }
1935
+ /**
1936
+ * How the art. 24 ter single-evidence relaxation was settled, with the figures
1937
+ * it rested on.
1938
+ *
1939
+ * It is COMPUTED by the engine on the ledger's EUR 100,000 counter — the one
1940
+ * that never counts a distance sale of goods — and never declared by the
1941
+ * seller. `undeterminable` is a first-class answer: two items of evidence are
1942
+ * then required, and the issue says which fact is missing.
1943
+ */
1944
+ export interface TaxDecisionEvidenceRelief {
1945
+ status: 'available' | 'unavailable' | 'undeterminable';
1946
+ /** Cap of art. 24 ter, 2nd subparagraph, in integer cents (10,000,000). */
1947
+ capCents: number;
1948
+ stateId: string | null;
1949
+ year: string | null;
1950
+ previousYearAmountCents: number | null;
1951
+ cumulativeAfterMinCents: number | null;
1952
+ cumulativeAfterMaxCents: number | null;
1953
+ undeterminedCode: 'ledger_not_consulted' | 'ledger_unavailable' | 'amount_interval_straddles_cap' | null;
1954
+ }
1955
+ /**
1956
+ * What the EU B2C destination rule concluded, frozen as data.
1957
+ *
1958
+ * `null` on every operation the rule does not reach. Present as soon as it
1959
+ * covers a line, including on a decision that is NOT final: it then states what
1960
+ * was settled and what is missing.
1961
+ */
1962
+ export interface TaxDecisionEuB2cDestination {
1963
+ coveredLineIds: string[];
1964
+ ruleKinds: Array<'tbe_services' | 'intra_eu_distance_sale'>;
1965
+ destinationMemberState: string;
1966
+ destinationTerritoryId: string;
1967
+ place: 'origin' | 'destination' | null;
1968
+ /**
1969
+ * What settled the place. `oss_union_registration`: the seller holds an ACTIVE
1970
+ * Union one-stop-shop registration — for a French seller, registering IS how
1971
+ * the option of art. 59c(3) is exercised, so the threshold has nothing left to
1972
+ * decide and `threshold` stays `null`, exactly as on an explicit option.
1973
+ * Sourced for France only: the way the option is exercised is fixed by the
1974
+ * member state where it is exercised.
1975
+ */
1976
+ basis: 'multi_member_state_establishment' | 'destination_option' | 'oss_union_registration' | 'threshold_exceeded' | 'below_threshold' | null;
1977
+ reference: string;
1978
+ detail: string;
1979
+ threshold: TaxDecisionThresholdTrace | null;
1980
+ option: {
1981
+ effectiveFrom: string;
1982
+ effectiveTo: string | null;
1983
+ } | null;
1984
+ mechanism: TaxDecisionDestinationMechanism | null;
1985
+ rate: TaxDecisionDestinationRate | null;
1986
+ /** How the art. 24 ter relaxation was settled. `null` when the rule did not apply. */
1987
+ evidenceRelief: TaxDecisionEvidenceRelief | null;
1988
+ }
1989
+ /**
1990
+ * The axes French law settles on its own, carried by a decision that is NOT
1991
+ * final. An axis is `null` when it depends on the treatment the engines could
1992
+ * not conclude; it is never guessed.
1993
+ */
1994
+ export interface TaxDecisionSettledObligations {
1995
+ invoiceChannel: InvoiceChannel | null;
1996
+ transactionReporting: TransactionReporting | null;
1997
+ paymentReporting: PaymentReporting | null;
1998
+ }
1555
1999
  /** Whether the invoice travels the e-invoicing network. */
1556
2000
  export type InvoiceChannel = 'einvoicing' | 'none';
1557
2001
  /** Whether the transaction itself must be reported. */
@@ -1640,6 +2084,24 @@ export interface TaxDecision {
1640
2084
  invoiceChannel: InvoiceChannel | null;
1641
2085
  transactionReporting: TransactionReporting | null;
1642
2086
  paymentReporting: PaymentReporting | null;
2087
+ /**
2088
+ * Obligation axes French law settles DESPITE a non-final decision.
2089
+ *
2090
+ * `null` on a final decision: the three axes above are the settled ones and
2091
+ * nothing duplicates them. On `pending_verification` or `unsupported`, each
2092
+ * axis is either the settled value or `null` when it genuinely depends on the
2093
+ * treatment that could not be concluded. This object authorises NOTHING: a
2094
+ * non-final decision is not invoiceable, never reaches a Plateforme Agréée and
2095
+ * never opens a payment.
2096
+ */
2097
+ settledObligations: TaxDecisionSettledObligations | null;
2098
+ /**
2099
+ * What the EU B2C destination rule concluded — verdict, threshold figures,
2100
+ * declarative mechanism and the exact rate entry with its source, its
2101
+ * verification date and its period. `null` on every operation the rule does
2102
+ * not reach, and on a decision frozen before this field existed.
2103
+ */
2104
+ euB2cDestination: TaxDecisionEuB2cDestination | null;
1643
2105
  /**
1644
2106
  * A foreign tax may apply. Facturino decides French VAT and the matching
1645
2107
  * French obligations; this case must be reviewed outside Facturino.
@@ -1,5 +1,5 @@
1
1
  import type { FacturinoConfig, RequestOptions } from './types.js';
2
- export declare const VERSION = "2.0.0";
2
+ export declare const VERSION = "2.2.0";
3
3
  /** HTTP client with retries, exponential backoff, and structured errors. */
4
4
  export declare class HttpClient {
5
5
  private readonly apiKey;
@@ -6,7 +6,7 @@ const DEFAULT_API_VERSION = '2026-09-01';
6
6
  const RETRYABLE_STATUS_CODES = new Set([429, 500, 502, 503]);
7
7
  const INITIAL_RETRY_DELAY_MS = 500;
8
8
  const MAX_RETRY_DELAY_MS = 30000;
9
- export const VERSION = '2.0.0';
9
+ export const VERSION = '2.2.0';
10
10
  /** HTTP client with retries, exponential backoff, and structured errors. */
11
11
  export class HttpClient {
12
12
  constructor(apiKey, config = {}) {
@@ -1,4 +1,4 @@
1
- import type { ApiErrorBody } from './types.js';
1
+ import type { ApiErrorBody, ApiErrorIssue } from './types.js';
2
2
  /** Base SDK error. */
3
3
  export declare class FacturinoError extends Error {
4
4
  constructor(message: string);
@@ -12,6 +12,15 @@ export declare class ApiError extends FacturinoError {
12
12
  readonly docUrl?: string;
13
13
  readonly requestId: string;
14
14
  readonly hint?: string;
15
+ /**
16
+ * Detailed reasons behind this one refusal.
17
+ *
18
+ * Empty when the API sent none — reading `issues` never requires a null
19
+ * check, and an empty list means the refusal had nothing more to say than
20
+ * `code` and `message`. `code` stays the value to branch on; each entry adds
21
+ * a more precise code and, when it is certain, the field in cause.
22
+ */
23
+ readonly issues: readonly ApiErrorIssue[];
15
24
  constructor(status: number, body: ApiErrorBody);
16
25
  }
17
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,sBAAsB;AACtB,qBAAa,cAAe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;gBAC/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAI/C;AAED,kDAAkD;AAClD,qBAAa,mBAAoB,SAAQ,QAAQ;gBACnC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAI/C;AAED;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,QAAQ;gBAC/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAI/C;AAED,yEAAyE;AACzE,qBAAa,aAAc,SAAQ,QAAQ;gBAC7B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAI/C;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,QAAQ;gBAC7B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAI/C;AAED,sFAAsF;AACtF,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;gBAEtB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;CAK1E;AAED,kFAAkF;AAClF,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAI/C;AAED;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,QAAQ;gBAChC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;CAI/C;AAED,gEAAgE;AAChE,qBAAa,eAAgB,SAAQ,cAAc;gBACrC,OAAO,EAAE,MAAM;CAI5B"}
@@ -19,6 +19,7 @@ export class ApiError extends FacturinoError {
19
19
  this.docUrl = err.doc_url;
20
20
  this.requestId = err.request_id;
21
21
  this.hint = err.hint;
22
+ this.issues = err.issues ?? [];
22
23
  }
23
24
  }
24
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAEA,sBAAsB;AACtB,MAAM,OAAO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AAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC7B,CAAC;CACF;AAED,sFAAsF;AACtF,MAAM,OAAO,cAAe,SAAQ,QAAQ;IAG1C,YAAY,MAAc,EAAE,IAAkB,EAAE,UAAyB;QACvE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACnB,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAA;QAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAC9B,CAAC;CACF;AAED,kFAAkF;AAClF,MAAM,OAAO,cAAe,SAAQ,QAAQ;IAC1C,YAAY,MAAc,EAAE,IAAkB;QAC5C,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACnB,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAA;IAC9B,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,gBAAiB,SAAQ,QAAQ;IAC5C,YAAY,MAAc,EAAE,IAAkB;QAC5C,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACnB,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAA;IAChC,CAAC;CACF;AAED,gEAAgE;AAChE,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAA;IAC/B,CAAC;CACF"}
@@ -18,6 +18,7 @@ import { Reporting } from './resources/reporting.js';
18
18
  import { AccountResource } from './resources/account.js';
19
19
  import { Billing } from './resources/billing.js';
20
20
  import { TaxDecisions } from './resources/taxDecisions.js';
21
+ import { EuThresholdLedgers } from './resources/euThresholdLedgers.js';
21
22
  import { Usage } from './resources/usage.js';
22
23
  import { Validate } from './resources/validate.js';
23
24
  import { Reference } from './resources/reference.js';
@@ -44,6 +45,8 @@ declare class Facturino {
44
45
  readonly reference: Reference;
45
46
  readonly sandbox: Sandbox;
46
47
  readonly taxDecisions: TaxDecisions;
48
+ /** Annual ledger of the common EUR 10,000 threshold. */
49
+ readonly euThresholdLedgers: EuThresholdLedgers;
47
50
  readonly usage: Usage;
48
51
  readonly validate: Validate;
49
52
  readonly webhooks: Webhooks;
@@ -55,7 +58,7 @@ declare class Facturino {
55
58
  }
56
59
  export default Facturino;
57
60
  export { Facturino };
58
- export type { FacturinoConfig, RequestOptions, PaginationParams, PaginatedResponse, ApiErrorBody, Address, Contact, ContactRole, LineItem, VatBreakdown, Totals, CustomerRef, CustomerSnapshot, LifecycleEntry, Currency, Unit, VatCode, VatexCode, PaymentMethod, InvoiceType, InvoiceStatus, InvoiceDates, InvoicePaymentTerms, InvoiceEinvoicing, InvoicePortal, InvoiceArchive, InvoiceFiles, Invoice, InvoiceExpandField, InvoiceExpanded, InvoiceRetrieveParams, InvoiceBuyerParam, InvoiceCreateDates, InvoiceCreateParams, InvoiceBindTaxDecisionParams, CommercialDraft, CommercialDraftLine, InvoiceLineItemParam, InvoiceUpdateParams, InvoiceListParams, IncomingInvoiceCreateParams, InvoiceStatusResponse, InvoiceVerifyResponse, DocumentUrlResponse, JobResponse, PaymentLinkResponse, PaymentLinkCreateParams, PaymentTokenResponse, Payment, PaymentCreateParams, Customer, CustomerCreateParams, CustomerUpdateParams, CustomerListParams, CustomerLookupParams, SireneLookupResponse, SireneCompany, Product, PriceHistoryEntry, ProductCreateParams, ProductUpdateParams, ProductListParams, QuoteStatus, QuoteDates, QuoteSignature, Quote, QuoteCreateParams, QuoteUpdateParams, QuoteListParams, CreditNoteType, CreditNoteStatus, CreditNoteReasonCode, CreditNote, CreditNoteCreateParams, CreditNoteUpdateParams, CreditNoteListParams, WebhookEventType, WebhookEvent, EventListParams, WebhookEndpoint, WebhookEndpointCreateParams, WebhookEndpointUpdateParams, RecurringFrequency, RecurringInvoice, RecurringInvoiceCreateParams, RecurringInvoiceUpdateParams, RecurringInvoiceListParams, BankDetails, InvoiceSettings, CreditNoteSettings, CreditNoteNumberingMode, Company, CompanyUpdateParams, CgvResponse, FecExportParams, EReportingType, EReportingStatus, EReportingLine, EReportingLineResponse, EReporting, EReportingCreateParams, EReportingListParams, JobType, JobStatus, Job, SandboxResetResponse, SimulateStatusParams, SimulateStatusResponse, ReceivedInvoiceStatus, ReceivedInvoice, ReceivedInvoiceListParams, ReceivedInvoiceRefuseParams, ReceivedInvoiceRecordPaymentParams, ReceivedInvoiceActionResponse, VatReportParams, VatReportBreakdown, VatReport, RevenueReportParams, RevenueReportBreakdownItem, RevenueReport, AccountPlan, Account, BillingCycle, BillingSubscription, PlatformInvoice, UsageMeter, UsageSummary, ValidateParams, ValidateResponse, PriceMode, SupplyCategory, PrimarySupplyCategory, RateCategory, GoodsMovement, TaxDecisionStatus, TaxDecisionDiscount, TaxDecisionLineParam, TaxDecisionCreateParams, TaxDecision, TaxDecisionLine, TaxDecisionCustomer, TaxDecisionIssue, TaxDecisionObligationReason, TaxDecisionVatBreakdownEntry, LocationEvidenceKind, LocationEvidenceParam, LocationEvidenceResult, NonEuBusinessEvidenceParam, NonEuBusinessEvidenceResult, EvidenceSource, ViesResult, InvoiceChannel, TransactionReporting, PaymentReporting, TaxSource, TaxSnapshot, DocumentStatus, TransmissionStatus, TransmissionDetail, PaymentStatus, DecisionBackedLineParam, InvoiceCreateBaseParams, CreditedLineParam, RecurringTaxLineParam, RecurringIntegrationTaxLineParam, RecurringTaxInputsParam, FacturinoTaxDecisionCreateParams, IntegrationTaxDecisionCreateParams, IntegrationTaxDecisionLineParam, LegalForm, NafCode, LegalFormInput, NafCodeInput, PaProvider, HealthStatus, } from './types.js';
61
+ export type { FacturinoConfig, RequestOptions, PaginationParams, PaginatedResponse, ApiErrorBody, ApiErrorIssue, Address, Contact, ContactRole, LineItem, VatBreakdown, Totals, CustomerRef, CustomerSnapshot, LifecycleEntry, Currency, Unit, VatCode, VatexCode, PaymentMethod, InvoiceType, InvoiceStatus, InvoiceDates, InvoicePaymentTerms, InvoiceEinvoicing, InvoicePortal, InvoiceArchive, InvoiceFiles, Invoice, InvoiceExpandField, InvoiceExpanded, InvoiceRetrieveParams, InvoiceBuyerParam, InvoiceCreateDates, InvoiceCreateParams, InvoiceBindTaxDecisionParams, CommercialDraft, CommercialDraftLine, InvoiceLineItemParam, InvoiceUpdateParams, InvoiceListParams, IncomingInvoiceCreateParams, InvoiceStatusResponse, InvoiceVerifyResponse, DocumentUrlResponse, JobResponse, PaymentLinkResponse, PaymentLinkCreateParams, PaymentTokenResponse, Payment, PaymentCreateParams, Customer, CustomerCreateParams, CustomerUpdateParams, CustomerListParams, CustomerLookupParams, SireneLookupResponse, SireneCompany, Product, PriceHistoryEntry, ProductCreateParams, ProductUpdateParams, ProductListParams, QuoteStatus, QuoteDates, QuoteSignature, Quote, QuoteCreateParams, QuoteUpdateParams, QuoteListParams, CreditNoteType, CreditNoteStatus, CreditNoteReasonCode, CreditNote, CreditNoteCreateParams, CreditNoteUpdateParams, CreditNoteListParams, WebhookEventType, WebhookEvent, EventListParams, WebhookEndpoint, WebhookEndpointCreateParams, WebhookEndpointUpdateParams, RecurringFrequency, RecurringInvoice, RecurringInvoiceCreateParams, RecurringInvoiceUpdateParams, RecurringInvoiceListParams, BankDetails, InvoiceSettings, CreditNoteSettings, CreditNoteNumberingMode, Company, CompanyUpdateParams, CgvResponse, FecExportParams, EReportingType, EReportingStatus, EReportingLine, EReportingLineResponse, EReporting, EReportingCreateParams, EReportingListParams, JobType, JobStatus, Job, SandboxResetResponse, SimulateStatusParams, SimulateStatusResponse, ReceivedInvoiceStatus, ReceivedInvoice, ReceivedInvoiceListParams, ReceivedInvoiceRefuseParams, ReceivedInvoiceRecordPaymentParams, ReceivedInvoiceActionResponse, VatReportParams, VatReportBreakdown, VatReport, RevenueReportParams, RevenueReportBreakdownItem, RevenueReport, AccountPlan, Account, BillingCycle, BillingSubscription, PlatformInvoice, UsageMeter, UsageSummary, ValidateParams, ValidateResponse, PriceMode, SupplyCategory, PrimarySupplyCategory, RateCategory, GoodsMovement, TaxDecisionStatus, TaxDecisionDiscount, TaxDecisionLineParam, TaxDecisionCreateParams, TaxDecision, TaxDecisionLine, TaxDecisionCustomer, TaxDecisionIssue, TaxDecisionObligationReason, TaxDecisionSettledObligations, TaxDecisionEuB2cDestination, EuThresholdLedger, EuThresholdLedgerEntry, EuThresholdLedgerEntryList, EuThresholdReservation, EuThresholdCoverageMode, EuThresholdCorrectionKind, EuThresholdReviewCode, OpenEuThresholdLedgerParams, EuThresholdAdjustmentParams, EuThresholdCorrectionParams, EuThresholdReviewParams, EuThresholdReviewResolutionParams, EuThresholdEntryListParams, TaxDecisionThresholdTrace, TaxDecisionDestinationRate, TaxDecisionDestinationMechanism, TaxDecisionEvidenceRelief, TaxDecisionVatBreakdownEntry, LocationEvidenceKind, LocationEvidenceParam, LocationEvidenceResult, NonEuBusinessEvidenceParam, NonEuBusinessEvidenceResult, EvidenceSource, ViesResult, InvoiceChannel, TransactionReporting, PaymentReporting, TaxSource, TaxSnapshot, DocumentStatus, TransmissionStatus, TransmissionDetail, PaymentStatus, DecisionBackedLineParam, InvoiceCreateBaseParams, CreditedLineParam, RecurringTaxLineParam, RecurringIntegrationTaxLineParam, RecurringTaxInputsParam, FacturinoTaxDecisionCreateParams, IntegrationTaxDecisionCreateParams, IntegrationTaxDecisionLineParam, LegalForm, NafCode, LegalFormInput, NafCodeInput, PaProvider, HealthStatus, } from './types.js';
59
62
  export { FacturinoError, ApiError, InvalidRequestError, ValidationError, AuthenticationError, PermissionError, NotFoundError, ConflictError, RateLimitError, PlanLimitError, ApiInternalError, ConnectionError, } from './errors.js';
60
63
  export { Webhooks } from './webhooks.js';
61
64
  export { AutoPaginatingList } from './pagination.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA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,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,uBAAuB,EACvB,iCAAiC,EACjC,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,cAAc,EACd,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAEhB,SAAS,EACT,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,gCAAgC,EAChC,uBAAuB,EACvB,gCAAgC,EAChC,kCAAkC,EAClC,+BAA+B,EAE/B,SAAS,EACT,OAAO,EACP,cAAc,EACd,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,YAAY,CAAA;AAEnB,OAAO,EACL,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,eAAe,GAChB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA"}
package/dist/esm/index.js CHANGED
@@ -19,6 +19,7 @@ import { Reporting } from './resources/reporting.js';
19
19
  import { AccountResource } from './resources/account.js';
20
20
  import { Billing } from './resources/billing.js';
21
21
  import { TaxDecisions } from './resources/taxDecisions.js';
22
+ import { EuThresholdLedgers } from './resources/euThresholdLedgers.js';
22
23
  import { Usage } from './resources/usage.js';
23
24
  import { Validate } from './resources/validate.js';
24
25
  import { Reference } from './resources/reference.js';
@@ -46,6 +47,7 @@ class Facturino {
46
47
  this.reference = new Reference(client);
47
48
  this.sandbox = new Sandbox(client);
48
49
  this.taxDecisions = new TaxDecisions(client);
50
+ this.euThresholdLedgers = new EuThresholdLedgers(client);
49
51
  this.usage = new Usage(client);
50
52
  this.validate = new Validate(client);
51
53
  this.webhooks = new Webhooks();