package oasis.model.directory;

import javax.annotation.Nonnull;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.wordnik.swagger.annotations.ApiModelProperty;

import oasis.model.annotations.Id;

@JsonRootName("organization")
public class Organization {

  @Id
  @ApiModelProperty(required = true)
  private String id;

  @JsonProperty
  @ApiModelProperty(required = true)
  private String name;

  public Organization() {
  }

  /**
   * Copy constructor.
   * <p>
   * Does not copy {@link #id} field.
   */
  public Organization(@Nonnull Organization other) {
    this.name = other.getName();
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

}

@@ -462,16 +462,91 @@
  name;%0A%0A
+  @JsonProperty%0A  @ApiModelProperty(required = true)%0A  private Type type;%0A%0A
   public
@@ -957,10 +957,174 @@
 e;%0A  %7D%0A%0A
+  public Type getType() %7B%0A    return type;%0A  %7D%0A%0A  public void setType(Type type) %7B%0A    this.type = type;%0A  %7D%0A%0A  public enum Type %7B%0A    PUBLIC_BODY,%0A    COMPANY%0A  %7D%0A
 %7D%0A

Add a "type" field to organizations