Merge branch 'newmain'
This commit is contained in:
-4
@@ -6,12 +6,8 @@ public class CreateNewTransactionsRequestValidator : AbstractValidator<CreateNew
|
||||
{
|
||||
public CreateNewTransactionsRequestValidator()
|
||||
{
|
||||
RuleFor(model => model.MerchantId)
|
||||
.NotEmpty();
|
||||
RuleFor(model => model.Amount)
|
||||
.NotNull();
|
||||
RuleFor(model => model.CallbackUrl)
|
||||
.NotEmpty();
|
||||
RuleFor(model => model.Description)
|
||||
.NotEmpty();
|
||||
RuleFor(model => model.PaymentStatus)
|
||||
|
||||
-4
@@ -8,12 +8,8 @@ public class UpdateTransactionsRequestValidator : AbstractValidator<UpdateTransa
|
||||
{
|
||||
RuleFor(model => model.Id)
|
||||
.NotNull();
|
||||
RuleFor(model => model.MerchantId)
|
||||
.NotEmpty();
|
||||
RuleFor(model => model.Amount)
|
||||
.NotNull();
|
||||
RuleFor(model => model.CallbackUrl)
|
||||
.NotEmpty();
|
||||
RuleFor(model => model.Description)
|
||||
.NotEmpty();
|
||||
RuleFor(model => model.PaymentStatus)
|
||||
|
||||
Reference in New Issue
Block a user