ExpressResult.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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.Collections.Generic;
  15. using Senparc.Weixin.Entities;
  16. namespace Senparc.Weixin.MP.AdvancedAPIs
  17. {
  18. /// <summary>
  19. /// 添加邮费模板返回结果
  20. /// </summary>
  21. public class AddExpressResult : WxJsonResult
  22. {
  23. /// <summary>
  24. /// 邮费模板ID
  25. /// </summary>
  26. public long template_id { get; set; }
  27. }
  28. /// <summary>
  29. /// 获取指定ID的邮费模板返回结果
  30. /// </summary>
  31. public class GetByIdExpressResult : WxJsonResult
  32. {
  33. public Template_Info template_info { get; set; }
  34. }
  35. public class Template_Info
  36. {
  37. /// <summary>
  38. /// 邮费模板ID
  39. /// </summary>
  40. public int Id { get; set; }
  41. /// <summary>
  42. /// 邮费模板名称
  43. /// </summary>
  44. public string Name { get; set; }
  45. /// <summary>
  46. /// 支付方式(0-买家承担运费, 1-卖家承担运费)
  47. /// </summary>
  48. public int Assumer { get; set; }
  49. /// <summary>
  50. /// 计费单位(0-按件计费, 1-按重量计费, 2-按体积计费,目前只支持按件计费,默认为0)
  51. /// </summary>
  52. public int Valuation { get; set; }
  53. /// <summary>
  54. /// 具体运费计算
  55. /// </summary>
  56. public List<TopFeeItem> TopFee { get; set; }
  57. }
  58. /// <summary>
  59. /// 获取所有邮费模板
  60. /// </summary>
  61. public class GetAllExpressResult : WxJsonResult
  62. {
  63. /// <summary>
  64. /// 所有邮费模板集合
  65. /// </summary>
  66. public List<Template_Info> templates_info { get; set; }
  67. }
  68. }