Subversion Repositories SmartDukaan

Rev

Rev 123 | Rev 414 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 130
Line 15... Line 15...
15
	1:i32 errorCode,
15
	1:i32 errorCode,
16
	2:string message
16
	2:string message
17
}
17
}
18
 
18
 
19
enum AddressType{
19
enum AddressType{
20
	WORK,
20
	WORK = 0,
21
	HOME
21
	HOME = 1
-
 
22
}
-
 
23
 
-
 
24
enum PhoneType{
-
 
25
	WORK = 0,
-
 
26
	HOME = 1,
-
 
27
	MOBILE = 2
-
 
28
}
-
 
29
 
-
 
30
enum AccountStatus{
-
 
31
	ACTIVE = 0,
-
 
32
	DELETED = 1,
-
 
33
	INACTIVE = 2,
-
 
34
	INCOMPLETE = 3
22
}
35
}
23
 
36
 
24
/**
37
/**
25
All the social handles
38
All the social handles
26
*/
39
*/
Line 45... Line 58...
45
	9:bool enabled,
58
	9:bool enabled,
46
	10:AddressType type,
59
	10:AddressType type,
47
	11:i64 addedOn
60
	11:i64 addedOn
48
}
61
}
49
 
62
 
-
 
63
/**Phone
-
 
64
**/
-
 
65
struct Phone{
-
 
66
	1:i64 id,
-
 
67
	2:string countryCode,
-
 
68
	3:string areaCode,
-
 
69
	4:string number,
-
 
70
	5:string extension,
-
 
71
	6:PhoneType type,
-
 
72
}
-
 
73
 
50
/**
74
/**
51
Primary information of the user
75
Primary information of the user
52
**/
76
**/
53
struct UserPrimaryInfo{
77
struct UserPrimaryInfo{
54
	1:i64 userId,
78
	1:i64 userId,
55
	2:string title,
79
	2:string title,
56
	3:string firstName,
80
	3:string firstName,
57
	4:string lastName,
81
	4:string lastName,
58
	5:string pictureUrl,
82
	5:string pictureUrl,
59
	6:string email,
83
	6:string email,
60
	7:string mobile,
84
	7:string dummy,
61
	8:string workPhone,
85
	8:set<Phone> phones,
62
	9:string userHandle,
86
	9:string userHandle,
63
	10:string password,
87
	10:string password,
64
	11:SocialHandles socialHandles,
88
	11:SocialHandles socialHandles,
65
	12:i64 dateOfBirth,
89
	12:i64 dateOfBirth,
66
	13:i64 anniversary,
90
	13:i64 anniversary,
67
	14:set<Address> addresses,
91
	14:set<Address> addresses,
68
	16:i32 shipmentOption,
92
	16:i32 shipmentOption,
69
	17:string middleName,
93
	17:string middleName,
70
	18:string occupation
94
	18:string occupation,
-
 
95
	19:string hintQuestion,
-
 
96
	20:string hintAnswer
71
}
97
}
72
 
98
 
73
/**
99
/**
74
Internal information to be used by system. various variables which aid in serving the user are identified and put here
100
Internal information to be used by system. various variables which aid in serving the user are identified and put here
75
**/
101
**/
Line 102... Line 128...
102
	6:i64 smsVerificationSentOn,
128
	6:i64 smsVerificationSentOn,
103
	7:bool isSMSVerified,
129
	7:bool isSMSVerified,
104
	8:i64 activeSince,
130
	8:i64 activeSince,
105
	9:bool isLoggedIn,
131
	9:bool isLoggedIn,
106
	10:list<IPMap> ips,
132
	10:list<IPMap> ips,
107
	11:i64 shoppingCartHandle 
133
	11:i64 shoppingCartHandle,
-
 
134
	12:AccountStatus status
108
}
135
}
109
 
136
 
110
/**
137
/**
111
complete user structre
138
complete user structre
112
**/
139
**/
Line 141... Line 168...
141
	bool deleteUser(1:i64 userid, 2:bool isSessionId)throws (1:UserContextException ucx),
168
	bool deleteUser(1:i64 userid, 2:bool isSessionId)throws (1:UserContextException ucx),
142
	bool sendEmailVerification(1:i64 userid)throws (1:UserContextException ucx),
169
	bool sendEmailVerification(1:i64 userid)throws (1:UserContextException ucx),
143
	bool sendSMSVerification(1:i64 userid)throws (1:UserContextException ucx),
170
	bool sendSMSVerification(1:i64 userid)throws (1:UserContextException ucx),
144
	bool confirmEmailVerification(1:i64 userid)throws (1:UserContextException ucx),
171
	bool confirmEmailVerification(1:i64 userid)throws (1:UserContextException ucx),
145
	bool confirmSMSVerification(1:i64 userid)throws (1:UserContextException ucx),
172
	bool confirmSMSVerification(1:i64 userid)throws (1:UserContextException ucx),
146
	bool addSocialhandle(1:i64 userid, 2:string socialService, 3:string handle)throws (1:UserContextException ucx)	
173
	bool addSocialhandle(1:i64 userid, 2:string socialService, 3:string handle)throws (1:UserContextException ucx),
-
 
174
	bool sendNewPasswordById(1:i64 userid) throws (1:UserContextException ucx),
-
 
175
	bool sendNewPasswordByHandle(1:string emailOrHandle, 2:bool isEmail)throws (1:UserContextException ucx)
147
}
176
}
148
 
177