feat(data): add paywall payment APIs

This commit is contained in:
2026-06-18 12:53:06 +08:00
parent 567d3f9184
commit 35c30ac31e
38 changed files with 840 additions and 10 deletions
@@ -0,0 +1,20 @@
/**
* 创建支付订单请求
*/
import { z } from "zod";
export const PayChannelSchema = z.enum(["stripe", "ezpay"]);
export const CreatePaymentOrderRequestSchema = z.object({
planId: z.string(),
payChannel: PayChannelSchema,
autoRenew: z.boolean(),
});
export type PayChannel = z.output<typeof PayChannelSchema>;
export type CreatePaymentOrderRequestInput = z.input<
typeof CreatePaymentOrderRequestSchema
>;
export type CreatePaymentOrderRequestData = z.output<
typeof CreatePaymentOrderRequestSchema
>;