Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Adiciona 'search' na action do buyer (#115)
Browse files Browse the repository at this point in the history
* Adiciona 'search' na action do buyer

* fmt 🤦
  • Loading branch information
PedroRegisPOAR authored Jan 21, 2021
1 parent 0168732 commit 6558248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zoop_wrapper/wrapper/buyer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def search_buyer(self, identifier: str) -> ZoopResponse:
Returns:
:class:`.ZoopResponse`
"""
url = self._construct_url(action="buyers", search=f"taxpayer_id={identifier}")
url = self._construct_url(
action="buyers/search", search=f"taxpayer_id={identifier}"
)
return self._get(url)

def update_buyer(self, identifier: str, data: Union[dict, Buyer]) -> ZoopResponse:
Expand Down

0 comments on commit 6558248

Please sign in to comment.