public async Task <ActionResult <string> > GetPreviewUrlByUUIDAsync(Guid instanceId, Guid uuid) { IFiscalPreview fiscalPreview = FiscalPreviewFactory.CreateInstance(FiscalStampingVersion.CFDI33_Nom12); var resultPreview = await fiscalPreview.GetPreviewUrlByUUIDAsync(instanceId, uuid); return(new JsonResult(resultPreview)); }
public async Task <PreviewTransformResult> TransformAsync(PreviewTransformParams previewTransformParams) { IFiscalPreview fiscalPreview = FiscalPreviewFactory.CreateInstance(previewTransformParams.FiscalStampingVersion); return(await fiscalPreview.TransformAsync(previewTransformParams)); }