From 4539ca2b7615d188ee70d45848bbb2e5950bd41f Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 12 Dec 2023 10:39:20 -0700 Subject: [PATCH] fix: report variable name --- easypost/services/report_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easypost/services/report_service.py b/easypost/services/report_service.py index a8877d4..4b2b8c4 100644 --- a/easypost/services/report_service.py +++ b/easypost/services/report_service.py @@ -25,12 +25,12 @@ def __init__(self, client): def create(self, **params) -> Report: """Create a Report.""" - refund_type = params.pop("type") + report_type = params.pop("type") - if refund_type is None: + if report_type is None: raise MissingParameterError(MISSING_PARAMETER_ERROR.format("type")) - url = f"{self._class_url(self._model_class)}/{refund_type}" + url = f"{self._class_url(self._model_class)}/{report_type}" response = Requestor(self._client).request(method=RequestMethod.POST, url=url, params=params)