export type VagaroPublicModelRequestCommonVplRequest = {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, bankId?: string | undefined, userID?: number | undefined, firstName?: string | undefined, lastName?: string | undefined, accountNumber?: string | undefined, routingNumber?: string | undefined, bankName?: string | undefined, certegyConsumerTokenId?: string | undefined, certegyEnrollmentId?: string | undefined, vplUserAccountId?: number | undefined, totalAmount?: number | undefined, businessName?: string | undefined}; export type CreateApiGroupApiVVersionMyAccountAddbankinmongowithgroupwiseArgs = {group: string, version: string, body: VagaroPublicModelRequestCommonVplRequest}; export type CreateApiGroupApiVVersionMyAccountAddbankinmongowithgroupwiseOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * POST /{group}/api/v{version}/MyAccount/addbankinmongowithgroupwise */ export const createApiGroupApiVVersionMyAccountAddbankinmongowithgroupwise = async (args: CreateApiGroupApiVVersionMyAccountAddbankinmongowithgroupwiseArgs, options: CreateApiGroupApiVVersionMyAccountAddbankinmongowithgroupwiseOptions) => { 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))}/MyAccount/addbankinmongowithgroupwise${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 };