update(courierRecord) {
    _.each(courierRecord, (value, key) => {
      if (key == 'location') this.setLocation(value);
      if (key == 'vehicle') this.setVehicle(value);
      else this[key] = value;
    });
  }
// couriers might change, so we do need to be able to update all fields while maintaining this object during a delivery for subscribers' sakes
couriers might change, so we do need to be able to update all fields while maintaining this object during a delivery for subscribers' sakes
couriers might change so we do need to be able to update all fields while maintaining this object during a delivery for subscribers ' sakes
update(courierRecord) {
    _.each(courierRecord, (value, key) => {
      if (key == 'location') this.setLocation(value);
      if (key == 'vehicle') this.setVehicle(value);
      else this[key] = value;
    });
  }
update ( courierRecord ) { _ . each ( courierRecord , ( value , key ) => { if ( key == 'location' ) this . setLocation ( value ) ; if ( key == 'vehicle' ) this . setVehicle ( value ) ; else this [ key ] = value ; } ) ; }
couriers might change, so we do need to be able to update all fields while maintaining this object during a delivery for subscribers' sakes
couriers might change so we do need to be able to update all fields while maintaining this object during a delivery for subscribers ' sakes