Notify performers of API bookings and client-signed estimates
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
fae754f102
commit
f9d95fd98f
13 changed files with 390 additions and 63 deletions
29
src/Yavsc.Server/Helpers/RdvQueryEventHelpers.cs
Normal file
29
src/Yavsc.Server/Helpers/RdvQueryEventHelpers.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using Yavsc.Abstract.Identity;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Models.Billing;
|
||||
using Yavsc.Models.Messaging;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.Helpers;
|
||||
|
||||
public static class RdvQueryEventHelpers
|
||||
{
|
||||
public static RdvQueryEvent CreateEvent(this RdvQuery query, string subtopic)
|
||||
=> new(subtopic)
|
||||
{
|
||||
Sender = query.ClientId,
|
||||
Reason = query.Reason,
|
||||
Client = new ClientProviderInfo
|
||||
{
|
||||
UserName = query.Client.UserName,
|
||||
UserId = query.ClientId,
|
||||
Avatar = query.Client.Avatar
|
||||
},
|
||||
Previsional = query.Provisional,
|
||||
EventDate = query.EventDate,
|
||||
Location = query.Location,
|
||||
Id = query.Id,
|
||||
ActivityCode = query.ActivityCode,
|
||||
BillingCode = BillingCodes.Rdv
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue