Skip to content

Commit 90f5142

Browse files
ib-fsrnecinfobip-ci
andauthored
Update to version 6.2.0 (#73)
Co-authored-by: infobip-ci <[email protected]>
1 parent c40bd64 commit 90f5142

File tree

84 files changed

+13815
-5110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+13815
-5110
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,44 @@ All notable changes to the library will be documented in this file.
44

55
The format of the file is based on [Keep a Changelog](http://keepachangelog.com/) and this library adheres to [Semantic Versioning](http://semver.org/) as mentioned in the [README.md][readme] file.
66

7+
## [ [6.2.0](https://github.com/infobip/infobip-api-php-client/releases/tag/6.2.0) ] - 2025-01-20
8+
9+
⚠️ **IMPORTANT NOTE:** This release contains breaking changes!
10+
11+
### Added
12+
* Support for [Calls Configuration](https://www.infobip.com/docs/api/channels/voice/calls/calls-configurations).
13+
* Additional validation for WhatsApp `sender` parameters.
14+
* Support for Email IP Management instead of set of deprecated Email IP endpoints.
15+
Check [Email API documentation](https://www.infobip.com/docs/api/channels/email) for additional details (**BREAKING**).
16+
* Footer support for Messages API Message. For additional details check [Messages API documentation](https://www.infobip.com/docs/api/platform/messages-api/sending-message/send-messages-api-message).
17+
* Add calendar event button support for Messages API Message. For additional details check [Messages API documentation](https://www.infobip.com/docs/api/platform/messages-api/sending-message/send-messages-api-message).
18+
* Card options for Carousel and Rich Link body types in Messages API Message. For additional details check [Messages API documentation](https://www.infobip.com/docs/api/platform/messages-api/sending-message/send-messages-api-message).
19+
* Support for OTP templates for Viber messages. For additional details check [Viber API documentation](https://www.infobip.com/docs/api/channels/viber/viber-business-messages/send-viber-messages).
20+
* Support for `telemarketerId` in India DLT options when sending failover SMS messages through Viber API.
21+
* Support for cache duration when playing audio files by providing the URL to the audio file in Calls API.
22+
* New Call state: `DISCONNECTED`.
23+
* Support for downloading Voice IVR recorded files. Check the [Voice API documentation](https://www.infobip.com/docs/api/channels/voice/interactive-voice-response/search-voice-ivr-recorded-file) for additional details.
24+
25+
### Changed
26+
* Email Suppression type enum models are now consolidated. Use `EmailSuppressionType` and `EmailAddSuppressionType` instead of `EmailAddDeleteSuppressionType` and `Infobip/Model/EmailGetSuppressionType` (**BREAKING**).
27+
* Don't allow empty text when sending failover SMS messages through Viber API.
28+
* Explicitly allow enum denormalization only for string types.
29+
* Extend `OneOfInterfaceNormalizer` with enum support.
30+
* Adjusted Call Voice models, so both `CallsVoice` and `CallsSynthesisVoice` are used in the correct context (**BREAKING**).
31+
* Adjusted Call Language models, so both `CallsLanguage` and `CallTranscriptionLanguages` are used in the correct context (**BREAKING**).
32+
33+
### Fixed
34+
* [Issue #67](https://github.com/infobip/infobip-api-php-client/issues/67): Fetching WhatsApp media metadata methods now return an array that contains header values provided by the API.
35+
Check the [API Documentation](https://github.com/infobip/infobip-api-php-client/issues/67) and the [ReceiveWhatsAppApiTest](https://github.com/infobip/infobip-api-php-client/blob/master/Test/Api/WhatsApp/ReceiveWhatsAppApiTest.php#L81) for additional details.
36+
* `EmailSuppressionInfo` model to correctly specify `DateTime` type for `createdDate` field.
37+
* Invalid type hints for map-like properties.
38+
* Number Masking:
39+
* DELETE requests and error processing
40+
* Content schema when uploading audio files
41+
* UTC date-time deserialization in setup response model.
42+
* Interactive Voice Response:
43+
* `lastUsageDate` filed processing (`yyyy-MM-dd` format)
44+
* Adjusted models in script processing
745

846
## [ [6.1.0](https://github.com/infobip/infobip-api-php-client/releases/tag/6.1.0) ] - 2024-12-16
947

Infobip/Api/CallRoutingApi.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ private function getCallRouteApiException(ApiException $apiException): ApiExcept
900900
*
901901
* @throws ApiException on non-2xx response
902902
* @throws InvalidArgumentException
903-
* @return \Infobip\Model\CallRoutingRouteResponsePage|\Infobip\Model\ApiError|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException
903+
* @return \Infobip\Model\CallRoutingRouteResponsePage|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException
904904
*/
905905
public function getCallRoutes(int $page = 0, int $size = 20)
906906
{
@@ -1080,7 +1080,7 @@ private function getCallRoutesRequest(int $page = 0, int $size = 20): Request
10801080
/**
10811081
* Create response for operation 'getCallRoutes'
10821082
* @throws ApiException on non-2xx response
1083-
* @return \Infobip\Model\CallRoutingRouteResponsePage|\Infobip\Model\ApiError|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|null
1083+
* @return \Infobip\Model\CallRoutingRouteResponsePage|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|\Infobip\Model\ApiException|null
10841084
*/
10851085
private function getCallRoutesResponse(ResponseInterface $response, UriInterface $requestUri): mixed
10861086
{
@@ -1115,7 +1115,7 @@ private function getCallRoutesApiException(ApiException $apiException): ApiExcep
11151115
if ($statusCode === 400) {
11161116
$data = $this->objectSerializer->deserialize(
11171117
$apiException->getResponseBody(),
1118-
'\Infobip\Model\ApiError',
1118+
'\Infobip\Model\ApiException',
11191119
$apiException->getResponseHeaders()
11201120
);
11211121

0 commit comments

Comments
 (0)