Guest User

Untitled

a guest
Jul 20th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Pareto.Web.OnlineCustomerProcess
  7. {
  8. public interface IProspectData
  9. {
  10.  
  11. /// <param name="crmId">The CRM id.</param>
  12. /// <param name="customerType">Type of the customer. 1=company, 2=private</param>
  13. /// <param name="privatFornavn">The privat fornavn.</param>
  14. /// <param name="navn">Etternavn på privatperson eller navn på foretak.</param>
  15. /// <param name="kontaktperson">Kontaktperson (for- og etternavn) dersom type er company</param>
  16. /// <param name="adresse">The adresse.</param>
  17. /// <param name="postnr">The postnr.</param>
  18. /// <param name="postSted">The post sted.</param>
  19. /// <param name="land">Iso 2-letter country code (Eks norge=NO)</param>
  20. /// <param name="telefon">The telefon.</param>
  21. /// <param name="mobil">The mobil.</param>
  22. /// <param name="epost">The epost.</param>
  23. /// <param name="privatPersonnr">The privat personnr.</param>
  24. /// <param name="foretaksnr">The foretaksnr.</param>
  25. /// <param name="yrke">The yrke.</param>
  26. /// <param name="statsborgerskap">Citizenship. 2-letter iso country code (i.e. NO=Norway)</param>
  27. /// <param name="utdanningsNivaa">Education level
  28. /// 1=Grunnskole
  29. /// 2=Videregående
  30. /// 3=Høyskole/Universitet</param>
  31. int CustomerType { get; set; }
  32. string PrivatFornavn { get; set; }
  33. string Navn { get; set; }
  34. string Kontaktperson { get; set; }
  35. string Adresse { get; set; }
  36. string Postnr { get; set; }
  37. string PostSted { get; set; }
  38. string Land { get; set; }
  39. string Telefon { get; set; }
  40. string Mobil { get; set; }
  41. string Epost { get; set; }
  42. string PrivatPersonnr { get; set; }
  43. string Foretaksnr { get; set; }
  44. string Yrke { get; set; }
  45. string Statsborgerskap { get; set; }
  46. string UtdanningsNivaa { get; set; }
  47. }
  48.  
  49. public class ProspectData : IProspectData
  50. {
  51. public ProspectData()
  52. {
  53.  
  54. }
  55.  
  56. public int CustomerType { get; set; }
  57.  
  58. public string PrivatFornavn { get; set; }
  59.  
  60. public string Navn { get; set; }
  61.  
  62. public string Kontaktperson { get; set; }
  63.  
  64. public string Adresse { get; set; }
  65.  
  66. public string Postnr { get; set; }
  67.  
  68. public string PostSted { get; set; }
  69.  
  70. public string Land { get; set; }
  71.  
  72. public string Telefon { get; set; }
  73.  
  74. public string Mobil { get; set; }
  75.  
  76. public string Epost { get; set; }
  77.  
  78. public string PrivatPersonnr { get; set; }
  79.  
  80. public string Foretaksnr { get; set; }
  81.  
  82. public string Yrke { get; set; }
  83.  
  84. public string Statsborgerskap { get; set; }
  85.  
  86. public string UtdanningsNivaa { get; set; }
  87. }
  88.  
  89. interface ICrmNewCustomerProcessService
  90. {
  91.  
  92. /// <summary>
  93. /// Updates the prospect process status.
  94. /// </summary>
  95. /// <param name="crmId">The CRM id.</param>
  96. /// <param name="status">The status.</param>
  97. void UpdateProspectWithProcessStatus(string crmId, int status);
  98. }
  99.  
  100. public interface ICrmService
  101. {
  102. /// <summary>
  103. /// Updates the prospect info.
  104. /// </summary>
  105. /// <param name="crmId">The CRM id.</param>
  106. /// <param name="prospectData">The prospect data.</param>
  107. /// <returns></returns>
  108. void UpdateProspectInfo(string crmId, IProspectData prospectData);
  109.  
  110. /// <summary>
  111. /// Creates the prospect.
  112. /// </summary>
  113. /// <param name="data">The data.</param>
  114. /// <returns>The id of the newly created prospect</returns>
  115. string CreateProspect(IProspectData data);
  116.  
  117. }
  118.  
  119.  
  120. public interface ICrmSharepointservice
  121. {
  122. /// <summary>
  123. /// Adds a file to the customer library.
  124. /// </summary>
  125. /// <param name="crmCustomerId">The CRM customer id.</param>
  126. /// <param name="networkPath">The network path where the serivce can pick up the file.</param>
  127. /// <param name="category">Type of docment (i.e. 'avtale')</param>
  128. void AddFileToCustomerLibrary(string crmCustomerId, string networkPath, string category);
  129. }
  130.  
  131.  
  132.  
  133.  
  134. }
Add Comment
Please, Sign In to add comment