AlibabaAliqinFcSmsNumQueryRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /**
  3. * TOP API: alibaba.aliqin.fc.sms.num.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016.03.01
  7. */
  8. class AlibabaAliqinFcSmsNumQueryRequest
  9. {
  10. /**
  11. * 短信发送流水
  12. **/
  13. private $bizId;
  14. /**
  15. * 分页参数,页码
  16. **/
  17. private $currentPage;
  18. /**
  19. * 分页参数,每页数量。最大值50
  20. **/
  21. private $pageSize;
  22. /**
  23. * 短信发送日期,支持近30天记录查询,格式yyyyMMdd
  24. **/
  25. private $queryDate;
  26. /**
  27. * 短信接收号码
  28. **/
  29. private $recNum;
  30. private $apiParas = array();
  31. public function setBizId($bizId)
  32. {
  33. $this->bizId = $bizId;
  34. $this->apiParas["biz_id"] = $bizId;
  35. }
  36. public function getBizId()
  37. {
  38. return $this->bizId;
  39. }
  40. public function setCurrentPage($currentPage)
  41. {
  42. $this->currentPage = $currentPage;
  43. $this->apiParas["current_page"] = $currentPage;
  44. }
  45. public function getCurrentPage()
  46. {
  47. return $this->currentPage;
  48. }
  49. public function setPageSize($pageSize)
  50. {
  51. $this->pageSize = $pageSize;
  52. $this->apiParas["page_size"] = $pageSize;
  53. }
  54. public function getPageSize()
  55. {
  56. return $this->pageSize;
  57. }
  58. public function setQueryDate($queryDate)
  59. {
  60. $this->queryDate = $queryDate;
  61. $this->apiParas["query_date"] = $queryDate;
  62. }
  63. public function getQueryDate()
  64. {
  65. return $this->queryDate;
  66. }
  67. public function setRecNum($recNum)
  68. {
  69. $this->recNum = $recNum;
  70. $this->apiParas["rec_num"] = $recNum;
  71. }
  72. public function getRecNum()
  73. {
  74. return $this->recNum;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "alibaba.aliqin.fc.sms.num.query";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->currentPage,"currentPage");
  87. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  88. RequestCheckUtil::checkNotNull($this->queryDate,"queryDate");
  89. RequestCheckUtil::checkNotNull($this->recNum,"recNum");
  90. }
  91. public function putOtherTextParam($key, $value) {
  92. $this->apiParas[$key] = $value;
  93. $this->$key = $value;
  94. }
  95. }