SubscribeParam.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Newtonsoft.Json;
  2. namespace Common.Request.Subscribe
  3. {
  4. public class SubscribeParam
  5. {
  6. /**
  7. * 订阅的快递公司的编码,一律用小写字母
  8. */
  9. public string company {get; set;}
  10. /**
  11. * 订阅的快递单号,单号的最大长度是32个字符
  12. */
  13. public string number {get; set;}
  14. /**
  15. * 出发地城市,省-市-区,非必填,填了有助于提升签收状态的判断的准确率,请尽量提供
  16. */
  17. public string from {get; set;}
  18. /**
  19. * 目的地城市,省-市-区,非必填,填了有助于提升签收状态的判断的准确率,且到达目的地后会加大监控频率,请尽量提供
  20. */
  21. public string to {get; set;}
  22. /**
  23. * 我方分配给贵司的的授权key
  24. */
  25. public string key {get; set;}
  26. /**
  27. * 附加参数信息
  28. */
  29. public SubscribeParameters parameters {get; set;}
  30. public override string ToString()
  31. {
  32. return JsonConvert.SerializeObject(this,Formatting.Indented,new JsonSerializerSettings(){NullValueHandling = NullValueHandling.Ignore});
  33. }
  34. }
  35. }