use whatsapp_cloud_api::Client;
use wiremock::MockServer;
pub const TEST_PHONE_ID: &str = "123456789";
pub const TEST_TOKEN: &str = "test_access_token";
pub const TEST_WABA_ID: &str = "987654321";
pub const TEST_APP_ID: &str = "app_123456";
pub fn create_test_client(mock_server: &MockServer) -> Client {
Client::with_config(TEST_TOKEN, TEST_PHONE_ID, "v21.0", mock_server.uri())
}
pub fn success_response() -> serde_json::Value {
serde_json::json!({
"success": true
})
}
pub fn message_response(message_id: &str) -> serde_json::Value {
serde_json::json!({
"messaging_product": "whatsapp",
"contacts": [
{
"input": "628123456789",
"wa_id": "628123456789"
}
],
"messages": [
{
"id": message_id
}
]
})
}