refactor(data): replace schema classes with readonly models

This commit is contained in:
2026-07-17 13:21:40 +08:00
parent 3437312167
commit ae97366a4a
103 changed files with 1220 additions and 2117 deletions
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { PaymentPlan } from "@/data/schemas/payment";
import { PaymentPlan, PaymentPlanSchema } from "@/data/schemas/payment";
import type { PaymentPlanInput } from "@/data/schemas/payment/payment_plan";
import {
@@ -10,7 +10,7 @@ import {
} from "../tip-screen.helpers";
function makePlan(input: Partial<PaymentPlanInput>): PaymentPlan {
return PaymentPlan.from({
return PaymentPlanSchema.parse({
planId: "coins_100",
planName: "Coins",
orderType: "dol",