export type MusteriCariHareket = {Id: number, MusteriId?: number | undefined, IslemId?: number | undefined, IslemTuru?: string | undefined, Tutar?: number | undefined, Tarih?: string | undefined, Donem?: number | undefined, HareketTuru?: string | undefined, Fatura?: boolean | undefined, Aciklama?: string | undefined, Borc?: number | undefined, Alacak?: number | undefined, OdemeTuru?: string | undefined}; export type CreateApiMusteriCariHareketEkleArgs = {Authorization?: string | undefined, body: MusteriCariHareket}; export type CreateApiMusteriCariHareketEkleOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * POST /musteri/cari-hareket-ekle */ export const createApiMusteriCariHareketEkle = async (args: CreateApiMusteriCariHareketEkleArgs, options?: CreateApiMusteriCariHareketEkleOptions) => { const {baseUrl = "https://demo.poskobi.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "application/octet-stream") if (args.Authorization != null) headers.set("Authorization", String(args.Authorization)) const url = `${baseUrl.replace(/\/+$/, '')}/musteri/cari-hareket-ekle${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };