8 lines
306 B
TypeScript
8 lines
306 B
TypeScript
import { api as api } from '../../api';
|
|
import { presentWallet } from '../../presenters';
|
|
import { WalletViewModel } from '../../view-models';
|
|
|
|
export async function getWallet(driverId: string): Promise<WalletViewModel> {
|
|
const dto = await api.payments.getWallet(driverId);
|
|
return presentWallet(dto);
|
|
} |