GiftCardData.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. /*----------------------------------------------------------------
  15. Copyright (C) 2019 Senparc
  16. 文件名:GiftCardData.cs
  17. 文件功能描述:礼品卡数据
  18. 创建标识:Senparc - 20181008
  19. ----------------------------------------------------------------*/
  20. using Senparc.CO2NET.Helpers.Serializers;
  21. using Senparc.Weixin.Entities;
  22. using Senparc.Weixin.Helpers;
  23. namespace Senparc.Weixin.MP.AdvancedAPIs.Card
  24. {
  25. /// <summary>
  26. /// 设置支付后投放卡券接口数据
  27. /// </summary>
  28. public class AddCardAfterPayData
  29. {
  30. public Rule_Info rule_info { get; set; }
  31. }
  32. /// <summary>
  33. /// 支付后营销规则结构体
  34. /// </summary>
  35. public class Rule_Info
  36. {
  37. /// <summary>
  38. /// 营销规则类型
  39. /// </summary>
  40. public string type { get; set; }
  41. public Base_Info base_info { get; set; }
  42. public Member_Rule member_rule { get; set; }
  43. }
  44. /// <summary>
  45. /// 营销规则结构体
  46. /// </summary>
  47. public class Base_Info
  48. {
  49. public string[] mchid_list { get; set; }
  50. public int begin_time { get; set; }
  51. public int end_time { get; set; }
  52. public string status { get; set; }
  53. public string create_time { get; set; }
  54. public string update_time { get; set; }
  55. }
  56. /// <summary>
  57. /// 支付即会员结构体
  58. /// </summary>
  59. public class Member_Rule
  60. {
  61. public string card_id { get; set; }
  62. public int least_cost { get; set; }
  63. public int max_cost { get; set; }
  64. public string jump_url { get; set; }
  65. public string app_brand_id { get; set; }
  66. public string app_brand_pass { get; set; }
  67. }
  68. /// <summary>
  69. /// 批量查询支付后投放卡券规则接口数据
  70. /// </summary>
  71. public class AfterPay_BatchGetData
  72. {
  73. public string type { get; set; }
  74. public bool effective { get; set; }
  75. public int offset { get; set; }
  76. public int count { get; set; }
  77. }
  78. /// <summary>
  79. /// 增加支付即会员规则接口数据
  80. /// </summary>
  81. public class AddPayMemberRuleData
  82. {
  83. public string card_id { get; set; }
  84. public string jump_url { get; set; }
  85. public string[] mchid_list { get; set; }
  86. public int begin_time { get; set; }
  87. public int end_time { get; set; }
  88. public int min_cost { get; set; }
  89. public int max_cost { get; set; }
  90. public bool is_locked { get; set; }
  91. }
  92. /// <summary>
  93. /// 删除支付即会员规则接口数据
  94. /// </summary>
  95. public class DeletePayMemberRuleData
  96. {
  97. public string card_id { get; set; }
  98. public int[] mchid_list { get; set; }
  99. }
  100. }