forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

getPaymentPlans.ts10 lines, 375 bytesHistoryRawDownload
1import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client";
2import type { FeePlan } from "./types";
3
4export async function getPaymentPlans(
5 params?: PageParams,
6 signal?: AbortSignal,
7): Promise<Page<FeePlan>> {
8 const data = await client<unknown>(`/payments/plans${pageQuery(params)}`, { signal });
9 return normalizePage<FeePlan>(data);
10}