onStatusChange(callback) {
    [ACCEPTED, REJECTED, CANCELED].forEach((event) => {
      this.on(event, callback);
    });
  }
/**
   * Register a callback for all status change events
   * @param {function} callback
   */
Register a callback for all status change events
@param {function} callback
Register a callback for all status change events @param { function } callback
onStatusChange(callback) {
    [ACCEPTED, REJECTED, CANCELED].forEach((event) => {
      this.on(event, callback);
    });
  }
onStatusChange ( callback ) { [ ACCEPTED , REJECTED , CANCELED ] . forEach ( ( event ) => { this . on ( event , callback ) ; } ) ; }
Register a callback for all status change events
 @param {function} callback
Register a callback for all status change events @param { function } callback