PullRequestState getState() returns only "OPEN" as a response

I am trying to get the pullRequest state but getting incorrect response.
PullRequestState getState() API returns only “OPEN” as a response even though pull request state is either MERGED or DECLINED

import com.atlassian.bitbucket.hook.repository.PreRepositoryHookContext;
import com.atlassian.bitbucket.hook.repository.PullRequestMergeHookRequest;
import com.atlassian.bitbucket.hook.repository.RepositoryHookResult;
import com.atlassian.bitbucket.hook.repository.RepositoryMergeCheck;
import com.atlassian.bitbucket.i18n.I18nService;
import com.atlassian.bitbucket.pull.PullRequestService;
import com.atlassian.bitbucket.pull.PullRequestState;

public class mergeCheck  implements RepositoryMergeCheck {
	
    private final I18nService i18nService;
    private final PullRequestService pullRequestService;
   
    @Autowired
    public mergeCheck (I18nService i18nService, 
                             PullRequestService pullRequestService) {
        this.i18nService = i18nService;
        this.pullRequestService = pullRequestService;
    }

    @Nonnull
    @Override
    public RepositoryHookResult preUpdate(@Nonnull PreRepositoryHookContext context,
                                          @Nonnull PullRequestMergeHookRequest request) {
    	
        Repository repository = request.getPullRequest().getToRef().getRepository(); 
        PullRequestState pullRequest_Status = request.getPullRequest().getState();