/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CreateMarketplaceRequest } from '../models/CreateMarketplaceRequest';
import type { CreateMarketplaceResponse } from '../models/CreateMarketplaceResponse';
import type { DeleteMarketplaceRequest } from '../models/DeleteMarketplaceRequest';
import type { DeleteMarketplaceResponse } from '../models/DeleteMarketplaceResponse';
import type { GetAllBaseMarketplacesResponse } from '../models/GetAllBaseMarketplacesResponse';
import type { GetClientMarketplacesRequest } from '../models/GetClientMarketplacesRequest';
import type { GetClientMarketplacesResponse } from '../models/GetClientMarketplacesResponse';
import type { UpdateMarketplaceRequest } from '../models/UpdateMarketplaceRequest';
import type { UpdateMarketplaceResponse } from '../models/UpdateMarketplaceResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class MarketplaceService {
    /**
     * Get All
     * @returns GetAllBaseMarketplacesResponse Successful Response
     * @throws ApiError
     */
    public static getAllBaseMarketplaces(): CancelablePromise<GetAllBaseMarketplacesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/marketplace/base/get-all',
        });
    }
    /**
     * Get
     * @returns GetClientMarketplacesResponse Successful Response
     * @throws ApiError
     */
    public static getClientMarketplaces({
        requestBody,
    }: {
        requestBody: GetClientMarketplacesRequest,
    }): CancelablePromise<GetClientMarketplacesResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/marketplace/get',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Create
     * @returns CreateMarketplaceResponse Successful Response
     * @throws ApiError
     */
    public static createMarketplace({
        requestBody,
    }: {
        requestBody: CreateMarketplaceRequest,
    }): CancelablePromise<CreateMarketplaceResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/marketplace/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Delete
     * @returns DeleteMarketplaceResponse Successful Response
     * @throws ApiError
     */
    public static deleteMarketplace({
        requestBody,
    }: {
        requestBody: DeleteMarketplaceRequest,
    }): CancelablePromise<DeleteMarketplaceResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/marketplace/delete',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update
     * @returns UpdateMarketplaceResponse Successful Response
     * @throws ApiError
     */
    public static updateMarketplace({
        requestBody,
    }: {
        requestBody: UpdateMarketplaceRequest,
    }): CancelablePromise<UpdateMarketplaceResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/marketplace/update',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
