diff --git a/src/ApiGateways/Shopping.Aggregator/Models/BasketItemExtendedModel.cs b/src/ApiGateways/Shopping.Aggregator/Models/BasketItemExtendedModel.cs new file mode 100644 index 0000000..dcca989 --- /dev/null +++ b/src/ApiGateways/Shopping.Aggregator/Models/BasketItemExtendedModel.cs @@ -0,0 +1,18 @@ +namespace Shopping.Aggregator.Models; +/// +/// It is the DTO of the Basket.API -> Entities -> ShoppingCartItem +/// +public class BasketItemExtendedModel +{ + public int Quantity { get; set; } + public string Color { get; set; } + public decimal Price { get; set; } + public string ProductId { get; set; } + public string ProductName { get; set; } + + // Product Related Additional Fields -> these info will be retrieved from mongoDB by using productId + public string Category { get; set; } + public string Summary { get; set; } + public string Description { get; set; } + public string ImageFile { get; set; } +} \ No newline at end of file diff --git a/src/ApiGateways/Shopping.Aggregator/Models/BasketModel.cs b/src/ApiGateways/Shopping.Aggregator/Models/BasketModel.cs new file mode 100644 index 0000000..635aded --- /dev/null +++ b/src/ApiGateways/Shopping.Aggregator/Models/BasketModel.cs @@ -0,0 +1,10 @@ +namespace Shopping.Aggregator.Models; +/// +/// It is the DTO of the Basket.API -> Entities -> ShoppingCart +/// +public class BasketModel +{ + public string UserName { get; set; } + public List Items { get; set; } = new List(); + public decimal TotalPrice { get; set; } +} \ No newline at end of file diff --git a/src/ApiGateways/Shopping.Aggregator/Models/CatalogModel.cs b/src/ApiGateways/Shopping.Aggregator/Models/CatalogModel.cs new file mode 100644 index 0000000..802db09 --- /dev/null +++ b/src/ApiGateways/Shopping.Aggregator/Models/CatalogModel.cs @@ -0,0 +1,14 @@ +namespace Shopping.Aggregator.Models; +/// +/// It is the DTO of the Catalog.API -> Entities -> Product +/// +public class CatalogModel +{ + public string Id { get; set; } + public string Name { get; set; } + public string Category { get; set; } + public string Summary { get; set; } + public string Description { get; set; } + public string ImageFile { get; set; } + public decimal Price { get; set; } +} \ No newline at end of file diff --git a/src/ApiGateways/Shopping.Aggregator/Models/OrderResponse.cs b/src/ApiGateways/Shopping.Aggregator/Models/OrderResponse.cs new file mode 100644 index 0000000..7dc2269 --- /dev/null +++ b/src/ApiGateways/Shopping.Aggregator/Models/OrderResponse.cs @@ -0,0 +1,25 @@ +namespace Shopping.Aggregator.Models; +/// +/// It is the DTO of the Ordering.Domain -> Entities -> Order +/// +public class OrderResponse +{ + public string UserName { get; set; } + public decimal TotalPrice { get; set; } + + // BillingAddress + public string FirstName { get; set; } + public string LastName { get; set; } + public string EmailAddress { get; set; } + public string AddressLine { get; set; } + public string Country { get; set; } + public string? State { get; set; } + public string? ZipCode { get; set; } + + // Payment + public string? CardName { get; set; } + public string? CardNumber { get; set; } + public string? Expiration { get; set; } + public string? CVV { get; set; } + public int PaymentMethod { get; set; } +} \ No newline at end of file