feat(payment): connect payment service flow
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Payment 状态机:事件联合
|
||||
*/
|
||||
import type { PayChannel } from "@/data/dto/payment";
|
||||
|
||||
export type PaymentEvent =
|
||||
| { type: "PaymentInit" }
|
||||
| { type: "PaymentPlanSelected"; planId: string }
|
||||
| { type: "PaymentPayChannelChanged"; payChannel: PayChannel }
|
||||
| { type: "PaymentAutoRenewChanged"; autoRenew: boolean }
|
||||
| { type: "PaymentAgreementChanged"; agreed: boolean }
|
||||
| { type: "PaymentCreateOrderSubmitted" }
|
||||
| { type: "PaymentRefreshVipStatus" }
|
||||
| { type: "PaymentLaunchFailed"; errorMessage: string }
|
||||
| { type: "PaymentErrorCleared" }
|
||||
| { type: "PaymentReset" };
|
||||
Reference in New Issue
Block a user