From 06950822649169e83f0afd7cd4c09b0771084f66 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 06 三月 2025 17:43:24 +0800
Subject: [PATCH] release: @life-payment/core v0.0.2
---
packages/services/api/LifePay.ts | 122 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 120 insertions(+), 2 deletions(-)
diff --git a/packages/services/api/LifePay.ts b/packages/services/api/LifePay.ts
index 09b6036..1a41c6e 100644
--- a/packages/services/api/LifePay.ts
+++ b/packages/services/api/LifePay.ts
@@ -7,7 +7,7 @@
body: API.LifeElectricDataCreateLifePayOrderInput,
options?: API.RequestConfig
) {
- return request<any>('/api/LifePay/CreateLifePayElectricOrder', {
+ return request<API.CreateLifePayOrderOutput>('/api/LifePay/CreateLifePayElectricOrder', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -22,7 +22,7 @@
body: API.LifePhoneDataCreateLifePayOrderInput,
options?: API.RequestConfig
) {
- return request<any>('/api/LifePay/CreateLifePayPhoneOrder', {
+ return request<API.CreateLifePayOrderOutput>('/api/LifePay/CreateLifePayPhoneOrder', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -40,6 +40,59 @@
});
}
+/** 鑾峰彇鐢佃垂鍏呭�煎尯鍩� GET /api/LifePay/GetElectricSupportArea */
+export async function getElectricSupportArea(options?: API.RequestConfig) {
+ return request<API.ElectricSupportAreaResponse>('/api/LifePay/GetElectricSupportArea', {
+ method: 'GET',
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇璁㈠崟鍒嗛〉鏁版嵁 POST /api/LifePay/GetLifePayOrderPage */
+export async function getLifePayOrderPage(
+ body: API.QueryLifePayOrderListInput,
+ options?: API.RequestConfig
+) {
+ return request<API.LifePayOrderListOutputPageOutput>('/api/LifePay/GetLifePayOrderPage', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇寰俊鏀粯鐨凧SAPI POST /api/LifePay/GetPayOrderForJsAPI */
+export async function getPayOrderForJsAPI(
+ body: API.GetPayOrderForJsAPIInput,
+ options?: API.RequestConfig
+) {
+ return request<API.ModelPayPrePayId>('/api/LifePay/GetPayOrderForJsAPI', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鏍规嵁璁㈠崟鍙疯幏鍙栨敮浠樼姸鎬� GET /api/LifePay/GetPayStatusByOrderNo */
+export async function getPayStatusByOrderNo(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetPayStatusByOrderNoParams,
+ options?: API.RequestConfig
+) {
+ return request<API.LifePayStatusEnum>('/api/LifePay/GetPayStatusByOrderNo', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
/** 鑾峰彇璇濊垂闈㈠�� GET /api/LifePay/GetPhoneParValue */
export async function getPhoneParValue(options?: API.RequestConfig) {
return request<API.PhoneParValueResponse>('/api/LifePay/GetPhoneParValue', {
@@ -47,3 +100,68 @@
...(options || {}),
});
}
+
+/** 鑾峰彇鎶樻墸 GET /api/LifePay/GetRate */
+export async function getRate(options?: API.RequestConfig) {
+ return request<API.LifePayRateListOutput[]>('/api/LifePay/GetRate', {
+ method: 'GET',
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鎴戠殑璁㈠崟鍒嗛〉鏁版嵁 POST /api/LifePay/GetUserLifePayOrderPage */
+export async function getUserLifePayOrderPage(
+ body: API.QueryLifePayOrderListInput,
+ options?: API.RequestConfig
+) {
+ return request<API.UserLifePayOrderOutputPageOutput>('/api/LifePay/GetUserLifePayOrderPage', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鐢ㄦ埛鍒嗛〉鏁版嵁 POST /api/LifePay/GetUserPage */
+export async function getUserPage(body: API.PageInput, options?: API.RequestConfig) {
+ return request<API.UserListOutputPageOutput>('/api/LifePay/GetUserPage', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 閫�娆剧敓娲荤即璐硅鍗� POST /api/LifePay/RefundLifePayOrder */
+export async function refundLifePayOrder(
+ body: API.RefundLifePayOrderInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/RefundLifePayOrder', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 璁剧疆鐢熸椿缂磋垂鏀粯绫诲瀷 POST /api/LifePay/SetLifePayOrderPayType */
+export async function setLifePayOrderPayType(
+ body: API.SetLifePayOrderPayTypeInput,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/LifePay/SetLifePayOrderPayType', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
--
Gitblit v1.9.1