Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify (default) billing plans #428

Merged
merged 2 commits into from
Dec 15, 2021
Merged

Clarify (default) billing plans #428

merged 2 commits into from
Dec 15, 2021

Conversation

m-mohr
Copy link
Member

@m-mohr m-mohr commented Nov 4, 2021

Fixes the situation around the issues raised in #425 and #426.

@m-mohr m-mohr added this to the 1.2.0 milestone Nov 4, 2021
@m-mohr m-mohr requested a review from soxofaan November 4, 2021 18:00
This was linked to issues Nov 4, 2021
@m-mohr m-mohr self-assigned this Dec 1, 2021
@m-mohr
Copy link
Member Author

m-mohr commented Dec 8, 2021

@soxofaan Does this PR help to close the issues you raised in #425 and #426?

Copy link
Member

@soxofaan soxofaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some notes

openapi.yaml Outdated Show resolved Hide resolved
openapi.yaml Outdated
Back-ends resolve billing plans in the following order:
1. If provided, use the `plan` in the processing request.
2. If provided, use the plan exposed here.
3. Otherwise, use the `default_plan` exposed through `GET /`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it's useful to explain this priority scheme here. I think it complicates the description unnecessarily. It's discussed in a more appropriate place already.

What could be useful to mention is whether a user can be subscribed to multiple plans (I think not, if I understand correctly).
Another subtlety is whether there is a difference between a missing "default_plan" or a "null" default plan (e.g. backend does not support plans vs user has no plan)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Agreed, removed the priority scheme.
  • Clarified that only a single plan is supported.
  • null: I think I can actually remove the nullable as it has the same meaning as "not present".

openapi.yaml Outdated Show resolved Hide resolved
openapi.yaml Outdated Show resolved Hide resolved
openapi.yaml Outdated Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
@m-mohr m-mohr requested a review from soxofaan December 8, 2021 17:48
@m-mohr m-mohr mentioned this pull request Dec 9, 2021
6 tasks
@m-mohr m-mohr merged commit a46fe24 into draft Dec 15, 2021
@m-mohr m-mohr deleted the issues-425-426 branch December 15, 2021 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

capabilities billing default_plan /me: default_plan confusion
2 participants