feat(subscription): default pay channel by country
This commit is contained in:
@@ -13,6 +13,8 @@ function makeUser(overrides: Partial<UserView> = {}): UserView {
|
||||
id: "user-1",
|
||||
username: "Elio Fan",
|
||||
email: "user@example.com",
|
||||
country: "Hong Kong",
|
||||
countryCode: "HK",
|
||||
avatarUrl: "https://example.com/avatar.png",
|
||||
intimacy: 42,
|
||||
dolBalance: 7,
|
||||
|
||||
@@ -57,6 +57,8 @@ export function toView(u: {
|
||||
id: string;
|
||||
username: string;
|
||||
email?: string;
|
||||
country?: string;
|
||||
countryCode?: string;
|
||||
avatarUrl?: string;
|
||||
intimacy?: number;
|
||||
dolBalance?: number;
|
||||
@@ -74,6 +76,8 @@ export function toView(u: {
|
||||
id: u.id,
|
||||
username: u.username,
|
||||
email: u.email ?? "",
|
||||
country: u.country ?? "",
|
||||
countryCode: u.countryCode ?? "",
|
||||
avatarUrl: u.avatarUrl ?? "",
|
||||
intimacy: u.intimacy ?? 0,
|
||||
dolBalance: u.dolBalance ?? creditBalance,
|
||||
|
||||
Reference in New Issue
Block a user