diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index e34da705c2..8a4953f04e 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -62,6 +62,7 @@ export abstract class ApiService { getAccountRevisionDate: () => Promise; postPasswordHint: (request: PasswordHintRequest) => Promise; postRegister: (request: RegisterRequest) => Promise; + postPremium: (data: FormData) => Promise; postFolder: (request: FolderRequest) => Promise; putFolder: (id: string, request: FolderRequest) => Promise; deleteFolder: (id: string) => Promise; diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 525d765a66..6574eb4d4f 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -184,6 +184,10 @@ export class ApiService implements ApiServiceAbstraction { return this.send('POST', '/accounts/register', request, false, false); } + postPremium(data: FormData): Promise { + return this.send('POST', '/accounts/premium', data, true, true); + } + // Folder APIs async postFolder(request: FolderRequest): Promise {