Skip to content

Send the billing interval with a custom VM price - #347

Merged
v0l merged 2 commits into
masterfrom
fix/custom-price-interval-302
Jul 30, 2026
Merged

Send the billing interval with a custom VM price#347
v0l merged 2 commits into
masterfrom
fix/custom-price-interval-302

Conversation

@v0l

@v0l v0l commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Closes #302.

POST /api/v1/vm/custom-template/price now returns interval_amount and interval_type alongside currency/amount (lnvps_api/src/api/model.rs:55-90), matching the shape a standard template cost plan already uses. Values are always 1/month.

The period was only implicit in the renewal (pricing.rs:891-895); it is now a constant both that and the quote read, with a const assert so the unit cannot drift from the months-based renewal.

e2e asserts the fields on a 200 response. API_CHANGELOG.md updated; additive, no existing field changed.

Originating channel: general (721a8a6c-c36c-5fa1-ae07-822ddc8567c5)

@v0l
v0l merged commit 9d9f242 into master Jul 30, 2026
6 checks passed
@v0l
v0l deleted the fix/custom-price-interval-302 branch July 30, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom template price response carries no billing interval

1 participant