AlibabaAliqinFcSmsNumQueryRequest.php 2.2 KB

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