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

fix: Add customerId in user table #9

Merged
merged 21 commits into from
Jan 25, 2024
Merged

Conversation

EliasFernandes03
Copy link
Contributor

@EliasFernandes03 EliasFernandes03 commented Jan 12, 2024

  • Creating a new field customerId to save the stripe customer's Id
  • Implementing new service for update CustomerId

Copy link
Contributor

Choose a reason for hiding this comment

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

não faltou atualizar validationDbUsers.ts ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

O validationDbUsers.ts é uma validação com os campos required, o bruno e eu estamos pensando na possibilidade de que o cadastro da stripe possa não acontecer, nesse caso o nosso cadastro não seria impactado. Quando o usuario se cadastrar na stripe de fato , ele atualiza a tabela do users com o campo customerId.

@@ -15,6 +15,7 @@ export interface IUsers {
complement: string
quota: UserQuota
validatedMail: boolean
customerId: string
Copy link
Contributor

Choose a reason for hiding this comment

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

esse campo tá ambíguo.. oq é customerID?

se for um campo referente a pagamento, usar algo como paymentServiceCustomerId

Choose a reason for hiding this comment

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

Concordo com o Marcus. É bom deixar claro que é um id referente ao serviço de um terceiro

@EliasFernandes03 EliasFernandes03 merged commit 4da689a into master Jan 25, 2024
1 check passed
@Marcus-D-Forte Marcus-D-Forte deleted the feat/StripeIntegration branch January 25, 2024 21:29
sedoski-duna pushed a commit that referenced this pull request May 29, 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.

3 participants