diff --git a/correios/client.py b/correios/client.py index e18169c..7526f4a 100644 --- a/correios/client.py +++ b/correios/client.py @@ -725,3 +725,13 @@ def calculate_delivery_time( def cancel_object(self, posting_card_number: Union[int, str], tracking_code: str): posting_card_number = str(posting_card_number) self._auth_call("cancelarObjeto", posting_card_number, tracking_code) + + def block_object(self, posting_card_number: Union[int, str], tracking_code: str): + posting_card_number = str(posting_card_number) + self._auth_call( + "bloquearObjeto", + numeroEtiqueta=tracking_code, + idPlp=posting_card_number, + tipoBloqueio="FRAUDE_BLOQUEIO", + acao="DEVOLVIDO_AO_REMETENTE" + )