Descripción: Se ha realizado una refactorización mayor del sistema de notificaciones y generación de comprobantes para eliminar dependencias legacy (Imagick/FTP) y modernizar la arquitectura. 🚀 Nuevas Características (Features) Microservicio PDF (pdf-cropper): Nuevo servicio en Python (FastAPI + Poppler) desplegado en Docker (Puerto 8050) para la conversión de PDF a Imagen. Reemplaza la librería Imagick de PHP, aislando el procesamiento pesado fuera del plugin. Modo Full: Garantiza la conversión del PDF completo respetando su relación de aspecto original (sin recortes ni "square crop"). Overlay de Texto: Capacidad nativa en el backend para sobreescribir texto dinámicamente (ej. cambiar "Tarjeta de crédito Stripe" por "OXXO Pay") basado en parámetros. Integración S3 / MinIO: Implementación de MinioStorageService . Los comprobantes (JPG) y Vouchers OXXO se suben automáticamente a MinIO en lugar de usar FTP. Generación de URLs públicas seguras. 🧹 Mantenimiento y Limpieza (Chores/Refactor) Limpieza Automática (Cleanup): Se implementó lógica para eliminar archivos temporales locales (PDFs descargados, JPGs generados) inmediatamente después de una subida exitosa a MinIO. Aplica tanto para comprobantes de pago como para Vouchers OXXO. Refactor ClientCallBellAPI : Eliminación de código muerto relacionado con FTP de WordPress. Implementación de cliente HTTP Guzzle para comunicación con pdf-cropper. Cache Busting: Se añade Timestamp al nombre de archivo (_time()) para evitar caché agresivo en WhatsApp/Navegadores. Detección de Método: Lógica preliminar para detectar "OXXO" o "Transferencia" en notas de pago y aplicar Overlay. Docker Infraestructura: Actualización de docker-compose.yml para incluir pdf-cropper. Instalación de fuentes (fonts-dejavu-core) para renderizado correcto de texto. 🐛 Correcciones (Bug Fixes) Fix Recorte de Imagen: Se eliminó la restricción de relación de aspecto 1:1 (cuadrado) que cortaba headers y footers en documentos rectangulares. Standardización de Notas: Actualización de AbstractStripeOperationsFacade para incluir explícitamente "OXXO" o "Transferencia" en las notas de pago de UCRM (preparación para lógica de plantillas).
52 lines
3.0 KiB
PHP
52 lines
3.0 KiB
PHP
<?php
|
|
namespace Aws\ARCRegionSwitch;
|
|
|
|
use Aws\AwsClient;
|
|
|
|
/**
|
|
* This client is used to interact with the **ARC - Region switch** service.
|
|
* @method \Aws\Result approvePlanExecutionStep(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise approvePlanExecutionStepAsync(array $args = [])
|
|
* @method \Aws\Result cancelPlanExecution(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise cancelPlanExecutionAsync(array $args = [])
|
|
* @method \Aws\Result createPlan(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise createPlanAsync(array $args = [])
|
|
* @method \Aws\Result deletePlan(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise deletePlanAsync(array $args = [])
|
|
* @method \Aws\Result getPlan(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise getPlanAsync(array $args = [])
|
|
* @method \Aws\Result getPlanEvaluationStatus(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise getPlanEvaluationStatusAsync(array $args = [])
|
|
* @method \Aws\Result getPlanExecution(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise getPlanExecutionAsync(array $args = [])
|
|
* @method \Aws\Result getPlanInRegion(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise getPlanInRegionAsync(array $args = [])
|
|
* @method \Aws\Result listPlanExecutionEvents(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise listPlanExecutionEventsAsync(array $args = [])
|
|
* @method \Aws\Result listPlanExecutions(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise listPlanExecutionsAsync(array $args = [])
|
|
* @method \Aws\Result listPlans(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise listPlansAsync(array $args = [])
|
|
* @method \Aws\Result listPlansInRegion(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise listPlansInRegionAsync(array $args = [])
|
|
* @method \Aws\Result listRoute53HealthChecks(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise listRoute53HealthChecksAsync(array $args = [])
|
|
* @method \Aws\Result listRoute53HealthChecksInRegion(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise listRoute53HealthChecksInRegionAsync(array $args = [])
|
|
* @method \Aws\Result listTagsForResource(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
|
* @method \Aws\Result startPlanExecution(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise startPlanExecutionAsync(array $args = [])
|
|
* @method \Aws\Result tagResource(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
|
|
* @method \Aws\Result untagResource(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
|
|
* @method \Aws\Result updatePlan(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise updatePlanAsync(array $args = [])
|
|
* @method \Aws\Result updatePlanExecution(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise updatePlanExecutionAsync(array $args = [])
|
|
* @method \Aws\Result updatePlanExecutionStep(array $args = [])
|
|
* @method \GuzzleHttp\Promise\Promise updatePlanExecutionStepAsync(array $args = [])
|
|
*/
|
|
class ARCRegionSwitchClient extends AwsClient {}
|