Vonage / vonage-java-sdk

Vonage Server SDK for Java. API support for SMS, Messages, Voice, Text-to-Speech, Numbers, Verify (2FA), Video and more.
https://developer.vonage.com/en/home
Apache License 2.0
95 stars 119 forks source link

feat: Add from to Whatsapp Interactive Verify v2 workflow #516

Closed SMadani closed 5 months ago

SMadani commented 5 months ago

This PR adds the from parameter for WhatsApp Interactive workflow and now requires it to be set for both the regular WhatsApp and WhatsApp Interactive channels, since the shared WABA is no longer working. For backwards compatibility, the SDK will not throw an exception on construction, but in a future release the receiver-only constructors will be removed and have now been deprecated.

codecov-commenter commented 5 months ago

Codecov Report

Merging #516 (7ae76ef) into main (3ee9d86) will decrease coverage by 0.05%. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #516 +/- ## ============================================ - Coverage 95.84% 95.79% -0.05% - Complexity 2974 2978 +4 ============================================ Files 430 431 +1 Lines 6999 7014 +15 Branches 403 403 ============================================ + Hits 6708 6719 +11 - Misses 165 169 +4 Partials 126 126 ``` | [Files](https://app.codecov.io/gh/Vonage/vonage-java-sdk/pull/516?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vonage) | Coverage Δ | | |---|---|---| | [...onage/client/verify2/AbstractWhatsappWorkflow.java](https://app.codecov.io/gh/Vonage/vonage-java-sdk/pull/516?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vonage#diff-c3JjL21haW4vamF2YS9jb20vdm9uYWdlL2NsaWVudC92ZXJpZnkyL0Fic3RyYWN0V2hhdHNhcHBXb3JrZmxvdy5qYXZh) | `100.00% <100.00%> (ø)` | | | [.../com/vonage/client/verify2/SilentAuthWorkflow.java](https://app.codecov.io/gh/Vonage/vonage-java-sdk/pull/516?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vonage#diff-c3JjL21haW4vamF2YS9jb20vdm9uYWdlL2NsaWVudC92ZXJpZnkyL1NpbGVudEF1dGhXb3JrZmxvdy5qYXZh) | `95.00% <ø> (ø)` | | | [...in/java/com/vonage/client/verify2/SmsWorkflow.java](https://app.codecov.io/gh/Vonage/vonage-java-sdk/pull/516?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vonage#diff-c3JjL21haW4vamF2YS9jb20vdm9uYWdlL2NsaWVudC92ZXJpZnkyL1Ntc1dvcmtmbG93LmphdmE=) | `86.20% <ø> (-13.80%)` | :arrow_down: | | [...com/vonage/client/verify2/VerificationRequest.java](https://app.codecov.io/gh/Vonage/vonage-java-sdk/pull/516?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vonage#diff-c3JjL21haW4vamF2YS9jb20vdm9uYWdlL2NsaWVudC92ZXJpZnkyL1ZlcmlmaWNhdGlvblJlcXVlc3QuamF2YQ==) | `98.43% <100.00%> (ø)` | | | [...onage/client/verify2/WhatsappCodelessWorkflow.java](https://app.codecov.io/gh/Vonage/vonage-java-sdk/pull/516?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vonage#diff-c3JjL21haW4vamF2YS9jb20vdm9uYWdlL2NsaWVudC92ZXJpZnkyL1doYXRzYXBwQ29kZWxlc3NXb3JrZmxvdy5qYXZh) | `100.00% <100.00%> (ø)` | | | [...va/com/vonage/client/verify2/WhatsappWorkflow.java](https://app.codecov.io/gh/Vonage/vonage-java-sdk/pull/516?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vonage#diff-c3JjL21haW4vamF2YS9jb20vdm9uYWdlL2NsaWVudC92ZXJpZnkyL1doYXRzYXBwV29ya2Zsb3cuamF2YQ==) | `100.00% <100.00%> (ø)` | |