diff --git a/src/main/java/org/gitlab4j/api/systemhooks/TeamMemberSystemHookEvent.java b/src/main/java/org/gitlab4j/api/systemhooks/TeamMemberSystemHookEvent.java index f8b31851d..939dd0a23 100644 --- a/src/main/java/org/gitlab4j/api/systemhooks/TeamMemberSystemHookEvent.java +++ b/src/main/java/org/gitlab4j/api/systemhooks/TeamMemberSystemHookEvent.java @@ -14,7 +14,9 @@ public class TeamMemberSystemHookEvent extends AbstractSystemHookEvent { private Date createdAt; private Date updatedAt; private String eventName; + @Deprecated private String projectAccess; + private String accessLevel; private String projectName; private String projectPath; private Long projectId; @@ -50,14 +52,30 @@ public void setEventName(String eventName) { this.eventName = eventName; } + /** + * No longer used. Probably replaced by {@link #getAccessLevel()} + */ + @Deprecated public String getProjectAccess() { return projectAccess; } + /** + * No longer used. Probably replaced by {@link #setAccessLevel(String)} + */ + @Deprecated public void setProjectAccess(String projectAccess) { this.projectAccess = projectAccess; } + public String getAccessLevel() { + return accessLevel; + } + + public void setAccessLevel(String accessLevel) { + this.accessLevel = accessLevel; + } + public String getProjectName() { return projectName; } diff --git a/src/test/resources/org/gitlab4j/api/team-member-system-hook-event.json b/src/test/resources/org/gitlab4j/api/team-member-system-hook-event.json index fdebf50a5..7b31a5cdf 100644 --- a/src/test/resources/org/gitlab4j/api/team-member-system-hook-event.json +++ b/src/test/resources/org/gitlab4j/api/team-member-system-hook-event.json @@ -2,7 +2,7 @@ "created_at": "2012-07-21T07:30:56Z", "updated_at": "2012-07-21T07:38:22Z", "event_name": "user_add_to_team", - "project_access": "Master", + "access_level": "Master", "project_id": 74, "project_name": "StoreCloud", "project_path": "storecloud",