update subscriptions

Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
2025-05-01 18:16:51 +02:00
parent dcda4b990e
commit 1725ec68de
2 changed files with 9 additions and 9 deletions

View File

@@ -26,21 +26,21 @@ class Subscription extends BaseResource
* Update a given subscription from the current user. * Update a given subscription from the current user.
* *
* @param array{ * @param array{
* name: null, * name: string,
* description: null|string, * description: null|string,
* unit: string, * unit: string,
* price: float, * price: float,
* vat_rate: null|float, * vat_rate: float,
* payload: null|array, * payload: null|array,
* ends_at: null|string, * ends_at: null|string,
* webhook_url: null|string, * webhook_url: null|string,
* webhook_secret: null|string * webhook_secret: null|string
* } $attributes The subscription data: * } $attributes The subscription data:
* - name: The name * - name: The name (required when set)
* - description: The description (optional) * - description: The description (optional)
* - unit: The unit (e.g. "hour", "day", "week", "month", "year") * - unit: The unit (required when set, e.g. "hour", "day", "week", "month", "year")
* - price: The price per unit * - price: The price per unit (required when set)
* - vat_rate: The VAT rate (optional) * - vat_rate: The VAT rate (required when set)
* - payload: The payload (optional) * - payload: The payload (optional)
* - ends_at: The end date (optional) * - ends_at: The end date (optional)
* - webhook_url: The webhook URL (optional) * - webhook_url: The webhook URL (optional)

View File

@@ -14,11 +14,11 @@ class Subscriptions extends BaseCollection
* Create a new subscription for the current user. * Create a new subscription for the current user.
* *
* @param array{ * @param array{
* name: null, * name: string,
* description: null|string, * description: null|string,
* unit: string, * unit: string,
* price: float, * price: float,
* vat_rate: null|float, * vat_rate: float,
* payload: null|array, * payload: null|array,
* ends_at: null|string, * ends_at: null|string,
* webhook_url: null|string, * webhook_url: null|string,
@@ -28,7 +28,7 @@ class Subscriptions extends BaseCollection
* - description: The description (optional) * - description: The description (optional)
* - unit: The unit (e.g. "hour", "day", "week", "month", "year") * - unit: The unit (e.g. "hour", "day", "week", "month", "year")
* - price: The price per unit * - price: The price per unit
* - vat_rate: The VAT rate (optional) * - vat_rate: The VAT rate (required when set)
* - payload: The payload (optional) * - payload: The payload (optional)
* - ends_at: The end date (optional) * - ends_at: The end date (optional)
* - webhook_url: The webhook URL (optional) * - webhook_url: The webhook URL (optional)