/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CardAddToGroupRequest } from '../models/CardAddToGroupRequest';
import type { CardAddToGroupResponse } from '../models/CardAddToGroupResponse';
import type { CardCreateGroupResponse } from '../models/CardCreateGroupResponse';
import type { CardGroupChangeStatusRequest } from '../models/CardGroupChangeStatusRequest';
import type { CardGroupChangeStatusResponse } from '../models/CardGroupChangeStatusResponse';
import type { CardGroupUpdateRequest } from '../models/CardGroupUpdateRequest';
import type { CardGroupUpdateResponse } from '../models/CardGroupUpdateResponse';
import type { CardRemoveFromGroupRequest } from '../models/CardRemoveFromGroupRequest';
import type { CardRemoveFromGroupResponse } from '../models/CardRemoveFromGroupResponse';
import type { CreateCardGroupRequest } from '../models/CreateCardGroupRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class CardGroupService {
    /**
     * Create Group
     * @returns CardCreateGroupResponse Successful Response
     * @throws ApiError
     */
    public static createCardGroup({
        requestBody,
    }: {
        requestBody: CreateCardGroupRequest,
    }): CancelablePromise<CardCreateGroupResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/card-group/',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Group
     * @returns CardGroupUpdateResponse Successful Response
     * @throws ApiError
     */
    public static updateCardGroup({
        requestBody,
    }: {
        requestBody: CardGroupUpdateRequest,
    }): CancelablePromise<CardGroupUpdateResponse> {
        return __request(OpenAPI, {
            method: 'PATCH',
            url: '/card-group/',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Change Status
     * @returns CardGroupChangeStatusResponse Successful Response
     * @throws ApiError
     */
    public static changeStatus({
        requestBody,
    }: {
        requestBody: CardGroupChangeStatusRequest,
    }): CancelablePromise<CardGroupChangeStatusResponse> {
        return __request(OpenAPI, {
            method: 'PATCH',
            url: '/card-group/change-status',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Add Card
     * @returns CardAddToGroupResponse Successful Response
     * @throws ApiError
     */
    public static addCard({
        requestBody,
    }: {
        requestBody: CardAddToGroupRequest,
    }): CancelablePromise<CardAddToGroupResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/card-group/card',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Remove Card
     * @returns CardRemoveFromGroupResponse Successful Response
     * @throws ApiError
     */
    public static removeCard({
        requestBody,
    }: {
        requestBody: CardRemoveFromGroupRequest,
    }): CancelablePromise<CardRemoveFromGroupResponse> {
        return __request(OpenAPI, {
            method: 'DELETE',
            url: '/card-group/card',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
