Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feat ] Cobranca assinatura premium #243

Closed
wants to merge 4 commits into from

Conversation

DanSmaR
Copy link
Member

@DanSmaR DanSmaR commented Feb 15, 2024

Essa PR abrange e resolve #238

Eu como usuário, recebo mensalmente cobrança da assinatura premium assim que a ativo, a fim de ser lembrado do pagamento.

  • Usuário, ao ativar sua conta premium, cria no banco de dados uma instância da cobrança.
  • São enviado emails de cobrança no dia do mês seguinte à ativação da conta premium.
  • Se a assinatura é ativada antes do dia 29, a cobrança é enviada no mesmo dia do próximo mês. Caso contrário, ela é criada no primeiro dia útil do outro mês.

Copy link
Contributor

@GyodaiDDA GyodaiDDA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tá premium essa.

Copy link
Contributor

@anaresgalla anaresgalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parabéns, pessoal

Copy link
Contributor

@eliseuramos93 eliseuramos93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conversando com o PH, vimos que essa não é a branch correta para mergear. Vou colocar um Request Changes pra bloquear o merge até isso ser resolvido :)

def set_billing_date
return self.billing_date = subscription.start_date if subscription.start_date.day < 29

self.billing_date = subscription.start_date.next_month.beginning_of_month
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Galera, essa linha ficou sem cobertura de testes. Ela é realmente necessária pro código?

@DanSmaR
Copy link
Member Author

DanSmaR commented Feb 16, 2024

Desativei esse PR, pois subi a branch incorreta

@DanSmaR DanSmaR closed this Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants