Skip to content

feat: email end trial - #1049

Merged
AldemirLucas merged 2 commits into
stagingfrom
feat/email_end_trial
Aug 17, 2026
Merged

feat: email end trial#1049
AldemirLucas merged 2 commits into
stagingfrom
feat/email_end_trial

Conversation

@AldemirLucas

@AldemirLucas AldemirLucas commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Esta branch adiciona o e-mail de fim de trial do chatbot e padroniza o visual dos templates transacionais da BD.

E-mail de fim de trial do chatbot

  • Novo template end_trial_chatbot.html, enviado automaticamente via webhook do Stripe quando a assinatura do chatbot sai de trialing e o acesso é revogado.
  • Envio best-effort: falha no e-mail não impede a revogação do entitlement.

Atualização visual dos e-mails

  • Templates de ativação de conta, criação BD Pro, reset de senha e notificação de atualização de tabela alinhados ao novo padrão (fonte Roboto, logo atualizado, botões verdes, tipografia e espaçamentos revisados).
    Correção no cancelamento de assinatura

  • StripeSubscriptionDeleteMutation passa a usar cancel_at_period_end=True via API do Stripe em vez do helper do djstripe, evitando cancelamento imediato durante o período de trial.

Test plan

  • Simular webhook customer.subscription.updated com transição trialing → inativo para assinatura do chatbot e validar envio do e-mail.
  • Cancelar assinatura em trial via GraphQL e confirmar que o acesso permanece até o fim do período.

@AldemirLucas
AldemirLucas requested a review from Winzen August 10, 2026 15:48
@AldemirLucas AldemirLucas self-assigned this Aug 10, 2026
@mergify

mergify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@Winzen
Winzen changed the base branch from staging to main August 14, 2026 04:12
@Winzen
Winzen changed the base branch from main to staging August 14, 2026 04:12
@Winzen Winzen changed the title Feat/email end trial feat: email end trial Aug 14, 2026
@AldemirLucas
AldemirLucas merged commit 9d5bb9a into staging Aug 17, 2026
5 checks passed
@Winzen Winzen added the staging Indica que o Pull Request está com a branch de destino (base) apontando para staging label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staging Indica que o Pull Request está com a branch de destino (base) apontando para staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants