Skip to content

Commit

Permalink
#215 - add agent field to bill
Browse files Browse the repository at this point in the history
  • Loading branch information
itbeard committed Jun 26, 2022
1 parent f9005d3 commit bafecc6
Show file tree
Hide file tree
Showing 21 changed files with 758 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ public class CreateBillRequest
public string ContactEmail { get; set; }

public ContactType? ContactType { get; set; }

public bool IsContactAgent { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ public class EditBillRequest
public string ContactName { get; set; }

public ContactType? ContactType { get; set; }

public bool IsContactAgent { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ public class GetBillResponse

public ContactType? ContactType { get; set; }

public bool IsContactAgent { get; set; }

public GetBillContentDto Content { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class CreateContentBillDto
[EnumDataType(typeof(ContactType))]
public ContactType? ContactType { get; set; }

public bool IsContactAgent { get; set; }

[Range(10, Double.MaxValue, ErrorMessage = "Значение поля {0} должно быть больше чем {1}.")]
public decimal Value { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class EditContentBillDto
[EnumDataType(typeof(ContactType))]
public ContactType? ContactType { get; set; }

public bool IsContactAgent { get; set; }

[Range(10, Double.MaxValue, ErrorMessage = "Значение поля {0} должно быть больше чем {1}.")]
public decimal Value { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public class GetContentBillDto : IPaymentStatus

public string ContactName { get; set; }

public bool IsContactAgent { get; set; }

public ContactType? ContactType { get; set; }

public PaymentStatus PaymentStatus { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions Pds/Pds.Data/Entities/Bill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public class Bill : EntityBase
public string ContactName { get; set; }

public ContactType? ContactType { get; set; }

public bool IsContactAgent { get; set; }

[Column(TypeName = "varchar(50)")]
public string ContractNumber { get; set; }
Expand Down
Loading

0 comments on commit bafecc6

Please sign in to comment.