/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BarcodeTemplateCreateRequest } from '../models/BarcodeTemplateCreateRequest';
import type { BarcodeTemplateCreateResponse } from '../models/BarcodeTemplateCreateResponse';
import type { BarcodeTemplateDeleteRequest } from '../models/BarcodeTemplateDeleteRequest';
import type { BarcodeTemplateDeleteResponse } from '../models/BarcodeTemplateDeleteResponse';
import type { BarcodeTemplateUpdateRequest } from '../models/BarcodeTemplateUpdateRequest';
import type { BarcodeTemplateUpdateResponse } from '../models/BarcodeTemplateUpdateResponse';
import type { CreateBarcodeTemplateAttributeRequest } from '../models/CreateBarcodeTemplateAttributeRequest';
import type { CreateBarcodeTemplateAttributeResponse } from '../models/CreateBarcodeTemplateAttributeResponse';
import type { GetAllBarcodeTemplateAttributesResponse } from '../models/GetAllBarcodeTemplateAttributesResponse';
import type { GetAllBarcodeTemplateSizesResponse } from '../models/GetAllBarcodeTemplateSizesResponse';
import type { GetAllBarcodeTemplatesResponse } from '../models/GetAllBarcodeTemplatesResponse';
import type { GetBarcodeTemplateByIdRequest } from '../models/GetBarcodeTemplateByIdRequest';
import type { GetBarcodeTemplateByIdResponse } from '../models/GetBarcodeTemplateByIdResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class BarcodeService {
    /**
     * Get Barcode Template By Id
     * @returns GetBarcodeTemplateByIdResponse Successful Response
     * @throws ApiError
     */
    public static getBarcodeTemplateById({
        requestBody,
    }: {
        requestBody: GetBarcodeTemplateByIdRequest,
    }): CancelablePromise<GetBarcodeTemplateByIdResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/barcode/template/get',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Get All Barcode Templates
     * @returns GetAllBarcodeTemplatesResponse Successful Response
     * @throws ApiError
     */
    public static getAllBarcodeTemplates(): CancelablePromise<GetAllBarcodeTemplatesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/barcode/template/get-all',
        });
    }
    /**
     * Create Barcode Template
     * @returns BarcodeTemplateCreateResponse Successful Response
     * @throws ApiError
     */
    public static createBarcodeTemplate({
        requestBody,
    }: {
        requestBody: BarcodeTemplateCreateRequest,
    }): CancelablePromise<BarcodeTemplateCreateResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/barcode/template/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Barcode Template
     * @returns BarcodeTemplateUpdateResponse Successful Response
     * @throws ApiError
     */
    public static updateBarcodeTemplate({
        requestBody,
    }: {
        requestBody: BarcodeTemplateUpdateRequest,
    }): CancelablePromise<BarcodeTemplateUpdateResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/barcode/template/update',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Delete Barcode Template
     * @returns BarcodeTemplateDeleteResponse Successful Response
     * @throws ApiError
     */
    public static deleteBarcodeTemplate({
        requestBody,
    }: {
        requestBody: BarcodeTemplateDeleteRequest,
    }): CancelablePromise<BarcodeTemplateDeleteResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/barcode/template/delete',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Get All Barcode Template Attributes
     * @returns GetAllBarcodeTemplateAttributesResponse Successful Response
     * @throws ApiError
     */
    public static getAllBarcodeTemplateAttributes(): CancelablePromise<GetAllBarcodeTemplateAttributesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/barcode/template/attribute/get-all',
        });
    }
    /**
     * Create Barcode Template Attribute
     * @returns CreateBarcodeTemplateAttributeResponse Successful Response
     * @throws ApiError
     */
    public static createBarcodeTemplateAttribute({
        requestBody,
    }: {
        requestBody: CreateBarcodeTemplateAttributeRequest,
    }): CancelablePromise<CreateBarcodeTemplateAttributeResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/barcode/template/attribute/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Get All Barcode Template Sizes
     * @returns GetAllBarcodeTemplateSizesResponse Successful Response
     * @throws ApiError
     */
    public static getAllBarcodeTemplateSizes(): CancelablePromise<GetAllBarcodeTemplateSizesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/barcode/template/size/get-all',
        });
    }
}
