AlibabaAliqinFcIotRechargeCardRequest.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. /**
  3. * TOP API: alibaba.aliqin.fc.iot.rechargeCard request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.12.01
  7. */
  8. class AlibabaAliqinFcIotRechargeCardRequest
  9. {
  10. /**
  11. * iccid的值
  12. **/
  13. private $billReal;
  14. /**
  15. * 外部计费号类型:写‘ICCID’
  16. **/
  17. private $billSource;
  18. /**
  19. * 生效时间,1000,立即生效; AUTO_ORD,下周期自动续订
  20. **/
  21. private $effCode;
  22. /**
  23. * yyyy-MM-dd HH:mm:ss
  24. **/
  25. private $effTime;
  26. /**
  27. * ICCID
  28. **/
  29. private $iccid;
  30. /**
  31. * 流量包offerId
  32. **/
  33. private $offerId;
  34. /**
  35. * 外部id,用来做幂等
  36. **/
  37. private $outRechargeId;
  38. private $apiParas = array();
  39. public function setBillReal($billReal)
  40. {
  41. $this->billReal = $billReal;
  42. $this->apiParas["bill_real"] = $billReal;
  43. }
  44. public function getBillReal()
  45. {
  46. return $this->billReal;
  47. }
  48. public function setBillSource($billSource)
  49. {
  50. $this->billSource = $billSource;
  51. $this->apiParas["bill_source"] = $billSource;
  52. }
  53. public function getBillSource()
  54. {
  55. return $this->billSource;
  56. }
  57. public function setEffCode($effCode)
  58. {
  59. $this->effCode = $effCode;
  60. $this->apiParas["eff_code"] = $effCode;
  61. }
  62. public function getEffCode()
  63. {
  64. return $this->effCode;
  65. }
  66. public function setEffTime($effTime)
  67. {
  68. $this->effTime = $effTime;
  69. $this->apiParas["eff_time"] = $effTime;
  70. }
  71. public function getEffTime()
  72. {
  73. return $this->effTime;
  74. }
  75. public function setIccid($iccid)
  76. {
  77. $this->iccid = $iccid;
  78. $this->apiParas["iccid"] = $iccid;
  79. }
  80. public function getIccid()
  81. {
  82. return $this->iccid;
  83. }
  84. public function setOfferId($offerId)
  85. {
  86. $this->offerId = $offerId;
  87. $this->apiParas["offer_id"] = $offerId;
  88. }
  89. public function getOfferId()
  90. {
  91. return $this->offerId;
  92. }
  93. public function setOutRechargeId($outRechargeId)
  94. {
  95. $this->outRechargeId = $outRechargeId;
  96. $this->apiParas["out_recharge_id"] = $outRechargeId;
  97. }
  98. public function getOutRechargeId()
  99. {
  100. return $this->outRechargeId;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "alibaba.aliqin.fc.iot.rechargeCard";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->billReal,"billReal");
  113. RequestCheckUtil::checkNotNull($this->billSource,"billSource");
  114. RequestCheckUtil::checkNotNull($this->effCode,"effCode");
  115. RequestCheckUtil::checkNotNull($this->iccid,"iccid");
  116. RequestCheckUtil::checkNotNull($this->offerId,"offerId");
  117. RequestCheckUtil::checkNotNull($this->outRechargeId,"outRechargeId");
  118. RequestCheckUtil::checkMaxLength($this->outRechargeId,32,"outRechargeId");
  119. }
  120. public function putOtherTextParam($key, $value) {
  121. $this->apiParas[$key] = $value;
  122. $this->$key = $value;
  123. }
  124. }