@spaceinvoices/js-sdk 14.4.0 → 14.5.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.
|
@@ -885,7 +885,7 @@ export declare const updateExpense: (id: string, updateExpenseBody: UpdateExpens
|
|
|
885
885
|
/**
|
|
886
886
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
887
887
|
|
|
888
|
-
An expense with
|
|
888
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
889
889
|
|
|
890
890
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
891
891
|
* @summary Delete expense
|
|
@@ -885,7 +885,7 @@ export declare const updateExpense: (id: string, updateExpenseBody: UpdateExpens
|
|
|
885
885
|
/**
|
|
886
886
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
887
887
|
|
|
888
|
-
An expense with
|
|
888
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
889
889
|
|
|
890
890
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
891
891
|
* @summary Delete expense
|
|
@@ -2790,7 +2790,7 @@ export declare const UpdateExpenseResponse: zod.ZodObject<{
|
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
2792
2792
|
|
|
2793
|
-
An expense with
|
|
2793
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
2794
2794
|
|
|
2795
2795
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
2796
2796
|
* @summary Delete expense
|
|
@@ -2790,7 +2790,7 @@ export declare const UpdateExpenseResponse: zod.ZodObject<{
|
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
2792
2792
|
|
|
2793
|
-
An expense with
|
|
2793
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
2794
2794
|
|
|
2795
2795
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
2796
2796
|
* @summary Delete expense
|
package/package.json
CHANGED