/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* 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
}
}