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
|
|
@ -0,0 +1,23 @@
|
|||
using Yavsc.Interfaces.Workflow;
|
||||
using Yavsc.Models.Billing;
|
||||
|
||||
namespace Yavsc.Models.Messaging;
|
||||
|
||||
public sealed class ClientEstimateSignedEvent : IEvent
|
||||
{
|
||||
public ClientEstimateSignedEvent(Estimate estimate, string sender)
|
||||
{
|
||||
EstimateId = estimate.Id;
|
||||
EstimateTitle = estimate.Title;
|
||||
PerformerId = estimate.OwnerId;
|
||||
Sender = sender;
|
||||
}
|
||||
|
||||
public long EstimateId { get; }
|
||||
public string EstimateTitle { get; }
|
||||
public string PerformerId { get; }
|
||||
public string Topic => "ClientEstimateSigned";
|
||||
public string Sender { get; set; }
|
||||
public string Title => "Devis signé par le client";
|
||||
public string CreateBody() => $"{Sender} a signé le devis n°{EstimateId} : {EstimateTitle}.";
|
||||
}
|
||||
Loading…
Reference in a new issue