/** **************************************************************************
 * Copyright (C) 2019 ecsec GmbH.
 * All rights reserved.
 * Contact: ecsec GmbH (info@ecsec.de)
 *
 * This file may be used in accordance with the terms and conditions
 * contained in a signed written agreement between you and ecsec GmbH.
 *
 ************************************************************************** */
package org.openecard.mobile.activation.common;

import org.openecard.mobile.activation.ActivationResult;
import org.openecard.mobile.activation.ActivationResultCode;

/**
 *
 * @author Neil Crossley
 */
public class CommonActivationResult implements ActivationResult {

    private final String redirectUrl;
    private final ActivationResultCode resultCode;
    private final String errorMessage;
    private String processMinor;

    public CommonActivationResult(ActivationResultCode resultCode) {
	this(null, resultCode, null);
    }

    public CommonActivationResult(ActivationResultCode resultCode, String errorMessage) {
	this(null, resultCode, errorMessage);
    }

    public CommonActivationResult(String redirectUrl, ActivationResultCode resultCode) {
	this(redirectUrl, resultCode, null);
    }

    public CommonActivationResult(String redirectUrl, ActivationResultCode resultCode, String errorMessage) {
	this.redirectUrl = redirectUrl;
	this.resultCode = resultCode;
	this.errorMessage = errorMessage;
    }

    public void setProcessMinor(String processMinor) {
	this.processMinor = processMinor;
    }

    @Override
    public String getRedirectUrl() {
	return redirectUrl;
    }

    @Override
    public ActivationResultCode getResultCode() {
	return resultCode;
    }

    @Override
    public String getErrorMessage() {
	return errorMessage;
    }

    @Override
    public String getProcessResultMinor() {
	throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

}
@@ -1831,135 +1831,28 @@
  %7B%0A%09
-throw new UnsupportedOperationException(%22Not supported yet.%22); //To change body of generated methods, choose Tools %7C Templates.
+return processMinor;
 %0A   

Fix missing getter for process result minor