/* tslint:disable */
/* eslint-disable */
/**
 * ERVU Subpoena services
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: evgeniy.rodin@rtlabs.ru
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import { Configuration } from '../configuration';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
// @ts-ignore
import { AddSubpoenaInfoRequestV1 } from '../models';
// @ts-ignore
import { ChangeTrackNumberRequestV1 } from '../models';
// @ts-ignore
import { CountRecruitForDateResponse } from '../models';
// @ts-ignore
import { LoadListSubpoenaUsersV1 } from '../models';
// @ts-ignore
import { Pagination } from '../models';
// @ts-ignore
import { SubpoenaByRecruitResponseV2 } from '../models';
// @ts-ignore
import { SubpoenaByRecruitResponseV6 } from '../models';
// @ts-ignore
import { SubpoenaOneResponseV2 } from '../models';
// @ts-ignore
import { SubpoenaOneResponseV3 } from '../models';
// @ts-ignore
import { SubpoenaSearchRequestV1 } from '../models';
// @ts-ignore
import { SubpoenaSuccessResponseV1 } from '../models';
/**
 * SubpoenaRegistryApi - axios parameter creator
 * @export
 */
export const SubpoenaRegistryApiAxiosParamCreator = function (configuration?: Configuration) {
    return {
        /**
         * Метод для добавления данных в повестку
         * @summary Метод для добавления данных в повестку
         * @param {string} id 
         * @param {AddSubpoenaInfoRequestV1} addSubpoenaInfoRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addSubpoenaInfo: async (id: string, addSubpoenaInfoRequestV1: AddSubpoenaInfoRequestV1, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'id' is not null or undefined
            assertParamExists('addSubpoenaInfo', 'id', id)
            // verify required parameter 'addSubpoenaInfoRequestV1' is not null or undefined
            assertParamExists('addSubpoenaInfo', 'addSubpoenaInfoRequestV1', addSubpoenaInfoRequestV1)
            const localVarPath = `/ervu-subpoena-registry/subpoena/{id}/add`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(addSubpoenaInfoRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Метод метод для изменения трек-номера в карточке рекрута
         * @summary Метод метод для изменения трек-номера
         * @param {ChangeTrackNumberRequestV1} changeTrackNumberRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeTrackNumberV1: async (changeTrackNumberRequestV1: ChangeTrackNumberRequestV1, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'changeTrackNumberRequestV1' is not null or undefined
            assertParamExists('changeTrackNumberV1', 'changeTrackNumberRequestV1', changeTrackNumberRequestV1)
            const localVarPath = `/ervu-subpoena-registry/subpoena/v1`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(changeTrackNumberRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Запрос на создание файла для выгрузки повесток
         * @summary Запрос на создание файла для выгрузки повесток
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createLoadListSubpoenaV1: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/ervu-subpoena-registry/export/v1/create-subpoena-export-file`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение количества человек уже вызванных на определенную дату
         * @summary Получение количества человек уже вызванных на определенную дату
         * @param {string} dateTime 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getCountRecruitForDate: async (dateTime: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'dateTime' is not null or undefined
            assertParamExists('getCountRecruitForDate', 'dateTime', dateTime)
            const localVarPath = `/ervu-subpoena-registry/subpoena/getCountRecruitForDate`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;

            if (dateTime !== undefined) {
                localVarQueryParameter['dateTime'] = dateTime;
            }


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение списка повесток (getLoadListSubpoenaUsers_V1)
         * @summary Получение списка повесток
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getLoadListSubpoenaUsersV1: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/ervu-subpoena-registry/export/v1/subpoena-export-files`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение данных о повестках по гражданину
         * @summary Получение данных о повестках по гражданину
         * @param {string} recruitId 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getSubpoenaByRecruitV2: async (recruitId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'recruitId' is not null or undefined
            assertParamExists('getSubpoenaByRecruitV2', 'recruitId', recruitId)
            const localVarPath = `/ervu-subpoena-registry/subpoena/byRecruit/v2/{recruitId}`
                .replace(`{${"recruitId"}}`, encodeURIComponent(String(recruitId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получения повесток по гражданину
         * @summary Получения повесток по гражданину
         * @param {string} recruitId 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenaByRecruitV6: async (recruitId: string, pagination: Pagination, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'recruitId' is not null or undefined
            assertParamExists('getSubpoenaByRecruitV6', 'recruitId', recruitId)
            // verify required parameter 'pagination' is not null or undefined
            assertParamExists('getSubpoenaByRecruitV6', 'pagination', pagination)
            const localVarPath = `/ervu-subpoena-registry/subpoena/byRecruit/v6/{recruitId}`
                .replace(`{${"recruitId"}}`, encodeURIComponent(String(recruitId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(pagination, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение данных по одной повестке
         * @summary Получение данных по одной повестке
         * @param {string} id 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenaV2: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'id' is not null or undefined
            assertParamExists('getSubpoenaV2', 'id', id)
            const localVarPath = `/ervu-subpoena-registry/subpoena/v2/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение данных по одной повестке
         * @summary Получение данных по одной повестке
         * @param {string} id 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenaV3: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'id' is not null or undefined
            assertParamExists('getSubpoenaV3', 'id', id)
            const localVarPath = `/ervu-subpoena-registry/subpoena/v3/{id}`
                .replace(`{${"id"}}`, encodeURIComponent(String(id)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение списка повесток
         * @summary Получение списка повесток
         * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenasList: async (subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'subpoenaSearchRequestV1' is not null or undefined
            assertParamExists('getSubpoenasList', 'subpoenaSearchRequestV1', subpoenaSearchRequestV1)
            const localVarPath = `/ervu-subpoena-registry/subpoena/search`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(subpoenaSearchRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Получение списка повесток
         * @summary Получение списка повесток
         * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenasV1: async (subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'subpoenaSearchRequestV1' is not null or undefined
            assertParamExists('getSubpoenasV1', 'subpoenaSearchRequestV1', subpoenaSearchRequestV1)
            const localVarPath = `/ervu-subpoena-registry/subpoena/signing/v1/search`;
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(subpoenaSearchRequestV1, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    }
};

/**
 * SubpoenaRegistryApi - functional programming interface
 * @export
 */
export const SubpoenaRegistryApiFp = function(configuration?: Configuration) {
    const localVarAxiosParamCreator = SubpoenaRegistryApiAxiosParamCreator(configuration)
    return {
        /**
         * Метод для добавления данных в повестку
         * @summary Метод для добавления данных в повестку
         * @param {string} id 
         * @param {AddSubpoenaInfoRequestV1} addSubpoenaInfoRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async addSubpoenaInfo(id: string, addSubpoenaInfoRequestV1: AddSubpoenaInfoRequestV1, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.addSubpoenaInfo(id, addSubpoenaInfoRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Метод метод для изменения трек-номера в карточке рекрута
         * @summary Метод метод для изменения трек-номера
         * @param {ChangeTrackNumberRequestV1} changeTrackNumberRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async changeTrackNumberV1(changeTrackNumberRequestV1: ChangeTrackNumberRequestV1, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.changeTrackNumberV1(changeTrackNumberRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Запрос на создание файла для выгрузки повесток
         * @summary Запрос на создание файла для выгрузки повесток
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createLoadListSubpoenaV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.createLoadListSubpoenaV1(options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение количества человек уже вызванных на определенную дату
         * @summary Получение количества человек уже вызванных на определенную дату
         * @param {string} dateTime 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getCountRecruitForDate(dateTime: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountRecruitForDateResponse>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getCountRecruitForDate(dateTime, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка повесток (getLoadListSubpoenaUsers_V1)
         * @summary Получение списка повесток
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getLoadListSubpoenaUsersV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LoadListSubpoenaUsersV1>>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getLoadListSubpoenaUsersV1(options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение данных о повестках по гражданину
         * @summary Получение данных о повестках по гражданину
         * @param {string} recruitId 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        async getSubpoenaByRecruitV2(recruitId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubpoenaByRecruitResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getSubpoenaByRecruitV2(recruitId, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получения повесток по гражданину
         * @summary Получения повесток по гражданину
         * @param {string} recruitId 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getSubpoenaByRecruitV6(recruitId: string, pagination: Pagination, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubpoenaByRecruitResponseV6>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getSubpoenaByRecruitV6(recruitId, pagination, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение данных по одной повестке
         * @summary Получение данных по одной повестке
         * @param {string} id 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getSubpoenaV2(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubpoenaOneResponseV2>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getSubpoenaV2(id, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение данных по одной повестке
         * @summary Получение данных по одной повестке
         * @param {string} id 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getSubpoenaV3(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubpoenaOneResponseV3>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getSubpoenaV3(id, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка повесток
         * @summary Получение списка повесток
         * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getSubpoenasList(subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubpoenaSuccessResponseV1>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getSubpoenasList(subpoenaSearchRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
        /**
         * Получение списка повесток
         * @summary Получение списка повесток
         * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getSubpoenasV1(subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubpoenaSuccessResponseV1>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getSubpoenasV1(subpoenaSearchRequestV1, options);
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
        },
    }
};

/**
 * SubpoenaRegistryApi - factory interface
 * @export
 */
export const SubpoenaRegistryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
    const localVarFp = SubpoenaRegistryApiFp(configuration)
    return {
        /**
         * Метод для добавления данных в повестку
         * @summary Метод для добавления данных в повестку
         * @param {string} id 
         * @param {AddSubpoenaInfoRequestV1} addSubpoenaInfoRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addSubpoenaInfo(id: string, addSubpoenaInfoRequestV1: AddSubpoenaInfoRequestV1, options?: any): AxiosPromise<string> {
            return localVarFp.addSubpoenaInfo(id, addSubpoenaInfoRequestV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Метод метод для изменения трек-номера в карточке рекрута
         * @summary Метод метод для изменения трек-номера
         * @param {ChangeTrackNumberRequestV1} changeTrackNumberRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        changeTrackNumberV1(changeTrackNumberRequestV1: ChangeTrackNumberRequestV1, options?: any): AxiosPromise<string> {
            return localVarFp.changeTrackNumberV1(changeTrackNumberRequestV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Запрос на создание файла для выгрузки повесток
         * @summary Запрос на создание файла для выгрузки повесток
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createLoadListSubpoenaV1(options?: any): AxiosPromise<string> {
            return localVarFp.createLoadListSubpoenaV1(options).then((request) => request(axios, basePath));
        },
        /**
         * Получение количества человек уже вызванных на определенную дату
         * @summary Получение количества человек уже вызванных на определенную дату
         * @param {string} dateTime 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getCountRecruitForDate(dateTime: string, options?: any): AxiosPromise<CountRecruitForDateResponse> {
            return localVarFp.getCountRecruitForDate(dateTime, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка повесток (getLoadListSubpoenaUsers_V1)
         * @summary Получение списка повесток
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getLoadListSubpoenaUsersV1(options?: any): AxiosPromise<Array<LoadListSubpoenaUsersV1>> {
            return localVarFp.getLoadListSubpoenaUsersV1(options).then((request) => request(axios, basePath));
        },
        /**
         * Получение данных о повестках по гражданину
         * @summary Получение данных о повестках по гражданину
         * @param {string} recruitId 
         * @param {*} [options] Override http request option.
         * @deprecated
         * @throws {RequiredError}
         */
        getSubpoenaByRecruitV2(recruitId: string, options?: any): AxiosPromise<SubpoenaByRecruitResponseV2> {
            return localVarFp.getSubpoenaByRecruitV2(recruitId, options).then((request) => request(axios, basePath));
        },
        /**
         * Получения повесток по гражданину
         * @summary Получения повесток по гражданину
         * @param {string} recruitId 
         * @param {Pagination} pagination 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenaByRecruitV6(recruitId: string, pagination: Pagination, options?: any): AxiosPromise<SubpoenaByRecruitResponseV6> {
            return localVarFp.getSubpoenaByRecruitV6(recruitId, pagination, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение данных по одной повестке
         * @summary Получение данных по одной повестке
         * @param {string} id 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenaV2(id: string, options?: any): AxiosPromise<SubpoenaOneResponseV2> {
            return localVarFp.getSubpoenaV2(id, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение данных по одной повестке
         * @summary Получение данных по одной повестке
         * @param {string} id 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenaV3(id: string, options?: any): AxiosPromise<SubpoenaOneResponseV3> {
            return localVarFp.getSubpoenaV3(id, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка повесток
         * @summary Получение списка повесток
         * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenasList(subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options?: any): AxiosPromise<SubpoenaSuccessResponseV1> {
            return localVarFp.getSubpoenasList(subpoenaSearchRequestV1, options).then((request) => request(axios, basePath));
        },
        /**
         * Получение списка повесток
         * @summary Получение списка повесток
         * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getSubpoenasV1(subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options?: any): AxiosPromise<SubpoenaSuccessResponseV1> {
            return localVarFp.getSubpoenasV1(subpoenaSearchRequestV1, options).then((request) => request(axios, basePath));
        },
    };
};

/**
 * SubpoenaRegistryApi - object-oriented interface
 * @export
 * @class SubpoenaRegistryApi
 * @extends {BaseAPI}
 */
export class SubpoenaRegistryApi extends BaseAPI {
    /**
     * Метод для добавления данных в повестку
     * @summary Метод для добавления данных в повестку
     * @param {string} id 
     * @param {AddSubpoenaInfoRequestV1} addSubpoenaInfoRequestV1 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public addSubpoenaInfo(id: string, addSubpoenaInfoRequestV1: AddSubpoenaInfoRequestV1, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).addSubpoenaInfo(id, addSubpoenaInfoRequestV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Метод метод для изменения трек-номера в карточке рекрута
     * @summary Метод метод для изменения трек-номера
     * @param {ChangeTrackNumberRequestV1} changeTrackNumberRequestV1 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public changeTrackNumberV1(changeTrackNumberRequestV1: ChangeTrackNumberRequestV1, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).changeTrackNumberV1(changeTrackNumberRequestV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Запрос на создание файла для выгрузки повесток
     * @summary Запрос на создание файла для выгрузки повесток
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public createLoadListSubpoenaV1(options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).createLoadListSubpoenaV1(options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение количества человек уже вызванных на определенную дату
     * @summary Получение количества человек уже вызванных на определенную дату
     * @param {string} dateTime 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getCountRecruitForDate(dateTime: string, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getCountRecruitForDate(dateTime, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка повесток (getLoadListSubpoenaUsers_V1)
     * @summary Получение списка повесток
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getLoadListSubpoenaUsersV1(options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getLoadListSubpoenaUsersV1(options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение данных о повестках по гражданину
     * @summary Получение данных о повестках по гражданину
     * @param {string} recruitId 
     * @param {*} [options] Override http request option.
     * @deprecated
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getSubpoenaByRecruitV2(recruitId: string, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getSubpoenaByRecruitV2(recruitId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получения повесток по гражданину
     * @summary Получения повесток по гражданину
     * @param {string} recruitId 
     * @param {Pagination} pagination 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getSubpoenaByRecruitV6(recruitId: string, pagination: Pagination, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getSubpoenaByRecruitV6(recruitId, pagination, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение данных по одной повестке
     * @summary Получение данных по одной повестке
     * @param {string} id 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getSubpoenaV2(id: string, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getSubpoenaV2(id, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение данных по одной повестке
     * @summary Получение данных по одной повестке
     * @param {string} id 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getSubpoenaV3(id: string, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getSubpoenaV3(id, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка повесток
     * @summary Получение списка повесток
     * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getSubpoenasList(subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getSubpoenasList(subpoenaSearchRequestV1, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Получение списка повесток
     * @summary Получение списка повесток
     * @param {SubpoenaSearchRequestV1} subpoenaSearchRequestV1 
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof SubpoenaRegistryApi
     */
    public getSubpoenasV1(subpoenaSearchRequestV1: SubpoenaSearchRequestV1, options?: AxiosRequestConfig) {
        return SubpoenaRegistryApiFp(this.configuration).getSubpoenasV1(subpoenaSearchRequestV1, options).then((request) => request(this.axios, this.basePath));
    }
}
