From 5735d19245ff3d88ba48bc67bc1ac7e70a47887b Mon Sep 17 00:00:00 2001 From: Jeremy Chan Date: Sun, 20 Oct 2024 10:35:43 +0100 Subject: [PATCH 1/3] Update Whatsapp API Location field name According to the API the fields should be "latitude" and "longitude", using "lat" and "long" is causing the Location to not work --- .../java/com/vonage/client/messages/whatsapp/Location.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/vonage/client/messages/whatsapp/Location.java b/src/main/java/com/vonage/client/messages/whatsapp/Location.java index 0e0396bc9..6c43f847e 100644 --- a/src/main/java/com/vonage/client/messages/whatsapp/Location.java +++ b/src/main/java/com/vonage/client/messages/whatsapp/Location.java @@ -39,12 +39,12 @@ public final class Location extends JsonableBaseObject { address = builder.address; } - @JsonProperty("lat") + @JsonProperty("latitude") public double getLatitude() { return latitude; } - @JsonProperty("long") + @JsonProperty("longitude") public double getLongitude() { return longitude; } From 10c8266460150e5dc88c5bcb998b1eb4ef203dce Mon Sep 17 00:00:00 2001 From: Jeremy Chan Date: Sun, 20 Oct 2024 10:37:56 +0100 Subject: [PATCH 2/3] Update CONTRIBUTORS.md --- CONTRIBUTORS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index f6886ede5..332c641af 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -36,4 +36,5 @@ documentation, or tests are eligible to be added to this list. - Ilya Golovin ([@ilgo0413](https://github.com/ilgo0413)) - Joakim Waltersson ([@jwalter](https://github.com/jwalter)) - Mofi Rahman ([@moficodes](https://github.com/moficodes)) -- Sina Madani ([@SMadani](https://github.com/SMadani)) \ No newline at end of file +- Sina Madani ([@SMadani](https://github.com/SMadani)) +- Jeremy Chan ([@jeremychan](https://github.com/jeremychan)) From ece928bf0c3aafbef613b4df19f4d6c7c4306d40 Mon Sep 17 00:00:00 2001 From: Jeremy Chan Date: Sun, 20 Oct 2024 10:39:31 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ec81347b..c34628f1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). # [8.12.0] - 2024-10-?? - Added `network_apis` capability to Application API - Added `@JsonCreator` annotation to webhook classes' `fromJson(String)` method +- Fixed Whatsapp API `latitude` and `longitude` field names # [8.11.0] - 2024-09-25 - Added custom user agent property setting to `HttpConfig` @@ -758,4 +759,4 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Added - Add support for nexmo SNS service - Ams submission - report comms-failure as an error response, not as an exception -- Ams submission - add support for 'remainingBalance' in the api response \ No newline at end of file +- Ams submission - add support for 'remainingBalance' in the api response