AlibabaAliqinFcFlowChargeProvinceRequest.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * TOP API: alibaba.aliqin.fc.flow.charge.province request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016.03.30
  7. */
  8. class AlibabaAliqinFcFlowChargeProvinceRequest
  9. {
  10. /**
  11. * 需要充值的流量
  12. **/
  13. private $grade;
  14. /**
  15. * 唯一流水号
  16. **/
  17. private $outRechargeId;
  18. /**
  19. * 手机号
  20. **/
  21. private $phoneNum;
  22. /**
  23. * 充值原因
  24. **/
  25. private $reason;
  26. private $apiParas = array();
  27. public function setGrade($grade)
  28. {
  29. $this->grade = $grade;
  30. $this->apiParas["grade"] = $grade;
  31. }
  32. public function getGrade()
  33. {
  34. return $this->grade;
  35. }
  36. public function setOutRechargeId($outRechargeId)
  37. {
  38. $this->outRechargeId = $outRechargeId;
  39. $this->apiParas["out_recharge_id"] = $outRechargeId;
  40. }
  41. public function getOutRechargeId()
  42. {
  43. return $this->outRechargeId;
  44. }
  45. public function setPhoneNum($phoneNum)
  46. {
  47. $this->phoneNum = $phoneNum;
  48. $this->apiParas["phone_num"] = $phoneNum;
  49. }
  50. public function getPhoneNum()
  51. {
  52. return $this->phoneNum;
  53. }
  54. public function setReason($reason)
  55. {
  56. $this->reason = $reason;
  57. $this->apiParas["reason"] = $reason;
  58. }
  59. public function getReason()
  60. {
  61. return $this->reason;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "alibaba.aliqin.fc.flow.charge.province";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->grade,"grade");
  74. RequestCheckUtil::checkNotNull($this->outRechargeId,"outRechargeId");
  75. RequestCheckUtil::checkNotNull($this->phoneNum,"phoneNum");
  76. }
  77. public function putOtherTextParam($key, $value) {
  78. $this->apiParas[$key] = $value;
  79. $this->$key = $value;
  80. }
  81. }