From 6892ba7f0be17349b3d6f33c762033c4d425591f Mon Sep 17 00:00:00 2001 From: "raul@facturapi.io" Date: Wed, 12 Aug 2026 10:33:24 -0600 Subject: [PATCH] chore(leyendasFiscales): add leyendas fiscales complement to documentation --- website/openapi_v2.en.yaml | 46 ++++++++++++++++++++++++++++++++++++++ website/openapi_v2.yaml | 46 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/website/openapi_v2.en.yaml b/website/openapi_v2.en.yaml index b9497d0f8..6dc893225 100644 --- a/website/openapi_v2.en.yaml +++ b/website/openapi_v2.en.yaml @@ -13133,6 +13133,20 @@ components: properties: data: $ref: "#/components/schemas/ComercioExteriorDataInput" + LeyendasFiscalesProperties: + allOf: + - $ref: "#/components/schemas/CartaPorteOrCustomComplementProperties" + - type: object + properties: + data: + $ref: "#/components/schemas/LeyendasFiscalesData" + LeyendasFiscalesInput: + allOf: + - $ref: "#/components/schemas/CartaPorteOrCustomComplementInput" + - type: object + properties: + data: + $ref: "#/components/schemas/LeyendasFiscalesData" CartaPorteOrCustomComplementProperties: title: Complement type: object @@ -13141,6 +13155,7 @@ components: mapping: carta_porte: "#/components/schemas/CartaPorteProperties" comercio_exterior: "#/components/schemas/ComercioExteriorProperties" + leyendas_fiscales: "#/components/schemas/LeyendasFiscalesProperties" custom: "#/components/schemas/CustomComplementProperties" properties: type: @@ -13148,6 +13163,7 @@ components: enum: - carta_porte - comercio_exterior + - leyendas_fiscales - custom description: Type of complement CartaPorteOrCustomComplementInput: @@ -13159,6 +13175,7 @@ components: custom: "#/components/schemas/CustomComplementInput" carta_porte: "#/components/schemas/CartaPorteInput" comercio_exterior: "#/components/schemas/ComercioExteriorInput" + leyendas_fiscales: "#/components/schemas/LeyendasFiscalesInput" required: - type - data @@ -13168,8 +13185,37 @@ components: enum: - carta_porte - comercio_exterior + - leyendas_fiscales - custom description: Type of complement + LeyendasFiscalesData: + type: object + title: LeyendasFiscales + description: Fiscal Legends complement version 1.0. + required: + - leyendas + properties: + leyendas: + type: array + minItems: 1 + description: Fiscal legends to include in the document. + items: + type: object + required: + - texto_leyenda + properties: + disposicion_fiscal: + type: string + minLength: 1 + description: Tax provision applicable to the legend. + norma: + type: string + minLength: 1 + description: Regulation governing the legend. + texto_leyenda: + type: string + minLength: 1 + description: Text of the fiscal legend. CartaPorteDataProperties: type: object title: CartaPorte diff --git a/website/openapi_v2.yaml b/website/openapi_v2.yaml index 069874ca2..aa8d78657 100644 --- a/website/openapi_v2.yaml +++ b/website/openapi_v2.yaml @@ -13338,6 +13338,20 @@ components: properties: data: $ref: "#/components/schemas/ComercioExteriorDataInput" + LeyendasFiscalesProperties: + allOf: + - $ref: "#/components/schemas/CartaPorteOrCustomComplementProperties" + - type: object + properties: + data: + $ref: "#/components/schemas/LeyendasFiscalesData" + LeyendasFiscalesInput: + allOf: + - $ref: "#/components/schemas/CartaPorteOrCustomComplementInput" + - type: object + properties: + data: + $ref: "#/components/schemas/LeyendasFiscalesData" CartaPorteOrCustomComplementProperties: title: Complement type: object @@ -13346,6 +13360,7 @@ components: mapping: carta_porte: "#/components/schemas/CartaPorteProperties" comercio_exterior: "#/components/schemas/ComercioExteriorProperties" + leyendas_fiscales: "#/components/schemas/LeyendasFiscalesProperties" custom: "#/components/schemas/CustomComplementProperties" properties: type: @@ -13353,6 +13368,7 @@ components: enum: - carta_porte - comercio_exterior + - leyendas_fiscales - custom description: Tipo de complemento. CartaPorteOrCustomComplementInput: @@ -13364,6 +13380,7 @@ components: custom: "#/components/schemas/CustomComplementInput" carta_porte: "#/components/schemas/CartaPorteInput" comercio_exterior: "#/components/schemas/ComercioExteriorInput" + leyendas_fiscales: "#/components/schemas/LeyendasFiscalesInput" required: - type - data @@ -13373,8 +13390,37 @@ components: enum: - carta_porte - comercio_exterior + - leyendas_fiscales - custom description: Tipo de complemento. + LeyendasFiscalesData: + type: object + title: LeyendasFiscales + description: Complemento de Leyendas Fiscales versión 1.0. + required: + - leyendas + properties: + leyendas: + type: array + minItems: 1 + description: Leyendas fiscales a incluir en el comprobante. + items: + type: object + required: + - texto_leyenda + properties: + disposicion_fiscal: + type: string + minLength: 1 + description: Disposición fiscal aplicable a la leyenda. + norma: + type: string + minLength: 1 + description: Norma que regula la leyenda. + texto_leyenda: + type: string + minLength: 1 + description: Texto de la leyenda fiscal. CartaPorteDataProperties: type: object title: CartaPorte