@pimia/sdk 0.16.0 → 0.17.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/api.d.ts +32 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -7652,6 +7652,7 @@ export interface components {
|
|
|
7652
7652
|
triage_resolved_by: number | null;
|
|
7653
7653
|
triage_resolved_at: string | null;
|
|
7654
7654
|
triage_rejection_reason: string | null;
|
|
7655
|
+
/** Format: date-time */
|
|
7655
7656
|
exported_at: string | null;
|
|
7656
7657
|
rectified_invoice_id: number | null;
|
|
7657
7658
|
customer_sequence_number: number | null;
|
|
@@ -7671,6 +7672,7 @@ export interface components {
|
|
|
7671
7672
|
/** Format: date-time */
|
|
7672
7673
|
viewed_at: string | null;
|
|
7673
7674
|
contract_id: number | null;
|
|
7675
|
+
export_batch_id: number | null;
|
|
7674
7676
|
};
|
|
7675
7677
|
/** InvoiceItem */
|
|
7676
7678
|
InvoiceItem: {
|
|
@@ -9633,6 +9635,36 @@ export interface components {
|
|
|
9633
9635
|
description?: string | null;
|
|
9634
9636
|
compound_tax?: string | null;
|
|
9635
9637
|
collective_tax?: string | null;
|
|
9638
|
+
/**
|
|
9639
|
+
* @description Familia AEAT del impuesto. Decide en qué modelo entra: `IVA` en el
|
|
9640
|
+
* 303, `IRPF` (las retenciones) en el 111 o el 115. Un porcentaje
|
|
9641
|
+
* negativo NO basta para que un tipo cuente como retención: lo
|
|
9642
|
+
* decide esta clave. Si se omite, la columna vale `IVA`.
|
|
9643
|
+
* @enum {string}
|
|
9644
|
+
*/
|
|
9645
|
+
tax_category?: "IVA" | "IRPF" | "IGIC" | "IPSI" | "RE" | "REAGYP" | "SS" | "OTHER";
|
|
9646
|
+
/**
|
|
9647
|
+
* @description Dónde se puede aplicar el tipo: `sale` en lo que se emite
|
|
9648
|
+
* (facturas, presupuestos), `purchase` en lo que se recibe
|
|
9649
|
+
* (facturas de proveedor, gastos), `investment` en bienes de
|
|
9650
|
+
* inversión, `both` en cualquiera de los dos primeros. Si se omite,
|
|
9651
|
+
* la columna vale `both`.
|
|
9652
|
+
* @enum {string}
|
|
9653
|
+
*/
|
|
9654
|
+
tax_scope?: "sale" | "purchase" | "both" | "investment";
|
|
9655
|
+
/**
|
|
9656
|
+
* @description Marca este tipo como el preseleccionado de su familia y su ámbito.
|
|
9657
|
+
* Solo puede haberlo uno por (categoría, ámbito): al marcar este, el
|
|
9658
|
+
* anterior de esa pareja se desmarca. Es el que gana cuando un
|
|
9659
|
+
* documento declara un tramo por el porcentaje y varios tipos
|
|
9660
|
+
* encajan.
|
|
9661
|
+
*/
|
|
9662
|
+
is_default?: boolean;
|
|
9663
|
+
/**
|
|
9664
|
+
* @description Modelo de la AEAT en el que declara este impuesto: `303` el IVA,
|
|
9665
|
+
* `111` o `115` las retenciones.
|
|
9666
|
+
*/
|
|
9667
|
+
aeat_model?: string | null;
|
|
9636
9668
|
};
|
|
9637
9669
|
/** TaxTypeResource */
|
|
9638
9670
|
TaxTypeResource: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pimia/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Cliente TypeScript de la API de Pimia para apps de partner: OAuth con PKCE, rotación de refresh persistida, reintentos de rate limit y tipos generados del OpenAPI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Pimia (https://pimia.es)",
|