1
1
using System . Collections . Generic ;
2
2
using System . Runtime . Serialization ;
3
+ using Newtonsoft . Json ;
3
4
4
5
namespace Authress . SDK . DTO
5
6
{
@@ -16,17 +17,45 @@ public class Invite
16
17
[ DataMember ( Name = "inviteId" , EmitDefaultValue = false ) ]
17
18
public string InviteId { get ; private set ; }
18
19
20
+ /// <summary>
21
+ /// Specify the tenant associated with the invite. The invited user must use this tenant's connection configuration to log in.
22
+ /// </summary>
23
+ /// <value>Specify the tenant associated with the invite. The invited user must use this tenant's connection configuration to log in.</value>
24
+ [ DataMember ( Name = "tenantId" , EmitDefaultValue = false ) ]
25
+ public string TenantId { get ; private set ; }
26
+
19
27
/// <summary>
20
28
/// A list of statements which match roles to resources. The invited user will all statements apply to them
21
29
/// </summary>
22
30
/// <value>A list of statements which match roles to resources. The invited user will all statements apply to them</value>
23
31
[ DataMember ( Name = "statements" , EmitDefaultValue = false ) ]
24
- public List < AccessRecordStatements > Statements { get ; set ; }
32
+ public List < InviteStatement > Statements { get ; set ; }
25
33
26
34
/// <summary>
27
35
/// Gets or Sets Links
28
36
/// </summary>
29
37
[ DataMember ( Name = "links" , EmitDefaultValue = false ) ]
30
38
public Links Links { get ; set ; }
31
39
}
40
+
41
+ /// <summary>
42
+ ///
43
+ /// </summary>
44
+ [ DataContract ]
45
+ public class InviteStatement
46
+ {
47
+ /// <summary>
48
+ /// Gets or Sets Roles
49
+ /// </summary>
50
+ [ DataMember ( Name = "roles" , EmitDefaultValue = false ) ]
51
+ [ JsonProperty ( PropertyName = "roles" ) ]
52
+ public List < string > Roles { get ; set ; }
53
+
54
+ /// <summary>
55
+ /// Gets or Sets Resources
56
+ /// </summary>
57
+ [ DataMember ( Name = "resources" , EmitDefaultValue = false ) ]
58
+ [ JsonProperty ( PropertyName = "resources" ) ]
59
+ public List < AccessRecordResource > Resources { get ; set ; }
60
+ }
32
61
}
0 commit comments