mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-13 13:46:13 +00:00
update subscriptions
Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user