/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */

import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";
export class ShipmentsService {
  /**
   * @param orderId
   * @returns any
   * @throws ApiError
   */
  public static shipmentsControllerGetAllShipmentItems(
    orderId: string,
    status?: "in-house" | "returned",
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "GET",
      url: "/v1/shipping/{orderId}/shipment-items",
      path: {
        orderId: orderId,
      },
      query: {
        status: status,
      },
      isServerAction: true,
    });
  }
}
