Skip to content

Commit

Permalink
Update IntegrationEventProvider.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
FirestarJes committed Oct 29, 2024
1 parent 2bccd43 commit cd1c7df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ private Task<IntegrationEvent> CreateAsync(Application.SettlementReports_v2.Sett
{
ReasonIdentifier = status switch
{
SettlementReportStatus.Completed => "SettlementReportCompleted",
SettlementReportStatus.Completed => "SettlementReportReadyForDownload",
SettlementReportStatus.Failed => "SettlementReportFailed",
_ => throw new InvalidOperationException("Sending notification for settlement report with status other than Completed or Failed is not supported"),
},
TargetActorId = reportForNotification.ActorId.ToString(),
TargetUserId = reportForNotification.UserId.ToString(),
RelatedId = reportForNotification.Id.ToString(),
OccurredAt = now.ToTimestamp(),
ExpiresAt = now.AddHours(23).ToTimestamp(),
Expand Down

0 comments on commit cd1c7df

Please sign in to comment.