From 5016916515cd842ea81c133beef2d6e789bf1bb6 Mon Sep 17 00:00:00 2001 From: Reza Tabrizi <63474681+rezabrizi@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:33:37 -0500 Subject: [PATCH 1/2] hmac_secret to Create Webhook type --- README.md | 1 + method/resources/Webhook.py | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 6989686..08c9524 100644 --- a/README.md +++ b/README.md @@ -933,6 +933,7 @@ webhook = method.webhooks.create({ "type": "payment.update", "url": "https://api.example.app/webhook", "auth_token": "md7UqcTSmvXCBzPORDwOkE", + "hmac_secret": "bd7UscLSmvEXazTOQDwOKW", }); ``` diff --git a/method/resources/Webhook.py b/method/resources/Webhook.py index 3a90011..6c3edcc 100644 --- a/method/resources/Webhook.py +++ b/method/resources/Webhook.py @@ -84,6 +84,7 @@ class WebhookCreateOpts(TypedDict): type: WebhookTypesLiterals url: str auth_token: Optional[str] + hmac_secret: Optional[str] metadata: Optional[Dict[str, Any]] expand_event: Optional[bool] From 95c665c215e5aaf3363586b4a12f87b9315b459b Mon Sep 17 00:00:00 2001 From: Reza Tabrizi <63474681+rezabrizi@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:42:24 -0500 Subject: [PATCH 2/2] bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cf2b473..0f9a6c5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='method-python', - version='1.2.4', + version='1.2.5', description='Python library for the Method API', long_description='Python library for the Method API', long_description_content_type='text/x-rst',