/* eslint-disable */
|
// @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: {
|
/** 通知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;
|
},
|
options?: API.RequestConfig
|
) {
|
const formData = new FormData();
|
|
Object.keys(body).forEach((ele) => {
|
const item = (body as any)[ele];
|
|
if (item !== undefined && item !== null) {
|
formData.append(
|
ele,
|
typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
|
);
|
}
|
});
|
|
return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectCreateNotify', {
|
method: 'POST',
|
data: formData,
|
requestType: 'form',
|
...(options || {}),
|
});
|
}
|
|
/** 支付宝资金二级商户KYB代进件文件上传接口 POST /api/user/enterpriseWallet/alipayFundExpandindirectImageUpload */
|
export async function alipayFundExpandindirectImageUpload(
|
body: {
|
/** 产品码 */
|
ProductCode?: string;
|
/** 场景码 */
|
BizScene?: 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];
|
|
if (item !== undefined && item !== null) {
|
formData.append(
|
ele,
|
typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
|
);
|
}
|
});
|
|
return request<string>('/api/user/enterpriseWallet/alipayFundExpandindirectImageUpload', {
|
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 || {}),
|
});
|
}
|
|
/** 支付宝用户授权协议签约通知 POST /api/user/enterpriseWallet/alipayUserAgreementPageSignNotify */
|
export async function alipayUserAgreementPageSignNotify(
|
body: {
|
notify_id?: string;
|
notify_time?: string;
|
sign_type?: string;
|
sign?: string;
|
invalid_time?: string;
|
sign_scene?: string;
|
sign_time?: string;
|
alipay_user_id?: string;
|
status?: string;
|
forex_eligible?: string;
|
external_logon_id?: string;
|
app_id?: string;
|
auth_app_id?: string;
|
external_agreement_no?: string;
|
personal_product_code?: string;
|
valid_time?: string;
|
agreement_no?: string;
|
zm_open_id?: string;
|
alipay_open_id?: string;
|
merchant_app_id?: string;
|
alipay_logon_id?: string;
|
notify_type?: string;
|
zm_score?: string;
|
single_quota?: string;
|
login_token?: string;
|
device_id?: string;
|
credit_auth_mode?: string;
|
specified_sort_assets?: string;
|
partner_id?: string;
|
modify_type?: string;
|
next_deduct_time?: string;
|
},
|
options?: API.RequestConfig
|
) {
|
const formData = new FormData();
|
|
Object.keys(body).forEach((ele) => {
|
const item = (body as any)[ele];
|
|
if (item !== undefined && item !== null) {
|
formData.append(
|
ele,
|
typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
|
);
|
}
|
});
|
|
return request<boolean>('/api/user/enterpriseWallet/alipayUserAgreementPageSignNotify', {
|
method: 'POST',
|
data: formData,
|
requestType: 'form',
|
...(options || {}),
|
});
|
}
|
|
/** 关闭企业钱包 POST /api/user/enterpriseWallet/closeEnterpriseWallet */
|
export async function closeEnterpriseWallet(
|
body: API.CloseEnterpriseWalletCommand,
|
options?: API.RequestConfig
|
) {
|
return request<string>('/api/user/enterpriseWallet/closeEnterpriseWallet', {
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
});
|
}
|
|
/** 查询支付宝资金二级商户KYB代进件单详情 GET /api/user/enterpriseWallet/getAlipayFundExpandindirectOrder */
|
export async function getAlipayFundExpandindirectOrder(
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
params: API.APIgetAlipayFundExpandindirectOrderParams,
|
options?: API.RequestConfig
|
) {
|
return request<API.GetAlipayFundExpandindirectOrderQueryResult>(
|
'/api/user/enterpriseWallet/getAlipayFundExpandindirectOrder',
|
{
|
method: 'GET',
|
params: {
|
...params,
|
},
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 支付宝通知回传 GET /api/user/enterpriseWallet/getAlipayNotify */
|
export async function getAlipayNotify(
|
body: API.GetAlipayNotifyCommand,
|
options?: API.RequestConfig
|
) {
|
const formData = new FormData();
|
|
Object.keys(body).forEach((ele) => {
|
const item = (body as any)[ele];
|
|
if (item !== undefined && item !== null) {
|
formData.append(
|
ele,
|
typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
|
);
|
}
|
});
|
|
return request<boolean>('/api/user/enterpriseWallet/getAlipayNotify', {
|
method: 'GET',
|
data: formData,
|
requestType: 'form',
|
...(options || {}),
|
});
|
}
|
|
/** 查询企业钱包详情 GET /api/user/enterpriseWallet/getEnterpriseWallet */
|
export async function getEnterpriseWallet(
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
params: API.APIgetEnterpriseWalletParams,
|
options?: API.RequestConfig
|
) {
|
return request<API.GetEnterpriseWalletQueryResult>(
|
'/api/user/enterpriseWallet/getEnterpriseWallet',
|
{
|
method: 'GET',
|
params: {
|
...params,
|
},
|
...(options || {}),
|
}
|
);
|
}
|
|
/** 开通企业钱包 POST /api/user/enterpriseWallet/openEnterpriseWallet */
|
export async function openEnterpriseWallet(
|
body: API.OpenEnterpriseWalletCommand,
|
options?: API.RequestConfig
|
) {
|
return request<API.OpenEnterpriseWalletCommandResult>(
|
'/api/user/enterpriseWallet/openEnterpriseWallet',
|
{
|
method: 'POST',
|
headers: {
|
'Content-Type': 'application/json-patch+json',
|
},
|
data: body,
|
...(options || {}),
|
}
|
);
|
}
|