/*
* 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). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
*
* The version of the OpenAPI document: 1.168.0
* 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 UpdateBrandedCallingIdentityRequest {
/// Shown on the callee's screen. No emoji.
#[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>,
/// 1 to 10 reasons you call, each up to 64 characters. Pick from GET /v1/branded-calling/call-reasons to skip manual vetting.
#[serde(rename = "callReasons", skip_serializing_if = "Option::is_none")]
pub call_reasons: Option<Vec<String>>,
/// HTTPS URL of a PNG, JPEG, WebP or SVG logo. Zernio converts it to the 256x256 BMP the carriers require and hosts it.
#[serde(rename = "logoUrl", skip_serializing_if = "Option::is_none")]
pub logo_url: Option<String>,
#[serde(rename = "authorizer", skip_serializing_if = "Option::is_none")]
pub authorizer: Option<Box<models::CreateBrandedCallingIdentityRequestAuthorizer>>,
#[serde(rename = "references", skip_serializing_if = "Option::is_none")]
pub references: Option<Box<models::BrandedCallingReferences>>,
/// One entry per point id of the open reviewRequest. A text point takes text; a link point takes url; file and link_or_file points take url set to the URL of a file you uploaded first (POST /v1/media/upload). A point id that is not on the open request is a 422.
#[serde(rename = "reviewAnswers", skip_serializing_if = "Option::is_none")]
pub review_answers: Option<
std::collections::HashMap<
String,
models::UpdateBrandedCallingIdentityRequestReviewAnswersValue,
>,
>,
#[serde(rename = "reviewNote", skip_serializing_if = "Option::is_none")]
pub review_note: Option<String>,
}
impl UpdateBrandedCallingIdentityRequest {
pub fn new() -> UpdateBrandedCallingIdentityRequest {
UpdateBrandedCallingIdentityRequest {
display_name: None,
call_reasons: None,
logo_url: None,
authorizer: None,
references: None,
review_answers: None,
review_note: None,
}
}
}