-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
153 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace Headway.RemediatR.Core.Model | ||
{ | ||
public class Product | ||
{ | ||
public int ProductId { get; set; } | ||
public string? Name { get; set; } | ||
public ProductType ProductType { get; set; } | ||
public RateType RateType { get; set; } | ||
public RepaymentType RepaymentType { get; set; } | ||
public DateTime StartDate { get; set; } | ||
public decimal Value { get; set; } | ||
public int Duration { get; set; } | ||
public decimal Rate { get; set; } | ||
|
||
[Required(ErrorMessage = "Name is required")] | ||
[StringLength(50, ErrorMessage = "Name cannot exceed 50 characters")] | ||
public string? Name { get; set; } | ||
|
||
[Column(TypeName = "decimal(18, 2)")] | ||
public decimal? Value { get; set; } | ||
|
||
[Range(3, 360, ErrorMessage = "Duration must be between 3 and 360")] | ||
public int? Duration { get; set; } | ||
|
||
[Column(TypeName = "decimal(4, 2)")] | ||
public decimal? Rate { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace Headway.RemediatR.Core.Model | ||
{ | ||
public class Program | ||
{ | ||
public int ProgramId { get; set; } | ||
public string? Name { get; set; } | ||
public decimal? Compensation { get; set; } | ||
public decimal? CompensatoryInterest { get; set; } | ||
public ProductType ProductType { get; set; } | ||
public RateType RateType { get; set; } | ||
public RepaymentType RepaymentType { get; set; } | ||
public DateTime? StartDate { get; set; } | ||
public DateTime? EndDate { get; set; } | ||
|
||
[Required(ErrorMessage = "Name is required")] | ||
[StringLength(50, ErrorMessage = "Name cannot exceed 50 characters")] | ||
public string? Name { get; set; } | ||
|
||
[Column(TypeName = "decimal(18, 2)")] | ||
public decimal? Compensation { get; set; } | ||
|
||
[Column(TypeName = "decimal(4, 2)")] | ||
public decimal? CompensatoryInterest { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace Headway.RemediatR.Core.Model | ||
{ | ||
public class RefundCalculation | ||
{ | ||
public int RefundCalculationId { get; set; } | ||
|
||
[Column(TypeName = "decimal(18, 2)")] | ||
public decimal? BasicRefundAmount { get; set; } | ||
|
||
[Column(TypeName = "decimal(18, 2)")] | ||
public decimal? CompensatoryAmount { get; set; } | ||
|
||
[Column(TypeName = "decimal(18, 2)")] | ||
public decimal? CompensatoryInterestAmount { get; set; } | ||
|
||
[Column(TypeName = "decimal(18, 2)")] | ||
public decimal? TotalCompensatoryAmount { get; set; } | ||
|
||
[Column(TypeName = "decimal(18, 2)")] | ||
public decimal? TotalRefundAmount { get; set; } | ||
|
||
public DateTime? CalculatedDate { get; set; } | ||
|
||
[MaxLength(50)] | ||
public string? CalculatedBy { get; set; } | ||
} | ||
} |