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' ;
2024-07-12 01:17:06 +08:00
import { AdminResultCreatePayTransactionOutput } from '../models' ;
import { AdminResultGetRefundDomesticRefundByOutRefundNumberResponse } from '../models' ;
2024-06-15 13:02:35 +08:00
import { AdminResultObject } from '../models' ;
2024-07-12 01:17:06 +08:00
import { AdminResultSqlSugarPagedListSysWechatPay } from '../models' ;
2024-06-15 13:02:35 +08:00
import { AdminResultSysWechatPay } from '../models' ;
import { AdminResultWechatPayOutput } 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
/ * *
*
* @summary 获 取 支 付 记 录 列 表 ( 分 页 )
* @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 ,
} ;
} ,
/ * *
*
* @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
/ * *
*
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
* @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 ,
} ;
} ,
/ * *
*
* @summary 商 户 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
* @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-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 ,
} ;
} ,
/ * *
*
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
* @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 ,
} ;
} ,
/ * *
*
* @summary 退 款 申 请 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
* @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 }
* /
async apiSysWechatPayGenerateParametersForJsapiPayPost ( body? : WechatPayParaInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultObject > >> {
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
/ * *
*
* @summary 获 取 支 付 记 录 列 表 ( 分 页 )
* @param { PageSysWechatPayInput } [ body ] PageSysWechatPayInput
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPagePost ( body? : PageSysWechatPayInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultSqlSugarPagedListSysWechatPay > >> {
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 }
* /
async apiSysWechatPayPayCallBackPost ( options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultWechatPayOutput > >> {
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 ) ;
} ;
} ,
/ * *
*
* @summary 获 取 支 付 订 单 详 情 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayInfoTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultSysWechatPay > >> {
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 }
* /
2024-07-12 01:17:06 +08:00
async apiSysWechatPayPayPartnerTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultCreatePayTransactionOutput > >> {
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
/ * *
*
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
* @param { string } transactionId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultWechatPayOutput > >> {
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 ) ;
} ;
} ,
/ * *
*
* @summary 商 户 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
* @param { string } outTradeNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultWechatPayOutput > >> {
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-06-15 13:02:35 +08:00
/ * *
*
* @summary 微 信 支 付 统 一 下 单 获 取 Id ( 商 户 直 连 ) 🔖
* @param { WechatPayTransactionInput } [ body ]
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
2024-07-12 01:17:06 +08:00
async apiSysWechatPayPayTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultCreatePayTransactionOutput > >> {
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
/ * *
*
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
* @param { string } outRefundNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > Promise < AxiosResponse < AdminResultGetRefundDomesticRefundByOutRefundNumberResponse > >> {
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 ) ;
} ;
} ,
/ * *
*
* @summary 退 款 申 请 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
* @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 }
* /
async apiSysWechatPayGenerateParametersForJsapiPayPost ( body? : WechatPayParaInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultObject > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayGenerateParametersForJsapiPayPost ( body , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
2024-07-12 01:17:06 +08:00
/ * *
*
* @summary 获 取 支 付 记 录 列 表 ( 分 页 )
* @param { PageSysWechatPayInput } [ body ] PageSysWechatPayInput
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPagePost ( body? : PageSysWechatPayInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultSqlSugarPagedListSysWechatPay > > {
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 }
* /
async apiSysWechatPayPayCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultWechatPayOutput > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayCallBackPost ( options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
*
* @summary 获 取 支 付 订 单 详 情 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayInfoTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultSysWechatPay > > {
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 }
* /
2024-07-12 01:17:06 +08:00
async apiSysWechatPayPayPartnerTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultCreatePayTransactionOutput > > {
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
/ * *
*
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
* @param { string } transactionId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultWechatPayOutput > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
*
* @summary 商 户 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
* @param { string } outTradeNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultWechatPayOutput > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber , 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 }
* /
2024-07-12 01:17:06 +08:00
async apiSysWechatPayPayTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultCreatePayTransactionOutput > > {
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
/ * *
*
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
* @param { string } outRefundNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultGetRefundDomesticRefundByOutRefundNumberResponse > > {
return SysWechatPayApiFp ( configuration ) . apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
*
* @summary 退 款 申 请 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
* @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
* /
public async apiSysWechatPayGenerateParametersForJsapiPayPost ( body? : WechatPayParaInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultObject > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayGenerateParametersForJsapiPayPost ( body , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
2024-07-12 01:17:06 +08:00
/ * *
*
* @summary 获 取 支 付 记 录 列 表 ( 分 页 )
* @param { PageSysWechatPayInput } [ body ] PageSysWechatPayInput
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayPagePost ( body? : PageSysWechatPayInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultSqlSugarPagedListSysWechatPay > > {
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
* /
public async apiSysWechatPayPayCallBackPost ( options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultWechatPayOutput > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayCallBackPost ( options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *
*
* @summary 获 取 支 付 订 单 详 情 🔖
* @param { string } tradeId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayPayInfoTradeIdGet ( tradeId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultSysWechatPay > > {
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
* /
2024-07-12 01:17:06 +08:00
public async apiSysWechatPayPayPartnerTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultCreatePayTransactionOutput > > {
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
/ * *
*
* @summary 微 信 支 付 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}
* @param { string } transactionId
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultWechatPayOutput > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayTransactionByIdTransactionIdGet ( transactionId , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *
*
* @summary 商 户 订 单 号 查 询 ( 校 正 ) https : //api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}
* @param { string } outTradeNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultWechatPayOutput > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayPayTransactionByOutTradeNumberOutTradeNumberGet ( outTradeNumber , 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
* /
2024-07-12 01:17:06 +08:00
public async apiSysWechatPayPayTransactionPost ( body? : WechatPayTransactionInput , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultCreatePayTransactionOutput > > {
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
/ * *
*
* @summary 查 询 单 笔 退 款 ( 通 过 商 户 退 款 单 号 ) https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/query-by-out-refund-no.html
* @param { string } outRefundNumber
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @memberof SysWechatPayApi
* /
public async apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber : string , options? : AxiosRequestConfig ) : Promise < AxiosResponse < AdminResultGetRefundDomesticRefundByOutRefundNumberResponse > > {
return SysWechatPayApiFp ( this . configuration ) . apiSysWechatPayRefundByOutRefundNumberOutRefundNumberGet ( outRefundNumber , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *
*
* @summary 退 款 申 请 https : //pay.weixin.qq.com/docs/merchant/apis/mini-program-payment/create.html
* @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
}