mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
web: allow requesting refunds from settings
This commit is contained in:
committed by
Abdullah Atta
parent
a0229729b7
commit
7f873f240e
@@ -34,6 +34,16 @@ export default class Subscriptions {
|
||||
await http.delete(`${hosts.SUBSCRIPTIONS_HOST}/subscriptions`, token);
|
||||
}
|
||||
|
||||
async refund() {
|
||||
const token = await this._tokenManager.getAccessToken();
|
||||
if (!token) return;
|
||||
await http.post(
|
||||
`${hosts.SUBSCRIPTIONS_HOST}/subscriptions/refund`,
|
||||
null,
|
||||
token
|
||||
);
|
||||
}
|
||||
|
||||
async updateUrl() {
|
||||
const token = await this._tokenManager.getAccessToken();
|
||||
if (!token) return;
|
||||
|
||||
Reference in New Issue
Block a user