mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-06 00:17:13 +01:00
add new billing warnings endpoint (#6369)
This commit is contained in:
parent
3f010a50af
commit
2d54cc61df
1 changed files with 11 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ pub fn routes() -> Vec<Route> {
|
|||
api_key,
|
||||
rotate_api_key,
|
||||
get_billing_metadata,
|
||||
get_billing_warnings,
|
||||
get_auto_enroll_status,
|
||||
]
|
||||
}
|
||||
|
|
@ -2273,6 +2274,16 @@ fn get_billing_metadata(_org_id: OrganizationId, _headers: Headers) -> Json<Valu
|
|||
Json(_empty_data_json())
|
||||
}
|
||||
|
||||
#[get("/organizations/<_org_id>/billing/vnext/warnings")]
|
||||
fn get_billing_warnings(_org_id: OrganizationId, _headers: Headers) -> Json<Value> {
|
||||
Json(json!({
|
||||
"freeTrial":null,
|
||||
"inactiveSubscription":null,
|
||||
"resellerRenewal":null,
|
||||
"taxId":null,
|
||||
}))
|
||||
}
|
||||
|
||||
fn _empty_data_json() -> Value {
|
||||
json!({
|
||||
"object": "list",
|
||||
|
|
|
|||
Loading…
Reference in a new issue