refactor: purchase init callback

This commit is contained in:
Zack Spear
2023-06-26 17:40:13 -07:00
committed by Zack Spear
parent 08d60401a8
commit 6857c3b023
3 changed files with 24 additions and 4 deletions
+7 -1
View File
@@ -26,6 +26,7 @@ export interface Server {
csrf?: string;
description?: string;
deviceCount?: number;
email?: string;
expireTime?: number;
flashProduct?: string;
flashVendor?: string;
@@ -68,12 +69,17 @@ export interface ServerAccountCallbackSendPayload {
wanFQDN?: string;
}
export type ServerKeyTypeForPurchase = 'Basic'|'Plus'|'Pro'|'Trial';
export interface ServerPurchaseCallbackSendPayload {
deviceCount: number;
email: string;
guid: string;
keyTypeForPurchase: ServerKeyTypeForPurchase;
locale: string;
registered: boolean;
// state?: ServerState;
state: string;
site: string;
}
export type ServerStateDataActionType = 'signIn'|'signOut'|'purchase'|'redeem'|'upgrade'|'recover'|'replace'|'trialExtend'|'trialStart';