团餐订单
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

59 lines
2.0 KiB

  1. using BPA.KitChen.GroupMealOrder.Core.CacheOption;
  2. using BPA.KitChen.WeChat.WechatServer.Dtos;
  3. using Essensoft.Paylink.WeChatPay;
  4. using Essensoft.Paylink.WeChatPay.V2.Response;
  5. using Microsoft.AspNetCore.Http;
  6. using Microsoft.AspNetCore.Mvc;
  7. using System.Threading.Tasks;
  8. namespace BPA.KitChen.WeChat.WechatServer.Service
  9. {
  10. /// <summary>
  11. /// 微信支付服务
  12. /// </summary>
  13. public interface IWechatPayService
  14. {
  15. /// <summary>
  16. /// 付款
  17. /// </summary>
  18. /// <param name="openid"></param>
  19. /// <param name="ordernumber"></param>
  20. /// <returns></returns>
  21. Task<IActionResult> PayLinkWechatPay(string openid, string ordernumber);
  22. /// <summary>
  23. /// 充值
  24. /// </summary>
  25. /// <param name="input"></param>
  26. /// <returns></returns>
  27. Task<IActionResult> RechargePay(RechargeInput input);
  28. /// <summary>
  29. /// Native付款,生成二维码
  30. /// </summary>
  31. /// <param name="amount">付款金额(分)</param>
  32. /// <param name="orderid">订单ID</param>
  33. /// <returns></returns>
  34. string NativePay(decimal amount, string orderid);
  35. /// <summary>
  36. /// 退款
  37. /// </summary>
  38. /// <param name="input"></param>
  39. /// <param name="config"></param>
  40. /// <returns></returns>
  41. Task<RefundDto> Refund(WechatRefundInput input, ApolloApplicationConfig config);
  42. /// <summary>
  43. /// 查询订单
  44. /// </summary>
  45. /// <param name="appId"></param>
  46. /// <param name="transaction_id"></param>
  47. /// <param name="out_trade_no"></param>
  48. /// <returns></returns>
  49. Task<WeChatPayOrderQueryResponse> PayOrderQuery(string appId,string transaction_id, string out_trade_no);
  50. /// <summary>
  51. /// 付款码支付
  52. /// </summary>
  53. /// <param name="input"></param>
  54. /// <returns></returns>
  55. Task<IActionResult> MicropayPay(MicropayInput input);
  56. }
  57. }