pypix-api 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pypix_api-0.3.0 → pypix_api-0.3.2}/PKG-INFO +1 -1
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/webhook_cobr_methods.py +5 -2
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/webhook_methods.py +3 -3
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/webhook_rec_methods.py +5 -2
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api.egg-info/PKG-INFO +1 -1
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pyproject.toml +1 -1
- {pypix_api-0.3.0 → pypix_api-0.3.2}/LICENSE +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/README.md +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/__init__.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/auth/mtls.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/auth/oauth2.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/base.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/bb.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/exceptions.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/__init__.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/cob_methods.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/cobr_methods.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/cobv_methods.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/rec_methods.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/methods/solic_rec_methods.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/banks/sicoob.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api/models/pix.py +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api.egg-info/SOURCES.txt +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api.egg-info/dependency_links.txt +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api.egg-info/requires.txt +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/pypix_api.egg-info/top_level.txt +0 -0
- {pypix_api-0.3.0 → pypix_api-0.3.2}/setup.cfg +0 -0
|
@@ -75,12 +75,15 @@ class WebHookCobrMethods: # pylint: disable=E1101
|
|
|
75
75
|
self._handle_error_response(resp)
|
|
76
76
|
return resp.json()
|
|
77
77
|
|
|
78
|
-
def excluir_webhook_cobr(self) ->
|
|
78
|
+
def excluir_webhook_cobr(self) -> bool:
|
|
79
79
|
"""
|
|
80
80
|
Cancelar o Webhook de Cobrança Recorrente.
|
|
81
81
|
|
|
82
82
|
Endpoint para cancelamento do webhook. Não é a única forma pela qual um webhook pode ser removido.
|
|
83
83
|
|
|
84
|
+
Returns:
|
|
85
|
+
bool: True se o webhook foi excluído com sucesso (status 204), False caso contrário
|
|
86
|
+
|
|
84
87
|
Raises:
|
|
85
88
|
HTTPError: Para erros 403, 404, 503
|
|
86
89
|
"""
|
|
@@ -88,4 +91,4 @@ class WebHookCobrMethods: # pylint: disable=E1101
|
|
|
88
91
|
url = f'{self.get_base_url()}/webhookcobr'
|
|
89
92
|
resp = self.session.delete(url, headers=headers)
|
|
90
93
|
self._handle_error_response(resp)
|
|
91
|
-
return
|
|
94
|
+
return resp.status_code == 204
|
|
@@ -93,7 +93,7 @@ class WebHookMethods: # pylint: disable=E1101
|
|
|
93
93
|
self._handle_error_response(resp)
|
|
94
94
|
return resp.json()
|
|
95
95
|
|
|
96
|
-
def excluir_webhook(self, chave: str) ->
|
|
96
|
+
def excluir_webhook(self, chave: str) -> bool:
|
|
97
97
|
"""
|
|
98
98
|
Cancelar o Webhook Pix.
|
|
99
99
|
|
|
@@ -105,7 +105,7 @@ class WebHookMethods: # pylint: disable=E1101
|
|
|
105
105
|
chave: Chave Pix para cancelamento do webhook
|
|
106
106
|
|
|
107
107
|
Returns:
|
|
108
|
-
|
|
108
|
+
bool: True se o webhook foi excluído com sucesso (status 204), False caso contrário
|
|
109
109
|
|
|
110
110
|
Raises:
|
|
111
111
|
HTTPError: Para erros 403, 404, 503
|
|
@@ -114,7 +114,7 @@ class WebHookMethods: # pylint: disable=E1101
|
|
|
114
114
|
url = f'{self.get_base_url()}/webhook/{chave}'
|
|
115
115
|
resp = self.session.delete(url, headers=headers)
|
|
116
116
|
self._handle_error_response(resp)
|
|
117
|
-
return resp.
|
|
117
|
+
return resp.status_code == 204
|
|
118
118
|
|
|
119
119
|
def consultar_webhook(self, chave: str) -> dict[str, Any]:
|
|
120
120
|
"""
|
|
@@ -75,12 +75,15 @@ class WebHookRecMethods: # pylint: disable=E1101
|
|
|
75
75
|
self._handle_error_response(resp)
|
|
76
76
|
return resp.json()
|
|
77
77
|
|
|
78
|
-
def excluir_webhook_rec(self) ->
|
|
78
|
+
def excluir_webhook_rec(self) -> bool:
|
|
79
79
|
"""
|
|
80
80
|
Cancelar o Webhook de Recorrência.
|
|
81
81
|
|
|
82
82
|
Endpoint para cancelamento do webhook. Não é a única forma pela qual um webhook pode ser removido.
|
|
83
83
|
|
|
84
|
+
Returns:
|
|
85
|
+
bool: True se o webhook foi excluído com sucesso (status 204), False caso contrário
|
|
86
|
+
|
|
84
87
|
Raises:
|
|
85
88
|
HTTPError: Para erros 403, 404, 503
|
|
86
89
|
"""
|
|
@@ -88,4 +91,4 @@ class WebHookRecMethods: # pylint: disable=E1101
|
|
|
88
91
|
url = f'{self.get_base_url()}/webhookrec'
|
|
89
92
|
resp = self.session.delete(url, headers=headers)
|
|
90
93
|
self._handle_error_response(resp)
|
|
91
|
-
return
|
|
94
|
+
return resp.status_code == 204
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|