1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

add cancel and reinstate premium

This commit is contained in:
Kyle Spearrin
2018-06-29 13:58:01 -04:00
parent 1565140024
commit 3726d9e6d8
3 changed files with 28 additions and 2 deletions

View File

@@ -191,7 +191,15 @@ export class ApiService implements ApiServiceAbstraction {
}
postPremium(data: FormData): Promise<any> {
return this.send('POST', '/accounts/premium', data, true, true);
return this.send('POST', '/accounts/premium', data, true, false);
}
postReinstatePremium(): Promise<any> {
return this.send('POST', '/accounts/reinstate-premium', null, true, false);
}
postCancelPremium(): Promise<any> {
return this.send('POST', '/accounts/cancel-premium', null, true, false);
}
// Folder APIs