autogen-stedi 0.3.2

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

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

/// EligibilityCheckPayerError : When a payer rejects your eligibility check, the response contains one or more `AAA` errors that specify the reasons for the rejection and any recommended follow-up actions. Common reasons for rejection at the `payer` level include issues with payer enrollment and that the payer's system is down or experiencing issues. [Learn more](https://www.stedi.com/docs/healthcare/eligibility-troubleshooting#payer-aaa-errors)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EligibilityCheckPayerError {
    /// The error code.  Payers may sometimes return other non-compliant values.
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<models::EligibilityCheckPayerErrorCode>,
    /// The error description.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// The error type, `AAA`.
    #[serde(rename = "field", skip_serializing_if = "Option::is_none")]
    pub field: Option<String>,
    /// Recommended follow-up action based on the rejection reason code.  **Note**: `Resubmission Not Allowed` doesn't mean you should never resubmit the request. Intermediary clearinghouses may send this code when they've temporarily lost connection to the payer, so this code indicates that you should wait at least a few minutes before retrying instead of retrying immediately.  Payers may sometimes return other non-compliant values.
    #[serde(rename = "followupAction", skip_serializing_if = "Option::is_none")]
    pub followup_action: Option<models::EligibilityCheckFollowupAction>,
    /// The location of the error within the original X12 EDI response.
    #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
    pub location: Option<String>,
    /// Information to help you correct the error.  We periodically update this guidance, so these strings may change at any time and may differ between eligibility responses. **Don't build programmatic logic that depends on matching these strings exactly.**
    #[serde(rename = "possibleResolutions", skip_serializing_if = "Option::is_none")]
    pub possible_resolutions: Option<String>,
}

impl EligibilityCheckPayerError {
    /// When a payer rejects your eligibility check, the response contains one or more `AAA` errors that specify the reasons for the rejection and any recommended follow-up actions. Common reasons for rejection at the `payer` level include issues with payer enrollment and that the payer's system is down or experiencing issues. [Learn more](https://www.stedi.com/docs/healthcare/eligibility-troubleshooting#payer-aaa-errors)
    pub fn new() -> EligibilityCheckPayerError {
        EligibilityCheckPayerError {
            code: None,
            description: None,
            field: None,
            followup_action: None,
            location: None,
            possible_resolutions: None,
        }
    }
}