web: allow users to view their billing history

This commit is contained in:
Abdullah Atta
2023-05-01 12:56:22 +05:00
committed by Abdullah Atta
parent 7f873f240e
commit 2bd0f1a304
5 changed files with 178 additions and 9 deletions

View File

@@ -44,11 +44,20 @@ export default class Subscriptions {
);
}
async transactions() {
const token = await this._tokenManager.getAccessToken();
if (!token) return;
return await http.get(
`${hosts.SUBSCRIPTIONS_HOST}/subscriptions/transactions`,
token
);
}
async updateUrl() {
const token = await this._tokenManager.getAccessToken();
if (!token) return;
return await http.get(
`${hosts.SUBSCRIPTIONS_HOST}/subscriptions/update_url`,
`${hosts.SUBSCRIPTIONS_HOST}/subscriptions/update`,
token
);
}