🐛 fix(config): Bugs
This commit is contained in:
@@ -12,7 +12,7 @@ export async function getAlipayF2FPaymentConfig(options?: { [key: string]: any }
|
||||
|
||||
/** Update alipay f2f payment config PUT /v1/admin/payment/alipay_f2f */
|
||||
export async function updateAlipayF2FPaymentConfig(
|
||||
body: API.PaymentConfig,
|
||||
body: API.UpdateAlipayF2fRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/payment/alipay_f2f', {
|
||||
@@ -46,7 +46,7 @@ export async function getEpayPaymentConfig(options?: { [key: string]: any }) {
|
||||
|
||||
/** Update epay payment config PUT /v1/admin/payment/epay */
|
||||
export async function updateEpayPaymentConfig(
|
||||
body: API.PaymentConfig,
|
||||
body: API.UpdateEpayRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/payment/epay', {
|
||||
@@ -69,7 +69,7 @@ export async function getStripeAlipayPaymentConfig(options?: { [key: string]: an
|
||||
|
||||
/** Update stripe alipay payment config PUT /v1/admin/payment/stripe_alipay */
|
||||
export async function updateStripeAlipayPaymentConfig(
|
||||
body: API.PaymentConfig,
|
||||
body: API.UpdateStripeRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/payment/stripe_alipay', {
|
||||
@@ -95,7 +95,7 @@ export async function getStripeWeChatPayPaymentConfig(options?: { [key: string]:
|
||||
|
||||
/** Update stripe wechat pay payment config PUT /v1/admin/payment/stripe_wechat_pay */
|
||||
export async function updateStripeWeChatPayPaymentConfig(
|
||||
body: API.PaymentConfig,
|
||||
body: API.UpdateStripeRequest,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: any }>('/v1/admin/payment/stripe_wechat_pay', {
|
||||
|
||||
+62
-1
@@ -1,4 +1,12 @@
|
||||
declare namespace API {
|
||||
type AlipayF2FConfig = {
|
||||
app_id: string;
|
||||
private_key: string;
|
||||
public_key: string;
|
||||
invoice_name: string;
|
||||
sandbox: boolean;
|
||||
};
|
||||
|
||||
type Announcement = {
|
||||
id: number;
|
||||
title: string;
|
||||
@@ -183,7 +191,6 @@ declare namespace API {
|
||||
type CurrencyConfig = {
|
||||
currency_unit: string;
|
||||
currency_symbol: string;
|
||||
access_key: string;
|
||||
};
|
||||
|
||||
type DeleteAnnouncementRequest = {
|
||||
@@ -244,6 +251,12 @@ declare namespace API {
|
||||
expiration_email_template: string;
|
||||
};
|
||||
|
||||
type EpayConfig = {
|
||||
pid: string;
|
||||
url: string;
|
||||
key: string;
|
||||
};
|
||||
|
||||
type Follow = {
|
||||
id: number;
|
||||
ticket_id: number;
|
||||
@@ -576,6 +589,8 @@ declare namespace API {
|
||||
sni: string;
|
||||
allow_insecure: boolean;
|
||||
fingerprint: string;
|
||||
reality_server_addr: string;
|
||||
reality_server_port: number;
|
||||
reality_private_key: string;
|
||||
reality_public_key: string;
|
||||
reality_short_id: string;
|
||||
@@ -627,6 +642,13 @@ declare namespace API {
|
||||
site_logo: string;
|
||||
};
|
||||
|
||||
type StripeConfig = {
|
||||
public_key: string;
|
||||
secret_key: string;
|
||||
webhook_secret: string;
|
||||
payment: string;
|
||||
};
|
||||
|
||||
type Subscribe = {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -716,6 +738,19 @@ declare namespace API {
|
||||
security_config: SecurityConfig;
|
||||
};
|
||||
|
||||
type UpdateAlipayF2fRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
mark: string;
|
||||
icon?: string;
|
||||
domain?: string;
|
||||
config: AlipayF2FConfig;
|
||||
fee_mode: number;
|
||||
fee_percent?: number;
|
||||
fee_amount?: number;
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
type UpdateAnnouncementEnableRequest = {
|
||||
id: number;
|
||||
enable: boolean;
|
||||
@@ -759,6 +794,19 @@ declare namespace API {
|
||||
show: boolean;
|
||||
};
|
||||
|
||||
type UpdateEpayRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
mark: string;
|
||||
icon?: string;
|
||||
domain?: string;
|
||||
config: EpayConfig;
|
||||
fee_mode: number;
|
||||
fee_percent?: number;
|
||||
fee_amount?: number;
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
type UpdateNodeGroupRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -787,6 +835,19 @@ declare namespace API {
|
||||
trade_no?: string;
|
||||
};
|
||||
|
||||
type UpdateStripeRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
mark: string;
|
||||
icon?: string;
|
||||
domain?: string;
|
||||
config: StripeConfig;
|
||||
fee_mode: number;
|
||||
fee_percent?: number;
|
||||
fee_amount?: number;
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
type UpdateSubscribeGroupRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user