refactor(payment): remove vip status flow

This commit is contained in:
2026-06-26 18:48:22 +08:00
parent e9fc001a6f
commit b6f18a1ef3
9 changed files with 46 additions and 176 deletions
@@ -6,7 +6,6 @@ import {
type PayChannel,
PaymentOrderStatusResponse,
PaymentPlansResponse,
PaymentVipStatusResponse,
} from "@/data/dto/payment";
import { paymentMachine } from "@/stores/payment/payment-machine";
@@ -94,12 +93,6 @@ function createTestPaymentMachine(
planId: "vip_monthly",
}),
),
loadVipStatus: fromPromise(async () =>
PaymentVipStatusResponse.from({
isVip: true,
vipExpiresAt: "2026-07-25T00:00:00.000Z",
}),
),
},
});
}
@@ -163,7 +156,6 @@ describe("paymentMachine", () => {
expect(context.currentOrderId).toBe("pay_test_001");
expect(context.orderStatus).toBe("paid");
expect(context.launchNonce).toBe(1);
expect(context.vipStatus?.isVip).toBe(true);
actor.stop();
});