/*
 * 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.1
 * 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 ConnectWhatsAppCredentialsRequest {
    /// Your Zernio profile ID
    #[serde(rename = "profileId")]
    pub profile_id: String,
    /// Permanent System User access token from Meta Business Suite
    #[serde(rename = "accessToken")]
    pub access_token: String,
    /// WhatsApp Business Account ID from Meta
    #[serde(rename = "wabaId")]
    pub waba_id: String,
    /// Phone Number ID from Meta WhatsApp Manager
    #[serde(rename = "phoneNumberId")]
    pub phone_number_id: String,
}

impl ConnectWhatsAppCredentialsRequest {
    pub fn new(
        profile_id: String,
        access_token: String,
        waba_id: String,
        phone_number_id: String,
    ) -> ConnectWhatsAppCredentialsRequest {
        ConnectWhatsAppCredentialsRequest {
            profile_id,
            access_token,
            waba_id,
            phone_number_id,
        }
    }
}
