Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions OFM.Infrastructure.WebAPI/Extensions/SetupInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ public static class ProviderProfiles
public const string GetDBABatchName = "Get DBA Information for Organization in batch";
}

public static class LicenceDetailRecords
{
public const Int16 CalculateLicenceTotal = 900;
public const string CalculteLicenceTotalName = "Calculate Licence Space Total";
}
public static class Payments
{
public const Int16 SendPaymentRequestId = 500;
Expand Down
18 changes: 18 additions & 0 deletions OFM.Infrastructure.WebAPI/Models/DataverseModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,24 @@ public class QuestionResponse : ofm_question_response
public string ofm_header_qid { get; set; }
}

public class LicenceDetail
{
[JsonPropertyName("Total_Enrolled_Spaces")]
public int Total_Enrolled_Spaces { get; set; }

[JsonPropertyName("Total_Licenced_Spaces")]
public int Total_Licenced_Spaces { get; set; }

[JsonPropertyName("Total_Operational_Spaces")]
public int Total_Operational_Spaces { get; set; }

[property: JsonPropertyName("type")]
public int Type { get; set; }

[property: JsonPropertyName("type@OData.Community.Display.V1.FormattedValue")]
public string TypeName { get; set; } = string.Empty;
}

#region External Parameters

#endregion
2 changes: 2 additions & 0 deletions OFM.Infrastructure.WebAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using OFM.Infrastructure.WebAPI.Services.Processes.ApplicationScore;
using System.Collections;
using OFM.Infrastructure.WebAPI.Handlers;
using OFM.Infrastructure.WebAPI.Services.Processes.LicenceDetailRecords;

var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(serverOptions => serverOptions.AddServerHeader = false);
Expand Down Expand Up @@ -87,6 +88,7 @@
services.AddScoped<ID365ProcessProvider, P615CreateMonthlyReportProvider>();
services.AddScoped<ID365ProcessProvider, P700ProviderCertificateProvider>();
services.AddScoped<ID365ProcessProvider, P800ScoreCalculatorProvider>();
services.AddScoped<ID365ProcessProvider, P900CalculateLicenceTotal>();

services.AddScoped<D365Email>();
services.AddScoped<ID365BackgroundProcessHandler, D365BackgroundProcessHandler>();
Expand Down
Loading
Loading