All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stytch.java.b2b.models.mfa.Mfa.kt Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
package com.stytch.java.b2b.models.mfa

// !!!
// WARNING: This file is autogenerated
// Only modify code within MANUAL() sections
// or your changes may be overwritten later!
// !!!

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
public data class MemberOptions
    @JvmOverloads
    constructor(
        /**
         * The Member's MFA phone number.
         */
        @Json(name = "mfa_phone_number")
        val mfaPhoneNumber: String,
        /**
         * The Member's MFA TOTP registration ID.
         */
        @Json(name = "totp_registration_id")
        val totpRegistrationId: String,
    )

@JsonClass(generateAdapter = true)
public data class MfaRequired
    @JvmOverloads
    constructor(
        /**
         * Information about the Member's options for completing MFA.
         */
        @Json(name = "member_options")
        val memberOptions: MemberOptions? = null,
        /**
         * If null, indicates that no secondary authentication has been initiated. If equal to "sms_otp", indicates that the
         * Member has a phone number, and a one time passcode has been sent to the Member's phone number. No secondary
         * authentication will be initiated during calls to the discovery authenticate or list organizations endpoints, even if
         * the Member has a phone number.
         */
        @Json(name = "secondary_auth_initiated")
        val secondaryAuthInitiated: String? = null,
    )




© 2015 - 2024 Weber Informatics LLC | Privacy Policy