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:
Maurice PreußandClaude Opus 5.5 committed 2026-11-03 12:43:17 +01:00
1 parent 285594e7e9
commit c2493b76fd
5 files changed
+20

No files matched your search

+4
View File
@@ -20,6 +20,8 @@ class Subscriptions extends BaseCollection
* description: null|string,
* unit: string,
* price: float,
* monthly_cap?: null|float,
* predecessor_id?: null|string,
* vat_rate: float,
* payload: null|array,
* ends_at: null|string
@@ -29,6 +31,8 @@ class Subscriptions extends BaseCollection
* - description: The description (optional)
* - unit: The unit (e.g. "hour", "day", "week", "month", "year")
* - price: The price per unit
* - monthly_cap: Net, at most this per calendar month (hour and day units, max. 2 decimals; optional)
* - predecessor_id: The subscription this one replaces (a resize); both share the monthly cap (optional)
* - vat_rate: The VAT rate (required when set)
* - payload: The payload (optional)
* - ends_at: The end date (optional)