export type ProfileCommand = {address?: string | undefined, bankAccountNumber?: string | undefined, bankCardNumber?: number | undefined, bankId?: ('BOOMIR' | 'CIYBIR' | 'SABCIR' | 'BEGNIR' | 'HEKMIR' | 'ANSBIR' | 'DAYBIR' | 'SINAIR' | 'SRMBIR' | 'IVBBIR' | 'IRZAIR' | 'MEHRIR' | 'MEDBIR' | 'PBIRIR' | 'BOIMIR' | 'MELIIR' | 'BTOSIR' | 'BKBPIR' | 'SEPBIR' | 'AYBKIR' | 'BTEJIR') | undefined, bankShebaNumber?: string | undefined, birthday?: string | undefined, birthdayDay?: number | undefined, birthdayMonth?: number | undefined, birthdayYear?: number | undefined, children?: number | undefined, educationDegree?: ('ELEMENTARY' | 'GENERAL' | 'DIPLOMA' | 'ASSOCIATE' | 'BACHELOR' | 'MASTER' | 'DOCTORATE') | undefined, email?: string | undefined, fatherName?: string | undefined, firstName?: string | undefined, gender?: ('MALE' | 'FEMALE') | undefined, identityNumber?: string | undefined, imageUrl?: string | undefined, jobTitle?: string | undefined, langKey?: string | undefined, lastName?: string | undefined, maritalStatus?: ('SINGLE' | 'MARRIED') | undefined, nationalCode?: string | undefined, nationalCodeVerifiedManually?: boolean | undefined, ostanId?: number | undefined, registeredCity?: string | undefined, shebaNumberVerified?: boolean | undefined, tel?: string | undefined, userType?: ('ZIFI' | 'AYRIA') | undefined, workAddress?: string | undefined, workTel?: string | undefined}; export type CreateApiApiAccountProfileGetShebaFromBankCardNumberArgs = {name?: string | undefined, body: ProfileCommand}; export type CreateApiApiAccountProfileGetShebaFromBankCardNumberOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * getShebaFromBankCardNumber * * POST /api/account/profile/getShebaFromBankCardNumber */ export const createApiApiAccountProfileGetShebaFromBankCardNumber = async (args: CreateApiApiAccountProfileGetShebaFromBankCardNumberArgs, options: CreateApiApiAccountProfileGetShebaFromBankCardNumberOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") if (args.name != null) query.append("name", String(args.name)) const url = `${baseUrl.replace(/\/+$/, '')}/api/account/profile/getShebaFromBankCardNumber${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() };