/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// EditSuccessHandlerLegacy : Legacy flat format for editing success handler (deprecated, use new format)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EditSuccessHandlerLegacy {
    /// Path to the success handler script or flow
    #[serde(rename = "success_handler", skip_serializing_if = "Option::is_none")]
    pub success_handler: Option<String>,
    /// The arguments to pass to the script or flow
    #[serde(rename = "success_handler_extra_args", skip_serializing_if = "Option::is_none")]
    pub success_handler_extra_args: Option<std::collections::HashMap<String, serde_json::Value>>,
}

impl EditSuccessHandlerLegacy {
    /// Legacy flat format for editing success handler (deprecated, use new format)
    pub fn new() -> EditSuccessHandlerLegacy {
        EditSuccessHandlerLegacy {
            success_handler: None,
            success_handler_extra_args: None,
        }
    }
}

