diff --git a/src/utils/certidao.utils.ts b/src/utils/certidao.utils.ts new file mode 100644 index 0000000..e4fb79a --- /dev/null +++ b/src/utils/certidao.utils.ts @@ -0,0 +1,11 @@ +import { getUnixTime } from 'date-fns'; + +import { Situacao } from '../enums/situacao.enum'; +import { CertidaoNegativa } from '../interfaces'; + +export function certidaoResult(situacao: Situacao): CertidaoNegativa { + return { + situacao, + dataEmissao: getUnixTime(new Date()), + }; +}