/*
 * 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};

/// SendInboxMessageRequestInteractiveActionOneOf6 : Multi-product action. `type` on the parent must be `product_list`. Requires a Meta catalog connected to the WhatsApp Business Account in Commerce Manager.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendInboxMessageRequestInteractiveActionOneOf6 {
    /// Meta catalog ID connected to the WhatsApp Business Account.
    #[serde(rename = "catalog_id")]
    pub catalog_id: String,
    /// 1-10 sections. Total products across all sections cannot exceed 30.
    #[serde(rename = "sections")]
    pub sections: Vec<models::SendInboxMessageRequestInteractiveActionOneOf6SectionsInner>,
}

impl SendInboxMessageRequestInteractiveActionOneOf6 {
    /// Multi-product action. `type` on the parent must be `product_list`. Requires a Meta catalog connected to the WhatsApp Business Account in Commerce Manager.
    pub fn new(
        catalog_id: String,
        sections: Vec<models::SendInboxMessageRequestInteractiveActionOneOf6SectionsInner>,
    ) -> SendInboxMessageRequestInteractiveActionOneOf6 {
        SendInboxMessageRequestInteractiveActionOneOf6 {
            catalog_id,
            sections,
        }
    }
}
