feat(payment): implement coffee tip plans and update payment flow

This commit is contained in:
2026-07-14 11:48:46 +08:00
parent f9c15bd91f
commit 3a4f24cb06
30 changed files with 632 additions and 56 deletions
+4
View File
@@ -7,7 +7,10 @@ import type {
PaymentPlan,
} from "@/data/dto/payment";
export type PaymentPlanCatalog = "default" | "tip";
export interface PaymentState {
planCatalog: PaymentPlanCatalog;
plans: PaymentPlan[];
isFirstRecharge: boolean;
selectedPlanId: string;
@@ -23,6 +26,7 @@ export interface PaymentState {
}
export const initialState: PaymentState = {
planCatalog: "default",
plans: [],
isFirstRecharge: false,
selectedPlanId: "",