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

Add paymentSuspended field to org and endpoint to update #1871

Closed
wants to merge 3 commits into from

Conversation

tw4l
Copy link
Member

@tw4l tw4l commented Jun 17, 2024

Backend work for #1876

  • Adds Organization.paymentSuspended field (optional boolean)
  • Adds API endpoint to update paymentSuspended field

This endpoint (which will be called by Cashew) might also make a nice hook for setting orgs read-only when payment fails or a user cancels their subscription moving forward.

backend/btrixcloud/models.py Outdated Show resolved Hide resolved
@tw4l
Copy link
Member Author

tw4l commented Jun 25, 2024

Closing in favor of having an Organization.readOnly field with an optional readOnlyReason str field that can provide the text for the banner, as a more generic solution for the open source project

@tw4l tw4l closed this Jun 25, 2024
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.

2 participants