/** * IPaymentRepository 接口 */ import type { CreatePaymentOrderResponse, PayChannel, PaymentOrderStatusResponse, PaymentPlansResponse, } from "@/data/schemas/payment"; import type { Result } from "@/utils/result"; export interface IPaymentRepository { /** 获取套餐列表。 */ getPlans(): Promise>; /** 获取本地缓存套餐列表。 */ getCachedPlans(): Promise>; /** 获取咖啡打赏套餐列表。 */ getTipPlans(): Promise>; /** 清除本地缓存套餐列表。 */ clearCachedPlans(): Promise>; /** 创建支付订单。 */ createOrder( planId: string, payChannel: PayChannel, autoRenew: boolean, recipientCharacterId?: string, ): Promise>; /** 查询支付订单状态。 */ getOrderStatus(orderId: string): Promise>; }