Skip to content

Commit

Permalink
Merge pull request #52 from luizalabs/feature/add-cancel-object-method
Browse files Browse the repository at this point in the history
feat: include cancelarObjeto method from wsdl
  • Loading branch information
joaorafaelsoarest authored Mar 28, 2023
2 parents 85a5291 + 3471019 commit dd0da71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions correios/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,3 +721,7 @@ def calculate_delivery_time(

response = self.freight.CalcPrazo(str(service), str(from_zip), str(to_zip))
return response.cServico[0].PrazoEntrega

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)

0 comments on commit dd0da71

Please sign in to comment.