/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CreateShippingWarehouseRequest } from '../models/CreateShippingWarehouseRequest';
import type { CreateShippingWarehouseResponse } from '../models/CreateShippingWarehouseResponse';
import type { DeleteShippingWarehouseRequest } from '../models/DeleteShippingWarehouseRequest';
import type { DeleteShippingWarehouseResponse } from '../models/DeleteShippingWarehouseResponse';
import type { GetAllShippingWarehousesResponse } from '../models/GetAllShippingWarehousesResponse';
import type { UpdateShippingWarehouseRequest } from '../models/UpdateShippingWarehouseRequest';
import type { UpdateShippingWarehouseResponse } from '../models/UpdateShippingWarehouseResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class ShippingWarehouseService {
    /**
     * Get All
     * @returns GetAllShippingWarehousesResponse Successful Response
     * @throws ApiError
     */
    public static getAllShippingWarehouses(): CancelablePromise<GetAllShippingWarehousesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/shipping-warehouse/get-all',
        });
    }
    /**
     * Create
     * @returns CreateShippingWarehouseResponse Successful Response
     * @throws ApiError
     */
    public static createShippingWarehouse({
        requestBody,
    }: {
        requestBody: CreateShippingWarehouseRequest,
    }): CancelablePromise<CreateShippingWarehouseResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/shipping-warehouse/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update
     * @returns UpdateShippingWarehouseResponse Successful Response
     * @throws ApiError
     */
    public static updateShippingWarehouse({
        requestBody,
    }: {
        requestBody: UpdateShippingWarehouseRequest,
    }): CancelablePromise<UpdateShippingWarehouseResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/shipping-warehouse/update',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Delete
     * @returns DeleteShippingWarehouseResponse Successful Response
     * @throws ApiError
     */
    public static deleteShippingWarehouse({
        requestBody,
    }: {
        requestBody: DeleteShippingWarehouseRequest,
    }): CancelablePromise<DeleteShippingWarehouseResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/shipping-warehouse/delete',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
