@facturino/node 2.0.0 → 2.1.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.
@@ -1470,6 +1470,15 @@ export interface IntegrationTaxDecisionLineParam {
1470
1470
  category: SupplyCategory;
1471
1471
  /** Required when `category` is `deposit` or `ancillary_costs`. */
1472
1472
  relatedCategory?: PrimarySupplyCategory;
1473
+ /**
1474
+ * Physical movement of the goods.
1475
+ *
1476
+ * Required as soon as the buyer is a consumer established in another member
1477
+ * state: that movement decides whether the intra-EU distance-sale rule applies
1478
+ * (Directive 2006/112/CE art. 33, a), and it is never assumed. Irrelevant on a
1479
+ * service.
1480
+ */
1481
+ goodsMovement?: GoodsMovement;
1473
1482
  /** Unit amount in integer cents, in the request's `priceMode`. */
1474
1483
  unitAmount: number;
1475
1484
  /** Decimal quantity sent as a STRING, never a float. Up to 6 decimals. */
@@ -1481,7 +1490,15 @@ export interface IntegrationTaxDecisionLineParam {
1481
1490
  vatCode: VatCode;
1482
1491
  /** VATEX code (BT-121). Required for E/AE/K/G/O; refused for S/Z. */
1483
1492
  vatexCode?: string;
1484
- /** Declared place of supply (canonical territory id, e.g. `FR-MET`, `DE`). */
1493
+ /**
1494
+ * Declared place of supply (canonical territory id, e.g. `FR-MET`, `DE`).
1495
+ *
1496
+ * Required as soon as the buyer is established in a French overseas
1497
+ * collectivity or the TAAF (`PM`, `BL`, `MF`, `PF`, `NC`, `WF`, `TF`): the
1498
+ * place is what says whether the local tax of that collectivity is at stake,
1499
+ * and it is never assumed. A place located in one of those seven makes the
1500
+ * decision non-final, except the sourced New Caledonian B2B case.
1501
+ */
1485
1502
  placeOfSupply?: string;
1486
1503
  }
1487
1504
  /**
@@ -1552,6 +1569,411 @@ export interface TaxDecisionLine {
1552
1569
  transactionReporting: TransactionReporting | null;
1553
1570
  paymentReporting: PaymentReporting | null;
1554
1571
  }
1572
+ /** How much of the seller's covered activity Facturino actually sees. */
1573
+ export type EuThresholdCoverageMode = 'facturino_only' | 'mixed_channels';
1574
+ /**
1575
+ * The slice of the ANNUAL LEDGER this decision took, frozen with it.
1576
+ *
1577
+ * The running total is not a photograph left on the fiscal profile: it is a
1578
+ * transactional ledger per company, per mode and per year, and the decision
1579
+ * freezes the slice it occupied there — which ledger, at which version, at which
1580
+ * position in the total order of movements.
1581
+ */
1582
+ export interface TaxDecisionThresholdTrace {
1583
+ /**
1584
+ * Which fact settled the question. On `previous_year` the previous calendar
1585
+ * year closes it on its own, and the running total is reported without
1586
+ * deciding anything.
1587
+ */
1588
+ decidedOn: 'previous_year' | 'ledger_cumulative';
1589
+ /** Cap of art. 59 quater §1, in integer cents. */
1590
+ capCents: number;
1591
+ /** Ledger the figures come from (`2026_live`, `2026_test`). */
1592
+ stateId: string;
1593
+ year: string;
1594
+ /** Ledger version the slice was taken at. */
1595
+ stateVersion: number;
1596
+ /** Position of the operation in the ledger's total order. */
1597
+ sequence: number;
1598
+ /** Reservation the slice was held under — the decision's idempotency claim. */
1599
+ reservationId: string;
1600
+ coverageMode: EuThresholdCoverageMode;
1601
+ previousYearAmountCents: number;
1602
+ currentYearOpeningCents: number;
1603
+ openingDeclaredAt: string;
1604
+ /** Day the channels other than Facturino are declared complete through. */
1605
+ externalCompleteThroughDate: string;
1606
+ adjustmentTotalCents: number;
1607
+ adjustmentCount: number;
1608
+ /** Total that CERTAINLY precedes the operation: settled movements only. */
1609
+ cumulativeBeforeMinCents: number;
1610
+ /**
1611
+ * The same total plus every slice held by an operation being decided at the
1612
+ * same moment. The gap between the two bounds IS that concurrency, and a
1613
+ * verdict is frozen only when it holds at both — which is what makes it
1614
+ * immune to the abandonment of any of those operations.
1615
+ */
1616
+ cumulativeBeforeMaxCents: number;
1617
+ /** How many concurrent operations the upper bound accounts for. */
1618
+ pendingPredecessorCount: number;
1619
+ /**
1620
+ * Value the operation adds to the running total. Under a tax-inclusive price
1621
+ * the VAT-exclusive value depends on the rate the threshold has to decide, so
1622
+ * it is an interval; under a tax-exclusive price both bounds coincide.
1623
+ */
1624
+ operationValueMinCents: number;
1625
+ operationValueMaxCents: number;
1626
+ cumulativeAfterMinCents: number;
1627
+ cumulativeAfterMaxCents: number;
1628
+ }
1629
+ /** Why an amount already counted is taken back out of the running total. */
1630
+ export type EuThresholdCorrectionKind = 'credit_note' | 'cancellation' | 'refund';
1631
+ /** One movement of the ledger. Written once, never rewritten. */
1632
+ export interface EuThresholdLedgerEntry {
1633
+ /**
1634
+ * Deterministic, path-safe id derived from the movement. Your own `reference`
1635
+ * is DATA, never an identifier.
1636
+ */
1637
+ id: string;
1638
+ sequence: number;
1639
+ kind: 'opening' | 'external_adjustment' | 'external_correction' | 'reservation_consumed' | 'reservation_released' | 'review_opened' | 'review_resolved';
1640
+ /** Signed effect on the running total: negative for a qualified correction. */
1641
+ amountMin: number;
1642
+ amountMax: number;
1643
+ /** The same effect, in the art. 24 ter services perimeter. Independent. */
1644
+ evidenceAmountMin: number;
1645
+ evidenceAmountMax: number;
1646
+ cumulativeMin: number;
1647
+ cumulativeMax: number;
1648
+ evidenceCumulativeMin: number;
1649
+ evidenceCumulativeMax: number;
1650
+ taxDecisionId: string | null;
1651
+ effectiveAt: string | null;
1652
+ /** Your own reference, kept verbatim. */
1653
+ reference: string | null;
1654
+ correction: {
1655
+ kind: EuThresholdCorrectionKind;
1656
+ correctsEntryId: string;
1657
+ relatedResourceType: string;
1658
+ relatedResourceId: string;
1659
+ evidenceReference: string;
1660
+ } | null;
1661
+ reason: string;
1662
+ recordedAt: string;
1663
+ /** Did this movement bring turnover in, and therefore have anything to give back? */
1664
+ correctable: boolean;
1665
+ /** What it has ALREADY given back, over every correction that named it. */
1666
+ correctedMin: number;
1667
+ correctedEvidenceMin: number;
1668
+ correctionCount: number;
1669
+ /**
1670
+ * What is LEFT to give back on it. A movement gives back what it brought in,
1671
+ * ONCE, whatever the number of corrections: the balance is kept inside the
1672
+ * transaction, and a correction beyond it answers
1673
+ * `eu_threshold_correction_exceeds_counted`.
1674
+ */
1675
+ remainingMin: number;
1676
+ remainingEvidenceMin: number;
1677
+ }
1678
+ /** One page of movements, newest first. */
1679
+ export interface EuThresholdLedgerEntryList {
1680
+ object: 'list';
1681
+ url: string;
1682
+ data: EuThresholdLedgerEntry[];
1683
+ has_more: boolean;
1684
+ next_cursor: string | null;
1685
+ }
1686
+ /**
1687
+ * A slice held by a decision in flight.
1688
+ *
1689
+ * It is NOT acquired: it may still be given back, and it is published apart
1690
+ * from the acquired total for exactly that reason.
1691
+ */
1692
+ export interface EuThresholdReservation {
1693
+ id: string;
1694
+ sequence: number;
1695
+ effectiveAt: string;
1696
+ contributionMin: number;
1697
+ contributionMax: number;
1698
+ evidenceContributionMin: number;
1699
+ evidenceContributionMax: number;
1700
+ reservedAt: string;
1701
+ expiresAt: string;
1702
+ }
1703
+ /** Why the ledger stopped serving decisions. */
1704
+ export type EuThresholdReviewCode = 'consumed_slice_missing' | 'correction_not_qualifiable' | 'declared_by_administrator';
1705
+ /**
1706
+ * The annual ledger of the two EU B2C thresholds.
1707
+ *
1708
+ * It carries TWO counters, strictly apart: the common EUR 10,000 threshold
1709
+ * (art. 59 quater §1 — intra-EU distance sales of goods AND cross-border
1710
+ * services to consumers) and the EUR 100,000 location-evidence threshold
1711
+ * (Reg. 282/2011 art. 24 ter, 2nd subparagraph — electronically supplied
1712
+ * services only). A distance sale of goods raises the first and never the
1713
+ * second.
1714
+ */
1715
+ export interface EuThresholdLedger {
1716
+ object: 'eu_threshold_ledger';
1717
+ id: string;
1718
+ companyId: string;
1719
+ livemode: boolean;
1720
+ year: string;
1721
+ version: number;
1722
+ /**
1723
+ * `review_required` blocks every new reservation: the running total is known
1724
+ * to be wrong, and a decision is frozen on the figures it reads.
1725
+ */
1726
+ status: 'open' | 'review_required';
1727
+ review: {
1728
+ code: EuThresholdReviewCode;
1729
+ detail: string;
1730
+ openedAt: string;
1731
+ } | null;
1732
+ capCents: number;
1733
+ evidenceCapCents: number;
1734
+ opening: {
1735
+ previousYearAmount: number;
1736
+ currentYearOpening: number;
1737
+ previousYearEvidenceAmount: number;
1738
+ currentYearEvidenceOpening: number;
1739
+ coverageMode: EuThresholdCoverageMode;
1740
+ externalCompleteThroughDate: string;
1741
+ /** ISO instant the opening was actually declared. */
1742
+ declaredAt: string;
1743
+ };
1744
+ externalCompleteThroughDate: string;
1745
+ adjustmentTotal: number;
1746
+ adjustmentEvidenceTotal: number;
1747
+ adjustmentCount: number;
1748
+ /** Total of the qualified corrections, POSITIVE and subtracted. */
1749
+ correctionTotal: number;
1750
+ correctionEvidenceTotal: number;
1751
+ correctionCount: number;
1752
+ /** Total already ACQUIRED: opening + adjustments − corrections + final decisions. */
1753
+ acquiredMin: number;
1754
+ acquiredMax: number;
1755
+ acquiredEvidenceMin: number;
1756
+ acquiredEvidenceMax: number;
1757
+ /**
1758
+ * Slices held right now by operations being decided. NOT acquired, and never
1759
+ * summed with the figures above: they may still disappear.
1760
+ */
1761
+ reservedMin: number;
1762
+ reservedMax: number;
1763
+ reservedEvidenceMin: number;
1764
+ reservedEvidenceMax: number;
1765
+ /** What is left before each cap, on the figures already acquired. */
1766
+ remainingMin: number;
1767
+ evidenceRemainingMin: number;
1768
+ settledCount: number;
1769
+ lastConsumedEffectiveAt: string | null;
1770
+ reservations: EuThresholdReservation[];
1771
+ /** First page of movements, newest first. */
1772
+ entries: EuThresholdLedgerEntry[];
1773
+ entriesHasMore: boolean;
1774
+ entriesNextCursor: string | null;
1775
+ created: string;
1776
+ updated: string;
1777
+ }
1778
+ export interface OpenEuThresholdLedgerParams {
1779
+ year: string;
1780
+ /** Covered supplies of the PREVIOUS calendar year, VAT excluded, in cents. */
1781
+ previousYearAmount: number;
1782
+ /** Covered supplies ALREADY made this year, VAT excluded, in cents. */
1783
+ currentYearOpening: number;
1784
+ /**
1785
+ * Electronically supplied services to consumers of the Union over the same
1786
+ * period, DOMESTIC ones included — the perimeter of the EUR 100,000 art. 24b
1787
+ * location-evidence threshold. INDEPENDENT of `previousYearAmount` in both
1788
+ * directions: the common threshold counts only cross-border supplies, so this
1789
+ * figure can legitimately be larger.
1790
+ */
1791
+ previousYearEvidenceAmount: number;
1792
+ /** Same perimeter for the current year, independent of `currentYearOpening`. */
1793
+ currentYearEvidenceOpening: number;
1794
+ coverageMode: EuThresholdCoverageMode;
1795
+ /**
1796
+ * Day the channels other than Facturino are complete through. It must belong
1797
+ * to the ledger's own year and never be in the future.
1798
+ */
1799
+ externalCompleteThroughDate: string;
1800
+ }
1801
+ export interface EuThresholdAdjustmentParams {
1802
+ /**
1803
+ * Your own identifier: it is the entry's identity, so replaying the SAME body
1804
+ * adds nothing and reusing it for a different one answers
1805
+ * `eu_threshold_entry_conflict`. It never becomes a document id.
1806
+ */
1807
+ reference: string;
1808
+ /** VAT-exclusive amount to add, in cents. NEVER negative. */
1809
+ amount: number;
1810
+ /**
1811
+ * The art. 24b part of the same movement. INDEPENDENT of `amount`: a domestic
1812
+ * electronic service raises this counter and not the other.
1813
+ */
1814
+ evidenceAmount: number;
1815
+ externalCompleteThroughDate: string;
1816
+ reason: string;
1817
+ }
1818
+ /**
1819
+ * Take a qualified amount back out of the running total.
1820
+ *
1821
+ * This is NOT a negative adjustment. Directive 2006/112/EC art. 90(1) reduces
1822
+ * the taxable amount of a supply on cancellation, refusal or a price reduction
1823
+ * after the supply, and the thresholds count the VALUE of the supplies — so a
1824
+ * correction NAMES the movement it corrects, its qualification, the resource it
1825
+ * rests on and its evidence, and never gives back more than that movement
1826
+ * brought in.
1827
+ */
1828
+ export interface EuThresholdCorrectionParams {
1829
+ reference: string;
1830
+ /**
1831
+ * Movement of THIS ledger whose taxable amount is reduced. Constrained to the
1832
+ * ids the ledger mints (`opening`, or `adj_`/`cor_`/`con_`/`rel_`/`rev_`
1833
+ * followed by 32 hex characters): it reaches a document path, and free text
1834
+ * must not. A movement that brought no turnover in answers
1835
+ * `eu_threshold_correction_target_not_correctable`.
1836
+ */
1837
+ correctsEntryId: string;
1838
+ kind: EuThresholdCorrectionKind;
1839
+ /**
1840
+ * VAT-exclusive amount given back, in cents. The ledger keeps the BALANCE of
1841
+ * each movement inside the transaction: the corrections of one movement never
1842
+ * add up to more than it brought in.
1843
+ */
1844
+ amount: number;
1845
+ /** Its services part; independent of `amount`. */
1846
+ evidenceAmount: number;
1847
+ relatedResourceType: string;
1848
+ relatedResourceId: string;
1849
+ evidenceReference: string;
1850
+ reason: string;
1851
+ }
1852
+ /** Put the ledger under review: a declaration, so a stated reason is enough. */
1853
+ export interface EuThresholdReviewParams {
1854
+ reason: string;
1855
+ }
1856
+ /**
1857
+ * Settle a review — by RECONCILIATION, never by comment.
1858
+ *
1859
+ * A review says the running total is known to be wrong. Reopening the ledger on
1860
+ * a free-text note would put that same total back in front of the next verdict
1861
+ * with a sentence for only guarantee. So you state the figures you actually
1862
+ * verified, and the server compares them to its own: `reconciledVersion` pins
1863
+ * the state that was checked (a movement recorded since answers
1864
+ * `eu_threshold_reconciliation_stale`), and the two acquired totals must match
1865
+ * (`eu_threshold_reconciliation_mismatch`, which returns both figures).
1866
+ *
1867
+ * What was verified is written into the immutable `review_resolved` movement,
1868
+ * with its evidence reference.
1869
+ */
1870
+ export interface EuThresholdReviewResolutionParams {
1871
+ /** Ledger version the reconciliation was carried out against. */
1872
+ reconciledVersion: number;
1873
+ /** Acquired total of the common counter, as verified. */
1874
+ reconciledAcquiredMin: number;
1875
+ /** Acquired total of the art. 24b counter, as verified. */
1876
+ reconciledAcquiredEvidenceMin: number;
1877
+ /** Where the reconciliation itself is filed. */
1878
+ evidenceReference: string;
1879
+ reason: string;
1880
+ }
1881
+ export interface EuThresholdEntryListParams {
1882
+ limit?: number;
1883
+ starting_after?: string;
1884
+ }
1885
+ /** The rate entry a destination-taxed decision was taken under. */
1886
+ export interface TaxDecisionDestinationRate {
1887
+ registryVersion: string;
1888
+ memberState: string;
1889
+ /** Canonical territory rated — a region when the state publishes one. */
1890
+ territoryId: string;
1891
+ regionId: string | null;
1892
+ centipercent: number;
1893
+ validFrom: string;
1894
+ validTo: string | null;
1895
+ source: string;
1896
+ verifiedAt: string;
1897
+ }
1898
+ /**
1899
+ * How the tax due at destination is declared. Never a place-of-supply rule.
1900
+ *
1901
+ * The registration is DATED: a one-stop shop opened in October does not declare
1902
+ * a September sale.
1903
+ */
1904
+ export interface TaxDecisionDestinationMechanism {
1905
+ kind: 'oss_union' | 'local_registration';
1906
+ memberState: string;
1907
+ reference: string;
1908
+ /** Member state of identification of the scheme; `null` for a local one. */
1909
+ memberStateOfIdentification: string | null;
1910
+ effectiveFrom: string;
1911
+ effectiveTo: string | null;
1912
+ }
1913
+ /**
1914
+ * How the art. 24 ter single-evidence relaxation was settled, with the figures
1915
+ * it rested on.
1916
+ *
1917
+ * It is COMPUTED by the engine on the ledger's EUR 100,000 counter — the one
1918
+ * that never counts a distance sale of goods — and never declared by the
1919
+ * seller. `undeterminable` is a first-class answer: two items of evidence are
1920
+ * then required, and the issue says which fact is missing.
1921
+ */
1922
+ export interface TaxDecisionEvidenceRelief {
1923
+ status: 'available' | 'unavailable' | 'undeterminable';
1924
+ /** Cap of art. 24 ter, 2nd subparagraph, in integer cents (10,000,000). */
1925
+ capCents: number;
1926
+ stateId: string | null;
1927
+ year: string | null;
1928
+ previousYearAmountCents: number | null;
1929
+ cumulativeAfterMinCents: number | null;
1930
+ cumulativeAfterMaxCents: number | null;
1931
+ undeterminedCode: 'ledger_not_consulted' | 'ledger_unavailable' | 'amount_interval_straddles_cap' | null;
1932
+ }
1933
+ /**
1934
+ * What the EU B2C destination rule concluded, frozen as data.
1935
+ *
1936
+ * `null` on every operation the rule does not reach. Present as soon as it
1937
+ * covers a line, including on a decision that is NOT final: it then states what
1938
+ * was settled and what is missing.
1939
+ */
1940
+ export interface TaxDecisionEuB2cDestination {
1941
+ coveredLineIds: string[];
1942
+ ruleKinds: Array<'tbe_services' | 'intra_eu_distance_sale'>;
1943
+ destinationMemberState: string;
1944
+ destinationTerritoryId: string;
1945
+ place: 'origin' | 'destination' | null;
1946
+ /**
1947
+ * What settled the place. `oss_union_registration`: the seller holds an ACTIVE
1948
+ * Union one-stop-shop registration — for a French seller, registering IS how
1949
+ * the option of art. 59c(3) is exercised, so the threshold has nothing left to
1950
+ * decide and `threshold` stays `null`, exactly as on an explicit option.
1951
+ * Sourced for France only: the way the option is exercised is fixed by the
1952
+ * member state where it is exercised.
1953
+ */
1954
+ basis: 'multi_member_state_establishment' | 'destination_option' | 'oss_union_registration' | 'threshold_exceeded' | 'below_threshold' | null;
1955
+ reference: string;
1956
+ detail: string;
1957
+ threshold: TaxDecisionThresholdTrace | null;
1958
+ option: {
1959
+ effectiveFrom: string;
1960
+ effectiveTo: string | null;
1961
+ } | null;
1962
+ mechanism: TaxDecisionDestinationMechanism | null;
1963
+ rate: TaxDecisionDestinationRate | null;
1964
+ /** How the art. 24 ter relaxation was settled. `null` when the rule did not apply. */
1965
+ evidenceRelief: TaxDecisionEvidenceRelief | null;
1966
+ }
1967
+ /**
1968
+ * The axes French law settles on its own, carried by a decision that is NOT
1969
+ * final. An axis is `null` when it depends on the treatment the engines could
1970
+ * not conclude; it is never guessed.
1971
+ */
1972
+ export interface TaxDecisionSettledObligations {
1973
+ invoiceChannel: InvoiceChannel | null;
1974
+ transactionReporting: TransactionReporting | null;
1975
+ paymentReporting: PaymentReporting | null;
1976
+ }
1555
1977
  /** Whether the invoice travels the e-invoicing network. */
1556
1978
  export type InvoiceChannel = 'einvoicing' | 'none';
1557
1979
  /** Whether the transaction itself must be reported. */
@@ -1640,6 +2062,24 @@ export interface TaxDecision {
1640
2062
  invoiceChannel: InvoiceChannel | null;
1641
2063
  transactionReporting: TransactionReporting | null;
1642
2064
  paymentReporting: PaymentReporting | null;
2065
+ /**
2066
+ * Obligation axes French law settles DESPITE a non-final decision.
2067
+ *
2068
+ * `null` on a final decision: the three axes above are the settled ones and
2069
+ * nothing duplicates them. On `pending_verification` or `unsupported`, each
2070
+ * axis is either the settled value or `null` when it genuinely depends on the
2071
+ * treatment that could not be concluded. This object authorises NOTHING: a
2072
+ * non-final decision is not invoiceable, never reaches a Plateforme Agréée and
2073
+ * never opens a payment.
2074
+ */
2075
+ settledObligations: TaxDecisionSettledObligations | null;
2076
+ /**
2077
+ * What the EU B2C destination rule concluded — verdict, threshold figures,
2078
+ * declarative mechanism and the exact rate entry with its source, its
2079
+ * verification date and its period. `null` on every operation the rule does
2080
+ * not reach, and on a decision frozen before this field existed.
2081
+ */
2082
+ euB2cDestination: TaxDecisionEuB2cDestination | null;
1643
2083
  /**
1644
2084
  * A foreign tax may apply. Facturino decides French VAT and the matching
1645
2085
  * 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.1.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.1.0';
10
10
  /** HTTP client with retries, exponential backoff, and structured errors. */
11
11
  export class HttpClient {
12
12
  constructor(apiKey, config = {}) {
@@ -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, 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;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0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AA2B,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();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,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