From f71657851904ecd68519c76e2ef04ed5432819f6 Mon Sep 17 00:00:00 2001 From: Julien Buret Date: Mon, 10 Jun 2024 22:16:27 +0200 Subject: [PATCH] resolves #1620 [WhatsApp Cloud Connector] Remove internal flag on WhatsAppCloudSendBotMessage --- .../model/send/media/WhatsAppCloudSendBotImageMessage.kt | 2 +- .../send/message/WhatsAppCloudSendBotInteractiveMessage.kt | 2 +- .../model/send/message/WhatsAppCloudSendBotLocationMessage.kt | 2 +- .../model/send/message/WhatsAppCloudSendBotTemplateMessage.kt | 2 +- .../model/send/message/WhatsAppCloudSendBotTextMessage.kt | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/media/WhatsAppCloudSendBotImageMessage.kt b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/media/WhatsAppCloudSendBotImageMessage.kt index ce054add02..3c6c1dff52 100644 --- a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/media/WhatsAppCloudSendBotImageMessage.kt +++ b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/media/WhatsAppCloudSendBotImageMessage.kt @@ -20,7 +20,7 @@ import ai.tock.bot.connector.whatsapp.cloud.model.send.message.WhatsAppCloudBotR import ai.tock.bot.connector.whatsapp.cloud.model.send.message.WhatsAppCloudSendBotMessage import ai.tock.bot.connector.whatsapp.cloud.model.send.message.WhatsAppCoudBotMessageType -internal data class WhatsAppCloudSendBotImageMessage( +data class WhatsAppCloudSendBotImageMessage( override val messagingProduct: String, override val to: String?, override val recipientType: WhatsAppCloudBotRecipientType? diff --git a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotInteractiveMessage.kt b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotInteractiveMessage.kt index 3e63a5b3fb..8067aa24e8 100644 --- a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotInteractiveMessage.kt +++ b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotInteractiveMessage.kt @@ -18,7 +18,7 @@ package ai.tock.bot.connector.whatsapp.cloud.model.send.message import ai.tock.bot.connector.whatsapp.cloud.model.send.message.content.WhatsAppCloudBotInteractive -internal data class WhatsAppCloudSendBotInteractiveMessage( +data class WhatsAppCloudSendBotInteractiveMessage( override val messagingProduct: String, val interactive: WhatsAppCloudBotInteractive, override val recipientType: WhatsAppCloudBotRecipientType, diff --git a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotLocationMessage.kt b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotLocationMessage.kt index 76004757aa..75876c7b96 100644 --- a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotLocationMessage.kt +++ b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotLocationMessage.kt @@ -18,7 +18,7 @@ package ai.tock.bot.connector.whatsapp.cloud.model.send.message import ai.tock.bot.connector.whatsapp.cloud.model.send.message.content.WhatsAppCloudBotLocation -internal data class WhatsAppCloudSendBotLocationMessage( +data class WhatsAppCloudSendBotLocationMessage( override val messagingProduct: String, val location: WhatsAppCloudBotLocation, override val recipientType: WhatsAppCloudBotRecipientType, diff --git a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTemplateMessage.kt b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTemplateMessage.kt index 487b747b3d..d62f20c9eb 100644 --- a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTemplateMessage.kt +++ b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTemplateMessage.kt @@ -18,7 +18,7 @@ package ai.tock.bot.connector.whatsapp.cloud.model.send.message import ai.tock.bot.connector.whatsapp.cloud.model.send.message.content.WhatsAppCloudBotTemplate -internal data class WhatsAppCloudSendBotTemplateMessage( +data class WhatsAppCloudSendBotTemplateMessage( override val messagingProduct: String, val template: WhatsAppCloudBotTemplate, override val recipientType: WhatsAppCloudBotRecipientType, diff --git a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTextMessage.kt b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTextMessage.kt index 7a784c37db..a5cf55a2ff 100644 --- a/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTextMessage.kt +++ b/bot/connector-whatsapp-cloud/src/main/kotlin/model/send/message/WhatsAppCloudSendBotTextMessage.kt @@ -19,11 +19,11 @@ package ai.tock.bot.connector.whatsapp.cloud.model.send.message import ai.tock.bot.connector.whatsapp.cloud.model.common.TextContent import com.fasterxml.jackson.annotation.JsonProperty -internal data class WhatsAppCloudSendBotTextMessage ( +data class WhatsAppCloudSendBotTextMessage ( override val messagingProduct: String, val text: TextContent, override val recipientType: WhatsAppCloudBotRecipientType, override val to: String, @get:JsonProperty("preview_url") val previewUrl: Boolean = false, -) : WhatsAppCloudSendBotMessage(WhatsAppCoudBotMessageType.text) \ No newline at end of file +) : WhatsAppCloudSendBotMessage(WhatsAppCoudBotMessageType.text)