Vonage / vonage-php-sdk-core

Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com/
Apache License 2.0
908 stars 181 forks source link

Add new messages fields #486

Closed SecondeJK closed 1 month ago

SecondeJK commented 1 month ago

This PR adds new available fields as added by the API Spec

Description

You can now set a TTL (Time-to-live) on MMS Objects. This is done with $message->setTtl(300); Please see the API spec for more information.

Motivation and Context

Evolution of Vonage products.

How Has This Been Tested?

Tests have been updated to check the output sent to the API

Example Output or Screenshots (if appropriate):

Types of changes

Checklist:

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 88.23529% with 4 lines in your changes missing coverage. Please review.

Project coverage is 80.00%. Comparing base (ba6b02a) to head (7278f1c). Report is 34 commits behind head on main.

:exclamation: Current head 7278f1c differs from pull request most recent head 0bec49c

Please upload reports for the commit 0bec49c to get more accurate results.

Files Patch % Lines
src/Messages/MessageTraits/ContextTrait.php 60.00% 2 Missing :warning:
src/Messages/MessageTraits/TtlTrait.php 60.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #486 +/- ## ============================================ + Coverage 79.18% 80.00% +0.81% - Complexity 2371 2635 +264 ============================================ Files 218 240 +22 Lines 6356 7076 +720 ============================================ + Hits 5033 5661 +628 - Misses 1323 1415 +92 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.