code: function cancelPreapprovalPayment(id) {
      var callback = preConditions.getCallback(arguments[arguments.length - 1]);
  
      showWarning();
  
      return preapprovalModule.update({
        id: id,
        status: 'cancelled'
      }, callback);
    }
docs: Canacel a preapproval payment using the preapprovalModule
  @param id
  @param callback
  @returns {*}