| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业微信支付钱包详情 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWallet */ |
| | | export async function getEnterpriseWeChatPayWallet( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseWeChatPayWalletParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseWeChatPayWalletQueryResult>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWeChatPayWallet', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业微信钱包地区 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletAreas */ |
| | | export async function getEnterpriseWeChatPayWalletAreas( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseWeChatPayWalletAreasParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.WeChatPayArea[]>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletAreas', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业微信支付银行账户更新信息 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankAccountUpdateInfo */ |
| | | export async function getEnterpriseWeChatPayWalletBankAccountUpdateInfo( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseWeChatPayWalletBankAccountUpdateInfoParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseWeChatPayWalletBankAccountUpdateInfoQueryResult>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankAccountUpdateInfo', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业微信支付钱包支行分页列表 POST /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankBranches */ |
| | | export async function getEnterpriseWeChatPayWalletBankBranches( |
| | | body: API.GetEnterpriseWeChatPayWalletBankBranchesQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseWeChatPayWalletBankBranchesQueryResult>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankBranches', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业微信支付钱包银行城市列表 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankCities */ |
| | | export async function getEnterpriseWeChatPayWalletBankCities( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseWeChatPayWalletBankCitiesParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseWeChatPayWalletBankCitiesQueryItem[]>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankCities', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业微信支付钱包银行省份列表 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankProvinces */ |
| | | export async function getEnterpriseWeChatPayWalletBankProvinces( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseWeChatPayWalletBankProvincesParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseWeChatPayWalletBankProvincesQueryItem[]>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankProvinces', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | request: undefined, |
| | | ...params['request'], |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业微信支付钱包银行分页列表 POST /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBanks */ |
| | | export async function getEnterpriseWeChatPayWalletBanks( |
| | | body: API.GetEnterpriseWeChatPayWalletBanksQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseWeChatPayWalletBanksQueryResult>( |
| | | '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBanks', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 开通企业钱包 POST /api/user/enterpriseWallet/openEnterpriseWallet */ |
| | | export async function openEnterpriseWallet( |
| | | body: API.OpenEnterpriseWalletCommand, |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 开通企业微信钱包 POST /api/user/enterpriseWallet/openEnterpriseWeChatPayWallet */ |
| | | export async function openEnterpriseWeChatPayWallet( |
| | | body: API.OpenEnterpriseWeChatPayWalletCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.OpenEnterpriseWeChatPayWalletCommandResult>( |
| | | '/api/user/enterpriseWallet/openEnterpriseWeChatPayWallet', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 企业钱包充值 POST /api/user/enterpriseWallet/rechargeEnterpriseWallet */ |
| | | export async function rechargeEnterpriseWallet( |
| | | body: API.RechargeEnterpriseWalletCommand, |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 测试微信支付 POST /api/user/enterpriseWallet/testWeChatPay */ |
| | | export async function testWeChatPay(body: API.TestWeChatPayCommand, options?: API.RequestConfig) { |
| | | return request<boolean>('/api/user/enterpriseWallet/testWeChatPay', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 修改企业微信支付钱包结算账户 POST /api/user/enterpriseWallet/updateEnterpriseWeChatPayWalletBankAccountInfo */ |
| | | export async function updateEnterpriseWeChatPayWalletBankAccountInfo( |
| | | body: API.UpdateEnterpriseWeChatPayWalletBankAccountInfoCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.UpdateEnterpriseWeChatPayWalletBankAccountInfoCommandResult>( |
| | | '/api/user/enterpriseWallet/updateEnterpriseWeChatPayWalletBankAccountInfo', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |