export type PaymentToolWalletDTO = {accountBank?: ('EGHTESAD_NOVID' | 'ANSAR' | 'IRAN_ZAMIN' | 'PARSIAN' | 'PASARGAD' | 'TAT' | 'TEJARAT' | 'TOSAE_TAVON' | 'TOSAE_SADERAT' | 'HEKMAT_IRANIAN' | 'DAY' | 'REFAH' | 'SAMAN' | 'SEPAH' | 'SARMAYEH' | 'SINA' | 'SHAHR' | 'SADERAT' | 'SANAT_O_MADAN' | 'MEHR' | 'GHAVAMIN' | 'KAR_AFARIN' | 'KESHAVARZI' | 'GARDESHGARI' | 'MARKAZI' | 'MASKAN' | 'MELLAT' | 'MELLI' | 'MEHR_EGHTESAD' | 'POST' | 'TOSAE' | 'KOSAR' | 'MIDDLE_EAST' | 'OTHER') | undefined, accountBankImg?: string | undefined, accountBranch?: string | undefined, accountBranchCode?: string | undefined, accountName?: string | undefined, accountNumber?: string | undefined, accountSheba?: string | undefined, confirmed?: boolean | undefined, id?: number | undefined, name?: string | undefined, picked?: boolean | undefined}; export type DocumentDTO = {acceptorId?: number | undefined, content?: string | undefined, contentContentType?: string | undefined, description?: string | undefined, documentIdentifier?: string | undefined, documentKey?: string | undefined, documentStatus?: ('CONFIRMED' | 'REJECTED') | undefined, documentType: 'LOGO' | 'MENU' | 'PHOTO' | 'PHOTO_BUILDING' | 'DOCUMENT' | 'BANNER' | 'BANNER_LANDING' | 'BANNER_LANDING_DESKTOP' | 'ID_NATIONAL_CODE' | 'ID_IDENTITY_NUMBER' | 'ID_BUSINESS_LICENSE' | 'ID_SHEBA_CONFIRMATION' | 'ID_POSTAL_CODE' | 'ID_APG_CONTRACT' | 'ID_POS_CONTRACT' | 'ID_ACCEPTOR_CONFIRMATION' | 'ID_OTHERS', id?: number | undefined, lastModifiedDate?: string | undefined, makePublic?: boolean | undefined, paymentToolId?: number | undefined, statusDescription?: string | undefined, uploadedOn?: string | undefined, validFrom?: string | undefined, validTo?: string | undefined}; export type AcceptorDTO = {acceptorName?: string | undefined, acceptorNameEn?: string | undefined, accountNumber?: string | undefined, address?: string | undefined, addressEn?: string | undefined, anonymousPay?: boolean | undefined, apgCallbackUrl?: string | undefined, apgSecond?: boolean | undefined, bank?: string | undefined, birthCertDigit?: string | undefined, birthCertLetter?: string | undefined, birthCertNumber?: string | undefined, birthCertSeriesNumber?: string | undefined, branch?: string | undefined, cashoutVip?: boolean | undefined, category?: string | undefined, city?: string | undefined, code?: string | undefined, companyName?: string | undefined, companyNationalId?: string | undefined, contractSignDate?: string | undefined, contractSignDateJalali?: string | undefined, couponCreationFeePercentage?: number | undefined, dateOfBirth?: string | undefined, defaultSheba?: PaymentToolWalletDTO | undefined, delivery?: boolean | undefined, department: 'SPORT' | 'CLOTHING' | 'CONSULTING' | 'DIGITAL' | 'RESTAURANT' | 'HEALTH' | 'SCIENCE' | 'STORE' | 'TRAVEL' | 'HOME_APPLIANCE' | 'BEAUTY' | 'JEWELLERY' | 'CULTURE' | 'FORMALITY' | 'ART' | 'CAR' | 'BUILDING', description?: string | undefined, discountPercentage?: number | undefined, documents?: Array | undefined, familyName?: string | undefined, familyNameEn?: string | undefined, fatherName?: string | undefined, gender?: ('MALE' | 'FEMALE') | undefined, givenName?: string | undefined, givenNameEn?: string | undefined, groupId?: number | undefined, groupName?: string | undefined, guildId?: number | undefined, guildName?: string | undefined, hasCoordinates?: boolean | undefined, id?: number | undefined, identityType?: ('PERSON' | 'COMPANY') | undefined, introducerPercentage?: number | undefined, introducerPercentageBD?: number | undefined, ipgOverrideName?: boolean | undefined, kargozarId?: number | undefined, kargozarMobile?: string | undefined, makePublic?: boolean | undefined, maxDistance?: number | undefined, mobile?: string | undefined, nationalIdNumber?: string | undefined, nationality?: ('IRANIAN' | 'FOREIGNER') | undefined, noRawFee?: boolean | undefined, notifySdkPaymentUrl?: boolean | undefined, onboarded?: boolean | undefined, onlineShop?: boolean | undefined, open?: boolean | undefined, ostanId?: number | undefined, ostanName?: string | undefined, parent?: AcceptorDTO | undefined, parentId?: number | undefined, parentName?: string | undefined, phone?: string | undefined, pickup?: boolean | undefined, pickupGap?: number | undefined, platformDiscountPercentage?: number | undefined, postcode?: string | undefined, rank?: number | undefined, rawFee?: boolean | undefined, rawFeeFixed?: boolean | undefined, rawFeePercentage?: number | undefined, referralCode?: number | undefined, registrarId?: number | undefined, registrarMobile?: string | undefined, registrarType?: ('USER' | 'OWNER' | 'EMPLOYEE') | undefined, registrationDate?: string | undefined, registrationNumber?: string | undefined, shahrId?: number | undefined, shahrName?: string | undefined, shebaCode?: string | undefined, shebaPos?: string | undefined, shebas?: Array | undefined, shortDescription?: string | undefined, siteUrl?: string | undefined, state?: string | undefined, status?: ('REQUESTED' | 'CONFIRMED' | 'DOCUMENT_INCOMPLETE' | 'DOCUMENT_CONFIRMED' | 'DOCUMENT_SENT' | 'NEEDTOREVIEW' | 'COMPLETE_PROFILE' | 'ACTIVE' | 'INACTIVE' | 'SYSTEM' | 'EXPIRED' | 'NOTRANSACTION' | 'CLOSED' | 'ORGANIZATIONAL' | 'BUILDING') | undefined, statusComment?: string | undefined, storeType?: ('VIRTUAL' | 'PHYSICAL') | undefined, subGroupId?: number | undefined, subGroupName?: string | undefined, subGuildId?: number | undefined, subGuildName?: string | undefined, tables?: boolean | undefined, targetGroup?: ('MALE' | 'FEMALE' | 'UNISEX') | undefined, tax?: boolean | undefined, taxCode?: string | undefined, terminalSecond?: boolean | undefined, terminalSecondId?: string | undefined, tradingHoursId?: number | undefined, userId?: number | undefined, userMobile?: string | undefined}; export type CreateApiApiAcceptorsRegisterArgs = {body: AcceptorDTO}; export type CreateApiApiAcceptorsRegisterOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * registerAcceptor * * POST /api/acceptors/register */ export const createApiApiAcceptorsRegister = async (args: CreateApiApiAcceptorsRegisterArgs, options: CreateApiApiAcceptorsRegisterOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/api/acceptors/register${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() };