From 5c090898223e1c2b6fc44b810f5af326c0510e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Sun, 1 Nov 2026 11:18:38 +0100 Subject: [PATCH] Drop the unused per-subscription webhook fields Apps receive events through their webhook endpoints now. Co-Authored-By: Claude Opus 5.5 --- src/Id/Resources/AppSubscriptions.php | 2 -- src/Id/Resources/Subscription.php | 8 +------- src/Id/Resources/Subscriptions.php | 6 +----- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/Id/Resources/AppSubscriptions.php b/src/Id/Resources/AppSubscriptions.php index 472a911..e8e64f0 100644 --- a/src/Id/Resources/AppSubscriptions.php +++ b/src/Id/Resources/AppSubscriptions.php @@ -47,8 +47,6 @@ class AppSubscriptions * vat_rate?: float, * payload?: null|array, * ends_at?: null|string, - * webhook_url?: null|string, - * webhook_secret?: null|string, * idempotency_key?: null|string * } $attributes With an idempotency_key (max. 191 characters), a retried call returns the * subscription created by the first one instead of a duplicate. diff --git a/src/Id/Resources/Subscription.php b/src/Id/Resources/Subscription.php index 5e47469..58589fd 100644 --- a/src/Id/Resources/Subscription.php +++ b/src/Id/Resources/Subscription.php @@ -16,8 +16,6 @@ use Throwable; * @property float $vat_rate * @property array $payload * @property string $ends_at - * @property string $webhook_url - * @property string $webhook_secret * @property null|string $confirmation_url where the user confirms it (third-party apps) */ class Subscription extends BaseResource @@ -36,9 +34,7 @@ class Subscription extends BaseResource * price: float, * vat_rate: float, * payload: null|array, - * ends_at: null|string, - * webhook_url: null|string, - * webhook_secret: null|string + * ends_at: null|string * } $attributes The subscription data: * - group: The group (optional) * - name: The name (required when set) @@ -48,8 +44,6 @@ class Subscription extends BaseResource * - vat_rate: The VAT rate (required when set) * - payload: The payload (optional) * - ends_at: The end date (optional) - * - webhook_url: The webhook URL (optional) - * - webhook_secret: The webhook secret (optional) * @throws Throwable */ public function update(array $attributes): self diff --git a/src/Id/Resources/Subscriptions.php b/src/Id/Resources/Subscriptions.php index 214affd..99b62d8 100644 --- a/src/Id/Resources/Subscriptions.php +++ b/src/Id/Resources/Subscriptions.php @@ -22,9 +22,7 @@ class Subscriptions extends BaseCollection * price: float, * vat_rate: float, * payload: null|array, - * ends_at: null|string, - * webhook_url: null|string, - * webhook_secret: null|string + * ends_at: null|string * } $attributes The subscription data: * - group: The group (optional) * - name: The name @@ -34,8 +32,6 @@ class Subscriptions extends BaseCollection * - vat_rate: The VAT rate (required when set) * - payload: The payload (optional) * - ends_at: The end date (optional) - * - webhook_url: The webhook URL (optional) - * - webhook_secret: The webhook secret (optional) * @throws Throwable */ public function create(array $attributes): Subscription