Class PullRequestDeleteRequest

java.lang.Object
com.atlassian.bitbucket.pull.AbstractPullRequestRequest
com.atlassian.bitbucket.pull.PullRequestDeleteRequest

public class PullRequestDeleteRequest extends AbstractPullRequestRequest
Request object used for deleting a pull request.
Since:
5.1
  • Method Details

    • getVersion

      public int getVersion()
      Retrieves the expected version for the pull request. If the pull request's actual version does not match, a PullRequestOutOfDateException will be thrown to indicate that the delete was requested on stale data.
      Returns:
      the pull request version to delete