-
Notifications
You must be signed in to change notification settings - Fork 10
/
Invitation.ts
82 lines (70 loc) · 1.46 KB
/
Invitation.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
import {map, mapArray} from '../common/Mapper';
import InvitationStatus from './InvitationStatus';
/**
* @export
* @class Invitation
*/
export class Invitation {
/**
* @type {string}
* @memberof Invitation
*/
public id?: string;
/**
* Email address of the tenant. (required)
* @type {string}
* @memberof Invitation
*/
public email?: string;
/**
* @type {InvitationStatus}
* @memberof Invitation
*/
public status?: InvitationStatus;
/**
* @type {string}
* @memberof Invitation
*/
public company?: string;
/**
* @type {string}
* @memberof Invitation
*/
public firstName?: string;
/**
* @type {string}
* @memberof Invitation
*/
public lastName?: string;
/**
* Creation date of the invitation in UTC format
* @type {Date}
* @memberof Invitation
*/
public createdAt?: Date;
/**
* @type {string}
* @memberof Invitation
*/
public jobTitle?: string;
/**
* @type {string}
* @memberof Invitation
*/
public phone?: string;
constructor(obj?: Partial<Invitation>) {
if(!obj) {
return;
}
this.id = map(obj.id);
this.email = map(obj.email);
this.status = map(obj.status);
this.company = map(obj.company);
this.firstName = map(obj.firstName);
this.lastName = map(obj.lastName);
this.createdAt = map(obj.createdAt, Date);
this.jobTitle = map(obj.jobTitle);
this.phone = map(obj.phone);
}
}
export default Invitation;