Skip to content

6.0.0

Compare
Choose a tag to compare
@ib-tjuhasz ib-tjuhasz released this 17 Feb 15:28
· 2 commits to master since this release
9eba410

[ 6.0.0 ] - 2025-02-17

πŸŽ‰ NEW Major Version of infobip-api-java-client.

⚠️ IMPORTANT NOTE: This release contains compile time breaking changes.
All changes, including breaking changes, are addressed and explained in the list bellow.
If you find out that something was not addressed properly, please submit an issue.

Added

  • Most recent feature set for:
  • Added new Calls error code type: MACHINE_DETECTED.
  • Added support for CallsProviderSipTrunkUpdateRequest.
  • Created RawJsonDeserializer to handle raw JSON deserialization.

Changed

  • General

    • Unified MessageResponse, MessageResponseDetails, MessageGroupError, SendingSpeedLimit and SpeedLimitTimeUnit.
    • Updated MessagesApiMessageGeneralStatus – Adjustments due to API updates.
    • Updated DeprecationChecker logging level from WARNING to INFO when the endpoint is only deprecated without a defined sunset date.
  • Mms API

    • Introduced the new MmsMessage class to replace MmsAdvancedMessage, reflecting the latest state of the API for MMS messaging.
      Updated request classes by replacing MmsAdvancedRequest with the new MmsRequest class, reflecting the latest state of the API.
    • Updated sending message function: use sendMmsMessages instead of sendMmsMessage.
  • Voice API

    • Adjusted IVR models in script processing. Scenario scripting is now implemented as a raw string to increase usability of the feature. Scripts should be passed as strings to the IVR request model in all upcoming SDK versions.
      • Updated CallsUpdateScenarioRequest.script field type from List<CallsScriptInner> β†’ String.
      • Updated CallsSearchResponse.script and else fields type from List<Object> β†’ String.
      • Updated CallsUpdateScenarioResponse.script field type from Object β†’ String.
    • Updated CallsGetVoicesResponses.voices field type from List<CallsVoice> β†’ List<CallsSynthesisVoice>.
    • Updated CallsSearchResponse.lastUsageDate field type from OffsetDateTime β†’ String.
    • Updated CallsSpeechCaptureRequest.language field type from CallsLanguage β†’ CallTranscriptionLanguage.
    • Updated CallsTranscription.language field type from CallsLanguage β†’ CallTranscriptionLanguage.
    • Updated CallsUpdateScenarioResponse.lastUsageDate field type from OffsetDateTime β†’ String.
    • Removed CallsVoice – Certain fields removed due to API updates.
    • Removed CallRoutingUrlSecurityConfigType – Unified into SecurityConfigType enumeration class.
    • Removed CallsUrlSecurityConfigType – Unified into SecurityConfigType enumeration class.
    • Fixed Number Masking content schema when uploading audio files.
    • Fixed Number Masking UTC date-time deserialization in setup response model.
    • Fixed: Replaced body content in ConferencePlayFileRequest from CallsPlayRequest to CallsConferencePlayRequest.
  • Email API

    • Updated EmailSuppressionInfo.createdDate field type from String β†’ OffsetDateTime.
    • Removed EmailSingleMessageStatus – Now integrated into the unified MessageStatus class.
    • Updated EmailAddDeleteSuppressionType – Pending further clarification.
  • Messaging API

    • Removed MessagesApiRequestOptions – Now replaced by MessagesApiDefaultMessageRequestOptions class.
    • Removed MessagesApiSpeedLimitTimeUnit – Now replaced by the unified SpeedLimitTimeUnit class.
  • Viber API

    • Removed ViberMessageRequestSchedulingSettings – Now use ViberRequestSchedulingSettings.
    • Updated ViberInboundContent.typeEnum β†’ ViberInboundContentType.
    • Updated ViberOutboundContent.typeEnum β†’ ViberOutboundContentType.
    • Removed ViberMessageStatus – Now unified into MessageStatus.
    • Removed ViberSpeedLimitTimeUnit – Now unified into SpeedLimitTimeUnit.
    • Removed ViberWebhookInboundReport – Now use ViberInboundMessageViberInboundContent.
  • WhatsApp API

    • Removed unsupported enumeration values from WhatsAppWebhookType.
    • Updated WhatsAppWebhookReferralMediaVideo, WhatsAppWebhookReferralMediaImage, WhatsAppWebhookMediaVideo – Introduced new type field, no longer extending WhatsappWebhookReferalMedia.
    • Refactored WhatsAppWebhookReferralMedia – Changed from an abstract class to a normal class.
    • Removed context field from various WhatsAppWebhook message types:
      • WhatsAppWebhookQuickReplyContent
      • WhatsAppWebhookListReplyContent
      • WhatsAppWebhookInboundAudioMessage
      • WhatsAppWebhookButtonReplyContent
      • WhatsAppWebhookInboundVoiceMessage
      • WhatsAppWebhookInboundVideoMessage
      • WhatsAppWebhookInboundTextMessage
      • WhatsAppWebhookInboundStickerMessage
      • WhatsAppWebhookInboundLocationMessage
      • WhatsAppWebhookInboundImageMessage
      • WhatsAppWebhookInboundDocumentMessage
      • WhatsAppWebhookInboundContactMessage
    • Removed integrationType, pairedMessageId, and callbackData fields from WhatsAppWebhookInboundMessageData.
    • Removed INFECTED_CONTENT, INTERACTIVE_EXTENSION_REPLY, UNSUPPORTED subtypes from WhatsAppWebhookInboundMessage abstract class.
    • Replaced WhatsAppValidityPeriodTimeUnit class with ValidityPeriodTimeUnit.
    • Removed no longer supported 50 business-initiated conversations messaging tear limit for WhatsApp senders.
    • Updated WhatsAppPhoneNumberRequest.typeEnum β†’ WhatsAppPhoneNumberTypeEnum.
    • Updated WhatsAppOtpRequest.typeEnum β†’ WhatsAppNumberType.
    • Removed structure field from WhatsAppDefaultUtilityTemplatePublicApiRequest.
    • Removed structure field from WhatsAppTemplatePublicApiRequest.
    • Removed groupId field from WhatsAppContext.
    • Refactored WhatsAppDefaultTemplateStructureApiData – Now an implementation of WhatsAppTemplateStructureApiData.
    • Refactored WhatsAppAuthenticationTemplateStructureApiData – Now an implementation of WhatsAppTemplateStructureApiData.
  • WebRTC API

    • Updated WebRtcValidityWindow.acceptableDays typeEnum β†’ DeliveryDay.
    • Removed applicationId field from WebRtcTokenRequestModel.
    • Updated WebRtcValidityWindow.LayoutsEnum β†’ WebRtcLayout.
    • Updated WebRtcLocalization.typeEnum β†’ WebRtcLocalizationType.
    • Updated WebRtcWebRtcDestination β†’ WebRtcCallsDestination.
    • Removed fcmServerKey field from WebRtcAndroidPushNotificationConfig.

Removed:

  • Deprecated functions for sending Viber Image, File, and Text messages have been removed. Use ViberApi.sendViberMessages to send messages.
  • All the Calls IVR script related class and from now on all the scripts are processed as String:
    • CallsCallApi
    • CallsCapture
    • CallsCollect
    • CallsDial
    • CallsDialToMany
    • CallsDialToWebRTC
    • CallsDialToConversations
    • CallsForEach
    • CallsGoTo
    • CallsHangup
    • CallsIfThenElse
    • CallsMachineDetection
    • CallsPause
    • CallsPlay
    • CallsPlayFromRecording
    • CallsRecord
    • CallsRepeatUntil
    • CallsRepeatWhile
    • CallsSay
    • CallsSendSms
    • CallsSetVariable
    • CallsSwitchCase
    • CallsWhileDo

These changes align the SDK with the current API specification, ensuring consistency and reliability in future updates.