feat(subscription): default pay channel by country
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user