Skip to content

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

Merged
SimonOyaneder merged 2 commits into
masterfrom
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 into
masterfrom
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

@FelipeCampbell FelipeCampbell left a comment

Copy link
Copy Markdown

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

@FelipeCampbell FelipeCampbell left a comment

Copy link
Copy Markdown

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