export type VagaroMerchantModelGetMultiLocationBusinessRequest = {businessID?: number | undefined, loginUserID?: number | undefined, device?: string | undefined, version?: string | undefined, pageIndex?: number | undefined, pageSize?: number | undefined, deviceID?: string | undefined, osVersion?: string | undefined, groupId?: string | undefined, isGroupWiseCall?: boolean | undefined, isReadOnly?: boolean | undefined, clientId?: string | undefined, clientSecret?: string | undefined, vbi?: string | undefined, vui?: string | undefined, strLoginUserId?: string | undefined, strBusinessId?: string | undefined, enc_BusinessID?: string | undefined, enc_LoginUserID?: string | undefined, businessGroupID?: number | undefined, hasSharedCustomer?: boolean | undefined, hasSharedGiftCertificate?: boolean | undefined, hasSharedPackage?: boolean | undefined, hasSharedMembership?: boolean | undefined, hasSharedPoint?: boolean | undefined, locationSharedBy?: number | undefined, shopOwnerID?: number | undefined, type?: number | undefined, businessMappingGroupID?: number | undefined, hasSharedBrandedApp?: boolean | undefined, hasSharedVagaroDrive?: boolean | undefined, serviceProviderId?: number | undefined, hasSharedForm?: boolean | undefined, hasSharedCustomFields?: boolean | undefined}; export type CreateApiGroupApiVVersionMerchantGropumultilocationGetmultilocationbusinesslistArgs = {group: string, version: string, body: VagaroMerchantModelGetMultiLocationBusinessRequest}; export type CreateApiGroupApiVVersionMerchantGropumultilocationGetmultilocationbusinesslistOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * POST /{group}/api/v{version}/merchant/gropumultilocation/getmultilocationbusinesslist */ export const createApiGroupApiVVersionMerchantGropumultilocationGetmultilocationbusinesslist = async (args: CreateApiGroupApiVVersionMerchantGropumultilocationGetmultilocationbusinesslistArgs, options: CreateApiGroupApiVVersionMerchantGropumultilocationGetmultilocationbusinesslistOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/${encodeURIComponent(String(args.group))}/api/v${encodeURIComponent(String(args.version))}/merchant/gropumultilocation/getmultilocationbusinesslist${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 undefined };