Skip to content

[TRNF-6565] Add delete method to AccountNumbers v2#117

Merged
SimonOyaneder merged 2 commits intomasterfrom
trnf-6565-add-account-numbers-delete-and-fields
Apr 1, 2026
Merged

[TRNF-6565] Add delete method to AccountNumbers v2#117
SimonOyaneder merged 2 commits intomasterfrom
trnf-6565-add-account-numbers-delete-and-fields

Conversation

@SimonOyaneder
Copy link
Copy Markdown
Contributor

Description

Agrega método delete al manager AccountNumbersManager v2, habilitando DELETE /v2/account_numbers/{id}.

Requirements

None.

Additional changes

None.

@SimonOyaneder SimonOyaneder self-assigned this Mar 31, 2026
@SimonOyaneder SimonOyaneder marked this pull request as ready for review March 31, 2026 15:10
Copy link
Copy Markdown

@FelipeCampbell FelipeCampbell left a comment

Choose a reason for hiding this comment

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

dejé unos comms

Comment thread tests/test_integration.py Outdated

def test_v2_account_number_delete(self):
"""Test deleting an account number using v2 API."""
account_number_id = "test_account_number_id"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

idem

Comment thread tests/test_integration.py

result = self.fintoc.v2.account_numbers.delete(account_number_id)

assert result == account_number_id
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

wait. el delete devuelve el id?
tb veo que los otros tests assertean el método y la url a la que se pega. taría bueno añadirlo en esta pr y la otra que aprobé

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

les estuve dando una vuelta y por na naturaleza de como funciona el metodo delete en sdk no se testea el tema de la url y metodo en todo el repo. Encontré una forma de hacerlo pero rompe la concistencia con todos los tests de delete entonces nose si me convence

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lo dejaría cm está en los otros.
y no es raro que te esté retornando el acc num id si el result en teoría es el objeto completo según lo que hicistre tu?
o tb son cositas del sdk

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

cositas del sdk, para los metodos delete asume que no hay un response y retorna el mismo id que se le pasa al momento de llamar al metodo

@FelipeCampbell FelipeCampbell self-requested a review March 31, 2026 16:12
Copy link
Copy Markdown

@FelipeCampbell FelipeCampbell left a comment

Choose a reason for hiding this comment

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

lgtm

@SimonOyaneder SimonOyaneder merged commit f74b617 into master Apr 1, 2026
5 checks passed
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.

2 participants