-
Notifications
You must be signed in to change notification settings - Fork 1
Integration Test - Preference #27
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
base: master-v2
Are you sure you want to change the base?
Conversation
e2e/payments/cancel.spec.ts
Outdated
| const payment = await create(paymentBody); | ||
| expect(payment).toHaveProperty('id'); | ||
|
|
||
| const cancelation = await cancel({ id: String(payment.id), config : client }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seria interessante modificarmos o tipo do parâmetro da função cancel para receber um id numérico?
Falo isso por 2 pontos:
- Consistência entre tipos das entidades e das funções
- Tirar a responsabilidade do integrador de ficar fazendo essas conversões
Isso pelo menos na camada externa, e fazemos as conversões necessárias internamente
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feito na branch de Payments ✅
Co-authored-by: Lucas Mantovani <[email protected]>
refactor gitflow
…import-mpconfig added names export for mercadopago module
…ue-typo typo worflows to workflows
rename module MercadoPago to MercadoPagoConfig
📝 Description
✅ Checklist:
🧰 How to reproduce
📸 Screenshots
📄 References