FundFlowDownloadResponse.cs 623 B

1234567891011121314151617181920212223242526
  1. using System.Text;
  2. using PaySharp.Core.Request;
  3. namespace PaySharp.Wechatpay.Response
  4. {
  5. public class FundFlowDownloadResponse : BaseResponse
  6. {
  7. /// <summary>
  8. /// 获取账单文件
  9. /// </summary>
  10. public byte[] GetBillFile()
  11. {
  12. return _billFile;
  13. }
  14. private byte[] _billFile;
  15. internal override void Execute<TModel, TResponse>(Merchant merchant, Request<TModel, TResponse> request)
  16. {
  17. if (!string.IsNullOrEmpty(Raw))
  18. {
  19. _billFile = Encoding.UTF8.GetBytes(Raw);
  20. }
  21. }
  22. }
  23. }