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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NativeTriggerServiceCallbackRequest {
    #[serde(rename = "code")]
    pub code: String,
    #[serde(rename = "state")]
    pub state: String,
    #[serde(rename = "redirect_uri")]
    pub redirect_uri: String,
    #[serde(rename = "resource_path", skip_serializing_if = "Option::is_none")]
    pub resource_path: Option<String>,
}

impl NativeTriggerServiceCallbackRequest {
    pub fn new(code: String, state: String, redirect_uri: String) -> NativeTriggerServiceCallbackRequest {
        NativeTriggerServiceCallbackRequest {
            code,
            state,
            redirect_uri,
            resource_path: None,
        }
    }
}

