From 655824857b4d85b9fd887f29f009198083c95523 Mon Sep 17 00:00:00 2001 From: PedroRegisPOAR Date: Thu, 21 Jan 2021 16:34:40 -0300 Subject: [PATCH] Adiciona 'search' na action do buyer (#115) * Adiciona 'search' na action do buyer * fmt :facepalm: --- zoop_wrapper/wrapper/buyer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zoop_wrapper/wrapper/buyer.py b/zoop_wrapper/wrapper/buyer.py index 8a1d3f9a..b1ead5ae 100644 --- a/zoop_wrapper/wrapper/buyer.py +++ b/zoop_wrapper/wrapper/buyer.py @@ -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: