feat(EnvelopeReceiverBase): HasPhoneNumber-Eigenschaft sowohl zur Entität als auch zum DTO hinzugefügt

This commit is contained in:
Developer 02
2024-11-28 20:46:51 +01:00
parent 423b293197
commit b4a97abe6b
3 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
using EnvelopeGenerator.Domain.HttpResponse;
namespace EnvelopeGenerator.Application
{
public static class MappingExtensions
{
public static bool Ok(this GtxMessagingResponse gtxMessagingResponse)
=> gtxMessagingResponse.TryGetValue("message-status", out var status)
&& status?.ToString()?.ToLower() == "ok";
}
}