billing_page: Successfully render for remote realms and server.

This commit is contained in:
Aman Agrawal
2023-12-01 09:43:04 +00:00
committed by Tim Abbott
parent 42c0e2ca3e
commit 8500eae87e
4 changed files with 142 additions and 26 deletions

View File

@@ -218,18 +218,6 @@ def remote_billing_page_common(
return render_tmp_remote_billing_page(request, realm_uuid=realm_uuid, server_uuid=server_uuid)
@self_hosting_management_endpoint
@typed_endpoint
def remote_server_billing_page(request: HttpRequest, *, server_uuid: PathOnly[str]) -> HttpResponse:
return remote_billing_page_common(request, server_uuid=server_uuid, realm_uuid=None)
@self_hosting_management_endpoint
@typed_endpoint
def remote_realm_billing_page(request: HttpRequest, *, realm_uuid: PathOnly[str]) -> HttpResponse:
return remote_billing_page_common(request, realm_uuid=realm_uuid, server_uuid=None)
@self_hosting_management_endpoint
@typed_endpoint
def remote_billing_legacy_server_login(