BrandInfo.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #region Apache License Version 2.0
  2. /*----------------------------------------------------------------
  3. Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software distributed under the
  8. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  9. either express or implied. See the License for the specific language governing permissions
  10. and limitations under the License.
  11. Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
  12. ----------------------------------------------------------------*/
  13. #endregion Apache License Version 2.0
  14. using System;
  15. using System.Collections.Generic;
  16. using System.Linq;
  17. using System.Text;
  18. using System.Threading.Tasks;
  19. namespace Senparc.Weixin.MP.AdvancedAPIs.Scan
  20. {
  21. public class BrandInfo_BaseInfo
  22. {
  23. /// <summary>
  24. ///
  25. /// </summary>
  26. public string title { get; set; }
  27. /// <summary>
  28. ///
  29. /// </summary>
  30. public string thumb_url { get; set; }
  31. /// <summary>
  32. ///
  33. /// </summary>
  34. public string brand_tag { get; set; }
  35. /// <summary>
  36. ///
  37. /// </summary>
  38. public int category_id { get; set; }
  39. /// <summary>
  40. ///
  41. /// </summary>
  42. public string store_mgr_type { get; set; }
  43. /// <summary>
  44. ///
  45. /// </summary>
  46. public List<string> store_vendorid_list { get; set; }
  47. /// <summary>
  48. ///
  49. /// </summary>
  50. public string color { get; set; }
  51. }
  52. public class BrandInfo_DetailInfo
  53. {
  54. /// <summary>
  55. ///
  56. /// </summary>
  57. public List<string> banner_list { get; set; }
  58. public List<string> detail_list { get; set; }
  59. }
  60. public class BrandInfo_ActionInfo
  61. {
  62. /// <summary>
  63. /// 商品主页中可设置多个服务栏。
  64. /// </summary>
  65. public List<BrandInfo_ActionList> action_list { get; set; }
  66. }
  67. public class BrandInfo_ActionList
  68. {
  69. /// <summary>
  70. /// 服务栏的类型,Media,视频播放;Text,文字介绍;Link,图片跳转;Link,普通链接;User,公众号;Card,微信卡券;Price,建议零售价;Product,微信小店;Store,电商链接;recommend,商品推荐。
  71. /// </summary>
  72. public string type { get; set; }
  73. }
  74. public class BrandInfo
  75. {
  76. public BrandInfo_BaseInfo base_info { get; set; }
  77. public BrandInfo_DetailInfo detail_info { get; set; }
  78. public BrandInfo_ActionInfo action_info { get; set; }
  79. public BrandInfo_ModuleInfo module_info { get; set; }
  80. }
  81. public class BrandInfo_ModuleInfo
  82. {
  83. /// <summary>
  84. /// 未来可设置多个组件,目前仅支持防伪组件。
  85. /// </summary>
  86. public List<BrandInfo_ModuleList> module_list { get; set; }
  87. }
  88. public class BrandInfo_ModuleList
  89. {
  90. /// <summary>
  91. /// 组件的类型,目前仅包括防伪组件anti_fake。
  92. /// </summary>
  93. public string type { get; set; }
  94. /// <summary>
  95. /// 设置为true时,防伪结果使用微信提供的弹窗页面展示,商户仅需调用“商品管理”部分的组件消息接口回传产品真假信息。设置为false时,无防伪弹窗效果。
  96. /// </summary>
  97. public string native_show { get; set; }
  98. /// <summary>
  99. /// 商户提供的防伪查询链接,当native_show设置为false时必填。
  100. /// </summary>
  101. public string anti_fake_url { get; set; }
  102. }
  103. }