2017-05-23 16:39:22 +03:00
|
|
|
|
using System.Collections.Generic;
|
2016-10-17 20:10:18 -07:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.eShopOnContainers.Services.Basket.API.Model
|
|
|
|
|
{
|
2020-12-14 15:04:25 +01:00
|
|
|
|
public record CustomerBasket
|
2016-10-17 20:10:18 -07:00
|
|
|
|
{
|
2020-12-14 15:04:25 +01:00
|
|
|
|
public string BuyerId { get; init; }
|
2019-07-31 12:05:11 +02:00
|
|
|
|
|
2020-12-14 15:04:25 +01:00
|
|
|
|
public List<BasketItem> Items { get; init; } = new List<BasketItem>();
|
2019-07-31 12:05:11 +02:00
|
|
|
|
|
|
|
|
|
public CustomerBasket()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2016-10-17 20:10:18 -07:00
|
|
|
|
|
2016-11-16 10:19:00 +01:00
|
|
|
|
public CustomerBasket(string customerId)
|
2016-10-17 20:10:18 -07:00
|
|
|
|
{
|
2016-11-16 10:19:00 +01:00
|
|
|
|
BuyerId = customerId;
|
2016-10-17 20:10:18 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|