AlipayOrderSettleContentBuilder.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 AlipayOrderSettleContentBuilder extends ContentBuilder
  10. {
  11. private $bizContent = NULL;
  12. private $royaltyParameters;
  13. private $outRequestNo;
  14. private $tradeNo;
  15. private $grantType;
  16. private $extendParams;
  17. private $bizParas = array();
  18. public function __construct()
  19. {
  20. }
  21. public function AlipayTradePayContentBuilder()
  22. {
  23. $this->__construct();
  24. }
  25. public function getBizContent()
  26. {
  27. if(!empty($this->bizParas)){
  28. $this->bizContent = json_encode($this->bizParas,JSON_UNESCAPED_UNICODE);
  29. }
  30. return $this->bizContent;
  31. }
  32. public function getGrantType()
  33. {
  34. return $this->grantType;
  35. }
  36. public function setGrantType($grantType)
  37. {
  38. $this->grantType = $grantType;
  39. $this->bizParas['grant_type'] = $grantType;
  40. }
  41. public function setOutRequestNo($outRequestNo)
  42. {
  43. $this->outRequestNo = $outRequestNo;
  44. $this->bizParas['out_request_no'] = $outRequestNo;
  45. }
  46. public function getOutRequestNo()
  47. {
  48. return $this->outRequestNo;
  49. }
  50. public function setTradeNo($tradeNo)
  51. {
  52. $this->tradeNo = $tradeNo;
  53. $this->bizParas['trade_no'] = $tradeNo;
  54. }
  55. public function getTradeNo()
  56. {
  57. return $this->tradeNo;
  58. }
  59. public function setExtendParams($extendParams)
  60. {
  61. $this->extendParams = $extendParams;
  62. $this->bizParas['extend_params'] = $extendParams;
  63. }
  64. public function getExtendParams()
  65. {
  66. return $this->extendParams;
  67. }
  68. public function setRoyaltyParameters($royaltyParameters)
  69. {
  70. $this->royaltyParameters = $royaltyParameters;
  71. $this->bizParas['royalty_parameters'] = $royaltyParameters;
  72. }
  73. public function getRoyaltyParameters()
  74. {
  75. return $this->royaltyParameters;
  76. }
  77. }