@spaceinvoices/js-sdk 18.33.0 → 18.34.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/generated/e-invoicing/e-invoicing.d.cts +27 -11
- package/dist/generated/e-invoicing/e-invoicing.d.ts +27 -11
- package/dist/generated/model/downloadReceivedEInvoiceParams.d.cts +1 -1
- package/dist/generated/model/downloadReceivedEInvoiceParams.d.ts +1 -1
- package/dist/generated/model/finaEracunEnrollment.d.cts +6 -6
- package/dist/generated/model/finaEracunEnrollment.d.ts +6 -6
- package/dist/generated/model/finaEracunEnrollmentError.d.cts +1 -1
- package/dist/generated/model/finaEracunEnrollmentError.d.ts +1 -1
- package/dist/generated/model/finaEracunEnrollmentStatus.d.cts +1 -1
- package/dist/generated/model/finaEracunEnrollmentStatus.d.ts +1 -1
- package/dist/generated/model/finaEracunEntitySettings.d.cts +5 -0
- package/dist/generated/model/finaEracunEntitySettings.d.ts +5 -0
- package/dist/generated/model/finaEracunSettingsResponse.d.cts +6 -0
- package/dist/generated/model/finaEracunSettingsResponse.d.ts +6 -0
- package/dist/generated/model/receivedEInvoice.d.cts +6 -6
- package/dist/generated/model/receivedEInvoice.d.ts +6 -6
- package/dist/generated/model/receivedEInvoiceLifecycleRequest.d.cts +3 -3
- package/dist/generated/model/receivedEInvoiceLifecycleRequest.d.ts +3 -3
- package/dist/generated/model/receivedEInvoiceLifecycleRequestAction.d.cts +1 -1
- package/dist/generated/model/receivedEInvoiceLifecycleRequestAction.d.ts +1 -1
- package/dist/generated/model/receivedEInvoiceLifecycleRequestReasonCode.d.cts +1 -1
- package/dist/generated/model/receivedEInvoiceLifecycleRequestReasonCode.d.ts +1 -1
- package/dist/generated/model/receivedEInvoiceList.d.cts +1 -1
- package/dist/generated/model/receivedEInvoiceList.d.ts +1 -1
- package/dist/generated/model/receivedEInvoiceProvider.d.cts +2 -1
- package/dist/generated/model/receivedEInvoiceProvider.d.ts +2 -1
- package/dist/generated/model/updateFinaEracunSettings.d.cts +6 -1
- package/dist/generated/model/updateFinaEracunSettings.d.ts +6 -1
- package/dist/generated-zod/e-invoicing/e-invoicing.d.cts +21 -9
- package/dist/generated-zod/e-invoicing/e-invoicing.d.ts +21 -9
- package/dist/generated-zod/entities/entities.d.cts +7 -0
- package/dist/generated-zod/entities/entities.d.ts +7 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { CheckEInvoicingRecipientRequest, CreateEInvoicingEnrollmentAuthorizationRequest, DisconnectEInvoicingEnrollment200, DownloadReceivedEInvoiceParams, EInvoicingCustomerSearchRequest, EInvoicingEnrollmentAuthorizationResponse, EInvoicingRecipientCheckResponse, EInvoicingSettingsResponse, EInvoicingSubmission, EInvoicingSubmissionDetail, EInvoicingSupplier, Error, FinaEracunErrorBody, FinaEracunSettingsResponse, FranceDirectoryLookupRequest, FranceDirectoryLookupResponse, FrenchEReportingRecord, FrenchEReportingRecordList, GetFinaEracunAuthorizationFormParams, ListEInvoicingSubmissions200, ListEInvoicingSubmissionsParams, ListFrenchEReportingRecordsParams, ListReceivedEInvoicesParams, ReceivedEInvoice, ReceivedEInvoiceLifecycleRequest, ReceivedEInvoiceList, RegisterEInvoicingSupplierRequest, SearchEInvoicingCustomer200, SendEInvoiceLegacyRequest, SendEInvoiceRequest, UpdateEInvoicingSettingsRequest, UpdateEInvoicingSupplierRequest, UpdateFinaEracunSettings, ValidationError } from '../model/index.cjs';
|
|
9
9
|
/**
|
|
10
|
-
* Read whether the entity issues Croatian eRačun through FINA e-Račun, the enrollment state (including whether FINA currently shows sending and receiving rights), and whether sending
|
|
10
|
+
* Read whether the entity issues (enabled) and receives (receiving_enabled) Croatian eRačun through FINA e-Račun, the enrollment state (including whether FINA currently shows sending and receiving rights), and whether sending and receiving are available. Studio 404 sends and receives for each client under a FINA power of attorney (punomoć) that the client registers at FINA (see getFinaEracunAuthorizationForm). The enrollment becomes active once FINA shows sending rights for the entity's OIB (receiving is read from receive_authorized and does not move the status); until then domestic B2B documents that do not qualify for the cash/card CIS path are refused as before. Available only for Croatian entities; others receive 422 FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY.
|
|
11
11
|
* @summary Get Croatian FINA e-Račun settings
|
|
12
12
|
*/
|
|
13
13
|
export type getFinaEracunSettingsResponse200 = {
|
|
@@ -48,7 +48,7 @@ export type getFinaEracunSettingsResponse = (getFinaEracunSettingsResponseSucces
|
|
|
48
48
|
export declare const getGetFinaEracunSettingsUrl: () => string;
|
|
49
49
|
export declare const getFinaEracunSettings: (options?: RequestInit) => Promise<getFinaEracunSettingsResponse>;
|
|
50
50
|
/**
|
|
51
|
-
* Enable or disable eRačun issuance. Enabling requires a Croatian entity with a valid OIB, a bank account with an IBAN and default FINA operator settings (operator_oib and operator_label). Once enabled and the enrollment is active, domestic B2B invoices and credit notes that do not qualify for the cash/card CIS path are issued as eRačun and sent through FINA e-Račun; FINA fiscalizes them for the client and nothing is sent to CIS. Disabling stops new eRačun issuance but does not unlock documents already issued.
|
|
51
|
+
* Enable or disable the two directions independently. enabled controls eRačun issuance (sending); receiving_enabled controls receiving supplier eRačun into the received e-invoice inbox (receiving needs only a valid OIB). Enabling issuance requires a Croatian entity with a valid OIB, a bank account with an IBAN and default FINA operator settings (operator_oib and operator_label). Once enabled and the enrollment is active, domestic B2B invoices and credit notes that do not qualify for the cash/card CIS path are issued as eRačun and sent through FINA e-Račun; FINA fiscalizes them for the client and nothing is sent to CIS. Disabling stops new eRačun issuance but does not unlock documents already issued.
|
|
52
52
|
* @summary Update Croatian FINA e-Račun settings
|
|
53
53
|
*/
|
|
54
54
|
export type updateFinaEracunSettingsResponse200 = {
|
|
@@ -89,7 +89,7 @@ export type updateFinaEracunSettingsResponse = (updateFinaEracunSettingsResponse
|
|
|
89
89
|
export declare const getUpdateFinaEracunSettingsUrl: () => string;
|
|
90
90
|
export declare const updateFinaEracunSettings: (updateFinaEracunSettings: UpdateFinaEracunSettings, options?: RequestInit) => Promise<updateFinaEracunSettingsResponse>;
|
|
91
91
|
/**
|
|
92
|
-
* Reads Studio 404's FINA rights for the entity's OIB with two read-only FINA calls (outgoing and incoming invoice list, today only). Accepted outgoing list means sending is authorised and the enrollment becomes active; accepted incoming list means receiving is authorised. FINA error 970 means the client's power of attorney (punomoć) is not registered (yet): that right is false and the enrollment stays pending, which is not a failure. Any other refusal by FINA marks the enrollment failed. A support deactivation is never lifted by verification. An unreachable FINA answers 503 and changes nothing. Pending enrollments are also re-checked daily. Answers 422 for request validation errors (validation_error), non-Croatian entities (FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY) and an entity without a valid OIB (fina_eracun_invalid_oib). Bodyless.
|
|
92
|
+
* Reads Studio 404's FINA rights for the entity's OIB with two read-only FINA calls (outgoing and incoming invoice list, today only). Accepted outgoing list means sending is authorised and the enrollment becomes active; accepted incoming list means receiving is authorised (receive_authorized), which receiving also needs bound to the entity's current OIB. A later receive call (incoming list, fetch or status change) that FINA refuses with error 970 sets receive_authorized back to false until the next verification; the enrollment status does not change. FINA error 970 means the client's power of attorney (punomoć) is not registered (yet): that right is false and the enrollment stays pending, which is not a failure. Any other refusal by FINA marks the enrollment failed. A support deactivation is never lifted by verification. An unreachable FINA answers 503 and changes nothing. Pending enrollments are also re-checked daily. Answers 422 for request validation errors (validation_error), non-Croatian entities (FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY) and an entity without a valid OIB (fina_eracun_invalid_oib). Bodyless.
|
|
93
93
|
* @summary Verify the FINA e-Račun connection
|
|
94
94
|
*/
|
|
95
95
|
export type verifyFinaEracunEnrollmentResponse200 = {
|
|
@@ -486,7 +486,7 @@ export type lookupFranceEInvoicingDirectoryResponse = (lookupFranceEInvoicingDir
|
|
|
486
486
|
export declare const getLookupFranceEInvoicingDirectoryUrl: () => string;
|
|
487
487
|
export declare const lookupFranceEInvoicingDirectory: (franceDirectoryLookupRequest: FranceDirectoryLookupRequest, options?: RequestInit) => Promise<lookupFranceEInvoicingDirectoryResponse>;
|
|
488
488
|
/**
|
|
489
|
-
* List electronic invoices received by the entity: French invoices delivered through its verified send-and-receive enrollment, or, for Hungarian entities that turned on receiving in their NAV settings, supplier invoices other taxpayers reported to NAV with the entity as the buyer (`provider` tells the two apart). Durable stored records remain available during a temporary platform or
|
|
489
|
+
* List electronic invoices received by the entity: French invoices delivered through its verified send-and-receive enrollment, or, for Hungarian entities that turned on receiving in their NAV settings, supplier invoices other taxpayers reported to NAV with the entity as the buyer (`provider` tells the two apart). Croatian entities that turned on receiving in their FINA e-Račun settings (and have the FINA power of attorney) receive eRačun through FINA. Durable stored records remain available during a temporary platform, NAV or FINA outage.
|
|
490
490
|
* @summary List received e-invoices
|
|
491
491
|
*/
|
|
492
492
|
export type listReceivedEInvoicesResponse200 = {
|
|
@@ -527,7 +527,7 @@ export type listReceivedEInvoicesResponse = (listReceivedEInvoicesResponseSucces
|
|
|
527
527
|
export declare const getListReceivedEInvoicesUrl: (params?: ListReceivedEInvoicesParams) => string;
|
|
528
528
|
export declare const listReceivedEInvoices: (params?: ListReceivedEInvoicesParams, options?: RequestInit) => Promise<listReceivedEInvoicesResponse>;
|
|
529
529
|
/**
|
|
530
|
-
* Download the preserved provider original or a converted Factur-X, UBL, or CII representation of a received French e-invoice (default `factur-x`). A received Hungarian NAV invoice is available as the original NAV XML only (default `original`); other formats respond 422.
|
|
530
|
+
* Download the preserved provider original or a converted Factur-X, UBL, or CII representation of a received French e-invoice (default `factur-x`). A received Hungarian NAV invoice is available as the original NAV XML only (default `original`); other formats respond 422. A received Croatian eRačun is available as the signed original (`original` and `ubl` return the same UBL bytes, default `original`); `factur-x` and `cii` respond 422.
|
|
531
531
|
* @summary Download a received e-invoice
|
|
532
532
|
*/
|
|
533
533
|
export type downloadReceivedEInvoiceResponse200ApplicationPdf = {
|
|
@@ -576,7 +576,7 @@ export type downloadReceivedEInvoiceResponse = (downloadReceivedEInvoiceResponse
|
|
|
576
576
|
export declare const getDownloadReceivedEInvoiceUrl: (id: string, params?: DownloadReceivedEInvoiceParams) => string;
|
|
577
577
|
export declare const downloadReceivedEInvoice: (id: string, params?: DownloadReceivedEInvoiceParams, options?: RequestInit) => Promise<downloadReceivedEInvoiceResponse>;
|
|
578
578
|
/**
|
|
579
|
-
* Idempotently create an incomplete draft expense from a received supplier invoice. The response reports whether the source (the Factur-X representation for French invoices, the original NAV XML for Hungarian invoices) was attached or remains provider-only; the provider original remains available as legal evidence. Only supplier invoices can be accepted: NAV modification and cancellation documents stay in the inbox and respond 422.
|
|
579
|
+
* Idempotently create an incomplete draft expense from a received supplier invoice. The response reports whether the source (the Factur-X representation for French invoices, the original NAV XML for Hungarian invoices) was attached or remains provider-only; the provider original remains available as legal evidence. Only supplier invoices can be accepted: NAV modification and cancellation documents stay in the inbox and respond 422. For Croatian eRačun the source is the embedded PDF (else the signed UBL), and FINA is then told the invoice is APPROVED (retried automatically when FINA does not allow it yet).
|
|
580
580
|
* @summary Accept a received e-invoice as an expense
|
|
581
581
|
*/
|
|
582
582
|
export type acceptReceivedEInvoiceResponse200 = {
|
|
@@ -599,6 +599,10 @@ export type acceptReceivedEInvoiceResponse404 = {
|
|
|
599
599
|
data: Error;
|
|
600
600
|
status: 404;
|
|
601
601
|
};
|
|
602
|
+
export type acceptReceivedEInvoiceResponse409 = {
|
|
603
|
+
data: Error;
|
|
604
|
+
status: 409;
|
|
605
|
+
};
|
|
602
606
|
export type acceptReceivedEInvoiceResponse422 = {
|
|
603
607
|
data: ValidationError;
|
|
604
608
|
status: 422;
|
|
@@ -611,17 +615,21 @@ export type acceptReceivedEInvoiceResponse502 = {
|
|
|
611
615
|
data: Error;
|
|
612
616
|
status: 502;
|
|
613
617
|
};
|
|
618
|
+
export type acceptReceivedEInvoiceResponse503 = {
|
|
619
|
+
data: Error;
|
|
620
|
+
status: 503;
|
|
621
|
+
};
|
|
614
622
|
export type acceptReceivedEInvoiceResponseSuccess = (acceptReceivedEInvoiceResponse200) & {
|
|
615
623
|
headers: Headers;
|
|
616
624
|
};
|
|
617
|
-
export type acceptReceivedEInvoiceResponseError = (acceptReceivedEInvoiceResponse400 | acceptReceivedEInvoiceResponse401 | acceptReceivedEInvoiceResponse403 | acceptReceivedEInvoiceResponse404 | acceptReceivedEInvoiceResponse422 | acceptReceivedEInvoiceResponse500 | acceptReceivedEInvoiceResponse502) & {
|
|
625
|
+
export type acceptReceivedEInvoiceResponseError = (acceptReceivedEInvoiceResponse400 | acceptReceivedEInvoiceResponse401 | acceptReceivedEInvoiceResponse403 | acceptReceivedEInvoiceResponse404 | acceptReceivedEInvoiceResponse409 | acceptReceivedEInvoiceResponse422 | acceptReceivedEInvoiceResponse500 | acceptReceivedEInvoiceResponse502 | acceptReceivedEInvoiceResponse503) & {
|
|
618
626
|
headers: Headers;
|
|
619
627
|
};
|
|
620
628
|
export type acceptReceivedEInvoiceResponse = (acceptReceivedEInvoiceResponseSuccess | acceptReceivedEInvoiceResponseError);
|
|
621
629
|
export declare const getAcceptReceivedEInvoiceUrl: (id: string) => string;
|
|
622
630
|
export declare const acceptReceivedEInvoice: (id: string, options?: RequestInit) => Promise<acceptReceivedEInvoiceResponse>;
|
|
623
631
|
/**
|
|
624
|
-
* Send a provider-neutral French lifecycle action such as acknowledgement, acceptance, dispute, hold, refusal, completion, or payment sent. The command is durably idempotent. French
|
|
632
|
+
* Send a provider-neutral French lifecycle action such as acknowledgement, acceptance, dispute, hold, refusal, completion, or payment sent. The command is durably idempotent. French lifecycle actions need an AFNOR `reason_code` for dispute, hold, partial acceptance and refusal (422 validation error when missing). Croatian eRačun supports `accepted` (FINA APPROVED), `refused` (REJECTED, needs a free-text `reason` that FINA passes to the supplier: 422 `fina_eracun_refusal_reason_required` when missing) and `payment_sent` (PAYMENT_FULFILLED); other actions respond 422. Hungarian NAV has no buyer-side status responses, so this responds 422 for Hungarian entities. For Croatian eRačun the returned record is pending or failed while FINA does not allow the change yet, and it is retried automatically.
|
|
625
633
|
* @summary Send a received invoice lifecycle action
|
|
626
634
|
*/
|
|
627
635
|
export type sendReceivedEInvoiceLifecycleResponse200 = {
|
|
@@ -644,6 +652,10 @@ export type sendReceivedEInvoiceLifecycleResponse404 = {
|
|
|
644
652
|
data: Error;
|
|
645
653
|
status: 404;
|
|
646
654
|
};
|
|
655
|
+
export type sendReceivedEInvoiceLifecycleResponse409 = {
|
|
656
|
+
data: Error;
|
|
657
|
+
status: 409;
|
|
658
|
+
};
|
|
647
659
|
export type sendReceivedEInvoiceLifecycleResponse422 = {
|
|
648
660
|
data: ValidationError;
|
|
649
661
|
status: 422;
|
|
@@ -656,17 +668,21 @@ export type sendReceivedEInvoiceLifecycleResponse502 = {
|
|
|
656
668
|
data: Error;
|
|
657
669
|
status: 502;
|
|
658
670
|
};
|
|
671
|
+
export type sendReceivedEInvoiceLifecycleResponse503 = {
|
|
672
|
+
data: Error;
|
|
673
|
+
status: 503;
|
|
674
|
+
};
|
|
659
675
|
export type sendReceivedEInvoiceLifecycleResponseSuccess = (sendReceivedEInvoiceLifecycleResponse200) & {
|
|
660
676
|
headers: Headers;
|
|
661
677
|
};
|
|
662
|
-
export type sendReceivedEInvoiceLifecycleResponseError = (sendReceivedEInvoiceLifecycleResponse400 | sendReceivedEInvoiceLifecycleResponse401 | sendReceivedEInvoiceLifecycleResponse403 | sendReceivedEInvoiceLifecycleResponse404 | sendReceivedEInvoiceLifecycleResponse422 | sendReceivedEInvoiceLifecycleResponse500 | sendReceivedEInvoiceLifecycleResponse502) & {
|
|
678
|
+
export type sendReceivedEInvoiceLifecycleResponseError = (sendReceivedEInvoiceLifecycleResponse400 | sendReceivedEInvoiceLifecycleResponse401 | sendReceivedEInvoiceLifecycleResponse403 | sendReceivedEInvoiceLifecycleResponse404 | sendReceivedEInvoiceLifecycleResponse409 | sendReceivedEInvoiceLifecycleResponse422 | sendReceivedEInvoiceLifecycleResponse500 | sendReceivedEInvoiceLifecycleResponse502 | sendReceivedEInvoiceLifecycleResponse503) & {
|
|
663
679
|
headers: Headers;
|
|
664
680
|
};
|
|
665
681
|
export type sendReceivedEInvoiceLifecycleResponse = (sendReceivedEInvoiceLifecycleResponseSuccess | sendReceivedEInvoiceLifecycleResponseError);
|
|
666
682
|
export declare const getSendReceivedEInvoiceLifecycleUrl: (id: string) => string;
|
|
667
683
|
export declare const sendReceivedEInvoiceLifecycle: (id: string, receivedEInvoiceLifecycleRequest: ReceivedEInvoiceLifecycleRequest, options?: RequestInit) => Promise<sendReceivedEInvoiceLifecycleResponse>;
|
|
668
684
|
/**
|
|
669
|
-
* List provider-neutral audit status for B2C and international transactions, cash-basis payments, and invoice lifecycle commands.
|
|
685
|
+
* List provider-neutral audit status for French B2C and international transactions, cash-basis payments, and invoice lifecycle commands (French lifecycle commands and Croatian eRačun status changes).
|
|
670
686
|
* @summary List French e-reporting records
|
|
671
687
|
*/
|
|
672
688
|
export type listFrenchEReportingRecordsResponse200 = {
|
|
@@ -707,7 +723,7 @@ export type listFrenchEReportingRecordsResponse = (listFrenchEReportingRecordsRe
|
|
|
707
723
|
export declare const getListFrenchEReportingRecordsUrl: (params?: ListFrenchEReportingRecordsParams) => string;
|
|
708
724
|
export declare const listFrenchEReportingRecords: (params?: ListFrenchEReportingRecordsParams, options?: RequestInit) => Promise<listFrenchEReportingRecordsResponse>;
|
|
709
725
|
/**
|
|
710
|
-
* Retry a failed command. Submitted records and commands with an ambiguous provider outcome are immutable.
|
|
726
|
+
* Retry a failed command (French e-reporting or a Croatian eRačun status change). Submitted records and commands with an ambiguous provider outcome are immutable.
|
|
711
727
|
* @summary Retry a failed French e-reporting record
|
|
712
728
|
*/
|
|
713
729
|
export type retryFrenchEReportingRecordResponse200 = {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { CheckEInvoicingRecipientRequest, CreateEInvoicingEnrollmentAuthorizationRequest, DisconnectEInvoicingEnrollment200, DownloadReceivedEInvoiceParams, EInvoicingCustomerSearchRequest, EInvoicingEnrollmentAuthorizationResponse, EInvoicingRecipientCheckResponse, EInvoicingSettingsResponse, EInvoicingSubmission, EInvoicingSubmissionDetail, EInvoicingSupplier, Error, FinaEracunErrorBody, FinaEracunSettingsResponse, FranceDirectoryLookupRequest, FranceDirectoryLookupResponse, FrenchEReportingRecord, FrenchEReportingRecordList, GetFinaEracunAuthorizationFormParams, ListEInvoicingSubmissions200, ListEInvoicingSubmissionsParams, ListFrenchEReportingRecordsParams, ListReceivedEInvoicesParams, ReceivedEInvoice, ReceivedEInvoiceLifecycleRequest, ReceivedEInvoiceList, RegisterEInvoicingSupplierRequest, SearchEInvoicingCustomer200, SendEInvoiceLegacyRequest, SendEInvoiceRequest, UpdateEInvoicingSettingsRequest, UpdateEInvoicingSupplierRequest, UpdateFinaEracunSettings, ValidationError } from '../model/index.js';
|
|
9
9
|
/**
|
|
10
|
-
* Read whether the entity issues Croatian eRačun through FINA e-Račun, the enrollment state (including whether FINA currently shows sending and receiving rights), and whether sending
|
|
10
|
+
* Read whether the entity issues (enabled) and receives (receiving_enabled) Croatian eRačun through FINA e-Račun, the enrollment state (including whether FINA currently shows sending and receiving rights), and whether sending and receiving are available. Studio 404 sends and receives for each client under a FINA power of attorney (punomoć) that the client registers at FINA (see getFinaEracunAuthorizationForm). The enrollment becomes active once FINA shows sending rights for the entity's OIB (receiving is read from receive_authorized and does not move the status); until then domestic B2B documents that do not qualify for the cash/card CIS path are refused as before. Available only for Croatian entities; others receive 422 FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY.
|
|
11
11
|
* @summary Get Croatian FINA e-Račun settings
|
|
12
12
|
*/
|
|
13
13
|
export type getFinaEracunSettingsResponse200 = {
|
|
@@ -48,7 +48,7 @@ export type getFinaEracunSettingsResponse = (getFinaEracunSettingsResponseSucces
|
|
|
48
48
|
export declare const getGetFinaEracunSettingsUrl: () => string;
|
|
49
49
|
export declare const getFinaEracunSettings: (options?: RequestInit) => Promise<getFinaEracunSettingsResponse>;
|
|
50
50
|
/**
|
|
51
|
-
* Enable or disable eRačun issuance. Enabling requires a Croatian entity with a valid OIB, a bank account with an IBAN and default FINA operator settings (operator_oib and operator_label). Once enabled and the enrollment is active, domestic B2B invoices and credit notes that do not qualify for the cash/card CIS path are issued as eRačun and sent through FINA e-Račun; FINA fiscalizes them for the client and nothing is sent to CIS. Disabling stops new eRačun issuance but does not unlock documents already issued.
|
|
51
|
+
* Enable or disable the two directions independently. enabled controls eRačun issuance (sending); receiving_enabled controls receiving supplier eRačun into the received e-invoice inbox (receiving needs only a valid OIB). Enabling issuance requires a Croatian entity with a valid OIB, a bank account with an IBAN and default FINA operator settings (operator_oib and operator_label). Once enabled and the enrollment is active, domestic B2B invoices and credit notes that do not qualify for the cash/card CIS path are issued as eRačun and sent through FINA e-Račun; FINA fiscalizes them for the client and nothing is sent to CIS. Disabling stops new eRačun issuance but does not unlock documents already issued.
|
|
52
52
|
* @summary Update Croatian FINA e-Račun settings
|
|
53
53
|
*/
|
|
54
54
|
export type updateFinaEracunSettingsResponse200 = {
|
|
@@ -89,7 +89,7 @@ export type updateFinaEracunSettingsResponse = (updateFinaEracunSettingsResponse
|
|
|
89
89
|
export declare const getUpdateFinaEracunSettingsUrl: () => string;
|
|
90
90
|
export declare const updateFinaEracunSettings: (updateFinaEracunSettings: UpdateFinaEracunSettings, options?: RequestInit) => Promise<updateFinaEracunSettingsResponse>;
|
|
91
91
|
/**
|
|
92
|
-
* Reads Studio 404's FINA rights for the entity's OIB with two read-only FINA calls (outgoing and incoming invoice list, today only). Accepted outgoing list means sending is authorised and the enrollment becomes active; accepted incoming list means receiving is authorised. FINA error 970 means the client's power of attorney (punomoć) is not registered (yet): that right is false and the enrollment stays pending, which is not a failure. Any other refusal by FINA marks the enrollment failed. A support deactivation is never lifted by verification. An unreachable FINA answers 503 and changes nothing. Pending enrollments are also re-checked daily. Answers 422 for request validation errors (validation_error), non-Croatian entities (FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY) and an entity without a valid OIB (fina_eracun_invalid_oib). Bodyless.
|
|
92
|
+
* Reads Studio 404's FINA rights for the entity's OIB with two read-only FINA calls (outgoing and incoming invoice list, today only). Accepted outgoing list means sending is authorised and the enrollment becomes active; accepted incoming list means receiving is authorised (receive_authorized), which receiving also needs bound to the entity's current OIB. A later receive call (incoming list, fetch or status change) that FINA refuses with error 970 sets receive_authorized back to false until the next verification; the enrollment status does not change. FINA error 970 means the client's power of attorney (punomoć) is not registered (yet): that right is false and the enrollment stays pending, which is not a failure. Any other refusal by FINA marks the enrollment failed. A support deactivation is never lifted by verification. An unreachable FINA answers 503 and changes nothing. Pending enrollments are also re-checked daily. Answers 422 for request validation errors (validation_error), non-Croatian entities (FINA_ERACUN_NOT_SUPPORTED_FOR_COUNTRY) and an entity without a valid OIB (fina_eracun_invalid_oib). Bodyless.
|
|
93
93
|
* @summary Verify the FINA e-Račun connection
|
|
94
94
|
*/
|
|
95
95
|
export type verifyFinaEracunEnrollmentResponse200 = {
|
|
@@ -486,7 +486,7 @@ export type lookupFranceEInvoicingDirectoryResponse = (lookupFranceEInvoicingDir
|
|
|
486
486
|
export declare const getLookupFranceEInvoicingDirectoryUrl: () => string;
|
|
487
487
|
export declare const lookupFranceEInvoicingDirectory: (franceDirectoryLookupRequest: FranceDirectoryLookupRequest, options?: RequestInit) => Promise<lookupFranceEInvoicingDirectoryResponse>;
|
|
488
488
|
/**
|
|
489
|
-
* List electronic invoices received by the entity: French invoices delivered through its verified send-and-receive enrollment, or, for Hungarian entities that turned on receiving in their NAV settings, supplier invoices other taxpayers reported to NAV with the entity as the buyer (`provider` tells the two apart). Durable stored records remain available during a temporary platform or
|
|
489
|
+
* List electronic invoices received by the entity: French invoices delivered through its verified send-and-receive enrollment, or, for Hungarian entities that turned on receiving in their NAV settings, supplier invoices other taxpayers reported to NAV with the entity as the buyer (`provider` tells the two apart). Croatian entities that turned on receiving in their FINA e-Račun settings (and have the FINA power of attorney) receive eRačun through FINA. Durable stored records remain available during a temporary platform, NAV or FINA outage.
|
|
490
490
|
* @summary List received e-invoices
|
|
491
491
|
*/
|
|
492
492
|
export type listReceivedEInvoicesResponse200 = {
|
|
@@ -527,7 +527,7 @@ export type listReceivedEInvoicesResponse = (listReceivedEInvoicesResponseSucces
|
|
|
527
527
|
export declare const getListReceivedEInvoicesUrl: (params?: ListReceivedEInvoicesParams) => string;
|
|
528
528
|
export declare const listReceivedEInvoices: (params?: ListReceivedEInvoicesParams, options?: RequestInit) => Promise<listReceivedEInvoicesResponse>;
|
|
529
529
|
/**
|
|
530
|
-
* Download the preserved provider original or a converted Factur-X, UBL, or CII representation of a received French e-invoice (default `factur-x`). A received Hungarian NAV invoice is available as the original NAV XML only (default `original`); other formats respond 422.
|
|
530
|
+
* Download the preserved provider original or a converted Factur-X, UBL, or CII representation of a received French e-invoice (default `factur-x`). A received Hungarian NAV invoice is available as the original NAV XML only (default `original`); other formats respond 422. A received Croatian eRačun is available as the signed original (`original` and `ubl` return the same UBL bytes, default `original`); `factur-x` and `cii` respond 422.
|
|
531
531
|
* @summary Download a received e-invoice
|
|
532
532
|
*/
|
|
533
533
|
export type downloadReceivedEInvoiceResponse200ApplicationPdf = {
|
|
@@ -576,7 +576,7 @@ export type downloadReceivedEInvoiceResponse = (downloadReceivedEInvoiceResponse
|
|
|
576
576
|
export declare const getDownloadReceivedEInvoiceUrl: (id: string, params?: DownloadReceivedEInvoiceParams) => string;
|
|
577
577
|
export declare const downloadReceivedEInvoice: (id: string, params?: DownloadReceivedEInvoiceParams, options?: RequestInit) => Promise<downloadReceivedEInvoiceResponse>;
|
|
578
578
|
/**
|
|
579
|
-
* Idempotently create an incomplete draft expense from a received supplier invoice. The response reports whether the source (the Factur-X representation for French invoices, the original NAV XML for Hungarian invoices) was attached or remains provider-only; the provider original remains available as legal evidence. Only supplier invoices can be accepted: NAV modification and cancellation documents stay in the inbox and respond 422.
|
|
579
|
+
* Idempotently create an incomplete draft expense from a received supplier invoice. The response reports whether the source (the Factur-X representation for French invoices, the original NAV XML for Hungarian invoices) was attached or remains provider-only; the provider original remains available as legal evidence. Only supplier invoices can be accepted: NAV modification and cancellation documents stay in the inbox and respond 422. For Croatian eRačun the source is the embedded PDF (else the signed UBL), and FINA is then told the invoice is APPROVED (retried automatically when FINA does not allow it yet).
|
|
580
580
|
* @summary Accept a received e-invoice as an expense
|
|
581
581
|
*/
|
|
582
582
|
export type acceptReceivedEInvoiceResponse200 = {
|
|
@@ -599,6 +599,10 @@ export type acceptReceivedEInvoiceResponse404 = {
|
|
|
599
599
|
data: Error;
|
|
600
600
|
status: 404;
|
|
601
601
|
};
|
|
602
|
+
export type acceptReceivedEInvoiceResponse409 = {
|
|
603
|
+
data: Error;
|
|
604
|
+
status: 409;
|
|
605
|
+
};
|
|
602
606
|
export type acceptReceivedEInvoiceResponse422 = {
|
|
603
607
|
data: ValidationError;
|
|
604
608
|
status: 422;
|
|
@@ -611,17 +615,21 @@ export type acceptReceivedEInvoiceResponse502 = {
|
|
|
611
615
|
data: Error;
|
|
612
616
|
status: 502;
|
|
613
617
|
};
|
|
618
|
+
export type acceptReceivedEInvoiceResponse503 = {
|
|
619
|
+
data: Error;
|
|
620
|
+
status: 503;
|
|
621
|
+
};
|
|
614
622
|
export type acceptReceivedEInvoiceResponseSuccess = (acceptReceivedEInvoiceResponse200) & {
|
|
615
623
|
headers: Headers;
|
|
616
624
|
};
|
|
617
|
-
export type acceptReceivedEInvoiceResponseError = (acceptReceivedEInvoiceResponse400 | acceptReceivedEInvoiceResponse401 | acceptReceivedEInvoiceResponse403 | acceptReceivedEInvoiceResponse404 | acceptReceivedEInvoiceResponse422 | acceptReceivedEInvoiceResponse500 | acceptReceivedEInvoiceResponse502) & {
|
|
625
|
+
export type acceptReceivedEInvoiceResponseError = (acceptReceivedEInvoiceResponse400 | acceptReceivedEInvoiceResponse401 | acceptReceivedEInvoiceResponse403 | acceptReceivedEInvoiceResponse404 | acceptReceivedEInvoiceResponse409 | acceptReceivedEInvoiceResponse422 | acceptReceivedEInvoiceResponse500 | acceptReceivedEInvoiceResponse502 | acceptReceivedEInvoiceResponse503) & {
|
|
618
626
|
headers: Headers;
|
|
619
627
|
};
|
|
620
628
|
export type acceptReceivedEInvoiceResponse = (acceptReceivedEInvoiceResponseSuccess | acceptReceivedEInvoiceResponseError);
|
|
621
629
|
export declare const getAcceptReceivedEInvoiceUrl: (id: string) => string;
|
|
622
630
|
export declare const acceptReceivedEInvoice: (id: string, options?: RequestInit) => Promise<acceptReceivedEInvoiceResponse>;
|
|
623
631
|
/**
|
|
624
|
-
* Send a provider-neutral French lifecycle action such as acknowledgement, acceptance, dispute, hold, refusal, completion, or payment sent. The command is durably idempotent. French
|
|
632
|
+
* Send a provider-neutral French lifecycle action such as acknowledgement, acceptance, dispute, hold, refusal, completion, or payment sent. The command is durably idempotent. French lifecycle actions need an AFNOR `reason_code` for dispute, hold, partial acceptance and refusal (422 validation error when missing). Croatian eRačun supports `accepted` (FINA APPROVED), `refused` (REJECTED, needs a free-text `reason` that FINA passes to the supplier: 422 `fina_eracun_refusal_reason_required` when missing) and `payment_sent` (PAYMENT_FULFILLED); other actions respond 422. Hungarian NAV has no buyer-side status responses, so this responds 422 for Hungarian entities. For Croatian eRačun the returned record is pending or failed while FINA does not allow the change yet, and it is retried automatically.
|
|
625
633
|
* @summary Send a received invoice lifecycle action
|
|
626
634
|
*/
|
|
627
635
|
export type sendReceivedEInvoiceLifecycleResponse200 = {
|
|
@@ -644,6 +652,10 @@ export type sendReceivedEInvoiceLifecycleResponse404 = {
|
|
|
644
652
|
data: Error;
|
|
645
653
|
status: 404;
|
|
646
654
|
};
|
|
655
|
+
export type sendReceivedEInvoiceLifecycleResponse409 = {
|
|
656
|
+
data: Error;
|
|
657
|
+
status: 409;
|
|
658
|
+
};
|
|
647
659
|
export type sendReceivedEInvoiceLifecycleResponse422 = {
|
|
648
660
|
data: ValidationError;
|
|
649
661
|
status: 422;
|
|
@@ -656,17 +668,21 @@ export type sendReceivedEInvoiceLifecycleResponse502 = {
|
|
|
656
668
|
data: Error;
|
|
657
669
|
status: 502;
|
|
658
670
|
};
|
|
671
|
+
export type sendReceivedEInvoiceLifecycleResponse503 = {
|
|
672
|
+
data: Error;
|
|
673
|
+
status: 503;
|
|
674
|
+
};
|
|
659
675
|
export type sendReceivedEInvoiceLifecycleResponseSuccess = (sendReceivedEInvoiceLifecycleResponse200) & {
|
|
660
676
|
headers: Headers;
|
|
661
677
|
};
|
|
662
|
-
export type sendReceivedEInvoiceLifecycleResponseError = (sendReceivedEInvoiceLifecycleResponse400 | sendReceivedEInvoiceLifecycleResponse401 | sendReceivedEInvoiceLifecycleResponse403 | sendReceivedEInvoiceLifecycleResponse404 | sendReceivedEInvoiceLifecycleResponse422 | sendReceivedEInvoiceLifecycleResponse500 | sendReceivedEInvoiceLifecycleResponse502) & {
|
|
678
|
+
export type sendReceivedEInvoiceLifecycleResponseError = (sendReceivedEInvoiceLifecycleResponse400 | sendReceivedEInvoiceLifecycleResponse401 | sendReceivedEInvoiceLifecycleResponse403 | sendReceivedEInvoiceLifecycleResponse404 | sendReceivedEInvoiceLifecycleResponse409 | sendReceivedEInvoiceLifecycleResponse422 | sendReceivedEInvoiceLifecycleResponse500 | sendReceivedEInvoiceLifecycleResponse502 | sendReceivedEInvoiceLifecycleResponse503) & {
|
|
663
679
|
headers: Headers;
|
|
664
680
|
};
|
|
665
681
|
export type sendReceivedEInvoiceLifecycleResponse = (sendReceivedEInvoiceLifecycleResponseSuccess | sendReceivedEInvoiceLifecycleResponseError);
|
|
666
682
|
export declare const getSendReceivedEInvoiceLifecycleUrl: (id: string) => string;
|
|
667
683
|
export declare const sendReceivedEInvoiceLifecycle: (id: string, receivedEInvoiceLifecycleRequest: ReceivedEInvoiceLifecycleRequest, options?: RequestInit) => Promise<sendReceivedEInvoiceLifecycleResponse>;
|
|
668
684
|
/**
|
|
669
|
-
* List provider-neutral audit status for B2C and international transactions, cash-basis payments, and invoice lifecycle commands.
|
|
685
|
+
* List provider-neutral audit status for French B2C and international transactions, cash-basis payments, and invoice lifecycle commands (French lifecycle commands and Croatian eRačun status changes).
|
|
670
686
|
* @summary List French e-reporting records
|
|
671
687
|
*/
|
|
672
688
|
export type listFrenchEReportingRecordsResponse200 = {
|
|
@@ -707,7 +723,7 @@ export type listFrenchEReportingRecordsResponse = (listFrenchEReportingRecordsRe
|
|
|
707
723
|
export declare const getListFrenchEReportingRecordsUrl: (params?: ListFrenchEReportingRecordsParams) => string;
|
|
708
724
|
export declare const listFrenchEReportingRecords: (params?: ListFrenchEReportingRecordsParams, options?: RequestInit) => Promise<listFrenchEReportingRecordsResponse>;
|
|
709
725
|
/**
|
|
710
|
-
* Retry a failed command. Submitted records and commands with an ambiguous provider outcome are immutable.
|
|
726
|
+
* Retry a failed command (French e-reporting or a Croatian eRačun status change). Submitted records and commands with an ambiguous provider outcome are immutable.
|
|
711
727
|
* @summary Retry a failed French e-reporting record
|
|
712
728
|
*/
|
|
713
729
|
export type retryFrenchEReportingRecordResponse200 = {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { DownloadReceivedEInvoiceFormat } from './downloadReceivedEInvoiceFormat.cjs';
|
|
9
9
|
export type DownloadReceivedEInvoiceParams = {
|
|
10
10
|
/**
|
|
11
|
-
* Download the provider original or a converted Factur-X, UBL, or CII representation. Defaults to `factur-x` for French invoices and to `original` for Hungarian NAV invoices
|
|
11
|
+
* Download the provider original or a converted Factur-X, UBL, or CII representation. Defaults to `factur-x` for French invoices and to `original` for Hungarian NAV invoices (original NAV XML only) and Croatian eRačun (signed UBL: `original` and `ubl` return the same bytes; `factur-x` and `cii` respond 422).
|
|
12
12
|
*/
|
|
13
13
|
format?: DownloadReceivedEInvoiceFormat;
|
|
14
14
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { DownloadReceivedEInvoiceFormat } from './downloadReceivedEInvoiceFormat.js';
|
|
9
9
|
export type DownloadReceivedEInvoiceParams = {
|
|
10
10
|
/**
|
|
11
|
-
* Download the provider original or a converted Factur-X, UBL, or CII representation. Defaults to `factur-x` for French invoices and to `original` for Hungarian NAV invoices
|
|
11
|
+
* Download the provider original or a converted Factur-X, UBL, or CII representation. Defaults to `factur-x` for French invoices and to `original` for Hungarian NAV invoices (original NAV XML only) and Croatian eRačun (signed UBL: `original` and `ubl` return the same bytes; `factur-x` and `cii` respond 422).
|
|
12
12
|
*/
|
|
13
13
|
format?: DownloadReceivedEInvoiceFormat;
|
|
14
14
|
};
|
|
@@ -9,7 +9,7 @@ import type { FinaEracunEnrollmentEnvironment } from './finaEracunEnrollmentEnvi
|
|
|
9
9
|
import type { FinaEracunEnrollmentError } from './finaEracunEnrollmentError.cjs';
|
|
10
10
|
import type { FinaEracunEnrollmentStatus } from './finaEracunEnrollmentStatus.cjs';
|
|
11
11
|
export interface FinaEracunEnrollment {
|
|
12
|
-
/** not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error). */
|
|
12
|
+
/** not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. Receiving does not move the status: it is read from receive_authorized. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error). */
|
|
13
13
|
status: FinaEracunEnrollmentStatus;
|
|
14
14
|
/** FINA environment, derived from the entity environment: sandbox uses the FINA demo, live uses production. */
|
|
15
15
|
environment: FinaEracunEnrollmentEnvironment;
|
|
@@ -23,22 +23,22 @@ export interface FinaEracunEnrollment {
|
|
|
23
23
|
* @nullable
|
|
24
24
|
*/
|
|
25
25
|
connectivity_verified_at: string | null;
|
|
26
|
-
/** Whether Studio 404's certificate may send eRačun for this OIB, as FINA last answered. True after a verification in which FINA accepted the outgoing invoice list. False until then, after a verification answered with error 970, and after FINA refused a real send with error 970. A verification FINA rejected for another reason keeps the previous value. Always present in responses; false when there is no enrollment yet. */
|
|
26
|
+
/** Whether Studio 404's certificate may send eRačun for this OIB, as FINA last answered. True after a verification in which FINA accepted the outgoing invoice list. False until then, after a verification answered with error 970, and after FINA refused a real send with error 970. A verification FINA rejected for another reason keeps the previous value, and so does a receive call FINA refused with error 970. Always present in responses; false when there is no enrollment yet. */
|
|
27
27
|
send_authorized?: boolean;
|
|
28
|
-
/** Whether Studio 404's certificate may receive eRačun for this OIB, as the last answered verification found it (FINA accepted the incoming invoice list).
|
|
28
|
+
/** Whether Studio 404's certificate may receive eRačun for this OIB, as the last answered verification found it (FINA accepted the incoming invoice list). Verification reads this right. It also becomes false when FINA answers a receive call (the incoming invoice list, fetching an incoming invoice or changing its status) with error 970, while it was true and the enrollment is still bound to the entity's current OIB. A refused send leaves it unchanged, and so does a verification FINA rejected for another reason. Always present in responses; false until a verification confirms receiving rights (including when there is no enrollment yet). */
|
|
29
29
|
receive_authorized?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
* When FINA last answered on this OIB's rights. That is
|
|
31
|
+
* When FINA last answered on this OIB's rights. That is one of: a verification whose two list calls were answered with acceptance or error 970, which sets send_authorized and receive_authorized; a send FINA refused with error 970, which sets only send_authorized to false and keeps receive_authorized from the earlier verification; or a receive call (incoming invoice list, fetch or status change) FINA refused with error 970, which sets only receive_authorized to false and keeps send_authorized from the earlier verification. Null until the first such answer (including when there is no enrollment yet). Always present in responses. An unreachable FINA, any other FINA refusal, and a verification skipped because the enrollment changed during the FINA calls leave it unchanged.
|
|
32
32
|
* @nullable
|
|
33
33
|
*/
|
|
34
34
|
authorization_checked_at?: string | null;
|
|
35
35
|
/**
|
|
36
|
-
* When FINA last answered a verification of this enrollment, including a refusal that marked it failed, or refused a send with error 970. Null until then. An unreachable FINA (503), missing FINA configuration (422), and a verification skipped because the enrollment changed during the FINA calls leave it unchanged.
|
|
36
|
+
* When FINA last answered a verification of this enrollment, including a refusal that marked it failed, or when FINA refused a send or a receive call (incoming invoice list, fetch or status change) with error 970. Null until then. An unreachable FINA (503), missing FINA configuration (422), and a verification skipped because the enrollment changed during the FINA calls leave it unchanged.
|
|
37
37
|
* @nullable
|
|
38
38
|
*/
|
|
39
39
|
last_checked_at: string | null;
|
|
40
40
|
/**
|
|
41
|
-
* Why the last verification failed, or null.
|
|
41
|
+
* Why the last verification failed, or null. After a receive call FINA refused with error 970 it carries that refusal (code 970).
|
|
42
42
|
* @nullable
|
|
43
43
|
*/
|
|
44
44
|
error: FinaEracunEnrollmentError;
|
|
@@ -9,7 +9,7 @@ import type { FinaEracunEnrollmentEnvironment } from './finaEracunEnrollmentEnvi
|
|
|
9
9
|
import type { FinaEracunEnrollmentError } from './finaEracunEnrollmentError.js';
|
|
10
10
|
import type { FinaEracunEnrollmentStatus } from './finaEracunEnrollmentStatus.js';
|
|
11
11
|
export interface FinaEracunEnrollment {
|
|
12
|
-
/** not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error). */
|
|
12
|
+
/** not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. Receiving does not move the status: it is read from receive_authorized. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error). */
|
|
13
13
|
status: FinaEracunEnrollmentStatus;
|
|
14
14
|
/** FINA environment, derived from the entity environment: sandbox uses the FINA demo, live uses production. */
|
|
15
15
|
environment: FinaEracunEnrollmentEnvironment;
|
|
@@ -23,22 +23,22 @@ export interface FinaEracunEnrollment {
|
|
|
23
23
|
* @nullable
|
|
24
24
|
*/
|
|
25
25
|
connectivity_verified_at: string | null;
|
|
26
|
-
/** Whether Studio 404's certificate may send eRačun for this OIB, as FINA last answered. True after a verification in which FINA accepted the outgoing invoice list. False until then, after a verification answered with error 970, and after FINA refused a real send with error 970. A verification FINA rejected for another reason keeps the previous value. Always present in responses; false when there is no enrollment yet. */
|
|
26
|
+
/** Whether Studio 404's certificate may send eRačun for this OIB, as FINA last answered. True after a verification in which FINA accepted the outgoing invoice list. False until then, after a verification answered with error 970, and after FINA refused a real send with error 970. A verification FINA rejected for another reason keeps the previous value, and so does a receive call FINA refused with error 970. Always present in responses; false when there is no enrollment yet. */
|
|
27
27
|
send_authorized?: boolean;
|
|
28
|
-
/** Whether Studio 404's certificate may receive eRačun for this OIB, as the last answered verification found it (FINA accepted the incoming invoice list).
|
|
28
|
+
/** Whether Studio 404's certificate may receive eRačun for this OIB, as the last answered verification found it (FINA accepted the incoming invoice list). Verification reads this right. It also becomes false when FINA answers a receive call (the incoming invoice list, fetching an incoming invoice or changing its status) with error 970, while it was true and the enrollment is still bound to the entity's current OIB. A refused send leaves it unchanged, and so does a verification FINA rejected for another reason. Always present in responses; false until a verification confirms receiving rights (including when there is no enrollment yet). */
|
|
29
29
|
receive_authorized?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
* When FINA last answered on this OIB's rights. That is
|
|
31
|
+
* When FINA last answered on this OIB's rights. That is one of: a verification whose two list calls were answered with acceptance or error 970, which sets send_authorized and receive_authorized; a send FINA refused with error 970, which sets only send_authorized to false and keeps receive_authorized from the earlier verification; or a receive call (incoming invoice list, fetch or status change) FINA refused with error 970, which sets only receive_authorized to false and keeps send_authorized from the earlier verification. Null until the first such answer (including when there is no enrollment yet). Always present in responses. An unreachable FINA, any other FINA refusal, and a verification skipped because the enrollment changed during the FINA calls leave it unchanged.
|
|
32
32
|
* @nullable
|
|
33
33
|
*/
|
|
34
34
|
authorization_checked_at?: string | null;
|
|
35
35
|
/**
|
|
36
|
-
* When FINA last answered a verification of this enrollment, including a refusal that marked it failed, or refused a send with error 970. Null until then. An unreachable FINA (503), missing FINA configuration (422), and a verification skipped because the enrollment changed during the FINA calls leave it unchanged.
|
|
36
|
+
* When FINA last answered a verification of this enrollment, including a refusal that marked it failed, or when FINA refused a send or a receive call (incoming invoice list, fetch or status change) with error 970. Null until then. An unreachable FINA (503), missing FINA configuration (422), and a verification skipped because the enrollment changed during the FINA calls leave it unchanged.
|
|
37
37
|
* @nullable
|
|
38
38
|
*/
|
|
39
39
|
last_checked_at: string | null;
|
|
40
40
|
/**
|
|
41
|
-
* Why the last verification failed, or null.
|
|
41
|
+
* Why the last verification failed, or null. After a receive call FINA refused with error 970 it carries that refusal (code 970).
|
|
42
42
|
* @nullable
|
|
43
43
|
*/
|
|
44
44
|
error: FinaEracunEnrollmentError;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* Why the last verification failed, or null.
|
|
9
|
+
* Why the last verification failed, or null. After a receive call FINA refused with error 970 it carries that refusal (code 970).
|
|
10
10
|
* @nullable
|
|
11
11
|
*/
|
|
12
12
|
export type FinaEracunEnrollmentError = {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* Why the last verification failed, or null.
|
|
9
|
+
* Why the last verification failed, or null. After a receive call FINA refused with error 970 it carries that refusal (code 970).
|
|
10
10
|
* @nullable
|
|
11
11
|
*/
|
|
12
12
|
export type FinaEracunEnrollmentError = {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error).
|
|
9
|
+
* not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. Receiving does not move the status: it is read from receive_authorized. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error).
|
|
10
10
|
*/
|
|
11
11
|
export type FinaEracunEnrollmentStatus = typeof FinaEracunEnrollmentStatus[keyof typeof FinaEracunEnrollmentStatus];
|
|
12
12
|
export declare const FinaEracunEnrollmentStatus: {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error).
|
|
9
|
+
* not_started: no enrollment yet. pending: FINA does not (yet) show sending rights for the OIB, usually because the client's power of attorney (punomoć) is not registered at FINA; it is re-checked daily and by the verify call. active: sending is authorised and eRačun documents can be issued. Receiving does not move the status: it is read from receive_authorized. failed: FINA refused the authorisation check with an unexpected error, or support deactivated the enrollment (see error).
|
|
10
10
|
*/
|
|
11
11
|
export type FinaEracunEnrollmentStatus = typeof FinaEracunEnrollmentStatus[keyof typeof FinaEracunEnrollmentStatus];
|
|
12
12
|
export declare const FinaEracunEnrollmentStatus: {
|
|
@@ -11,4 +11,9 @@ export interface FinaEracunEntitySettings {
|
|
|
11
11
|
* @nullable
|
|
12
12
|
*/
|
|
13
13
|
enabled?: boolean | null;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the entity receives supplier eRačun through FINA e-Račun into the received e-invoice inbox. Protected like enabled: the generic entity update and the Peppol e-invoicing settings update never change it. Use PATCH /e-invoicing/fina-eracun/settings.
|
|
16
|
+
* @nullable
|
|
17
|
+
*/
|
|
18
|
+
receiving_enabled?: boolean | null;
|
|
14
19
|
}
|
|
@@ -11,4 +11,9 @@ export interface FinaEracunEntitySettings {
|
|
|
11
11
|
* @nullable
|
|
12
12
|
*/
|
|
13
13
|
enabled?: boolean | null;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the entity receives supplier eRačun through FINA e-Račun into the received e-invoice inbox. Protected like enabled: the generic entity update and the Peppol e-invoicing settings update never change it. Use PATCH /e-invoicing/fina-eracun/settings.
|
|
16
|
+
* @nullable
|
|
17
|
+
*/
|
|
18
|
+
receiving_enabled?: boolean | null;
|
|
14
19
|
}
|
|
@@ -9,6 +9,10 @@ import type { FinaEracunEnrollment } from './finaEracunEnrollment.cjs';
|
|
|
9
9
|
export interface FinaEracunSettingsResponse {
|
|
10
10
|
/** Whether eRačun issuance is switched on for this entity. */
|
|
11
11
|
enabled: boolean;
|
|
12
|
+
/** Whether receiving supplier eRačun through FINA is switched on for this entity (settings.e_invoicing.croatia.receiving_enabled). Independent of enabled. Present in responses; false when not chosen. */
|
|
13
|
+
receiving_enabled?: boolean;
|
|
14
|
+
/** Whether receiving works right now: receiving_enabled, the enrollment is not failed or deactivated, FINA shows the receiving right for the entity's current OIB (receive_authorized, bound to the OIB the enrollment was verified or activated for) and the server certificate is configured. Present in responses. */
|
|
15
|
+
receiving_allowed?: boolean;
|
|
12
16
|
enrollment: FinaEracunEnrollment;
|
|
13
17
|
/** Whether the server has the Studio 404 FINA certificate for this environment. */
|
|
14
18
|
certificate_configured: boolean;
|
|
@@ -16,6 +20,8 @@ export interface FinaEracunSettingsResponse {
|
|
|
16
20
|
dispatch_available: boolean;
|
|
17
21
|
/** Whether the entity has default FINA operator settings (OIB and label), required as HR-BT-4/HR-BT-5 on every eRačun. */
|
|
18
22
|
operator_configured: boolean;
|
|
23
|
+
/** Whether receiving from FINA is switched on for this environment. While off, nothing is fetched and the received e-invoice inbox stays as it is. */
|
|
24
|
+
receive_available?: boolean;
|
|
19
25
|
/** Enabled, enrollment active, certificate present and dispatch available: eRačun is flowing. */
|
|
20
26
|
ready: boolean;
|
|
21
27
|
}
|
|
@@ -9,6 +9,10 @@ import type { FinaEracunEnrollment } from './finaEracunEnrollment.js';
|
|
|
9
9
|
export interface FinaEracunSettingsResponse {
|
|
10
10
|
/** Whether eRačun issuance is switched on for this entity. */
|
|
11
11
|
enabled: boolean;
|
|
12
|
+
/** Whether receiving supplier eRačun through FINA is switched on for this entity (settings.e_invoicing.croatia.receiving_enabled). Independent of enabled. Present in responses; false when not chosen. */
|
|
13
|
+
receiving_enabled?: boolean;
|
|
14
|
+
/** Whether receiving works right now: receiving_enabled, the enrollment is not failed or deactivated, FINA shows the receiving right for the entity's current OIB (receive_authorized, bound to the OIB the enrollment was verified or activated for) and the server certificate is configured. Present in responses. */
|
|
15
|
+
receiving_allowed?: boolean;
|
|
12
16
|
enrollment: FinaEracunEnrollment;
|
|
13
17
|
/** Whether the server has the Studio 404 FINA certificate for this environment. */
|
|
14
18
|
certificate_configured: boolean;
|
|
@@ -16,6 +20,8 @@ export interface FinaEracunSettingsResponse {
|
|
|
16
20
|
dispatch_available: boolean;
|
|
17
21
|
/** Whether the entity has default FINA operator settings (OIB and label), required as HR-BT-4/HR-BT-5 on every eRačun. */
|
|
18
22
|
operator_configured: boolean;
|
|
23
|
+
/** Whether receiving from FINA is switched on for this environment. While off, nothing is fetched and the received e-invoice inbox stays as it is. */
|
|
24
|
+
receive_available?: boolean;
|
|
19
25
|
/** Enabled, enrollment active, certificate present and dispatch available: eRačun is flowing. */
|
|
20
26
|
ready: boolean;
|
|
21
27
|
}
|
|
@@ -9,14 +9,14 @@ import type { ReceivedEInvoiceAttachmentStatus } from './receivedEInvoiceAttachm
|
|
|
9
9
|
import type { ReceivedEInvoiceProvider } from './receivedEInvoiceProvider.cjs';
|
|
10
10
|
import type { ReceivedEInvoiceState } from './receivedEInvoiceState.cjs';
|
|
11
11
|
/**
|
|
12
|
-
* A French electronic invoice received through the entity's approved platform,
|
|
12
|
+
* A French electronic invoice received through the entity's approved platform, a Hungarian supplier invoice pulled from NAV Online Számla, or a Croatian eRačun received through FINA e-Račun.
|
|
13
13
|
*/
|
|
14
14
|
export interface ReceivedEInvoice {
|
|
15
|
-
/** Provider-scoped received-invoice ID. */
|
|
15
|
+
/** Provider-scoped received-invoice ID (France: the platform invoice ID; Croatia: the FINA InvoiceID). */
|
|
16
16
|
id: string;
|
|
17
|
-
/** Channel the invoice arrived through: `france_pdp` for French invoices received through the entity's approved platform, `nav` for Hungarian supplier invoices reported to NAV Online Számla. */
|
|
17
|
+
/** Channel the invoice arrived through: `france_pdp` for French invoices received through the entity's approved platform, `nav` for Hungarian supplier invoices reported to NAV Online Számla, `fina_eracun` for Croatian eRačun received through FINA e-Račun. */
|
|
18
18
|
provider?: ReceivedEInvoiceProvider;
|
|
19
|
-
/** When the approved platform (
|
|
19
|
+
/** When the approved platform (NAV for Hungarian invoices, FINA e-Račun for Croatian eRačun) received the document. */
|
|
20
20
|
received_at: string;
|
|
21
21
|
/**
|
|
22
22
|
* Supplier invoice number when available.
|
|
@@ -39,7 +39,7 @@ export interface ReceivedEInvoice {
|
|
|
39
39
|
*/
|
|
40
40
|
supplier_name: string | null;
|
|
41
41
|
/**
|
|
42
|
-
* Supplier legal identifier when available.
|
|
42
|
+
* Supplier legal identifier when available (Croatia: the supplier OIB).
|
|
43
43
|
* @nullable
|
|
44
44
|
*/
|
|
45
45
|
supplier_company_number: string | null;
|
|
@@ -59,7 +59,7 @@ export interface ReceivedEInvoice {
|
|
|
59
59
|
*/
|
|
60
60
|
total_with_tax: string | null;
|
|
61
61
|
/**
|
|
62
|
-
* Latest
|
|
62
|
+
* Latest provider lifecycle status code when available: the AFNOR code for French invoices (such as 203 or 205), RECEIVED, APPROVED, REJECTED or PAYMENT_FULFILLED for Croatian eRačun; always null for Hungarian NAV invoices.
|
|
63
63
|
* @nullable
|
|
64
64
|
*/
|
|
65
65
|
status_code: string | null;
|
|
@@ -9,14 +9,14 @@ import type { ReceivedEInvoiceAttachmentStatus } from './receivedEInvoiceAttachm
|
|
|
9
9
|
import type { ReceivedEInvoiceProvider } from './receivedEInvoiceProvider.js';
|
|
10
10
|
import type { ReceivedEInvoiceState } from './receivedEInvoiceState.js';
|
|
11
11
|
/**
|
|
12
|
-
* A French electronic invoice received through the entity's approved platform,
|
|
12
|
+
* A French electronic invoice received through the entity's approved platform, a Hungarian supplier invoice pulled from NAV Online Számla, or a Croatian eRačun received through FINA e-Račun.
|
|
13
13
|
*/
|
|
14
14
|
export interface ReceivedEInvoice {
|
|
15
|
-
/** Provider-scoped received-invoice ID. */
|
|
15
|
+
/** Provider-scoped received-invoice ID (France: the platform invoice ID; Croatia: the FINA InvoiceID). */
|
|
16
16
|
id: string;
|
|
17
|
-
/** Channel the invoice arrived through: `france_pdp` for French invoices received through the entity's approved platform, `nav` for Hungarian supplier invoices reported to NAV Online Számla. */
|
|
17
|
+
/** Channel the invoice arrived through: `france_pdp` for French invoices received through the entity's approved platform, `nav` for Hungarian supplier invoices reported to NAV Online Számla, `fina_eracun` for Croatian eRačun received through FINA e-Račun. */
|
|
18
18
|
provider?: ReceivedEInvoiceProvider;
|
|
19
|
-
/** When the approved platform (
|
|
19
|
+
/** When the approved platform (NAV for Hungarian invoices, FINA e-Račun for Croatian eRačun) received the document. */
|
|
20
20
|
received_at: string;
|
|
21
21
|
/**
|
|
22
22
|
* Supplier invoice number when available.
|
|
@@ -39,7 +39,7 @@ export interface ReceivedEInvoice {
|
|
|
39
39
|
*/
|
|
40
40
|
supplier_name: string | null;
|
|
41
41
|
/**
|
|
42
|
-
* Supplier legal identifier when available.
|
|
42
|
+
* Supplier legal identifier when available (Croatia: the supplier OIB).
|
|
43
43
|
* @nullable
|
|
44
44
|
*/
|
|
45
45
|
supplier_company_number: string | null;
|
|
@@ -59,7 +59,7 @@ export interface ReceivedEInvoice {
|
|
|
59
59
|
*/
|
|
60
60
|
total_with_tax: string | null;
|
|
61
61
|
/**
|
|
62
|
-
* Latest
|
|
62
|
+
* Latest provider lifecycle status code when available: the AFNOR code for French invoices (such as 203 or 205), RECEIVED, APPROVED, REJECTED or PAYMENT_FULFILLED for Croatian eRačun; always null for Hungarian NAV invoices.
|
|
63
63
|
* @nullable
|
|
64
64
|
*/
|
|
65
65
|
status_code: string | null;
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
import type { ReceivedEInvoiceLifecycleRequestAction } from './receivedEInvoiceLifecycleRequestAction.cjs';
|
|
9
9
|
import type { ReceivedEInvoiceLifecycleRequestReasonCode } from './receivedEInvoiceLifecycleRequestReasonCode.cjs';
|
|
10
10
|
export interface ReceivedEInvoiceLifecycleRequest {
|
|
11
|
-
/**
|
|
11
|
+
/** Lifecycle action. French invoices support all of them. Croatian eRačun supports `accepted` (FINA APPROVED), `refused` (REJECTED) and `payment_sent` (PAYMENT_FULFILLED); any other action responds 422. */
|
|
12
12
|
action: ReceivedEInvoiceLifecycleRequestAction;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* French invoices only: required AFNOR MDT-113 code for a dispute, hold, partial acceptance, or refusal (422 validation error when missing). Codes are status-specific. Not used for Croatian eRačun.
|
|
15
15
|
* @nullable
|
|
16
16
|
*/
|
|
17
17
|
reason_code?: ReceivedEInvoiceLifecycleRequestReasonCode;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Human-readable explanation. Optional for French invoices (MDT-114, accompanies the coded reason). Required to refuse a Croatian eRačun (422 `fina_eracun_refusal_reason_required` when missing): FINA passes it to the supplier as the rejection note.
|
|
20
20
|
* @minLength 1
|
|
21
21
|
* @maxLength 500
|
|
22
22
|
* @nullable
|