-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathaccount.ts
97 lines (91 loc) · 1.62 KB
/
account.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
export interface RegistrationModel {
name: string;
email: string;
password: string;
area: string;
state: string;
city: string;
}
export interface RegistrationResponse {
city: string;
email: string;
full_name: string;
gender: string;
id: string;
jwt: {
access: string;
refresh: string;
}
plan_subscription: {
created_at?: string;
id?: 2
plan: {
id: string;
title: string;
pagseguro_plan_id: string;
}
status?: {
id: number;
data: string;
created_at: string;
}
}
sector: string;
state: string;
}
export interface UserModel {
access?: string | null;
refresh?: string | null;
full_name?: string | null;
id?: string | null;
plan_pro?: boolean | string | null;
email?: string | null;
gender?: string | null;
sector?: string | null;
address?: Address;
city?: string;
state?: string;
credit_card?: Card;
date_joined?: string;
alert_email?: string;
plan_subscription?: Plan;
phone?: Phone;
}
interface Phone {
area_code: string;
number: string;
}
interface Address {
city: string;
complement: string;
country: string;
district: string;
number: string;
postal_code: string;
state: string;
street: string;
}
interface Card {
cpf: string;
created_at: string;
exp_month: string;
exp_year: string;
holder_birth_date: string;
holder_name: string;
last_four_digits: string;
token: string;
}
interface Plan {
created_at?: string;
id?: number;
plan:{
id: string;
pagseguro_plan_id: string;
title: string;
}
status?: {
id: number;
data: string;
created_at: string;
}
}