AlipayRoyaltyContentBuilder.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xudong.ding
  5. * Date: 16/5/18
  6. * Time: 下午2:09
  7. */
  8. namespace app\common\services\alipay\f2fpay\model\builder;
  9. class AlipayRoyaltyContentBuilder extends ContentBuilder
  10. {
  11. private $bizContent = NULL;
  12. private $receiverList;
  13. private $outRequestNo;
  14. private $grantType;
  15. private $bizParas = array();
  16. public function __construct()
  17. {
  18. }
  19. public function AlipayTradePayContentBuilder()
  20. {
  21. $this->__construct();
  22. }
  23. public function getBizContent()
  24. {
  25. if(!empty($this->bizParas)){
  26. $this->bizContent = json_encode($this->bizParas,JSON_UNESCAPED_UNICODE);
  27. }
  28. return $this->bizContent;
  29. }
  30. public function getGrantType()
  31. {
  32. return $this->grantType;
  33. }
  34. public function setGrantType($grantType)
  35. {
  36. $this->grantType = $grantType;
  37. $this->bizParas['grant_type'] = $grantType;
  38. }
  39. public function setOutRequestNo($outRequestNo)
  40. {
  41. $this->outRequestNo = $outRequestNo;
  42. $this->bizParas['out_request_no'] = $outRequestNo;
  43. }
  44. public function getOutRequestNo()
  45. {
  46. return $this->outRequestNo;
  47. }
  48. public function setReceiverList($receiverList)
  49. {
  50. $this->receiverList = $receiverList;
  51. $this->bizParas['receiver_list'] = $receiverList;
  52. }
  53. public function getReceiverList()
  54. {
  55. return $this->receiverList;
  56. }
  57. }
  58. ?>