'use strict';

class CustomerIoEvent {
  constructor(id, name, data) {
    this.id = id;
    this.name = name;
    this.data = data;
  }

  getId() {
    return this.id;
  }

  getName() {
    return this.name;
  }

  getData() {
    return this.data;
  }

  setVersion(version) {
    this.data.version = version;
  }
}

module.exports = CustomerIoEvent;

'use strict';

class CustomerIoEvent {
  constructor(id, name, data) {
    this.id = id;
    this.name = name;
    this.data = data;
  }

  getId() {
    return this.id;
  }

  getName() {
    return this.name;
  }

  getData() {
    return this.data;
  }

  // Schema version of event data.
  setVersion(version) {
    this.data.version = version;
  }
}

module.exports = CustomerIoEvent;

Add comment clarifying that cio event version is data schema version
Add comment clarifying that cio event version is data schema version
