platform-types 1.10.720 → 1.10.721
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/cjs/invoice.js +25 -1
- package/dist/invoice.d.ts +25 -0
- package/dist/invoice.js +24 -0
- package/package.json +1 -1
package/dist/cjs/invoice.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.INVOICE_ISSUANCE_REFUSAL_RECOVERY = exports.INVOICE_ISSUANCE_REFUSAL_CODES = exports.INVOICE_POST_VOUCHER_ERROR_CODES = void 0;
|
|
3
|
+
exports.INVOICE_DOCUMENT_REFUSAL_CODES = exports.INVOICE_ISSUANCE_REFUSAL_RECOVERY = exports.INVOICE_ISSUANCE_REFUSAL_CODES = exports.INVOICE_POST_VOUCHER_ERROR_CODES = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* The codes `POST /invoices` answers AFTER a voucher number was spent — ARCA
|
|
6
6
|
* was asked, or a CAEA number was claimed — as a runtime value the app maps.
|
|
@@ -73,3 +73,27 @@ exports.INVOICE_ISSUANCE_REFUSAL_RECOVERY = {
|
|
|
73
73
|
INVOICE_IDEMPOTENCY_PAYLOAD_MISMATCH: 'resend-issued-body',
|
|
74
74
|
INVOICE_ISSUANCE_OUTCOME_UNCERTAIN: 'reconcile',
|
|
75
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* The codes the operator invoice DOCUMENT routes answer when they refuse to
|
|
78
|
+
* render or print an invoice — `GET /invoices?mode=pdf`, `POST /invoices`
|
|
79
|
+
* `{mode:'print'}` (every form: id-only, `contentType: 'pdf_uri'` and
|
|
80
|
+
* `'pdf_base64'`) and `{mode:'printEscpos'}` — as a runtime value a client maps.
|
|
81
|
+
* `GET /invoices?mode=one` answers `INVOICE_NOT_FOUND` too, for the same absent row,
|
|
82
|
+
* `POST /invoices` `{mode:'email'}` answers both before anything is enqueued, and
|
|
83
|
+
* `POST /mercadolibre/events` `{mode:'reuploadFiscalDocument'}` answers both for
|
|
84
|
+
* the factura it chose.
|
|
85
|
+
*
|
|
86
|
+
* - `INVOICE_NOT_FOUND` · 404 — no invoice row has this id in the caller's
|
|
87
|
+
* store. Answered before any store read, render, print stamp, broadcast,
|
|
88
|
+
* staged PDF, print job or email.
|
|
89
|
+
* - `INVOICE_NOT_AUTHORIZED` · 409 — the row's `fiscalStatus` is `pending_cae`
|
|
90
|
+
* or `rejected`. `invoiceId` and that `fiscalStatus` ride beside `error`. A
|
|
91
|
+
* print refused here wrote nothing to the invoice and dispatched nothing.
|
|
92
|
+
* `pending_cae` is wait-and-retry: the pending-invoice drain authorizes a
|
|
93
|
+
* factura or full credit note with no client action (an FCE or partial
|
|
94
|
+
* credit note waits for support). `rejected` is final — ARCA refused the
|
|
95
|
+
* voucher and nothing retries it. The decision reads `fiscalStatus` only: a row with none (issued
|
|
96
|
+
* before the field existed) is treated as authorized, whether or not it
|
|
97
|
+
* carries a CAE.
|
|
98
|
+
*/
|
|
99
|
+
exports.INVOICE_DOCUMENT_REFUSAL_CODES = ['INVOICE_NOT_FOUND', 'INVOICE_NOT_AUTHORIZED'];
|
package/dist/invoice.d.ts
CHANGED
|
@@ -992,4 +992,29 @@ export declare const INVOICE_ISSUANCE_REFUSAL_RECOVERY: {
|
|
|
992
992
|
readonly INVOICE_IDEMPOTENCY_PAYLOAD_MISMATCH: "resend-issued-body";
|
|
993
993
|
readonly INVOICE_ISSUANCE_OUTCOME_UNCERTAIN: "reconcile";
|
|
994
994
|
};
|
|
995
|
+
/**
|
|
996
|
+
* The codes the operator invoice DOCUMENT routes answer when they refuse to
|
|
997
|
+
* render or print an invoice — `GET /invoices?mode=pdf`, `POST /invoices`
|
|
998
|
+
* `{mode:'print'}` (every form: id-only, `contentType: 'pdf_uri'` and
|
|
999
|
+
* `'pdf_base64'`) and `{mode:'printEscpos'}` — as a runtime value a client maps.
|
|
1000
|
+
* `GET /invoices?mode=one` answers `INVOICE_NOT_FOUND` too, for the same absent row,
|
|
1001
|
+
* `POST /invoices` `{mode:'email'}` answers both before anything is enqueued, and
|
|
1002
|
+
* `POST /mercadolibre/events` `{mode:'reuploadFiscalDocument'}` answers both for
|
|
1003
|
+
* the factura it chose.
|
|
1004
|
+
*
|
|
1005
|
+
* - `INVOICE_NOT_FOUND` · 404 — no invoice row has this id in the caller's
|
|
1006
|
+
* store. Answered before any store read, render, print stamp, broadcast,
|
|
1007
|
+
* staged PDF, print job or email.
|
|
1008
|
+
* - `INVOICE_NOT_AUTHORIZED` · 409 — the row's `fiscalStatus` is `pending_cae`
|
|
1009
|
+
* or `rejected`. `invoiceId` and that `fiscalStatus` ride beside `error`. A
|
|
1010
|
+
* print refused here wrote nothing to the invoice and dispatched nothing.
|
|
1011
|
+
* `pending_cae` is wait-and-retry: the pending-invoice drain authorizes a
|
|
1012
|
+
* factura or full credit note with no client action (an FCE or partial
|
|
1013
|
+
* credit note waits for support). `rejected` is final — ARCA refused the
|
|
1014
|
+
* voucher and nothing retries it. The decision reads `fiscalStatus` only: a row with none (issued
|
|
1015
|
+
* before the field existed) is treated as authorized, whether or not it
|
|
1016
|
+
* carries a CAE.
|
|
1017
|
+
*/
|
|
1018
|
+
export declare const INVOICE_DOCUMENT_REFUSAL_CODES: readonly ["INVOICE_NOT_FOUND", "INVOICE_NOT_AUTHORIZED"];
|
|
1019
|
+
export type InvoiceDocumentRefusalCode = (typeof INVOICE_DOCUMENT_REFUSAL_CODES)[number];
|
|
995
1020
|
export {};
|
package/dist/invoice.js
CHANGED
|
@@ -70,3 +70,27 @@ export const INVOICE_ISSUANCE_REFUSAL_RECOVERY = {
|
|
|
70
70
|
INVOICE_IDEMPOTENCY_PAYLOAD_MISMATCH: 'resend-issued-body',
|
|
71
71
|
INVOICE_ISSUANCE_OUTCOME_UNCERTAIN: 'reconcile',
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* The codes the operator invoice DOCUMENT routes answer when they refuse to
|
|
75
|
+
* render or print an invoice — `GET /invoices?mode=pdf`, `POST /invoices`
|
|
76
|
+
* `{mode:'print'}` (every form: id-only, `contentType: 'pdf_uri'` and
|
|
77
|
+
* `'pdf_base64'`) and `{mode:'printEscpos'}` — as a runtime value a client maps.
|
|
78
|
+
* `GET /invoices?mode=one` answers `INVOICE_NOT_FOUND` too, for the same absent row,
|
|
79
|
+
* `POST /invoices` `{mode:'email'}` answers both before anything is enqueued, and
|
|
80
|
+
* `POST /mercadolibre/events` `{mode:'reuploadFiscalDocument'}` answers both for
|
|
81
|
+
* the factura it chose.
|
|
82
|
+
*
|
|
83
|
+
* - `INVOICE_NOT_FOUND` · 404 — no invoice row has this id in the caller's
|
|
84
|
+
* store. Answered before any store read, render, print stamp, broadcast,
|
|
85
|
+
* staged PDF, print job or email.
|
|
86
|
+
* - `INVOICE_NOT_AUTHORIZED` · 409 — the row's `fiscalStatus` is `pending_cae`
|
|
87
|
+
* or `rejected`. `invoiceId` and that `fiscalStatus` ride beside `error`. A
|
|
88
|
+
* print refused here wrote nothing to the invoice and dispatched nothing.
|
|
89
|
+
* `pending_cae` is wait-and-retry: the pending-invoice drain authorizes a
|
|
90
|
+
* factura or full credit note with no client action (an FCE or partial
|
|
91
|
+
* credit note waits for support). `rejected` is final — ARCA refused the
|
|
92
|
+
* voucher and nothing retries it. The decision reads `fiscalStatus` only: a row with none (issued
|
|
93
|
+
* before the field existed) is treated as authorized, whether or not it
|
|
94
|
+
* carries a CAE.
|
|
95
|
+
*/
|
|
96
|
+
export const INVOICE_DOCUMENT_REFUSAL_CODES = ['INVOICE_NOT_FOUND', 'INVOICE_NOT_AUTHORIZED'];
|