feat(subscription): default pay channel by country

This commit is contained in:
2026-06-30 16:49:47 +08:00
parent 9cff16e2d9
commit e254c93078
9 changed files with 63 additions and 5 deletions
+4
View File
@@ -10,6 +10,8 @@ describe("User", () => {
username: "guest_bbc90a38",
email: "device_bbc90a38b996187348f54cf2cb0b789e@guest.local",
platform: "web",
country: "Hong Kong",
countryCode: "HK",
intimacy: 0,
dolBalance: 0,
personalityTraits: {
@@ -29,6 +31,8 @@ describe("User", () => {
username: "guest_bbc90a38",
email: "device_bbc90a38b996187348f54cf2cb0b789e@guest.local",
platform: "web",
country: "Hong Kong",
countryCode: "HK",
intimacy: 0,
dolBalance: 0,
personalityTraits: {
+2
View File
@@ -13,6 +13,8 @@ export class User {
declare readonly username: string;
declare readonly email: string;
declare readonly platform: string;
declare readonly country: string;
declare readonly countryCode: string;
declare readonly intimacy: number;
declare readonly dolBalance: number;
declare readonly personalityTraits: PersonalityTraits;
+2
View File
@@ -9,6 +9,8 @@ export const UserViewSchema = z.object({
id: z.string(),
username: z.string(),
email: z.string(),
country: z.string(),
countryCode: z.string(),
avatarUrl: z.string(),
intimacy: z.number(),
dolBalance: z.number(),
+2
View File
@@ -14,6 +14,8 @@ export const UserSchema = z.object({
username: stringOrEmpty,
email: stringOrEmpty,
platform: stringOrEmpty,
country: stringOrEmpty,
countryCode: stringOrEmpty,
intimacy: numberOrZero,
dolBalance: numberOrZero,
personalityTraits: PersonalityTraitsSchema.default(PERSONALITY_TRAITS_DEFAULTS),