@taxora/sdk 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -110,6 +110,79 @@ declare class AuthEndpoint {
110
110
  private parseResponse;
111
111
  }
112
112
 
113
+ /** One month of the e-invoicing allowance (documents included, used, still free, what is due beyond it). */
114
+ declare class EInvoicingQuotaPeriod {
115
+ /** Billing period, YYYY-MM. */
116
+ readonly period: string;
117
+ readonly used: number;
118
+ readonly included: number;
119
+ readonly freeUsed: number;
120
+ readonly freeRemaining: number;
121
+ readonly billableUnits: number;
122
+ /** Net EUR due for documents beyond the allowance. */
123
+ readonly amount: string;
124
+ /** Agreed monthly base fee (net EUR) for this month, null when none. */
125
+ readonly monthlyFee: string | null;
126
+ /** Net EUR due for the month: base fee + documents beyond the allowance. */
127
+ readonly total: string;
128
+ /** open | included | pending_billing | billed */
129
+ readonly state: string;
130
+ /** Documents used per country code. */
131
+ readonly byCountry: Record<string, number>;
132
+ readonly billedAt: string | null;
133
+ /** Our invoice number once invoiced. */
134
+ readonly manualReference: string | null;
135
+ readonly monthlyFeeReference: string | null;
136
+ constructor(
137
+ /** Billing period, YYYY-MM. */
138
+ period: string, used: number, included: number, freeUsed: number, freeRemaining: number, billableUnits: number,
139
+ /** Net EUR due for documents beyond the allowance. */
140
+ amount: string,
141
+ /** Agreed monthly base fee (net EUR) for this month, null when none. */
142
+ monthlyFee: string | null,
143
+ /** Net EUR due for the month: base fee + documents beyond the allowance. */
144
+ total: string,
145
+ /** open | included | pending_billing | billed */
146
+ state: string,
147
+ /** Documents used per country code. */
148
+ byCountry: Record<string, number>, billedAt: string | null,
149
+ /** Our invoice number once invoiced. */
150
+ manualReference: string | null, monthlyFeeReference: string | null);
151
+ static fromArray(data: Record<string, unknown>): EInvoicingQuotaPeriod;
152
+ }
153
+ interface EInvoicingQuotaTier {
154
+ /** Cumulative documents per month up to which the price applies; null = no upper bound. */
155
+ upTo: number | null;
156
+ /** Net EUR per document. */
157
+ unitPrice: string;
158
+ }
159
+ /** The company's e-invoicing allowance: one pool over all e-invoicing countries. */
160
+ declare class EInvoicingQuota {
161
+ /** How documents beyond the allowance are paid: "subscription" (on the plan's invoice) or "invoice" (invoiced separately). */
162
+ readonly billing: string;
163
+ readonly plan: string | null;
164
+ readonly currency: string;
165
+ /** Documents included per month. */
166
+ readonly included: number;
167
+ readonly tiers: EInvoicingQuotaTier[];
168
+ readonly countries: string[];
169
+ /** Agreed monthly base fee (net EUR), null when none. */
170
+ readonly monthlyFee: string | null;
171
+ readonly current: EInvoicingQuotaPeriod;
172
+ /** Earlier months, newest first. */
173
+ readonly history: EInvoicingQuotaPeriod[];
174
+ constructor(
175
+ /** How documents beyond the allowance are paid: "subscription" (on the plan's invoice) or "invoice" (invoiced separately). */
176
+ billing: string, plan: string | null, currency: string,
177
+ /** Documents included per month. */
178
+ included: number, tiers: EInvoicingQuotaTier[], countries: string[],
179
+ /** Agreed monthly base fee (net EUR), null when none. */
180
+ monthlyFee: string | null, current: EInvoicingQuotaPeriod,
181
+ /** Earlier months, newest first. */
182
+ history: EInvoicingQuotaPeriod[]);
183
+ static fromArray(data: Record<string, unknown>): EInvoicingQuota;
184
+ }
185
+
113
186
  /** One billable usage event of a summary (only included by billing.getUsageSummaries(period)). */
114
187
  interface UsageEvent {
115
188
  id: number;
@@ -197,6 +270,13 @@ declare class BillingEndpoint {
197
270
  * each with its usage events. A period without usage yields a 404 (HttpException).
198
271
  */
199
272
  getUsageSummaries(period: string): Promise<UsageSummary[]>;
273
+ /**
274
+ * The e-invoicing allowance: documents included per month, used, still free and
275
+ * what is due for the documents beyond it — one pool over all e-invoicing
276
+ * countries, current month first, then up to `months - 1` earlier months (1-24).
277
+ * Resolves to null when the company has no e-invoicing.
278
+ */
279
+ getEInvoicingQuota(months?: number): Promise<EInvoicingQuota | null>;
200
280
  private buildHeaders;
201
281
  /** GET + envelope unwrap (`{success, data}` → data, which may be an object or an array). */
202
282
  private getJson;
@@ -236,6 +316,77 @@ declare class CompanyEndpoint {
236
316
  get(): Promise<CompanyResource>;
237
317
  }
238
318
 
319
+ /**
320
+ * What to do with an invoice to a buyer, derived from the Peppol directory
321
+ * (EReportingEndpoint.decideDelivery()).
322
+ */
323
+ declare const ComplianceDeliveryAction: {
324
+ /** The buyer can receive e-invoices: create the transaction, Taxora sends it. */
325
+ readonly EINVOICE: "einvoice";
326
+ /** The buyer is not on the network: send your regular invoice yourself (a transaction would end as not_required and is not billed). */
327
+ readonly REGULAR_INVOICE: "regular_invoice";
328
+ /** No definite directory answer yet: create the transaction anyway, Taxora asks again before sending. */
329
+ readonly EINVOICE_PENDING: "einvoice_pending";
330
+ };
331
+ type ComplianceDeliveryAction = (typeof ComplianceDeliveryAction)[keyof typeof ComplianceDeliveryAction];
332
+
333
+ /**
334
+ * Outcome of a Peppol directory lookup (GET /compliance/peppol-lookup). The
335
+ * directory resolves asynchronously — `pending` means ask again in a few seconds.
336
+ */
337
+ declare const PeppolLookupStatus: {
338
+ readonly REACHABLE: "reachable";
339
+ readonly NOT_REACHABLE: "not_reachable";
340
+ readonly PENDING: "pending";
341
+ readonly UNKNOWN: "unknown";
342
+ };
343
+ type PeppolLookupStatus = (typeof PeppolLookupStatus)[keyof typeof PeppolLookupStatus];
344
+ /** Tolerant coercion: unrecognized values become `unknown` instead of throwing. */
345
+ declare function toPeppolLookupStatus(value: unknown): PeppolLookupStatus;
346
+ declare function describePeppolLookupStatus(status: PeppolLookupStatus): string;
347
+
348
+ /**
349
+ * Whether a participant can receive e-invoices over Peppol
350
+ * (GET /compliance/peppol-lookup). For Norway, `reachable === true` means the
351
+ * buyer is registered in ELMA and must receive an EHF e-invoice.
352
+ */
353
+ declare class PeppolLookupResult {
354
+ readonly status: PeppolLookupStatus;
355
+ /** null while the lookup is still `pending`. */
356
+ readonly reachable: boolean | null;
357
+ readonly country: string;
358
+ /** Peppol identifier scheme, e.g. "0192" for Norwegian organisation numbers. */
359
+ readonly scheme: string;
360
+ /** Participant identifier, e.g. the organisation number. */
361
+ readonly id: string;
362
+ /** Peppol document types the participant accepts, e.g. "xml.ubl.invoice.bis3". */
363
+ readonly documentTypes: string[];
364
+ readonly transportTypeCode: string | null;
365
+ readonly checkedAt: string | null;
366
+ constructor(status: PeppolLookupStatus,
367
+ /** null while the lookup is still `pending`. */
368
+ reachable: boolean | null, country: string,
369
+ /** Peppol identifier scheme, e.g. "0192" for Norwegian organisation numbers. */
370
+ scheme: string,
371
+ /** Participant identifier, e.g. the organisation number. */
372
+ id: string,
373
+ /** Peppol document types the participant accepts, e.g. "xml.ubl.invoice.bis3". */
374
+ documentTypes: string[], transportTypeCode: string | null, checkedAt: string | null);
375
+ /** True while the directory is still resolving — ask again in a few seconds. */
376
+ get isPending(): boolean;
377
+ static fromArray(data: Record<string, unknown>): PeppolLookupResult;
378
+ }
379
+
380
+ /** The action for one buyer plus the directory answer it is based on (EReportingEndpoint.decideDelivery()). */
381
+ declare class ComplianceDeliveryDecision {
382
+ readonly action: ComplianceDeliveryAction;
383
+ readonly lookup: PeppolLookupResult;
384
+ constructor(action: ComplianceDeliveryAction, lookup: PeppolLookupResult);
385
+ /** True unless the buyer is not on the network. */
386
+ get sendsEInvoice(): boolean;
387
+ static fromLookup(lookup: PeppolLookupResult): ComplianceDeliveryDecision;
388
+ }
389
+
239
390
  declare const ComplianceEnrollmentStatus: {
240
391
  readonly PENDING_DATA: "pending_data";
241
392
  readonly ACCOUNT_CREATED: "account_created";
@@ -715,53 +866,6 @@ declare class ImportResult {
715
866
  static fromArray(data: Record<string, unknown>): ImportResult;
716
867
  }
717
868
 
718
- /**
719
- * Outcome of a Peppol directory lookup (GET /compliance/peppol-lookup). The
720
- * directory resolves asynchronously — `pending` means ask again in a few seconds.
721
- */
722
- declare const PeppolLookupStatus: {
723
- readonly REACHABLE: "reachable";
724
- readonly NOT_REACHABLE: "not_reachable";
725
- readonly PENDING: "pending";
726
- readonly UNKNOWN: "unknown";
727
- };
728
- type PeppolLookupStatus = (typeof PeppolLookupStatus)[keyof typeof PeppolLookupStatus];
729
- /** Tolerant coercion: unrecognized values become `unknown` instead of throwing. */
730
- declare function toPeppolLookupStatus(value: unknown): PeppolLookupStatus;
731
- declare function describePeppolLookupStatus(status: PeppolLookupStatus): string;
732
-
733
- /**
734
- * Whether a participant can receive e-invoices over Peppol
735
- * (GET /compliance/peppol-lookup). For Norway, `reachable === true` means the
736
- * buyer is registered in ELMA and must receive an EHF e-invoice.
737
- */
738
- declare class PeppolLookupResult {
739
- readonly status: PeppolLookupStatus;
740
- /** null while the lookup is still `pending`. */
741
- readonly reachable: boolean | null;
742
- readonly country: string;
743
- /** Peppol identifier scheme, e.g. "0192" for Norwegian organisation numbers. */
744
- readonly scheme: string;
745
- /** Participant identifier, e.g. the organisation number. */
746
- readonly id: string;
747
- /** Peppol document types the participant accepts, e.g. "xml.ubl.invoice.bis3". */
748
- readonly documentTypes: string[];
749
- readonly transportTypeCode: string | null;
750
- readonly checkedAt: string | null;
751
- constructor(status: PeppolLookupStatus,
752
- /** null while the lookup is still `pending`. */
753
- reachable: boolean | null, country: string,
754
- /** Peppol identifier scheme, e.g. "0192" for Norwegian organisation numbers. */
755
- scheme: string,
756
- /** Participant identifier, e.g. the organisation number. */
757
- id: string,
758
- /** Peppol document types the participant accepts, e.g. "xml.ubl.invoice.bis3". */
759
- documentTypes: string[], transportTypeCode: string | null, checkedAt: string | null);
760
- /** True while the directory is still resolving — ask again in a few seconds. */
761
- get isPending(): boolean;
762
- static fromArray(data: Record<string, unknown>): PeppolLookupResult;
763
- }
764
-
765
869
  /**
766
870
  * A company from a national company register (GET /compliance/registry-lookup) —
767
871
  * for Norway the Brønnøysund Enhetsregisteret. Maps onto the Norway enrollment
@@ -918,6 +1022,25 @@ declare const Language: {
918
1022
  };
919
1023
  type Language = (typeof Language)[keyof typeof Language];
920
1024
 
1025
+ /**
1026
+ * Tax category of an invoice line (UNCL5305 / DGFiP codes). Which categories and rates a country
1027
+ * accepts is in eReporting.getVatRates(); Norway uses S (25 / 15 / 12 %), Z, E (with a VATEX code)
1028
+ * and AE (reverse charge).
1029
+ */
1030
+ declare const ComplianceTaxCategory: {
1031
+ readonly STANDARD: "S";
1032
+ readonly REDUCED: "AA";
1033
+ readonly SUPER_REDUCED: "AAA";
1034
+ readonly INTRA_COMMUNITY: "K";
1035
+ readonly EXPORT: "G";
1036
+ readonly REVERSE_CHARGE: "AE";
1037
+ readonly EXEMPT: "E";
1038
+ readonly ZERO: "Z";
1039
+ };
1040
+ type ComplianceTaxCategory = (typeof ComplianceTaxCategory)[keyof typeof ComplianceTaxCategory];
1041
+ /** Strict mapping for input: any case is accepted, an unknown code returns null. */
1042
+ declare function parseComplianceTaxCategory(value: unknown): ComplianceTaxCategory | null;
1043
+
921
1044
  /** Time-series bucket size accepted by the revenue statistics endpoint. */
922
1045
  type EReportingInterval = 'day' | 'week' | 'month';
923
1046
  /** Enterprise size categories accepted by the DGFiP enrollment. */
@@ -1080,8 +1203,8 @@ interface ComplianceInvoiceTaxInput {
1080
1203
  name: string;
1081
1204
  /** VAT percentage, e.g. 20 or 5.5. */
1082
1205
  percent: number;
1083
- /** DGFiP tax category code (S/AA/AAA/K/G/AE/E/Z) — see getVatRates(). */
1084
- category: string;
1206
+ /** Tax category code (S/AA/AAA/K/G/AE/E/Z, any case) — see getVatRates() for what a country accepts. */
1207
+ category: ComplianceTaxCategory | Lowercase<ComplianceTaxCategory>;
1085
1208
  /** VATEX exemption code; required when `category` is "E". */
1086
1209
  comment?: string;
1087
1210
  }
@@ -1180,6 +1303,25 @@ interface UpdateComplianceTransactionInput extends ComplianceTransactionBuyerInp
1180
1303
  */
1181
1304
  internalReference?: string;
1182
1305
  }
1306
+ /**
1307
+ * createCreditNote() input. Without invoiceLines and amounts the whole invoice is
1308
+ * credited; for a partial credit pass invoiceLines, subtotal, taxAmount and total together.
1309
+ */
1310
+ interface CreateCreditNoteInput extends ComplianceInvoicePdfFields {
1311
+ /** The credit note's own number (max 50 chars). */
1312
+ creditNoteNumber: string;
1313
+ /** Defaults to today. */
1314
+ invoiceDate?: Date | string;
1315
+ /** Partial credit: the credited lines. */
1316
+ invoiceLines?: ComplianceInvoiceLineInput[];
1317
+ subtotal?: number;
1318
+ taxAmount?: number;
1319
+ total?: number;
1320
+ extraInfo?: string;
1321
+ /** Your own reference (order number, RMA id), max 100 chars. */
1322
+ internalReference?: string;
1323
+ submitNow?: boolean;
1324
+ }
1183
1325
  interface ComplianceTransactionFilters {
1184
1326
  /** Inclusive lower bound on the invoice date (Date or strict YYYY-MM-DD). */
1185
1327
  dateFrom?: Date | string;
@@ -1301,6 +1443,17 @@ declare class EReportingEndpoint {
1301
1443
  * (HttpException) on provider failure.
1302
1444
  */
1303
1445
  peppolLookup(country: string, id: string, scheme?: string): Promise<PeppolLookupResult>;
1446
+ /**
1447
+ * What to do with an invoice to this buyer: peppolLookup() turned into an action,
1448
+ * e.g. in a shop checkout when a business buyer enters its number.
1449
+ *
1450
+ * - `einvoice`: create the transaction, Taxora sends the e-invoice;
1451
+ * - `regular_invoice`: the buyer is not on the network — send your regular invoice
1452
+ * yourself (a transaction would end as not_required and is not billed);
1453
+ * - `einvoice_pending`: no definite answer yet — create the transaction anyway,
1454
+ * Taxora asks the directory again before sending.
1455
+ */
1456
+ decideDelivery(country: string, id: string, scheme?: string): Promise<ComplianceDeliveryDecision>;
1304
1457
  /**
1305
1458
  * Record and (by default) submit a Flux 10 transaction. Pass `submitNow: false`
1306
1459
  * to only record it — submission can be triggered later via submitTransaction().
@@ -1316,6 +1469,21 @@ declare class EReportingEndpoint {
1316
1469
  * On provider failure the API responds 502 (mapped to an HttpException).
1317
1470
  */
1318
1471
  createTransaction(input: CreateComplianceTransactionInput): Promise<ComplianceTransaction>;
1472
+ /**
1473
+ * Issue a credit note for an invoice you sent through Taxora. Everything that must
1474
+ * match the corrected invoice is taken from `original`: enrollment, transaction type,
1475
+ * currency, buyer (name, register id, address, e-mail, VAT number, buyer reference) —
1476
+ * and the reference to the corrected invoice (number and date) is set for you.
1477
+ *
1478
+ * Without invoiceLines and amounts it credits the whole invoice: lines and amounts are
1479
+ * taken over as they are (the document type, not the sign, makes it a credit note).
1480
+ * For a partial credit pass invoiceLines, subtotal, taxAmount and total together.
1481
+ *
1482
+ * Not possible for an invoice that was never sent to the buyer (state not_required)
1483
+ * or for a credit note. A buyer rejected the invoice? Correct it with a credit note and
1484
+ * send a new invoice (`original.buyerRejected`).
1485
+ */
1486
+ createCreditNote(original: ComplianceTransaction, input: CreateCreditNoteInput): Promise<ComplianceTransaction>;
1319
1487
  /** Paginated list of the company's transactions (newest invoice date first), filterable by date / state / type / enrollment / country / search / internal reference / provider state. */
1320
1488
  listTransactions(filters?: ComplianceTransactionFilters): Promise<ComplianceTransactionPage>;
1321
1489
  /**
@@ -1472,6 +1640,14 @@ declare class EReportingEndpoint {
1472
1640
  private validateInvoiceLines;
1473
1641
  private validateInvoicePdfFilename;
1474
1642
  private validateInternalReference;
1643
+ /**
1644
+ * Relations that cannot be right: a due date before the invoice date, a credit note without (or an
1645
+ * invoice with) a corrected invoice, a credit note that reuses the number it corrects, a corrected
1646
+ * invoice dated after the credit note.
1647
+ */
1648
+ private validateDocument;
1649
+ /** A category read back from a stored invoice; one that is not a known code cannot be re-sent. */
1650
+ private storedTaxCategory;
1475
1651
  private validateOptionalCodes;
1476
1652
  /**
1477
1653
  * Format checks for the buyer/document fields. Country rules (e.g. the Norway
@@ -2411,6 +2587,51 @@ declare const ApiVersion: {
2411
2587
  };
2412
2588
  type ApiVersion = (typeof ApiVersion)[keyof typeof ApiVersion];
2413
2589
 
2590
+ interface InvoiceTotals {
2591
+ /** Sum of the line net amounts, 2 decimals. */
2592
+ subtotal: number;
2593
+ /** Sum of the line VAT amounts, 2 decimals. */
2594
+ taxAmount: number;
2595
+ /** subtotal + taxAmount, 2 decimals. */
2596
+ total: number;
2597
+ /** Expected total minus computed total (0 when no expected total was given). */
2598
+ roundingDifference: number;
2599
+ }
2600
+ interface InvoiceTotalsOptions {
2601
+ /**
2602
+ * The total your own system shows the buyer. The totals always follow the lines (the e-invoice is built
2603
+ * from them); this only checks that your total is within rounding distance and reports the difference.
2604
+ */
2605
+ expectedTotal?: number;
2606
+ /** Largest accepted difference to the expected total (default 0.05). */
2607
+ tolerance?: number;
2608
+ }
2609
+ /**
2610
+ * Subtotal, VAT and total of invoice lines, computed the way the e-invoice is built: every line is
2611
+ * quantity × price rounded to cents, VAT per line at the rates of its taxes. Use it so the header
2612
+ * amounts of createTransaction() always match the lines (the API refuses an e-invoice whose amounts
2613
+ * disagree with its lines).
2614
+ */
2615
+ declare function calculateInvoiceTotals(lines: ComplianceInvoiceLineInput[], options?: InvoiceTotalsOptions): InvoiceTotals;
2616
+
2617
+ /**
2618
+ * Taxes for invoice lines without remembering category codes. The rate itself is the seller's to know;
2619
+ * the API checks it against the country's catalogue (see eReporting.getVatRates()). The name defaults to "VAT".
2620
+ */
2621
+ declare const ComplianceTax: {
2622
+ /**
2623
+ * A taxed rate above 0 %, category S (Norway: 25 / 15 / 12 % are all S). Where a country files reduced rates
2624
+ * under their own category (France: AA / AAA), pass it as `category`.
2625
+ */
2626
+ readonly rate: (percent: number, name?: string, category?: ComplianceInvoiceTaxInput["category"]) => ComplianceInvoiceTaxInput;
2627
+ /** 0 % but taxable (category Z). */
2628
+ readonly zeroRated: (name?: string) => ComplianceInvoiceTaxInput;
2629
+ /** Exempt from VAT (category E); the VATEX exemption code is mandatory. */
2630
+ readonly exempt: (exemptionCode: string, name?: string) => ComplianceInvoiceTaxInput;
2631
+ /** Reverse charge (category AE); the mandatory legal text is added by Taxora. */
2632
+ readonly reverseCharge: (name?: string) => ComplianceInvoiceTaxInput;
2633
+ };
2634
+
2414
2635
  /**
2415
2636
  * Norwegian organisation number (organisasjonsnummer): 9 digits, the last one a
2416
2637
  * modulus-11 check digit (weights 3,2,7,6,5,4,3,2). It is also the Peppol
@@ -2674,4 +2895,4 @@ declare class AuthRetryHttpClient implements HttpClientInterface {
2674
2895
  private injectAuthHeader;
2675
2896
  }
2676
2897
 
2677
- export { ApiVersion, AuthEndpoint, AuthRetryHttpClient, AuthenticationException, BillingEndpoint, CompanyAddress, CompanyEndpoint, type CompanyResource, type ComplianceCheckoutConfirmation, type ComplianceCheckoutSession, type ComplianceCoverageCountry, ComplianceDocumentType, ComplianceEnrollment, ComplianceEnrollmentPage, ComplianceEnrollmentStatus, type ComplianceEnterpriseSize, type ComplianceInvoiceLineInput, type ComplianceInvoicePdfFields, type ComplianceInvoicePdfInput, type ComplianceInvoiceTaxInput, type ComplianceLedgerStateChangedEvent, type ComplianceLedgerWebhookObject, type ComplianceNotificationDigest, type ComplianceNotificationSettings, type ComplianceOffering, type ComplianceOfferingPlan, ComplianceOfferings, type ComplianceRequestService, ComplianceService, ComplianceTaxReport, ComplianceTaxReportPage, type ComplianceTaxReportRequestState, ComplianceTaxReportState, ComplianceTransaction, type ComplianceTransactionBuyerInput, type ComplianceTransactionDeliveryCheck, type ComplianceTransactionDocument, type ComplianceTransactionEurEquivalent, type ComplianceTransactionExportFilters, type ComplianceTransactionFilters, type ComplianceTransactionInvoiceLine, type ComplianceTransactionInvoiceLineTax, type ComplianceTransactionInvoicePdf, ComplianceTransactionPage, type ComplianceTransactionRequestState, type ComplianceTransactionRequestType, ComplianceTransactionState, type ComplianceTransactionStateChangedEvent, ComplianceTransactionType, type ComplianceTransactionWebhookObject, type ComplianceTypeOperation, type CreateComplianceEnrollmentInput, type CreateComplianceTransactionInput, type CreateNorwayEnrollmentInput, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, type EReportingAccessRequestInput, EReportingEndpoint, type EReportingInterval, type EnrichmentCompletedEvent, type EnrichmentCompletedWebhookObject, type EnrichmentUpdatedEvent, type EnrichmentUpdatedWebhookObject, Environment, Environment as EnvironmentType, FetchHttpClient, type HttpClientInterface, HttpException, ImportResult, InMemoryTokenStorage, Language, type LocalTaxNumberReportOptions, LocalTaxNumberRow, type LocalTaxNumberSummary, LoginIdentifier, type NorwayEnrollmentInput, NorwegianOrgNumber, type ParsedWebhookSignatureHeader, PeppolLookupResult, PeppolLookupStatus, ProviderDocument, ProviderDocumentLine, RegistryCompany, RetryPolicy, type RetryPolicyOptions, type RevenueCountryBreakdown, type RevenueCurrencyBreakdown, type RevenueStateBreakdown, RevenueStatistics, type RevenueStatisticsFilters, type RevenueTaxRatesCsvFilters, type RevenueTimeBucket, type RevenueTotals, type RevenueTypeBreakdown, ScoreBreakdown, SireneLookupResult, type SmartEnrichmentAddressQuality, type SmartEnrichmentConfidenceBucket, SmartEnrichmentEndpoint, type SmartEnrichmentExportOptions, type SmartEnrichmentHistoryInput, SmartEnrichmentHistoryPage, SmartEnrichmentHistoryRow, type SmartEnrichmentHistoryStats, type SmartEnrichmentInput, SmartEnrichmentJob, SmartEnrichmentMode, type SmartEnrichmentOfficialAddress, type SmartEnrichmentOutcomeBreakdown, type SmartEnrichmentProviderVerdict, SmartEnrichmentRecheck, type SmartEnrichmentRecheckOptions, type SmartEnrichmentRecheckRun, type SmartEnrichmentRecheckRunState, type SmartEnrichmentRecheckSkipReason, SmartEnrichmentRecheckState, type SmartEnrichmentRejectedCandidate, SmartEnrichmentRejectionReason, SmartEnrichmentResource, type SmartEnrichmentSourceBreakdown, SmartEnrichmentStatistics, type SmartEnrichmentStatisticsInterval, type SmartEnrichmentStatisticsOptions, type SmartEnrichmentStatisticsRange, type SmartEnrichmentStatisticsTotals, SmartEnrichmentStatus, type SmartEnrichmentTaxNumberSource, type SmartEnrichmentTimeBucket, type SmartEnrichmentUsage, type SmartEnrichmentUsageHistoryEntry, type SmartEnrichmentWaitOptions, TaxoraClient, TaxoraClientFactory, type TaxoraClientOptions, TaxoraException, type TaxoraWebhookEvent, type TestWebhookObject, Token, type TokenStorageInterface, type UpdateComplianceNotificationSettingsInput, type UpdateComplianceTransactionInput, type UsageEvent, UsageSummary, UsageSummaryPage, ValidationException, VatCertificateExport, VatCollection, VatEndpoint, type VatRate, VatRates, VatResource, VatState, type VatStateChangedEvent, type VatValidatedEvent, VatValidationAddressInput, type VatWebhookObject, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookEventEnvelope, type WebhookEventType, type WebhookRawBody, type WebhookSignatureErrorReason, type WebhookSignatureHeaderInput, WebhookSignatureVerificationError, type WebhookTestEvent, type WebhookVerifyOptions, computeWebhookSignature, constructWebhookEvent, describeApiError, describeComplianceDocumentType, describeComplianceEnrollmentStatus, describeComplianceService, describeComplianceTaxReportState, describeComplianceTransactionState, describeComplianceTransactionType, describePeppolLookupStatus, describeSmartEnrichmentMode, describeSmartEnrichmentRejectionReason, describeSmartEnrichmentStatus, describeVatState, generateWebhookSignatureHeader, getBaseUrl, getFailedVatStates, isTransactionBuyerRejected, parseLocalTaxNumbersCsv, parseWebhookSignatureHeader, toComplianceDocumentType, toComplianceEnrollmentStatus, toComplianceService, toComplianceTaxReportState, toComplianceTransactionState, toComplianceTransactionType, toPeppolLookupStatus, toSmartEnrichmentMode, toSmartEnrichmentRejectionReason, toSmartEnrichmentStatus, verifyWebhookSignature };
2898
+ export { ApiVersion, AuthEndpoint, AuthRetryHttpClient, AuthenticationException, BillingEndpoint, CompanyAddress, CompanyEndpoint, type CompanyResource, type ComplianceCheckoutConfirmation, type ComplianceCheckoutSession, type ComplianceCoverageCountry, ComplianceDeliveryAction, ComplianceDeliveryDecision, ComplianceDocumentType, ComplianceEnrollment, ComplianceEnrollmentPage, ComplianceEnrollmentStatus, type ComplianceEnterpriseSize, type ComplianceInvoiceLineInput, type ComplianceInvoicePdfFields, type ComplianceInvoicePdfInput, type ComplianceInvoiceTaxInput, type ComplianceLedgerStateChangedEvent, type ComplianceLedgerWebhookObject, type ComplianceNotificationDigest, type ComplianceNotificationSettings, type ComplianceOffering, type ComplianceOfferingPlan, ComplianceOfferings, type ComplianceRequestService, ComplianceService, ComplianceTax, ComplianceTaxCategory, ComplianceTaxReport, ComplianceTaxReportPage, type ComplianceTaxReportRequestState, ComplianceTaxReportState, ComplianceTransaction, type ComplianceTransactionBuyerInput, type ComplianceTransactionDeliveryCheck, type ComplianceTransactionDocument, type ComplianceTransactionEurEquivalent, type ComplianceTransactionExportFilters, type ComplianceTransactionFilters, type ComplianceTransactionInvoiceLine, type ComplianceTransactionInvoiceLineTax, type ComplianceTransactionInvoicePdf, ComplianceTransactionPage, type ComplianceTransactionRequestState, type ComplianceTransactionRequestType, ComplianceTransactionState, type ComplianceTransactionStateChangedEvent, ComplianceTransactionType, type ComplianceTransactionWebhookObject, type ComplianceTypeOperation, type CreateComplianceEnrollmentInput, type CreateComplianceTransactionInput, type CreateCreditNoteInput, type CreateNorwayEnrollmentInput, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, EInvoicingQuota, EInvoicingQuotaPeriod, type EInvoicingQuotaTier, type EReportingAccessRequestInput, EReportingEndpoint, type EReportingInterval, type EnrichmentCompletedEvent, type EnrichmentCompletedWebhookObject, type EnrichmentUpdatedEvent, type EnrichmentUpdatedWebhookObject, Environment, Environment as EnvironmentType, FetchHttpClient, type HttpClientInterface, HttpException, ImportResult, InMemoryTokenStorage, type InvoiceTotals, type InvoiceTotalsOptions, Language, type LocalTaxNumberReportOptions, LocalTaxNumberRow, type LocalTaxNumberSummary, LoginIdentifier, type NorwayEnrollmentInput, NorwegianOrgNumber, type ParsedWebhookSignatureHeader, PeppolLookupResult, PeppolLookupStatus, ProviderDocument, ProviderDocumentLine, RegistryCompany, RetryPolicy, type RetryPolicyOptions, type RevenueCountryBreakdown, type RevenueCurrencyBreakdown, type RevenueStateBreakdown, RevenueStatistics, type RevenueStatisticsFilters, type RevenueTaxRatesCsvFilters, type RevenueTimeBucket, type RevenueTotals, type RevenueTypeBreakdown, ScoreBreakdown, SireneLookupResult, type SmartEnrichmentAddressQuality, type SmartEnrichmentConfidenceBucket, SmartEnrichmentEndpoint, type SmartEnrichmentExportOptions, type SmartEnrichmentHistoryInput, SmartEnrichmentHistoryPage, SmartEnrichmentHistoryRow, type SmartEnrichmentHistoryStats, type SmartEnrichmentInput, SmartEnrichmentJob, SmartEnrichmentMode, type SmartEnrichmentOfficialAddress, type SmartEnrichmentOutcomeBreakdown, type SmartEnrichmentProviderVerdict, SmartEnrichmentRecheck, type SmartEnrichmentRecheckOptions, type SmartEnrichmentRecheckRun, type SmartEnrichmentRecheckRunState, type SmartEnrichmentRecheckSkipReason, SmartEnrichmentRecheckState, type SmartEnrichmentRejectedCandidate, SmartEnrichmentRejectionReason, SmartEnrichmentResource, type SmartEnrichmentSourceBreakdown, SmartEnrichmentStatistics, type SmartEnrichmentStatisticsInterval, type SmartEnrichmentStatisticsOptions, type SmartEnrichmentStatisticsRange, type SmartEnrichmentStatisticsTotals, SmartEnrichmentStatus, type SmartEnrichmentTaxNumberSource, type SmartEnrichmentTimeBucket, type SmartEnrichmentUsage, type SmartEnrichmentUsageHistoryEntry, type SmartEnrichmentWaitOptions, TaxoraClient, TaxoraClientFactory, type TaxoraClientOptions, TaxoraException, type TaxoraWebhookEvent, type TestWebhookObject, Token, type TokenStorageInterface, type UpdateComplianceNotificationSettingsInput, type UpdateComplianceTransactionInput, type UsageEvent, UsageSummary, UsageSummaryPage, ValidationException, VatCertificateExport, VatCollection, VatEndpoint, type VatRate, VatRates, VatResource, VatState, type VatStateChangedEvent, type VatValidatedEvent, VatValidationAddressInput, type VatWebhookObject, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, type WebhookEventEnvelope, type WebhookEventType, type WebhookRawBody, type WebhookSignatureErrorReason, type WebhookSignatureHeaderInput, WebhookSignatureVerificationError, type WebhookTestEvent, type WebhookVerifyOptions, calculateInvoiceTotals, computeWebhookSignature, constructWebhookEvent, describeApiError, describeComplianceDocumentType, describeComplianceEnrollmentStatus, describeComplianceService, describeComplianceTaxReportState, describeComplianceTransactionState, describeComplianceTransactionType, describePeppolLookupStatus, describeSmartEnrichmentMode, describeSmartEnrichmentRejectionReason, describeSmartEnrichmentStatus, describeVatState, generateWebhookSignatureHeader, getBaseUrl, getFailedVatStates, isTransactionBuyerRejected, parseComplianceTaxCategory, parseLocalTaxNumbersCsv, parseWebhookSignatureHeader, toComplianceDocumentType, toComplianceEnrollmentStatus, toComplianceService, toComplianceTaxReportState, toComplianceTransactionState, toComplianceTransactionType, toPeppolLookupStatus, toSmartEnrichmentMode, toSmartEnrichmentRejectionReason, toSmartEnrichmentStatus, verifyWebhookSignature };