mirror of
https://github.com/anikeen-com/id.git
synced 2026-11-06 23:58:35 +00:00
Document monthly_cap, predecessor_id and expected_monthly_price
Subscriptions (user token and app token) and checkout-session subscriptions take a net monthly cap and the subscription they replace (a resize shares the cap within the month). Attributes are passed through unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VbpgPaLqhBzo1AXHNs9Cx5
This commit is contained in:
1 parent
285594e7e9
commit
c2493b76fd
5 files changed
+20
No files matched your search
@@ -13,6 +13,9 @@ use Throwable;
|
||||
* @property string $description
|
||||
* @property string $unit
|
||||
* @property float $price
|
||||
* @property ?float $monthly_cap net, at most this per calendar month (hour and day units)
|
||||
* @property ?float $expected_monthly_price gross estimate for a month (720 hours, at most the monthly cap)
|
||||
* @property ?string $predecessor_id the subscription this one replaced (a resize); they share the monthly cap
|
||||
* @property float $vat_rate
|
||||
* @property array $payload
|
||||
* @property string $ends_at
|
||||
@@ -32,6 +35,7 @@ class Subscription extends BaseResource
|
||||
* description: null|string,
|
||||
* unit: string,
|
||||
* price: float,
|
||||
* monthly_cap?: null|float,
|
||||
* vat_rate: float,
|
||||
* payload: null|array,
|
||||
* ends_at: null|string
|
||||
@@ -41,6 +45,7 @@ class Subscription extends BaseResource
|
||||
* - description: The description (optional)
|
||||
* - unit: The unit (required when set, e.g. "hour", "day", "week", "month", "year")
|
||||
* - price: The price per unit (required when set)
|
||||
* - monthly_cap: Net, at most this per calendar month (hour and day units; optional)
|
||||
* - vat_rate: The VAT rate (required when set)
|
||||
* - payload: The payload (optional)
|
||||
* - ends_at: The end date (optional)
|
||||
|
||||
Reference in new issue
Block a user