Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Pareto.Web.OnlineCustomerProcess
- {
- public interface IProspectData
- {
- /// <param name="crmId">The CRM id.</param>
- /// <param name="customerType">Type of the customer. 1=company, 2=private</param>
- /// <param name="privatFornavn">The privat fornavn.</param>
- /// <param name="navn">Etternavn på privatperson eller navn på foretak.</param>
- /// <param name="kontaktperson">Kontaktperson (for- og etternavn) dersom type er company</param>
- /// <param name="adresse">The adresse.</param>
- /// <param name="postnr">The postnr.</param>
- /// <param name="postSted">The post sted.</param>
- /// <param name="land">Iso 2-letter country code (Eks norge=NO)</param>
- /// <param name="telefon">The telefon.</param>
- /// <param name="mobil">The mobil.</param>
- /// <param name="epost">The epost.</param>
- /// <param name="privatPersonnr">The privat personnr.</param>
- /// <param name="foretaksnr">The foretaksnr.</param>
- /// <param name="yrke">The yrke.</param>
- /// <param name="statsborgerskap">Citizenship. 2-letter iso country code (i.e. NO=Norway)</param>
- /// <param name="utdanningsNivaa">Education level
- /// 1=Grunnskole
- /// 2=Videregående
- /// 3=Høyskole/Universitet</param>
- int CustomerType { get; set; }
- string PrivatFornavn { get; set; }
- string Navn { get; set; }
- string Kontaktperson { get; set; }
- string Adresse { get; set; }
- string Postnr { get; set; }
- string PostSted { get; set; }
- string Land { get; set; }
- string Telefon { get; set; }
- string Mobil { get; set; }
- string Epost { get; set; }
- string PrivatPersonnr { get; set; }
- string Foretaksnr { get; set; }
- string Yrke { get; set; }
- string Statsborgerskap { get; set; }
- string UtdanningsNivaa { get; set; }
- }
- public class ProspectData : IProspectData
- {
- public ProspectData()
- {
- }
- public int CustomerType { get; set; }
- public string PrivatFornavn { get; set; }
- public string Navn { get; set; }
- public string Kontaktperson { get; set; }
- public string Adresse { get; set; }
- public string Postnr { get; set; }
- public string PostSted { get; set; }
- public string Land { get; set; }
- public string Telefon { get; set; }
- public string Mobil { get; set; }
- public string Epost { get; set; }
- public string PrivatPersonnr { get; set; }
- public string Foretaksnr { get; set; }
- public string Yrke { get; set; }
- public string Statsborgerskap { get; set; }
- public string UtdanningsNivaa { get; set; }
- }
- interface ICrmNewCustomerProcessService
- {
- /// <summary>
- /// Updates the prospect process status.
- /// </summary>
- /// <param name="crmId">The CRM id.</param>
- /// <param name="status">The status.</param>
- void UpdateProspectWithProcessStatus(string crmId, int status);
- }
- public interface ICrmService
- {
- /// <summary>
- /// Updates the prospect info.
- /// </summary>
- /// <param name="crmId">The CRM id.</param>
- /// <param name="prospectData">The prospect data.</param>
- /// <returns></returns>
- void UpdateProspectInfo(string crmId, IProspectData prospectData);
- /// <summary>
- /// Creates the prospect.
- /// </summary>
- /// <param name="data">The data.</param>
- /// <returns>The id of the newly created prospect</returns>
- string CreateProspect(IProspectData data);
- }
- public interface ICrmSharepointservice
- {
- /// <summary>
- /// Adds a file to the customer library.
- /// </summary>
- /// <param name="crmCustomerId">The CRM customer id.</param>
- /// <param name="networkPath">The network path where the serivce can pick up the file.</param>
- /// <param name="category">Type of docment (i.e. 'avtale')</param>
- void AddFileToCustomerLibrary(string crmCustomerId, string networkPath, string category);
- }
- }
Add Comment
Please, Sign In to add comment