wupengfei
14 小时以前 ce7ff0effee22807c8d29a31d6f5f2713d3bf95c
src/services/api/enterpriseWallet.ts
@@ -2,21 +2,6 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 支付宝资金二级商户KYB代进件 POST /api/user/enterpriseWallet/alipayFundExpandindirectCreate */
export async function alipayFundExpandindirectCreate(
  body: API.AlipayFundExpandindirectCreateCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectCreate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 支付宝资金二级商户KYB代进件状态通知 POST /api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify */
export async function alipayFundExpandindirectCreateNotify(
  body: {
@@ -62,22 +47,31 @@
  });
}
/** 支付宝资金二级商户KYB代进件文件上传接口 POST /api/user/enterpriseWallet/alipayFundExpandindirectImageUpload */
export async function alipayFundExpandindirectImageUpload(
/** 资金单据状态变更通知 POST /api/user/enterpriseWallet/alipayFundTransOrderChangedNotify */
export async function alipayFundTransOrderChangedNotify(
  body: {
    /** 产品码 */
    ProductCode?: string;
    /** 场景码 */
    BizScene?: string;
    /** 通知ID */
    notify_id?: string;
    /** 消息发送时的服务端时间 */
    utc_timestamp?: string;
    /** 消息接口名称 */
    msg_method?: string;
    /** 消息接受方的应用id */
    app_id?: string;
    /** 版本号(1.1版本为标准消息) */
    version?: string;
    /** 消息报文 */
    biz_content?: string;
    /** 签名 */
    sign?: string;
    /** 签名类型 */
    sign_type?: string;
    /** 编码集,该字符集为验签和解密所需要的字符集 */
    charset?: string;
  },
  File?: File,
  options?: API.RequestConfig
) {
  const formData = new FormData();
  if (File) {
    formData.append('File', File);
  }
  Object.keys(body).forEach((ele) => {
    const item = (body as any)[ele];
@@ -90,37 +84,10 @@
    }
  });
  return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectImageUpload', {
  return request<boolean>('/api/user/enterpriseWallet/alipayFundTransOrderChangedNotify', {
    method: 'POST',
    data: formData,
    requestType: 'form',
    ...(options || {}),
  });
}
/** 支付宝资金二级商户KYB代进件单取消接口 POST /api/user/enterpriseWallet/alipayFundExpandindirectOrderCancel */
export async function alipayFundExpandindirectOrderCancel(
  body: API.AlipayFundExpandindirectOrderCancelCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectOrderCancel', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 转账 POST /api/user/enterpriseWallet/alipayTransfer */
export async function alipayTransfer(body: API.AlipayTransferCommand, options?: API.RequestConfig) {
  return request<string>('/api/user/enterpriseWallet/alipayTransfer', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
@@ -198,22 +165,34 @@
  });
}
/** 查询支付宝资金二级商户KYB代进件单详情 GET /api/user/enterpriseWallet/getAlipayFundExpandindirectOrder */
export async function getAlipayFundExpandindirectOrder(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetAlipayFundExpandindirectOrderParams,
/** 支付宝资金二级商户KYB代进件 POST /api/user/enterpriseWallet/enterpriseWalletExpandindirectCreate */
export async function enterpriseWalletExpandindirectCreate(
  body: API.EnterpriseWalletExpandindirectCreateCommand,
  options?: API.RequestConfig
) {
  return request<API.GetAlipayFundExpandindirectOrderQueryResult>(
    '/api/user/enterpriseWallet/getAlipayFundExpandindirectOrder',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
  return request<string>('/api/user/enterpriseWallet/enterpriseWalletExpandindirectCreate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 支付宝资金二级商户KYB代进件单取消接口 POST /api/user/enterpriseWallet/enterpriseWalletExpandindirectOrderCancel */
export async function enterpriseWalletExpandindirectOrderCancel(
  body: API.EnterpriseWalletExpandindirectOrderCancelCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterpriseWallet/enterpriseWalletExpandindirectOrderCancel', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 支付宝通知回传 GET /api/user/enterpriseWallet/getAlipayNotify */
@@ -260,6 +239,42 @@
  );
}
/** 查询支付宝资金二级商户KYB代进件单详情 GET /api/user/enterpriseWallet/getEnterpriseWalletExpandindirectOrder */
export async function getEnterpriseWalletExpandindirectOrder(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseWalletExpandindirectOrderParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseWalletExpandindirectOrderQueryResult>(
    '/api/user/enterpriseWallet/getEnterpriseWalletExpandindirectOrder',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
/** 查询企业钱包交易详情 GET /api/user/enterpriseWallet/getEnterpriseWalletTransaction */
export async function getEnterpriseWalletTransaction(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseWalletTransactionParams,
  options?: API.RequestConfig
) {
  return request<API.GetEnterpriseWalletTransactionQueryResult>(
    '/api/user/enterpriseWallet/getEnterpriseWalletTransaction',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
/** 开通企业钱包 POST /api/user/enterpriseWallet/openEnterpriseWallet */
export async function openEnterpriseWallet(
  body: API.OpenEnterpriseWalletCommand,
@@ -283,12 +298,15 @@
  body: API.RechargeEnterpriseWalletCommand,
  options?: API.RequestConfig
) {
  return request<string>('/api/user/enterpriseWallet/rechargeEnterpriseWallet', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
  return request<API.RechargeEnterpriseWalletCommandResult>(
    '/api/user/enterpriseWallet/rechargeEnterpriseWallet',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json-patch+json',
      },
      data: body,
      ...(options || {}),
    }
  );
}