RequestMessageEvent_User_Get_Card.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. 文件名:RequestMessageEvent_UserGetCard.cs
  17. 文件功能描述:事件之领取卡券
  18. 创建标识:Senparc - 20150211
  19. 修改标识:Senparc - 20150303
  20. 修改描述:整理接口
  21. 修改标识:Senparc - 20150323
  22. 修改描述:添加OuterId字段
  23. 修改标识:hello2008zj - 20160428
  24. 修改描述:v13.7.7 添加IsRestoreMemberCard及OldUserCardCode字段。
  25. 修改标识:Senparc - 20180116
  26. 修改描述:v16.6.7 RequestMessageEvent_User_Get_Card 添加 UnionId 属性
  27. ----------------------------------------------------------------*/
  28. namespace Senparc.Weixin.MP.Entities
  29. {
  30. public class RequestMessageEvent_User_Get_Card : RequestMessageEventBase, IRequestMessageEventBase
  31. {
  32. /// <summary>
  33. /// 领取卡券
  34. /// </summary>
  35. public override Event Event
  36. {
  37. get { return Event.user_get_card; }
  38. }
  39. /// <summary>
  40. /// 赠送方账号(一个OpenID),"IsGiveByFriend”为1时填写该参数
  41. /// </summary>
  42. public string FriendUserName { get; set; }
  43. /// <summary>
  44. /// 卡券ID
  45. /// </summary>
  46. public string CardId { get; set; }
  47. /// <summary>
  48. /// 是否为转赠,1 代表是,0 代表否。
  49. /// </summary>
  50. public int IsGiveByFriend { get; set; }
  51. /// <summary>
  52. /// code 序列号。自定义code 及非自定义code的卡券被领取后都支持事件推送。
  53. /// </summary>
  54. public string UserCardCode { get; set; }
  55. /// <summary>
  56. /// 领取场景值,用于领取渠道数据统计。可在生成二维码接口及添加JS API 接口中自定义该字段的整型值。
  57. /// </summary>
  58. public int OuterId { get; set; }
  59. /// <summary>
  60. /// 是否为删除后重新领取卡,1 代表是,0 代表否。
  61. /// </summary>
  62. public int IsRestoreMemberCard { get; set; }
  63. /// <summary>
  64. /// 转赠前的code序列号
  65. /// </summary>
  66. public string OldUserCardCode { get; set; }
  67. /// <summary>
  68. /// 领取场景值,用于领取渠道数据统计
  69. /// </summary>
  70. public string OuterStr { get; set; }
  71. /// <summary>
  72. /// 领券用户的UnionId
  73. /// </summary>
  74. public string UnionId { get; set; }
  75. ///以下两个待验证
  76. //public int IsRecommendByFriend { get; set; }
  77. //public string SourceScene { get; set;}
  78. }
  79. }