whatsapp-business-java-api icon indicating copy to clipboard operation
whatsapp-business-java-api copied to clipboard

Error in Parsing WhatsApp Business Phone Number Response - New fields

Open valentinogiardino opened this issue 7 months ago • 1 comments

Encountered an error while parsing the response from WhatsApp Business Phone Numbers API after the September 12, 2023 update. The issue seems to be related to a missing property, platform_type, in the PhoneNumber class causing deserialization to fail:

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field \"platform_type\" (class com.whatsapp.api.domain.phone.PhoneNumber), not marked as ignorable (6 known properties: \"verified_name\", \"code_verification_status\", \"name_status\", \"display_phone_number\", \"id\", \"quality_rating\"])\n at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 225] (through reference chain: com.whatsapp.api.domain.phone.PhoneNumber[\"platform_type\"])

CHANGELOG September 12, 2023

valentinogiardino avatar Nov 11 '23 02:11 valentinogiardino