/
Customer.cs
36 lines (34 loc) · 1.01 KB
/
Customer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.Configuration;
using Pitstop.CustomerManagementAPI.Commands;
namespace Pitstop.CustomerManagementAPI.Model
{
public class Customer
{
public string CustomerId { get; set; }
public string Name { get; set; }
public string Address { get; set; }
public string PostalCode { get; set; }
public string City { get; set; }
public string TelephoneNumber { get; set; }
public string EmailAddress { get; set; }
// v2 functionality:
// public int? LoyaltyLevel
// {
// get
// {
// switch (City.ToLowerInvariant())
// {
// case "amsterdam":
// return 3;
// case "den haag":
// return 2;
// default:
// return 1;
// }
// }
// }
}
}