-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from SWD392-Domus/feature/quotations-management
Feature/quotations management
- Loading branch information
Showing
23 changed files
with
85 additions
and
22 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoArticle.cs → Domus.Domain/Dtos/Articles/DtoArticle.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Articles; | ||
|
||
public class DtoArticle | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoArticleCategory.cs → ...omain/Dtos/Articles/DtoArticleCategory.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Articles; | ||
|
||
public class DtoArticleCategory | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoArticleImage.cs → ...s.Domain/Dtos/Articles/DtoArticleImage.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Articles; | ||
|
||
public class DtoArticleImage | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
....Domain/Dtos/DtoArticleWithoutCategory.cs → ...tos/Articles/DtoArticleWithoutCategory.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Articles; | ||
|
||
public class DtoArticleWithoutCategory | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoProduct.cs → Domus.Domain/Dtos/Products/DtoProduct.cs
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
2 changes: 1 addition & 1 deletion
2
...s.Domain/Dtos/DtoProductAttributeValue.cs → ...Dtos/Products/DtoProductAttributeValue.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Products; | ||
|
||
public class DtoProductAttributeValue | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoProductCategory.cs → ...omain/Dtos/Products/DtoProductCategory.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Products; | ||
|
||
public class DtoProductCategory | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoProductDetail.cs → ....Domain/Dtos/Products/DtoProductDetail.cs
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Domus.Domain.Dtos.Products; | ||
|
||
public class DtoProductDetailQuotation | ||
{ | ||
public string ProductName { get; set; } = null!; | ||
|
||
public double Price { get; set; } | ||
|
||
public string MonetaryUnit { get; set; } = null!; | ||
|
||
public double Quantity { get; set; } | ||
|
||
public string QuantityType { get; set; } = null!; | ||
|
||
public DtoProductDetail Detail { get; set; } = null!; | ||
} |
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoProductImage.cs → ...s.Domain/Dtos/Products/DtoProductImage.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Products; | ||
|
||
public class DtoProductImage | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
....Domain/Dtos/DtoProductWithoutCategory.cs → ...tos/Products/DtoProductWithoutCategory.cs
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
2 changes: 1 addition & 1 deletion
2
...os/DtoProductWithoutCategoryAndDetails.cs → ...ts/DtoProductWithoutCategoryAndDetails.cs
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
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoNegotiationMessage.cs → .../Dtos/Quotations/DtoNegotiationMessage.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Quotations; | ||
|
||
public class DtoNegotiationMessage | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
Domus.Domain/Dtos/DtoQuotation.cs → Domus.Domain/Dtos/Quotations/DtoQuotation.cs
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,4 +1,4 @@ | ||
namespace Domus.Domain.Dtos; | ||
namespace Domus.Domain.Dtos.Quotations; | ||
|
||
public class DtoQuotation | ||
{ | ||
|
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Text.Json.Serialization; | ||
using Domus.Domain.Dtos.Products; | ||
|
||
namespace Domus.Domain.Dtos.Quotations; | ||
|
||
public class DtoQuotationFullDetails | ||
{ | ||
public string Id { get; set; } = null!; | ||
|
||
public DtoDomusUser Customer { get; set; } = null!; | ||
|
||
public DtoDomusUser Staff { get; set; } = null!; | ||
|
||
public string Status { get; set; } = null!; | ||
|
||
public DateTime? ExpireAt { get; set; } | ||
|
||
[JsonPropertyName("products")] | ||
public ICollection<DtoProductDetailQuotation> ProductDetailQuotations { get; set; } = new List<DtoProductDetailQuotation>(); | ||
|
||
[JsonPropertyName("negotiationLog")] | ||
public DtoQuotationNegotiationLog QuotationNegotiationLog { get; set; } = null!; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Domus.Domain.Dtos.Quotations; | ||
|
||
public class DtoQuotationNegotiationLog | ||
{ | ||
public bool? IsClosed { get; set; } | ||
|
||
public DateTime StartAt { get; set; } | ||
|
||
public DateTime? CloseAt { get; set; } | ||
|
||
[JsonPropertyName("messages")] | ||
public ICollection<DtoNegotiationMessage> NegotiationMessages { get; set; } = null!; | ||
} |
2 changes: 1 addition & 1 deletion
2
...oQuotationNegotationLogWithoutMessages.cs → ...oQuotationNegotationLogWithoutMessages.cs
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
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
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
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,4 +1,4 @@ | ||
using Domus.Domain.Dtos; | ||
using Domus.Domain.Dtos.Articles; | ||
|
||
namespace Domus.Service.Models.Requests.Articles; | ||
|
||
|