autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Healthcare Claims
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2025-03-07
 * Contact: healthcare@stedi.com
 * Generated by: https://openapi-generator.tech
 */

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

/// InvalidInterchangeEnvelopeException : Returned when the X12 interchange envelope is rejected. This occurs when the `ISA-15` usage indicator does not match the API key's mode.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InvalidInterchangeEnvelopeException {
    /// Human-readable error message describing why the interchange envelope was rejected and how to remediate it.
    #[serde(rename = "message")]
    pub message: String,
    /// The X12 TA1 interchange acknowledgment document indicating the rejection.
    #[serde(rename = "x12", skip_serializing_if = "Option::is_none")]
    pub x12: Option<String>,
}

impl InvalidInterchangeEnvelopeException {
    /// Returned when the X12 interchange envelope is rejected. This occurs when the `ISA-15` usage indicator does not match the API key's mode.
    pub fn new(message: String) -> InvalidInterchangeEnvelopeException {
        InvalidInterchangeEnvelopeException {
            message,
            x12: None,
        }
    }
}