Skip to content

Commit 436e3fc

Browse files
author
LilianBittar
committed
Implemented models + parts of the services.
1 parent 81f31e9 commit 436e3fc

File tree

9 files changed

+45
-0
lines changed

9 files changed

+45
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
namespace Shopping.WebApp.Models;
2+
3+
public class BasketChackoutModel
4+
{
5+
public string UserName { get; set; }
6+
public decimal TotalPrice { get; set; }
7+
// BillingAddress
8+
public string FirstName { get; set; }
9+
public string LastName { get; set; }
10+
public string EmailAddress { get; set; }
11+
public string AddressLine { get; set; }
12+
public string Country { get; set; }
13+
public string State { get; set; }
14+
public string ZipCode { get; set; }
15+
// Payment
16+
public string CardName { get; set; }
17+
public string CardNumber { get; set; }
18+
public string Expiration { get; set; }
19+
public string CVV { get; set; }
20+
public int PaymentMethod { get; set; }
21+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace Shopping.WebApp.Models;
2+
3+
public class BasketItemModel
4+
{
5+
public int Quantity { get; set; }
6+
public string Color { get; set; }
7+
public decimal Price { get; set; }
8+
public string ProductId { get; set; }
9+
public string ProductName { get; set; }
10+
}
480 Bytes
Binary file not shown.
724 Bytes
Binary file not shown.
1.54 KB
Binary file not shown.
544 Bytes
Binary file not shown.
694 Bytes
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using Shopping.WebApp.Models;
2+
3+
namespace Shopping.WebApp.Services;
4+
5+
public interface IOrderService
6+
{
7+
Task<IEnumerable<OrderResponseModel>> GetOrdersByUserName(string userName);
8+
}

src/Shopping.WebApp/appsettings.Development.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"Default": "Information",
66
"Microsoft.AspNetCore": "Warning"
77
}
8+
},
9+
"ConnectionStrings": {
10+
"DefaultConnection" : ""
11+
},
12+
"ApiSetting": {
13+
"Gatewayaddress": "http://localhost:8010"
814
}
915
}

0 commit comments

Comments
 (0)