add supplier repo and suppliercreationdto
This commit is contained in:
23
AB.Contracts/ContactPersonDto.cs
Normal file
23
AB.Contracts/ContactPersonDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AB.Contracts;
|
||||
|
||||
public class ContactPersonDto
|
||||
{
|
||||
|
||||
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Salutation { get; set; }
|
||||
|
||||
public string PhoneNumer { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -16,5 +16,4 @@ public class CustomerDto
|
||||
public string Iban { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
}
|
||||
|
||||
24
AB.Contracts/PreferredCommunicationType.cs
Normal file
24
AB.Contracts/PreferredCommunicationType.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AB.Contracts
|
||||
{
|
||||
public enum PreferredCommunicationType
|
||||
{
|
||||
[EnumMember(Value = "Email")]
|
||||
Email,
|
||||
|
||||
[EnumMember(Value = "Postal")]
|
||||
Postal,
|
||||
|
||||
[EnumMember(Value = "Phone")]
|
||||
Phone,
|
||||
|
||||
[EnumMember(Value = "Phone")]
|
||||
Fax
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace AB.Contracts;
|
||||
|
||||
public class SupplierForCreationDto
|
||||
{
|
||||
|
||||
public string Salutation { get; set; }
|
||||
|
||||
public string Name1 { get; set; }
|
||||
|
||||
public string Name2 { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public string TaxId { get; set; }
|
||||
|
||||
[DataMember(Name = "PreferredCommunication", EmitDefaultValue = true)]
|
||||
public PreferredCommunicationType PreferredCommunication { get; set; }
|
||||
|
||||
public IEnumerable<ContactPersonDto> ContactPersons { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user