Adding
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using LCU.Library.Internal.FileOperationsModels.Models.NameSettings;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class ActionCreditCardRequest : ReturnResponse
|
||||
{
|
||||
[Required]
|
||||
public string FilePath { get; set; }
|
||||
[Required]
|
||||
public string DynamicFileName { get; set; }
|
||||
[Required]
|
||||
public DynamicNameSetting DynamicFileSettings { get; set; }
|
||||
[NotMapped]
|
||||
public string FinalBasePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return FilePath.EndsWith("\\") ? FilePath : $"{FilePath}\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using LCU.Library.Internal.FileOperationsModels.Models.NameSettings;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class ActionVehicleRequest : ReturnResponse
|
||||
{
|
||||
[Required]
|
||||
public string FilePath { get; set; }
|
||||
[Required]
|
||||
public string DynamicFileName { get; set; }
|
||||
[Required]
|
||||
public DynamicNameSetting DynamicFileSettings { get; set; }
|
||||
[NotMapped]
|
||||
public string FinalBasePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return FilePath.EndsWith("\\") ? FilePath : $"{FilePath}\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using LCU.Library.Internal.FileOperationsModels.Models.NameSettings;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class AlliedGapMbpRequest : ReturnResponse
|
||||
{
|
||||
[Required]
|
||||
public string FilePath { get; set; }
|
||||
[Required]
|
||||
public string DynamicFileName { get; set; }
|
||||
[Required]
|
||||
public DynamicNameSetting DynamicFileSettings { get; set; }
|
||||
[NotMapped]
|
||||
public string FinalBasePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return FilePath.EndsWith("\\") ? FilePath : $"{FilePath}\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class DayforceProcessRequest : ReturnResponse
|
||||
{
|
||||
public List<string> MissingRoleNotification { get; set; }
|
||||
public List<string> TerminatedEmployeeNotification { get; set; }
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class DepartmentPersonnelSearchRequest
|
||||
{
|
||||
public int DepartmentId { get; set; }
|
||||
public int Year { get; set; }
|
||||
public int Month { get; set; }
|
||||
public bool IncludeAllPersonnel { get; set; }
|
||||
|
||||
public DepartmentPersonnelSearchRequest()
|
||||
{
|
||||
IncludeAllPersonnel = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class DepartmentUpdateRequest
|
||||
{
|
||||
[Required]
|
||||
public string EmployeeId { get; set; }
|
||||
[Required]
|
||||
public int AssignmentId { get; set; }
|
||||
[Required]
|
||||
[Range(0,100)]
|
||||
public decimal SlidingPayout { get; set; }
|
||||
[Required]
|
||||
public string Role { get; set; }
|
||||
public DateTime? EndDate { get; set; }
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class GoalDispersalRequest : ReturnResponse
|
||||
{
|
||||
public int MonthsBack { get; set; } = -1;
|
||||
public List<string> GoalDispersalNotification { get; set; }
|
||||
[NotMapped]
|
||||
public DateTime StartDate
|
||||
{
|
||||
get
|
||||
{
|
||||
var datePeriod = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);
|
||||
datePeriod = datePeriod.AddMonths(MonthsBack);
|
||||
return datePeriod;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using LCU.Library.Internal.IncentiveApiModels.Common;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class GoalSearchRequest
|
||||
{
|
||||
public MonthRange? DateRange { get; set; }
|
||||
public bool IncludePersonnel { get; set; }
|
||||
public int? departmentId { get; set; }
|
||||
|
||||
public GoalSearchRequest()
|
||||
{
|
||||
IncludePersonnel = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using LCU.Library.Internal.FileOperationsModels.Models.NameSettings;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class ImportCreditCardSalesRequest : ReturnResponse
|
||||
{
|
||||
[Required]
|
||||
public string FilePath { get; set; }
|
||||
[Required]
|
||||
public string DynamicFileName { get; set; }
|
||||
[Required]
|
||||
public DynamicNameSetting DynamicFileSettings { get; set; }
|
||||
[NotMapped]
|
||||
public string FinalBasePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return FilePath.EndsWith("\\") ? FilePath : $"{FilePath}\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using LCU.Library.Internal.FileOperationsModels.Models.NameSettings;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class ImportIndirectVehicleSalesRequest : ReturnResponse
|
||||
{
|
||||
[Required]
|
||||
public string FilePath { get; set; }
|
||||
[Required]
|
||||
public string IndirectDynamicFileName { get; set; }
|
||||
[Required]
|
||||
public DynamicNameSetting IndirectDynamicFileSettings { get; set; }
|
||||
[Required]
|
||||
public string DirectDynamicFileName { get; set; }
|
||||
[Required]
|
||||
public DynamicNameSetting DirectDynamicFileSettings { get; set; }
|
||||
[NotMapped]
|
||||
public string FinalBasePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return FilePath.EndsWith("\\") ? FilePath : $"{FilePath}\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Enums;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class IncentiveProcessRequest : ReturnResponse
|
||||
{
|
||||
public IncentiveProcessType IncentiveProcessType { get; set; }
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Enums;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class NightlyIncentiveProcessRequest : ReturnResponse
|
||||
{
|
||||
public NightlyIncentiveProcessType NightlyIncentiveProcessType { get; set; }
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class PayoutIncentiveRequest : ReturnResponse
|
||||
{
|
||||
public int MonthsBack { get; set; }
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using LCU.Library.Internal.ApiResponse.Models;
|
||||
using System;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class ReportingRequest : ReturnResponse
|
||||
{
|
||||
public int MonthsBack { get; set; }
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Requests
|
||||
{
|
||||
public class UserSearchRequest
|
||||
{
|
||||
public string Query { get; set; }
|
||||
public string Role { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string MiddleInit { get; set; }
|
||||
public string DnaOrgNbr { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user