|
@@ -29,13 +29,13 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
return {
|
|
return {
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 生成JSAPI调起支付所需参数
|
|
|
|
|
- * @param {WechatPayParaInput} [body]
|
|
|
|
|
|
|
+ * @summary 微信支付统一下单获取Id(服务商模式)
|
|
|
|
|
+ * @param {WechatPayTransactionInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
*/
|
|
|
- apiSysWechatPayGenerateParametersForJsapiPayPost: async (body?: WechatPayParaInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
- const localVarPath = `/api/sysWechatPay/generateParametersForJsapiPay`;
|
|
|
|
|
|
|
+ apiSysWechatPayCreatePayPartnerTransactionPost: async (body?: WechatPayTransactionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
+ const localVarPath = `/api/sysWechatPay/createPayPartnerTransaction`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
let baseOptions;
|
|
@@ -70,12 +70,13 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 微信支付成功回调(商户直连)
|
|
|
|
|
|
|
+ * @summary 微信支付统一下单获取Id(商户直连)
|
|
|
|
|
+ * @param {WechatPayTransactionInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
*/
|
|
|
- apiSysWechatPayPayCallBackPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
- const localVarPath = `/api/sysWechatPay/payCallBack`;
|
|
|
|
|
|
|
+ apiSysWechatPayCreatePayTransactionPost: async (body?: WechatPayTransactionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
+ const localVarPath = `/api/sysWechatPay/createPayTransaction`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
let baseOptions;
|
|
@@ -88,6 +89,8 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
|
|
|
|
|
|
|
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
+
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -98,6 +101,8 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 {
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
@@ -106,30 +111,27 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 获取支付订单详情
|
|
|
|
|
- * @param {string} tradeId
|
|
|
|
|
|
|
+ * @summary 生成JSAPI调起支付所需参数
|
|
|
|
|
+ * @param {WechatPayParaInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @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)));
|
|
|
|
|
|
|
+ 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.
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
let baseOptions;
|
|
|
if (configuration) {
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
}
|
|
|
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
|
|
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
|
|
|
|
|
|
|
+ localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
+
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -140,6 +142,8 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 {
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
@@ -148,12 +152,12 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 微信支付成功回调(服务商模式)
|
|
|
|
|
|
|
+ * @summary 微信支付成功回调(商户直连)
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
*/
|
|
|
- apiSysWechatPayPayPartnerCallBackPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
- const localVarPath = `/api/sysWechatPay/payPartnerCallBack`;
|
|
|
|
|
|
|
+ apiSysWechatPayPayCallBackPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
+ const localVarPath = `/api/sysWechatPay/payCallBack`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
let baseOptions;
|
|
@@ -184,27 +188,30 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 微信支付统一下单获取Id(服务商模式)
|
|
|
|
|
- * @param {WechatPayTransactionInput} [body]
|
|
|
|
|
|
|
+ * @summary 获取支付订单详情
|
|
|
|
|
+ * @param {string} tradeId
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
*/
|
|
|
- apiSysWechatPayPayPartnerTransactionPost: async (body?: WechatPayTransactionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
- const localVarPath = `/api/sysWechatPay/payPartnerTransaction`;
|
|
|
|
|
|
|
+ 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.
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
let baseOptions;
|
|
|
if (configuration) {
|
|
if (configuration) {
|
|
|
baseOptions = configuration.baseOptions;
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
}
|
|
|
- const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
|
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
|
|
|
|
|
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
-
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -215,8 +222,6 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 {
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
@@ -225,13 +230,12 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 微信支付统一下单获取Id(商户直连)
|
|
|
|
|
- * @param {WechatPayTransactionInput} [body]
|
|
|
|
|
|
|
+ * @summary 微信支付成功回调(服务商模式)
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
*/
|
|
|
- apiSysWechatPayPayTransactionPost: async (body?: WechatPayTransactionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
- const localVarPath = `/api/sysWechatPay/payTransaction`;
|
|
|
|
|
|
|
+ apiSysWechatPayPayPartnerCallBackPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
+ const localVarPath = `/api/sysWechatPay/payPartnerCallBack`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
let baseOptions;
|
|
let baseOptions;
|
|
@@ -244,8 +248,6 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
// authentication Bearer required
|
|
|
|
|
|
|
|
- localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
-
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
for (const key in localVarQueryParameter) {
|
|
for (const key in localVarQueryParameter) {
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -256,8 +258,6 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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 {
|
|
return {
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
@@ -273,6 +273,34 @@ export const SysWechatPayApiAxiosParamCreator = function (configuration?: Config
|
|
|
*/
|
|
*/
|
|
|
export const SysWechatPayApiFp = function(configuration?: Configuration) {
|
|
export const SysWechatPayApiFp = function(configuration?: Configuration) {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ /**
|
|
|
|
|
+ *
|
|
|
|
|
+ * @summary 微信支付统一下单获取Id(服务商模式)
|
|
|
|
|
+ * @param {WechatPayTransactionInput} [body]
|
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
|
+ */
|
|
|
|
|
+ async apiSysWechatPayCreatePayPartnerTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
|
|
|
|
|
+ const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator(configuration).apiSysWechatPayCreatePayPartnerTransactionPost(body, 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}
|
|
|
|
|
+ */
|
|
|
|
|
+ async apiSysWechatPayCreatePayTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
|
|
|
|
|
+ const localVarAxiosArgs = await SysWechatPayApiAxiosParamCreator(configuration).apiSysWechatPayCreatePayTransactionPost(body, options);
|
|
|
|
|
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
+ return axios.request(axiosRequestArgs);
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 生成JSAPI调起支付所需参数
|
|
* @summary 生成JSAPI调起支付所需参数
|
|
@@ -327,6 +355,15 @@ export const SysWechatPayApiFp = function(configuration?: Configuration) {
|
|
|
return axios.request(axiosRequestArgs);
|
|
return axios.request(axiosRequestArgs);
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * SysWechatPayApi - factory interface
|
|
|
|
|
+ * @export
|
|
|
|
|
+ */
|
|
|
|
|
+export const SysWechatPayApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
|
|
|
+ return {
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 微信支付统一下单获取Id(服务商模式)
|
|
* @summary 微信支付统一下单获取Id(服务商模式)
|
|
@@ -334,12 +371,8 @@ export const SysWechatPayApiFp = function(configuration?: Configuration) {
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
*/
|
|
|
- async apiSysWechatPayPayPartnerTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
|
|
|
|
|
- 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);
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ async apiSysWechatPayCreatePayPartnerTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
+ return SysWechatPayApiFp(configuration).apiSysWechatPayCreatePayPartnerTransactionPost(body, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
@@ -348,22 +381,9 @@ export const SysWechatPayApiFp = function(configuration?: Configuration) {
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
*/
|
|
|
- async apiSysWechatPayPayTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
|
|
|
|
|
- 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);
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ async apiSysWechatPayCreatePayTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
+ return SysWechatPayApiFp(configuration).apiSysWechatPayCreatePayTransactionPost(body, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
},
|
|
|
- }
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-/**
|
|
|
|
|
- * SysWechatPayApi - factory interface
|
|
|
|
|
- * @export
|
|
|
|
|
- */
|
|
|
|
|
-export const SysWechatPayApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
|
|
|
- return {
|
|
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
* @summary 生成JSAPI调起支付所需参数
|
|
* @summary 生成JSAPI调起支付所需参数
|
|
@@ -402,26 +422,6 @@ export const SysWechatPayApiFactory = function (configuration?: Configuration, b
|
|
|
async apiSysWechatPayPayPartnerCallBackPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
async apiSysWechatPayPayPartnerCallBackPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
return SysWechatPayApiFp(configuration).apiSysWechatPayPayPartnerCallBackPost(options).then((request) => request(axios, basePath));
|
|
return SysWechatPayApiFp(configuration).apiSysWechatPayPayPartnerCallBackPost(options).then((request) => request(axios, basePath));
|
|
|
},
|
|
},
|
|
|
- /**
|
|
|
|
|
- *
|
|
|
|
|
- * @summary 微信支付统一下单获取Id(服务商模式)
|
|
|
|
|
- * @param {WechatPayTransactionInput} [body]
|
|
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
|
|
- * @throws {RequiredError}
|
|
|
|
|
- */
|
|
|
|
|
- async apiSysWechatPayPayPartnerTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
- return SysWechatPayApiFp(configuration).apiSysWechatPayPayPartnerTransactionPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
- },
|
|
|
|
|
- /**
|
|
|
|
|
- *
|
|
|
|
|
- * @summary 微信支付统一下单获取Id(商户直连)
|
|
|
|
|
- * @param {WechatPayTransactionInput} [body]
|
|
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
|
|
- * @throws {RequiredError}
|
|
|
|
|
- */
|
|
|
|
|
- async apiSysWechatPayPayTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
- return SysWechatPayApiFp(configuration).apiSysWechatPayPayTransactionPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
- },
|
|
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -434,66 +434,66 @@ export const SysWechatPayApiFactory = function (configuration?: Configuration, b
|
|
|
export class SysWechatPayApi extends BaseAPI {
|
|
export class SysWechatPayApi extends BaseAPI {
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 生成JSAPI调起支付所需参数
|
|
|
|
|
- * @param {WechatPayParaInput} [body]
|
|
|
|
|
|
|
+ * @summary 微信支付统一下单获取Id(服务商模式)
|
|
|
|
|
+ * @param {WechatPayTransactionInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysWechatPayApi
|
|
* @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));
|
|
|
|
|
|
|
+ public async apiSysWechatPayCreatePayPartnerTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
+ return SysWechatPayApiFp(this.configuration).apiSysWechatPayCreatePayPartnerTransactionPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 微信支付成功回调(商户直连)
|
|
|
|
|
|
|
+ * @summary 微信支付统一下单获取Id(商户直连)
|
|
|
|
|
+ * @param {WechatPayTransactionInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysWechatPayApi
|
|
* @memberof SysWechatPayApi
|
|
|
*/
|
|
*/
|
|
|
- public async apiSysWechatPayPayCallBackPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultWechatPayOutput>> {
|
|
|
|
|
- return SysWechatPayApiFp(this.configuration).apiSysWechatPayPayCallBackPost(options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
|
+ public async apiSysWechatPayCreatePayTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
+ return SysWechatPayApiFp(this.configuration).apiSysWechatPayCreatePayTransactionPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 获取支付订单详情
|
|
|
|
|
- * @param {string} tradeId
|
|
|
|
|
|
|
+ * @summary 生成JSAPI调起支付所需参数
|
|
|
|
|
+ * @param {WechatPayParaInput} [body]
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysWechatPayApi
|
|
* @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));
|
|
|
|
|
|
|
+ public async apiSysWechatPayGenerateParametersForJsapiPayPost(body?: WechatPayParaInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
+ return SysWechatPayApiFp(this.configuration).apiSysWechatPayGenerateParametersForJsapiPayPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 微信支付成功回调(服务商模式)
|
|
|
|
|
|
|
+ * @summary 微信支付成功回调(商户直连)
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysWechatPayApi
|
|
* @memberof SysWechatPayApi
|
|
|
*/
|
|
*/
|
|
|
- public async apiSysWechatPayPayPartnerCallBackPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
- return SysWechatPayApiFp(this.configuration).apiSysWechatPayPayPartnerCallBackPost(options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
|
+ public async apiSysWechatPayPayCallBackPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultWechatPayOutput>> {
|
|
|
|
|
+ return SysWechatPayApiFp(this.configuration).apiSysWechatPayPayCallBackPost(options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
- * @summary 微信支付统一下单获取Id(服务商模式)
|
|
|
|
|
- * @param {WechatPayTransactionInput} [body]
|
|
|
|
|
|
|
+ * @summary 获取支付订单详情
|
|
|
|
|
+ * @param {string} tradeId
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysWechatPayApi
|
|
* @memberof SysWechatPayApi
|
|
|
*/
|
|
*/
|
|
|
- public async apiSysWechatPayPayPartnerTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
- return SysWechatPayApiFp(this.configuration).apiSysWechatPayPayPartnerTransactionPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
|
+ 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 微信支付统一下单获取Id(商户直连)
|
|
|
|
|
- * @param {WechatPayTransactionInput} [body]
|
|
|
|
|
|
|
+ * @summary 微信支付成功回调(服务商模式)
|
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
|
* @memberof SysWechatPayApi
|
|
* @memberof SysWechatPayApi
|
|
|
*/
|
|
*/
|
|
|
- public async apiSysWechatPayPayTransactionPost(body?: WechatPayTransactionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
|
|
|
|
|
- return SysWechatPayApiFp(this.configuration).apiSysWechatPayPayTransactionPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
|
+ public async apiSysWechatPayPayPartnerCallBackPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
+ return SysWechatPayApiFp(this.configuration).apiSysWechatPayPayPartnerCallBackPost(options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|