/*
 * 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 SendInboxMessageRequestInteractiveActionOneOf8CardsInner {
    /// Card position. Auto-filled sequentially when omitted.
    #[serde(rename = "card_index", skip_serializing_if = "Option::is_none")]
    pub card_index: Option<i32>,
    /// `product` for a product card; media cards use `cta_url` or a quick-reply type.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// Media cards only, required. Carries the card's image or video.
    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
    pub header: Option<serde_json::Value>,
    /// Optional card body text.
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<serde_json::Value>,
    /// Product cards: `{ catalog_id, product_retailer_id }` (required). Media cards: the card's button action (e.g. `cta_url` with `parameters.display_text` and `parameters.url`).
    #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
    pub action: Option<serde_json::Value>,
}

impl SendInboxMessageRequestInteractiveActionOneOf8CardsInner {
    pub fn new() -> SendInboxMessageRequestInteractiveActionOneOf8CardsInner {
        SendInboxMessageRequestInteractiveActionOneOf8CardsInner {
            card_index: None,
            r#type: None,
            header: None,
            body: None,
            action: None,
        }
    }
}
