@spaceinvoices/js-sdk 18.19.0 → 18.21.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/credit-notes/credit-notes.d.cts +1 -1
- package/dist/generated/credit-notes/credit-notes.d.ts +1 -1
- package/dist/generated/invoices/invoices.d.cts +1 -1
- package/dist/generated/invoices/invoices.d.ts +1 -1
- package/dist/generated-zod/credit-notes/credit-notes.d.cts +1 -1
- package/dist/generated-zod/credit-notes/credit-notes.d.ts +1 -1
- package/dist/generated-zod/invoices/invoices.d.cts +1 -1
- package/dist/generated-zod/invoices/invoices.d.ts +1 -1
- package/package.json +1 -1
|
@@ -642,7 +642,7 @@ export declare const getCreditNoteById: (id: string, params?: GetCreditNoteByIdP
|
|
|
642
642
|
/**
|
|
643
643
|
* Update an existing credit note.
|
|
644
644
|
Creates a version snapshot before applying changes.
|
|
645
|
-
Cannot update voided or FURS-fiscalized credit notes. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
645
|
+
Cannot update voided or FURS-fiscalized credit notes. A void reversal credit note (the one created by voiding an invoice) cannot be edited except for `metadata`; any other change returns 422. This check runs after the voided, fiscalized (FURS, FINA, EET, VERI*FACTU) and Italian checks and the Peppol and NAV e-invoicing locks, which return their own errors (for example 409 NAV_DOCUMENT_IMMUTABLE) and can also refuse metadata edits; it runs before the KSeF and Portugal update hooks, so there this 422 is returned first. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
646
646
|
If items are provided, they replace all existing items.
|
|
647
647
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
648
648
|
* @summary Update a credit note
|
|
@@ -642,7 +642,7 @@ export declare const getCreditNoteById: (id: string, params?: GetCreditNoteByIdP
|
|
|
642
642
|
/**
|
|
643
643
|
* Update an existing credit note.
|
|
644
644
|
Creates a version snapshot before applying changes.
|
|
645
|
-
Cannot update voided or FURS-fiscalized credit notes. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
645
|
+
Cannot update voided or FURS-fiscalized credit notes. A void reversal credit note (the one created by voiding an invoice) cannot be edited except for `metadata`; any other change returns 422. This check runs after the voided, fiscalized (FURS, FINA, EET, VERI*FACTU) and Italian checks and the Peppol and NAV e-invoicing locks, which return their own errors (for example 409 NAV_DOCUMENT_IMMUTABLE) and can also refuse metadata edits; it runs before the KSeF and Portugal update hooks, so there this 422 is returned first. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
646
646
|
If items are provided, they replace all existing items.
|
|
647
647
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
648
648
|
* @summary Update a credit note
|
|
@@ -910,7 +910,7 @@ export type renderInvoicePreviewResponse = (renderInvoicePreviewResponseSuccess
|
|
|
910
910
|
export declare const getRenderInvoicePreviewUrl: (params?: RenderInvoicePreviewParams) => string;
|
|
911
911
|
export declare const renderInvoicePreview: (partialInvoicePreviewCompleteInvoicePreview: PartialInvoicePreview | CompleteInvoicePreview, params?: RenderInvoicePreviewParams, options?: RequestInit) => Promise<renderInvoicePreviewResponse>;
|
|
912
912
|
/**
|
|
913
|
-
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. For business corrections, create a credit note instead.
|
|
913
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
914
914
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
915
915
|
* @summary Void an invoice
|
|
916
916
|
*/
|
|
@@ -910,7 +910,7 @@ export type renderInvoicePreviewResponse = (renderInvoicePreviewResponseSuccess
|
|
|
910
910
|
export declare const getRenderInvoicePreviewUrl: (params?: RenderInvoicePreviewParams) => string;
|
|
911
911
|
export declare const renderInvoicePreview: (partialInvoicePreviewCompleteInvoicePreview: PartialInvoicePreview | CompleteInvoicePreview, params?: RenderInvoicePreviewParams, options?: RequestInit) => Promise<renderInvoicePreviewResponse>;
|
|
912
912
|
/**
|
|
913
|
-
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. For business corrections, create a credit note instead.
|
|
913
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
914
914
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
915
915
|
* @summary Void an invoice
|
|
916
916
|
*/
|
|
@@ -22183,7 +22183,7 @@ export declare const GetCreditNoteByIdResponse: zod.ZodObject<{
|
|
|
22183
22183
|
/**
|
|
22184
22184
|
* Update an existing credit note.
|
|
22185
22185
|
Creates a version snapshot before applying changes.
|
|
22186
|
-
Cannot update voided or FURS-fiscalized credit notes. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
22186
|
+
Cannot update voided or FURS-fiscalized credit notes. A void reversal credit note (the one created by voiding an invoice) cannot be edited except for `metadata`; any other change returns 422. This check runs after the voided, fiscalized (FURS, FINA, EET, VERI*FACTU) and Italian checks and the Peppol and NAV e-invoicing locks, which return their own errors (for example 409 NAV_DOCUMENT_IMMUTABLE) and can also refuse metadata edits; it runs before the KSeF and Portugal update hooks, so there this 422 is returned first. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
22187
22187
|
If items are provided, they replace all existing items.
|
|
22188
22188
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
22189
22189
|
* @summary Update a credit note
|
|
@@ -22183,7 +22183,7 @@ export declare const GetCreditNoteByIdResponse: zod.ZodObject<{
|
|
|
22183
22183
|
/**
|
|
22184
22184
|
* Update an existing credit note.
|
|
22185
22185
|
Creates a version snapshot before applying changes.
|
|
22186
|
-
Cannot update voided or FURS-fiscalized credit notes. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
22186
|
+
Cannot update voided or FURS-fiscalized credit notes. A void reversal credit note (the one created by voiding an invoice) cannot be edited except for `metadata`; any other change returns 422. This check runs after the voided, fiscalized (FURS, FINA, EET, VERI*FACTU) and Italian checks and the Peppol and NAV e-invoicing locks, which return their own errors (for example 409 NAV_DOCUMENT_IMMUTABLE) and can also refuse metadata edits; it runs before the KSeF and Portugal update hooks, so there this 422 is returned first. Italian invoices and credit notes are immutable once issued, including pending or rejected SdI submissions; use the supported correction flow. Draft item edits use rate-level VAT rounding, and edits or finalization based on a concurrently changed Italian draft fail with 422 until reloaded.
|
|
22187
22187
|
If items are provided, they replace all existing items.
|
|
22188
22188
|
Slovenian Article 76.a: adding linked invoices without `tax_rules` inherits it when all use it; a mismatch with the credited invoice returns 422.
|
|
22189
22189
|
* @summary Update a credit note
|
|
@@ -32140,7 +32140,7 @@ export declare const RenderInvoicePreviewBody: zod.ZodUnion<readonly [zod.ZodObj
|
|
|
32140
32140
|
}, zod.z.core.$strip>>>>;
|
|
32141
32141
|
}, zod.z.core.$strip>]>;
|
|
32142
32142
|
/**
|
|
32143
|
-
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. For business corrections, create a credit note instead.
|
|
32143
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
32144
32144
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
32145
32145
|
* @summary Void an invoice
|
|
32146
32146
|
*/
|
|
@@ -32140,7 +32140,7 @@ export declare const RenderInvoicePreviewBody: zod.ZodUnion<readonly [zod.ZodObj
|
|
|
32140
32140
|
}, zod.z.core.$strip>>>>;
|
|
32141
32141
|
}, zod.z.core.$strip>]>;
|
|
32142
32142
|
/**
|
|
32143
|
-
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. For business corrections, create a credit note instead.
|
|
32143
|
+
* Void an invoice for technical reasons (duplicate, error, etc.). For FURS-fiscalized invoices, automatically submits technical cancellation to FURS and creates a credit note. For TicketBAI, requires a reason and retains a signed annulment for an eligible unpaid ordinary invoice with confirmed delivery. Returns the invoice with ticketbai.cancellation status; repeated calls reuse the cancellation. Uncertain original delivery returns 409; ineligible invoices return 422. The offsetting credit note, its settlement and the void are committed together. If the invoice is edited while the void is in progress, the credit note is rebuilt from the edited invoice; if the invoice keeps changing, the void returns 409 and nothing is voided. If an interrupted earlier void left a credit note without voiding the invoice, the void returns 422 and the invoice needs manual reconciliation. For business corrections, create a credit note instead.
|
|
32144
32144
|
Polish B2B issuance returns 422 KSEF_AUTH_FAILED when KSeF rejects the entity's KSeF token; no number is used.
|
|
32145
32145
|
* @summary Void an invoice
|
|
32146
32146
|
*/
|
package/package.json
CHANGED