orgnanization onboarding stepper form changes, code refactor for custom data-table grid
This commit is contained in:
@@ -7,7 +7,8 @@ import {
|
||||
CreateCurrencyRequest,
|
||||
CurrencyDto,
|
||||
CurrencyLookupDto,
|
||||
UpdateCurrencyRequest
|
||||
UpdateCurrencyRequest,
|
||||
UpdateCurrencyStatusRequest
|
||||
} from '../models/currency.model';
|
||||
import { CURRENCY_ENDPOINTS } from './currency.endpoints';
|
||||
|
||||
@@ -29,6 +30,14 @@ export class CurrencyService {
|
||||
return this.http.put<CurrencyDto>(CURRENCY_ENDPOINTS.update(id), request);
|
||||
}
|
||||
|
||||
updateStatus(id: string, request: UpdateCurrencyStatusRequest): Observable<CurrencyDto> {
|
||||
return this.http.patch<CurrencyDto>(CURRENCY_ENDPOINTS.changeStatus(id), request);
|
||||
}
|
||||
|
||||
delete(id: string): Observable<void> {
|
||||
return this.http.delete<void>(CURRENCY_ENDPOINTS.delete(id));
|
||||
}
|
||||
|
||||
getCurrencyById(id: string): Observable<CurrencyDto> {
|
||||
return this.http.get<CurrencyDto>(CURRENCY_ENDPOINTS.getById(id));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user