autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Core
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2023-08-01
 * Contact: core@stedi.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GenerateEdiResponseContent {
    /// The EDI Stedi generated from the JSON transaction data.
    #[serde(rename = "edi", skip_serializing_if = "Option::is_none")]
    pub edi: Option<String>,
    /// An ID for the generated EDI file.
    #[serde(rename = "artifactId")]
    pub artifact_id: String,
    /// A ID for the process Stedi uses to generate the EDI file. This ID appears on the details page for this file execution in the Stedi portal. Internally, Stedi uses this ID to place the file in Stedi's outbound queue.
    #[serde(rename = "fileExecutionId")]
    pub file_execution_id: String,
    #[serde(rename = "metadata")]
    pub metadata: Box<models::Metadata>,
}

impl GenerateEdiResponseContent {
    pub fn new(artifact_id: String, file_execution_id: String, metadata: models::Metadata) -> GenerateEdiResponseContent {
        GenerateEdiResponseContent {
            edi: None,
            artifact_id,
            file_execution_id,
            metadata: Box::new(metadata),
        }
    }
}