ExtendParams.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: airwalk
  5. * Date: 16/5/19
  6. * Time: 下午3:56
  7. */
  8. namespace app\common\services\alipay\f2fpay\model\builder;
  9. class ExtendParams
  10. {
  11. // 系统商编号
  12. private $sysServiceProviderId;
  13. //使用花呗分期要进行的分期数,非必填项
  14. private $hbFqNum;
  15. //使用花呗分期需要卖家承担的手续费比例的百分值
  16. private $hbFqSellerPercent;
  17. private $extendParamsArr = array();
  18. public function getExtendParams()
  19. {
  20. if(!empty($this->extendParamsArr)) {
  21. return $this->extendParamsArr;
  22. }
  23. }
  24. public function getSysServiceProviderId()
  25. {
  26. return $this->sysServiceProviderId;
  27. }
  28. public function setSysServiceProviderId($sysServiceProviderId)
  29. {
  30. $this->sysServiceProviderId = $sysServiceProviderId;
  31. $this->extendParamsArr['sys_service_provider_id'] = $sysServiceProviderId;
  32. }
  33. public function getHbFqNum()
  34. {
  35. return $this->hbFqNum;
  36. }
  37. public function setHbFqNum($hbFqNum)
  38. {
  39. $this->hbFqNum = $hbFqNum;
  40. $this->extendParamsArr['hb_fq_num'] = $hbFqNum;
  41. }
  42. public function getHbFqSellerPercent()
  43. {
  44. return $this->hbFqSellerPercent;
  45. }
  46. public function setHbFqSellerPercent($hbFqSellerPercent)
  47. {
  48. $this->hbFqSellerPercent = $hbFqSellerPercent;
  49. $this->extendParamsArr['hb_fq_seller_percent'] = $hbFqSellerPercent;
  50. }
  51. }