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

/// SendInboxMessageRequestInteractiveActionOneOf5 : Single-product action. `type` on the parent must be `product`. Requires a Meta catalog connected to the WhatsApp Business Account in Commerce Manager.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendInboxMessageRequestInteractiveActionOneOf5 {
    /// Meta catalog ID connected to the WhatsApp Business Account.
    #[serde(rename = "catalog_id")]
    pub catalog_id: String,
    /// Retailer ID (SKU) of the product inside the catalog.
    #[serde(rename = "product_retailer_id")]
    pub product_retailer_id: String,
}

impl SendInboxMessageRequestInteractiveActionOneOf5 {
    /// Single-product action. `type` on the parent must be `product`. Requires a Meta catalog connected to the WhatsApp Business Account in Commerce Manager.
    pub fn new(
        catalog_id: String,
        product_retailer_id: String,
    ) -> SendInboxMessageRequestInteractiveActionOneOf5 {
        SendInboxMessageRequestInteractiveActionOneOf5 {
            catalog_id,
            product_retailer_id,
        }
    }
}
