package io.reactivesw.customer.server.common.types;

import io.reactivesw.customer.server.common.models.UpdateAction;

import java.util.List;

/**
 * Created by Davis on 16/11/21.
 */
public class Field {
  /**
   * The expected version of the category on which the changes should be applied.
   * If the expected version does not match the actual version, a 409 Conflict will be returned.
   */
  Integer version;

  /**
   * Array of UpdateAction.
   * The list of update actions to be performed on the category.
   * Required.
   */
  List<UpdateAction> actions;

  /**
   * Gets version.
   *
   * @return the version
   */
  public Integer getVersion() {
    return version;
  }

  /**
   * Sets version.
   *
   * @param version the version
   */
  public void setVersion(Integer version) {
    this.version = version;
  }

  /**
   * Gets actions.
   *
   * @return the actions
   */
  public List<UpdateAction> getActions() {
    return actions;
  }

  /**
   * Sets actions.
   *
   * @param actions the actions
   */
  public void setActions(List<UpdateAction> actions) {
    this.actions = actions;
  }

  @Override
  public String toString() {
    return "Field{" +
        "version=" + version +
        ", actions=" + actions +
        '}';
  }
}

@@ -136,16 +136,82 @@
 .List;%0A%0A
+import io.reactivesw.customer.server.common.models.UpdateAction;%0A%0A
 /**%0A * C

refactor model