late 0.0.545

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RespondToPhoneNumberReviewer200Response {
    /// `resubmitted` when corrections were submitted, `replied` when it was message-only.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<Status>,
    /// Whether a message/attachments were posted to the reviewer.
    #[serde(rename = "posted", skip_serializing_if = "Option::is_none")]
    pub posted: Option<bool>,
    #[serde(rename = "phoneNumber", skip_serializing_if = "Option::is_none")]
    pub phone_number: Option<Box<models::RemediatePhoneNumber200ResponsePhoneNumber>>,
    /// Other numbers on the same registration the correction fanned out to.
    #[serde(
        rename = "siblingsResubmitted",
        skip_serializing_if = "Option::is_none"
    )]
    pub siblings_resubmitted: Option<i32>,
}

impl RespondToPhoneNumberReviewer200Response {
    pub fn new() -> RespondToPhoneNumberReviewer200Response {
        RespondToPhoneNumberReviewer200Response {
            status: None,
            posted: None,
            phone_number: None,
            siblings_resubmitted: None,
        }
    }
}
/// `resubmitted` when corrections were submitted, `replied` when it was message-only.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
    #[serde(rename = "resubmitted")]
    Resubmitted,
    #[serde(rename = "replied")]
    Replied,
}

impl Default for Status {
    fn default() -> Status {
        Self::Resubmitted
    }
}