// authentik
//
// Making authentication simple.
//
// The version of the OpenAPI document: 2026.5.0-rc1
// Contact: hello@goauthentik.io
// Generated by: https://openapi-generator.tech

use serde::{Deserialize, Serialize};

use crate::models;

/// ConsentChallengeResponseRequest : Consent challenge response, any valid response request is
/// valid
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConsentChallengeResponseRequest {
    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
    pub component: Option<String>,
    #[serde(rename = "token")]
    pub token: String,
}

impl ConsentChallengeResponseRequest {
    /// Consent challenge response, any valid response request is valid
    pub fn new(token: String) -> ConsentChallengeResponseRequest {
        ConsentChallengeResponseRequest {
            component: None,
            token,
        }
    }
}
