ApiManufacturer

ApiManufacturer.

ApiManufacturer

    [DataContract(Namespace = Constants.API.ProdibasModelNamespace)]
    public class ApiManufacturer
    {
        public int Id { get; set; }
        public string Alias { get; set; }
        public string Name { get; set; }
        public string BankGiro { get; set; }
        public string PlusGiro { get; set; }
        public string OrgNumber { get; set; }
        public string VisitingAddress { get; set; }
        public string CoAddress { get; set; }
        public string InvoiceAddress { get; set; }
        public string Website { get; set; }
        public string ZipCode { get; set; }
        public string City { get; set; }
        public string Phone { get; set; }
        public string Fax { get; set; }
        public string Email { get; set; }
        public string CountryIdentifier { get; set; }
        public DateTime ModifiedAt { get; set; }
        public DateTime RegisteredAt { get; set; }
        public bool AllowUseApi { get; set; }
        public int ApiRoleUserId { get; set; }
        public bool IsContractSigned { get; set; }
        public bool IsWholesaler { get; set; }
        public bool IsMemberManufacturerCouncel { get; set; }
        public bool IsManufacturerSafeWater { get; set; }
        public bool IsManufacturerSafeWaterIsSpecified { get; set; }
        
        public ApiManufacturerResponsibleInfo ResponsibleAdminInfo { get; set; }
        public ApiManufacturerResponsibleInfo ResponsibleDocsInfo { get; set; }
        public ApiManufacturerResponsibleInfo ResponsibleImagesInfo { get; set; }
        public ApiManufacturerResponsibleInfo ResponsibleCEOInfo { get; set; }
        public ApiManufacturerResponsibleInfo ResponsibleMarketInfo { get; set; }
        public ApiManufacturerResponsibleInfo ResponsibleEconomyInfo { get; set; }
        public ApiPayIdType PayId { get; set; }
        public string PayIdStr
        {
            get { return EnumTools.GetDescription(PayId); }
            set { } // readonly property
        }
        public string Ean { get; set; }
        public string InfoText { get; set; }
    }        
    

ApiManufacturerResponsibleInfo

    [DataContract(Namespace = Constants.API.ProdibasModelNamespace)]
    public class ApiManufacturerResponsibleInfo
    {
        public ApiManufacturerResponsibleInfoType Type { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
    }
    

ApiManufacturerResponsibleInfoType

    [DataContract(Namespace = Constants.API.ProdibasModelNamespace)]
    public enum ApiManufacturerResponsibleInfoType
    {
        [EnumMember]
        Admin = ManufacturerResponsibleInfoType.Admin,
        [EnumMember]
        Docs = ManufacturerResponsibleInfoType.Docs,
        [EnumMember]
        Images = ManufacturerResponsibleInfoType.Images,
        [EnumMember]
        CEO = ManufacturerResponsibleInfoType.CEO,
        [EnumMember]
        Market = ManufacturerResponsibleInfoType.Market,
        [EnumMember]
        Economy = ManufacturerResponsibleInfoType.Economy
    }