update api integration
This commit is contained in:
1 parent
7880b1d5d0
commit
8c1f3ab04d
15 files changed
+155
-127
No files matched your search
@@ -35,14 +35,6 @@ class ApplicationOperator {
|
||||
async delete(id: string): Promise<AxiosResponse<null>> {
|
||||
return await httpClient.delete(`/${this.key}/${id}`);
|
||||
}
|
||||
|
||||
async rotateCredential(id: string): Promise<AxiosResponse<IApplicationDetailResponse>> {
|
||||
return await httpClient.post(`/${this.key}/${id}/rotate-credential/`);
|
||||
}
|
||||
|
||||
async updateRemainingAmount(id: string, data: IApplication): Promise<AxiosResponse<IApplicationDetailResponse>> {
|
||||
return await httpClient.post(`/${this.key}/${id}/update-remaining-amount/`, data);
|
||||
}
|
||||
}
|
||||
|
||||
export const applicationOperator = new ApplicationOperator();
|
||||
Reference in new issue
Block a user