/*
 * Copyright 2021 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 lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * Request object used for authenticating using a credential and an OTP.
 *
 * @author Roman Strobl, roman.strobl@wultra.com
 */
@Data
public class CombinedAuthenticationRequest {

    @NotNull
    private String credentialName;
    @NotNull
    private String userId;
    @NotNull
    private String credentialValue;
    @NotNull
    private String otpId;
    @NotNull
    private String otpValue;
    // Operation ID is extracted from OTP record
    private boolean updateOperation;

}

@@ -653,16 +653,121 @@
 quest;%0A%0A
+import io.getlime.security.powerauth.lib.nextstep.model.entity.enumeration.CredentialAuthenticationMode;%0A
 import l
@@ -823,16 +823,39 @@
 NotNull;
+%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -1166,24 +1166,140 @@
 ntialValue;%0A
+    private CredentialAuthenticationMode authenticationMode;%0A    private List%3CInteger%3E credentialPositionsToVerify;%0A
     @NotNull

Add authentication mode