// @ts-ignore
/* eslint-disable */
import request from "../request";

/** 创建对账付款 POST /operation/createReconciliationPayment */
export async function createReconciliationPayment(
  body: BusinessAPI.ReconciliationPaymentCreateCmd,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.SingleResponseReconciliationPaymentVO>(
    "/operation/createReconciliationPayment",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** 对账付款删除 DELETE /operation/destroyReconciliationPayment */
export async function destroyReconciliationPayment(
  body: BusinessAPI.ReconciliationPaymentDestroyCmd,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.Response>(
    "/operation/destroyReconciliationPayment",
    {
      method: "DELETE",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** 对账付款列表 GET /operation/listReconciliationPayment */
export async function listReconciliationPayment(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BusinessAPI.listReconciliationPaymentParams,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.MultiResponseReconciliationPaymentVO>(
    "/operation/listReconciliationPayment",
    {
      method: "GET",
      params: {
        ...params,
        reconciliationPaymentListQry: undefined,
        ...params["reconciliationPaymentListQry"],
      },
      ...(options || {}),
    },
  );
}

/** 对账付款列表 GET /operation/pageReconciliationPayment */
export async function pageReconciliationPayment(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BusinessAPI.pageReconciliationPaymentParams,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.PageResponseReconciliationPaymentVO>(
    "/operation/pageReconciliationPayment",
    {
      method: "GET",
      params: {
        ...params,
        reconciliationPaymentPageQry: undefined,
        ...params["reconciliationPaymentPageQry"],
      },
      ...(options || {}),
    },
  );
}

/** 对账付款详情 GET /operation/showReconciliationPayment */
export async function showReconciliationPayment(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: BusinessAPI.showReconciliationPaymentParams,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.SingleResponseReconciliationPaymentVO>(
    "/operation/showReconciliationPayment",
    {
      method: "GET",
      params: {
        ...params,
        reconciliationPaymentShowQry: undefined,
        ...params["reconciliationPaymentShowQry"],
      },
      ...(options || {}),
    },
  );
}

/** 对账付款更新 PUT /operation/updateReconciliationPayment */
export async function updateReconciliationPayment(
  body: BusinessAPI.ReconciliationPaymentUpdateCmd,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.SingleResponseReconciliationPaymentVO>(
    "/operation/updateReconciliationPayment",
    {
      method: "PUT",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** 对账付款更新 PATCH /operation/updateReconciliationPayment */
export async function updateReconciliationPayment1(
  body: BusinessAPI.ReconciliationPaymentUpdateCmd,
  options?: { [key: string]: any },
) {
  return request<BusinessAPI.SingleResponseReconciliationPaymentVO>(
    "/operation/updateReconciliationPayment",
    {
      method: "PATCH",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    },
  );
}
