2024-06-15 13:02:35 +08:00
/* tslint:disable */
/* eslint-disable */
/ * *
* Admin . NET 通 用 权 限 开 发 平 台
* 让 . NET 开 发 更 简 单 、 更 通 用 、 更 流 行 。 整 合 最 新 技 术 , 模 块 插 件 式 开 发 , 前 后 端 分 离 , 开 箱 即 用 。 < br / > < u > < b > < font color = 'FF0000' > 👮 不 得 利 用 本 项 目 从 事 危 害 国 家 安 全 、 扰 乱 社 会 秩 序 、 侵 犯 他 人 合 法 权 益 等 法 律 法 规 禁 止 的 活 动 ! 任 何 基 于 本 项 目 二 次 开 发 而 产 生 的 一 切 法 律 纠 纷 和 责 任 , 我 们 不 承 担 任 何 责 任 ! < / font > < / b > < / u >
*
* OpenAPI spec version : 1.0.0
*
*
* NOTE : This class is auto generated by the swagger code generator program .
* https : //github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually .
* /
import globalAxios , { AxiosResponse , AxiosInstance , AxiosRequestConfig } from 'axios' ;
import { Configuration } from '../configuration' ;
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from '../base' ;
2025-01-18 03:16:27 +08:00
import { AdminNETResultCreatePayTransactionNativeOutput } from '../models' ;
import { AdminNETResultCreatePayTransactionOutput } from '../models' ;
import { AdminNETResultGetRefundDomesticRefundByOutRefundNumberResponse } from '../models' ;
import { AdminNETResultListSysWechatRefund } from '../models' ;
import { AdminNETResultSqlSugarPagedListSysWechatPay } from '../models' ;
import { AdminNETResultSysWechatPay } from '../models' ;
import { AdminNETResultWechatPayOutput } from '../models' ;
2025-03-04 01:40:57 +08:00
import { AdminNETResultWechatPayParaOutput } from '../models' ;
2024-07-12 01:17:06 +08:00
import { PageSysWechatPayInput } from '../models' ;
import { RefundRequestInput } from '../models' ;
2024-06-15 13:02:35 +08:00
import { WechatPayParaInput } from '../models' ;
import { WechatPayTransactionInput } from '../models' ;
/ * *
* SysWechatPayApi - axios parameter creator
* @export
* /
export const SysWechatPayApiAxiosParamCreator = function ( configuration? : Configuration ) {
return {
/ * *
*
* @summary 生 成 JSAPI调起支付所需参数 🔖
* @param { WechatPayParaInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayGenerateParametersForJsapiPayPost : async ( body? : WechatPayParaInput , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/generateParametersForJsapiPay ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
localVarHeaderParameter [ 'Content-Type' ] = 'application/json-patch+json' ;
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 获 取 支 付 记 录 分 页 列 表 🔖
2024-07-12 01:17:06 +08:00
* @param { PageSysWechatPayInput } [ body ] PageSysWechatPayInput
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPagePost : async ( body? : PageSysWechatPayInput , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/page ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
localVarHeaderParameter [ 'Content-Type' ] = 'application/json-patch+json' ;
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayCallBackPost : async ( options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/payCallBack ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2025-02-25 10:19:01 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 ( 微 信 接 口 ) 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayInfoFromWechatTradeIdGet : async ( tradeId : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
// verify required parameter 'tradeId' is not null or undefined
if ( tradeId === null || tradeId === undefined ) {
throw new RequiredError ( 'tradeId' , 'Required parameter tradeId was null or undefined when calling apiSysWechatPayPayInfoFromWechatTradeIdGet.' ) ;
}
const localVarPath = ` /api/sysWechatPay/payInfoFromWechat/{tradeId} `
. replace ( ` { ${ "tradeId" } } ` , encodeURIComponent ( String ( tradeId ) ) ) ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'GET' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayInfoTradeIdGet : async ( tradeId : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
// verify required parameter 'tradeId' is not null or undefined
if ( tradeId === null || tradeId === undefined ) {
throw new RequiredError ( 'tradeId' , 'Required parameter tradeId was null or undefined when calling apiSysWechatPayPayInfoTradeIdGet.' ) ;
}
const localVarPath = ` /api/sysWechatPay/payInfo/{tradeId} `
. replace ( ` { ${ "tradeId" } } ` , encodeURIComponent ( String ( tradeId ) ) ) ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'GET' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 服 务 商 模 式 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayPartnerCallBackPost : async ( options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/payPartnerCallBack ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 服 务 商 模 式 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayPartnerTransactionPost : async ( body? : WechatPayTransactionInput , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/payPartnerTransaction ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
localVarHeaderParameter [ 'Content-Type' ] = 'application/json-patch+json' ;
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
2024-07-12 01:17:06 +08:00
* @param { string } transactionId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayTransactionByIdTransactionIdGet : async ( transactionId : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
// verify required parameter 'transactionId' is not null or undefined
if ( transactionId === null || transactionId === undefined ) {
throw new RequiredError ( 'transactionId' , 'Required parameter transactionId was null or undefined when calling apiSysWechatPayPayTransactionByIdTransactionIdGet.' ) ;
}
const localVarPath = ` /api/sysWechatPay/payTransactionById/{transactionId} `
. replace ( ` { ${ "transactionId" } } ` , encodeURIComponent ( String ( transactionId ) ) ) ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'GET' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 商 户 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
2024-07-12 01:17:06 +08:00
* @param { string } outTradeNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet : async ( outTradeNumber : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
// verify required parameter 'outTradeNumber' is not null or undefined
if ( outTradeNumber === null || outTradeNumber === undefined ) {
throw new RequiredError ( 'outTradeNumber' , 'Required parameter outTradeNumber was null or undefined when calling apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet.' ) ;
}
const localVarPath = ` /api/sysWechatPay/payTransactionByOutTradeNumber/{outTradeNumber} `
. replace ( ` { ${ "outTradeNumber" } } ` , encodeURIComponent ( String ( outTradeNumber ) ) ) ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'GET' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-09-05 02:35:06 +08:00
/ * *
*
2024-12-30 15:38:04 +08:00
* @summary 微 信 支 付 统 一 下 单 ( 商 户 直 连 ) Native 🔖
2024-09-05 02:35:06 +08:00
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayTransactionNativePost : async ( body? : WechatPayTransactionInput , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/payTransactionNative ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
localVarHeaderParameter [ 'Content-Type' ] = 'application/json-patch+json' ;
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 商 户 直 连 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayPayTransactionPost : async ( body? : WechatPayTransactionInput , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/payTransaction ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
localVarHeaderParameter [ 'Content-Type' ] = 'application/json-patch+json' ;
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ;
2024-07-12 01:17:06 +08:00
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
2024-07-12 01:17:06 +08:00
* @param { string } outRefundNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet : async ( outRefundNumber : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
// verify required parameter 'outRefundNumber' is not null or undefined
if ( outRefundNumber === null || outRefundNumber === undefined ) {
throw new RequiredError ( 'outRefundNumber' , 'Required parameter outRefundNumber was null or undefined when calling apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet.' ) ;
}
const localVarPath = ` /api/sysWechatPay/refundByOutRefundNumber/{outRefundNumber} `
. replace ( ` { ${ "outRefundNumber" } } ` , encodeURIComponent ( String ( outRefundNumber ) ) ) ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'GET' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-09-05 02:35:06 +08:00
/ * *
*
2025-02-25 10:19:01 +08:00
* @summary 微 信 退 款 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayRefundCallBackPost : async ( options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/refundCallBack ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
/ * *
*
2025-03-01 12:02:59 +08:00
* @summary 根 据 支 付 Id获取退款信息列表 🔖
2024-09-05 02:35:06 +08:00
* @param { string } [ transactionId ]
2025-02-25 10:19:01 +08:00
* @param { string } [ outTradeNumber ]
2024-09-05 02:35:06 +08:00
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-02-25 10:19:01 +08:00
apiSysWechatPayRefundListGet : async ( transactionId? : string , outTradeNumber? : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
2024-09-05 02:35:06 +08:00
const localVarPath = ` /api/sysWechatPay/refundList ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'GET' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
if ( transactionId !== undefined ) {
localVarQueryParameter [ 'transactionId' ] = transactionId ;
}
2025-02-25 10:19:01 +08:00
if ( outTradeNumber !== undefined ) {
localVarQueryParameter [ 'outTradeNumber' ] = outTradeNumber ;
}
2024-09-05 02:35:06 +08:00
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
2025-04-10 10:58:47 +08:00
* 必 填 字 段 : OutTradeNumber , Reason
2024-08-11 04:08:29 +08:00
* @summary 退 款 申 请 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
2024-07-12 01:17:06 +08:00
* @param { RefundRequestInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
apiSysWechatPayRefundPost : async ( body? : RefundRequestInput , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /api/sysWechatPay/refund ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
let baseOptions ;
if ( configuration ) {
baseOptions = configuration . baseOptions ;
}
const localVarRequestOptions :AxiosRequestConfig = { method : 'POST' , . . . baseOptions , . . . options } ;
const localVarHeaderParameter = { } as any ;
const localVarQueryParameter = { } as any ;
// authentication Bearer required
// http bearer authentication required
if ( configuration && configuration . accessToken ) {
const accessToken = typeof configuration . accessToken === 'function'
? await configuration . accessToken ( )
: await configuration . accessToken ;
localVarHeaderParameter [ "Authorization" ] = "Bearer " + accessToken ;
}
localVarHeaderParameter [ 'Content-Type' ] = 'application/json-patch+json' ;
const query = new URLSearchParams ( localVarUrlObj . search ) ;
for ( const key in localVarQueryParameter ) {
query . set ( key , localVarQueryParameter [ key ] ) ;
}
for ( const key in options . params ) {
query . set ( key , options . params [ key ] ) ;
}
localVarUrlObj . search = ( new URLSearchParams ( query ) ) . toString ( ) ;
let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
localVarRequestOptions . headers = { . . . localVarHeaderParameter , . . . headersFromBaseOptions , . . . options . headers } ;
const needsSerialization = ( typeof body !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
localVarRequestOptions . data = needsSerialization ? JSON . stringify ( body !== undefined ? body : { } ) : ( body || "" ) ;
2024-06-15 13:02:35 +08:00
return {
url : localVarUrlObj.pathname + localVarUrlObj . search + localVarUrlObj . hash ,
options : localVarRequestOptions ,
} ;
} ,
}
} ;
/ * *
* SysWechatPayApi - functional programming interface
* @export
* /
export const SysWechatPayApiFp = function ( configuration? : Configuration ) {
return {
/ * *
*
* @summary 生 成 JSAPI调起支付所需参数 🔖
* @param { WechatPayParaInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-03-04 01:40:57 +08:00
async apiSysWechatPayGenerateParametersForJsapiPayPost ( body? : WechatPayParaInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultWechatPayParaOutput > >> {
2024-06-15 13:02:35 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayGenerateParametersForJsapiPayPost ( body , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 获 取 支 付 记 录 分 页 列 表 🔖
2024-07-12 01:17:06 +08:00
* @param { PageSysWechatPayInput } [ body ] PageSysWechatPayInput
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPagePost ( body? : PageSysWechatPayInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultSqlSugarPagedListSysWechatPay > >> {
2024-07-12 01:17:06 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPagePost ( body , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayCallBackPost ( options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultWechatPayOutput > >> {
2024-06-15 13:02:35 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayCallBackPost ( options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2025-02-25 10:19:01 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 ( 微 信 接 口 ) 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayInfoFromWechatTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultSysWechatPay > >> {
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayInfoFromWechatTradeIdGet ( tradeId , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayInfoTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultSysWechatPay > >> {
2024-06-15 13:02:35 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayInfoTradeIdGet ( tradeId , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 服 务 商 模 式 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayPartnerCallBackPost ( options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < void > >> {
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayPartnerCallBackPost ( options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 服 务 商 模 式 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayPartnerTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultCreatePayTransactionOutput > >> {
2024-06-15 13:02:35 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayPartnerTransactionPost ( body , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
2024-07-12 01:17:06 +08:00
* @param { string } transactionId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultWechatPayOutput > >> {
2024-07-12 01:17:06 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 商 户 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
2024-07-12 01:17:06 +08:00
* @param { string } outTradeNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultWechatPayOutput > >> {
2024-07-12 01:17:06 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-09-05 02:35:06 +08:00
/ * *
*
2024-12-30 15:38:04 +08:00
* @summary 微 信 支 付 统 一 下 单 ( 商 户 直 连 ) Native 🔖
2024-09-05 02:35:06 +08:00
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionNativePost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultCreatePayTransactionNativeOutput > >> {
2024-09-05 02:35:06 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayTransactionNativePost ( body , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 商 户 直 连 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultCreatePayTransactionOutput > >> {
2024-06-15 13:02:35 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayPayTransactionPost ( body , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
2024-07-12 01:17:06 +08:00
* @param { string } outRefundNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultGetRefundDomesticRefundByOutRefundNumberResponse > >> {
2024-07-12 01:17:06 +08:00
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-09-05 02:35:06 +08:00
/ * *
*
2025-02-25 10:19:01 +08:00
* @summary 微 信 退 款 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayRefundCallBackPost ( options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultWechatPayOutput > >> {
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayRefundCallBackPost ( options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
/ * *
*
2025-03-01 12:02:59 +08:00
* @summary 根 据 支 付 Id获取退款信息列表 🔖
2024-09-05 02:35:06 +08:00
* @param { string } [ transactionId ]
2025-02-25 10:19:01 +08:00
* @param { string } [ outTradeNumber ]
2024-09-05 02:35:06 +08:00
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-02-25 10:19:01 +08:00
async apiSysWechatPayRefundListGet ( transactionId? : string , outTradeNumber? : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminNETResultListSysWechatRefund > >> {
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayRefundListGet ( transactionId , outTradeNumber , options ) ;
2024-09-05 02:35:06 +08:00
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
2025-04-10 10:58:47 +08:00
* 必 填 字 段 : OutTradeNumber , Reason
2024-08-11 04:08:29 +08:00
* @summary 退 款 申 请 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
2024-07-12 01:17:06 +08:00
* @param { RefundRequestInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayRefundPost ( body? : RefundRequestInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < void > >> {
const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator ( configuration ) . apiSysWechatPayRefundPost ( body , options ) ;
return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) = > {
const axiosRequestArgs :AxiosRequestConfig = { . . . localVarAxiosArgs . options , url : basePath + localVarAxiosArgs . url } ;
return axios . request ( axiosRequestArgs ) ;
} ;
} ,
2024-06-15 13:02:35 +08:00
}
} ;
/ * *
* SysWechatPayApi - factory interface
* @export
* /
export const SysWechatPayApiFactory = function ( configuration? : Configuration , basePath? : string , axios? : AxiosInstance ) {
return {
/ * *
*
* @summary 生 成 JSAPI调起支付所需参数 🔖
* @param { WechatPayParaInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-03-04 01:40:57 +08:00
async apiSysWechatPayGenerateParametersForJsapiPayPost ( body? : WechatPayParaInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayParaOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayGenerateParametersForJsapiPayPost ( body , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 获 取 支 付 记 录 分 页 列 表 🔖
2024-07-12 01:17:06 +08:00
* @param { PageSysWechatPayInput } [ body ] PageSysWechatPayInput
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPagePost ( body? : PageSysWechatPayInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultSqlSugarPagedListSysWechatPay > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPagePost ( body , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayCallBackPost ( options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2025-02-25 10:19:01 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 ( 微 信 接 口 ) 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayInfoFromWechatTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultSysWechatPay > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayInfoFromWechatTradeIdGet ( tradeId , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayInfoTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultSysWechatPay > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayInfoTradeIdGet ( tradeId , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 服 务 商 模 式 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayPartnerCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < void > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayPartnerCallBackPost ( options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 服 务 商 模 式 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayPartnerTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultCreatePayTransactionOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayPartnerTransactionPost ( body , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
2024-07-12 01:17:06 +08:00
* @param { string } transactionId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 商 户 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
2024-07-12 01:17:06 +08:00
* @param { string } outTradeNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-09-05 02:35:06 +08:00
/ * *
*
2024-12-30 15:38:04 +08:00
* @summary 微 信 支 付 统 一 下 单 ( 商 户 直 连 ) Native 🔖
2024-09-05 02:35:06 +08:00
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionNativePost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultCreatePayTransactionNativeOutput > > {
2024-09-05 02:35:06 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayTransactionNativePost ( body , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 商 户 直 连 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayPayTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultCreatePayTransactionOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayTransactionPost ( body , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
2024-07-12 01:17:06 +08:00
* @param { string } outRefundNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-01-18 03:16:27 +08:00
async apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultGetRefundDomesticRefundByOutRefundNumberResponse > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-09-05 02:35:06 +08:00
/ * *
*
2025-02-25 10:19:01 +08:00
* @summary 微 信 退 款 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayRefundCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayRefundCallBackPost ( options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
*
2025-03-01 12:02:59 +08:00
* @summary 根 据 支 付 Id获取退款信息列表 🔖
2024-09-05 02:35:06 +08:00
* @param { string } [ transactionId ]
2025-02-25 10:19:01 +08:00
* @param { string } [ outTradeNumber ]
2024-09-05 02:35:06 +08:00
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2025-02-25 10:19:01 +08:00
async apiSysWechatPayRefundListGet ( transactionId? : string , outTradeNumber? : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultListSysWechatRefund > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayRefundListGet ( transactionId , outTradeNumber , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
2024-09-05 02:35:06 +08:00
} ,
2024-07-12 01:17:06 +08:00
/ * *
2025-04-10 10:58:47 +08:00
* 必 填 字 段 : OutTradeNumber , Reason
2024-08-11 04:08:29 +08:00
* @summary 退 款 申 请 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
2024-07-12 01:17:06 +08:00
* @param { RefundRequestInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayRefundPost ( body? : RefundRequestInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < void > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayRefundPost ( body , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-06-15 13:02:35 +08:00
} ;
} ;
/ * *
* SysWechatPayApi - object - oriented interface
* @export
* @class SysWechatPayApi
* @extends { BaseAPI }
* /
export class SysWechatPayApi extends BaseAPI {
/ * *
*
* @summary 生 成 JSAPI调起支付所需参数 🔖
* @param { WechatPayParaInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-03-04 01:40:57 +08:00
public async apiSysWechatPayGenerateParametersForJsapiPayPost ( body? : WechatPayParaInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayParaOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayGenerateParametersForJsapiPayPost ( body , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 获 取 支 付 记 录 分 页 列 表 🔖
2024-07-12 01:17:06 +08:00
* @param { PageSysWechatPayInput } [ body ] PageSysWechatPayInput
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPagePost ( body? : PageSysWechatPayInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultSqlSugarPagedListSysWechatPay > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPagePost ( body , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPayCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayCallBackPost ( options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2025-02-25 10:19:01 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 ( 微 信 接 口 ) 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayPayInfoFromWechatTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultSysWechatPay > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayInfoFromWechatTradeIdGet ( tradeId , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 获 取 支 付 订 单 详 情 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPayInfoTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultSysWechatPay > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayInfoTradeIdGet ( tradeId , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *
*
* @summary 微 信 支 付 成 功 回 调 ( 服 务 商 模 式 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayPayPartnerCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < void > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayPartnerCallBackPost ( options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 服 务 商 模 式 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPayPartnerTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultCreatePayTransactionOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayPartnerTransactionPost ( body , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
2024-07-12 01:17:06 +08:00
* @param { string } transactionId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 商 户 订 单 号 查 询 ( 校 正 ) 🔖 https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
2024-07-12 01:17:06 +08:00
* @param { string } outTradeNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-09-05 02:35:06 +08:00
/ * *
*
2024-12-30 15:38:04 +08:00
* @summary 微 信 支 付 统 一 下 单 ( 商 户 直 连 ) Native 🔖
2024-09-05 02:35:06 +08:00
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPayTransactionNativePost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultCreatePayTransactionNativeOutput > > {
2024-09-05 02:35:06 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayTransactionNativePost ( body , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 商 户 直 连 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayPayTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultCreatePayTransactionOutput > > {
2024-06-15 13:02:35 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayTransactionPost ( body , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-07-12 01:17:06 +08:00
/ * *
*
2024-08-11 04:08:29 +08:00
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
2024-07-12 01:17:06 +08:00
* @param { string } outRefundNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-01-18 03:16:27 +08:00
public async apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultGetRefundDomesticRefundByOutRefundNumberResponse > > {
2024-07-12 01:17:06 +08:00
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-09-05 02:35:06 +08:00
/ * *
*
2025-02-25 10:19:01 +08:00
* @summary 微 信 退 款 回 调 ( 商 户 直 连 ) 🔖
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayRefundCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultWechatPayOutput > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayRefundCallBackPost ( options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *
*
2025-03-01 12:02:59 +08:00
* @summary 根 据 支 付 Id获取退款信息列表 🔖
2024-09-05 02:35:06 +08:00
* @param { string } [ transactionId ]
2025-02-25 10:19:01 +08:00
* @param { string } [ outTradeNumber ]
2024-09-05 02:35:06 +08:00
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
2025-02-25 10:19:01 +08:00
public async apiSysWechatPayRefundListGet ( transactionId? : string , outTradeNumber? : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminNETResultListSysWechatRefund > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayRefundListGet ( transactionId , outTradeNumber , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
2024-09-05 02:35:06 +08:00
}
2024-07-12 01:17:06 +08:00
/ * *
2025-04-10 10:58:47 +08:00
* 必 填 字 段 : OutTradeNumber , Reason
2024-08-11 04:08:29 +08:00
* @summary 退 款 申 请 🔖 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
2024-07-12 01:17:06 +08:00
* @param { RefundRequestInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayRefundPost ( body? : RefundRequestInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < void > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayRefundPost ( body , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-06-15 13:02:35 +08:00
}