/*
 * Copyright 2017 Wultra s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.getlime.security.powerauth.lib.nextstep.model.request;

import io.getlime.security.powerauth.lib.nextstep.model.entity.ApplicationContext;
import io.getlime.security.powerauth.lib.nextstep.model.entity.KeyValueParameter;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthInstrument;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthMethod;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthStepResult;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * Request object used for updating an operation.
 *
 * @author Petr Dvorak, petr@wultra.com
 */
@Data
public class UpdateOperationRequest {

    @NotNull
    private String operationId;
    private String userId;
    private String organizationId;
    private AuthMethod authMethod;
    private List<AuthInstrument> authInstruments = new ArrayList<>();
    private AuthStepResult authStepResult;
    private String targetAuthMethod;
    private String authStepResultDescription;
    private List<KeyValueParameter> params = new ArrayList<>();
    private ApplicationContext applicationContext;

}

/*
 * Copyright 2017 Wultra s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.getlime.security.powerauth.lib.nextstep.model.request;

import io.getlime.security.powerauth.lib.nextstep.model.entity.ApplicationContext;
import io.getlime.security.powerauth.lib.nextstep.model.entity.KeyValueParameter;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthInstrument;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthMethod;
import io.getlime.security.powerauth.lib.nextstep.model.enumeration.AuthStepResult;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * Request object used for updating an operation.
 *
 * @author Petr Dvorak, petr@wultra.com
 */
@Data
public class UpdateOperationRequest {

    @NotNull
    private String operationId;
    private String userId;
    private String organizationId;
    private AuthMethod authMethod;
    private List<AuthInstrument> authInstruments = new ArrayList<>();
    private AuthStepResult authStepResult;
    private AuthMethod targetAuthMethod;
    private String authStepResultDescription;
    private List<KeyValueParameter> params = new ArrayList<>();
    private ApplicationContext applicationContext;

}

Fix authentication method type