You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/06/12 05:56:19 UTC
(camel) branch main updated: Update Whatsapp parameter to allow payload (#18347)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new a0f441882f4 Update Whatsapp parameter to allow payload (#18347)
a0f441882f4 is described below
commit a0f441882f47846389c228843247cf4c8fa62182
Author: ANDERSON DE FARIA SILVA <an...@gmail.com>
AuthorDate: Thu Jun 12 02:56:12 2025 -0300
Update Whatsapp parameter to allow payload (#18347)
according to the documentation https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates/#interactive a template message could have some buttons with a payload parameter.
To accomplish this, is necessary to add the payload attribute in the model
---
.../org/apache/camel/component/whatsapp/model/Parameter.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/model/Parameter.java b/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/model/Parameter.java
index 46c62607759..4639875967b 100644
--- a/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/model/Parameter.java
+++ b/components/camel-whatsapp/src/main/java/org/apache/camel/component/whatsapp/model/Parameter.java
@@ -28,6 +28,7 @@ public class Parameter {
private MediaMessage image;
private MediaMessage document;
private MediaMessage video;
+ private String payload;
public Parameter() {
}
@@ -88,4 +89,12 @@ public class Parameter {
this.video = video;
}
+ public String getPayload() {
+ return payload;
+ }
+
+ public void setPayload(String payload) {
+ this.payload = payload;
+ }
+
}