/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { AdminPlaceOrderDto } from "../models/AdminPlaceOrderDto";
import type { UnfreezeWalletDto } from "../models/UnfreezeWalletDto";
import type { WithdrawOrderWalletDto } from "../models/WithdrawOrderWalletDto";
import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";
export class AdminsOrdersService {
  /**
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerChangeDraftOrdersPaymentStatus(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "PUT",
      url: "/v1/admins/orders/payment-status",
    });
  }
  /**
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerCancelPendingOrdersPaymentStatus(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "PUT",
      url: "/v1/admins/orders/cancel-pending-status",
    });
  }
  /**
   * @param requestBody
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerUnFreezeUserHomnifiWallet(
    requestBody: UnfreezeWalletDto,
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "PUT",
      url: "/v1/admins/orders/refund-payment",
      body: requestBody,
      mediaType: "application/json",
    });
  }
  /**
   * @param requestBody
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerWithdrawOrderAmount(
    requestBody: WithdrawOrderWalletDto,
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "PUT",
      url: "/v1/admins/orders/complete-payment",
      body: requestBody,
      mediaType: "application/json",
    });
  }
  /**
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerChangeDraftShippingOrdersPaymentStatus(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "PUT",
      url: "/v1/admins/orders/shippings/payment-status",
    });
  }
  /**
   * @param requestBody
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerUnFreezeUserShippingHomnifiWallet(
    requestBody: UnfreezeWalletDto,
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "PUT",
      url: "/v1/admins/orders/shippings/refund-payment",
      body: requestBody,
      mediaType: "application/json",
    });
  }
  /**
   * @param requestBody
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerWithdrawShippingOrderAmount(
    requestBody: WithdrawOrderWalletDto,
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "PUT",
      url: "/v1/admins/orders/shippings/complete-payment",
      body: requestBody,
      mediaType: "application/json",
    });
  }
  /**
   * @param requestBody
   * @returns any
   * @throws ApiError
   */
  public static adminOrdersControllerPlaceOrder(
    requestBody: AdminPlaceOrderDto,
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/v1/admins/orders/place-order",
      body: requestBody,
      mediaType: "application/json",
    });
  }
}
