PddSmsDetailbillPushRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddSmsDetailbillPushRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "account")
  12. */
  13. private $account;
  14. /**
  15. * @JsonProperty(Long, "batch_version")
  16. */
  17. private $batchVersion;
  18. /**
  19. * @JsonProperty(String, "date")
  20. */
  21. private $date;
  22. /**
  23. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddSmsDetailbillPushRequest_DetailsItem>, "details")
  24. */
  25. private $details;
  26. protected function setUserParams(&$params)
  27. {
  28. $this->setUserParam($params, "account", $this->account);
  29. $this->setUserParam($params, "batch_version", $this->batchVersion);
  30. $this->setUserParam($params, "date", $this->date);
  31. $this->setUserParam($params, "details", $this->details);
  32. }
  33. public function getVersion()
  34. {
  35. return "V1";
  36. }
  37. public function getDataType()
  38. {
  39. return "JSON";
  40. }
  41. public function getType()
  42. {
  43. return "pdd.sms.detailbill.push";
  44. }
  45. public function setAccount($account)
  46. {
  47. $this->account = $account;
  48. }
  49. public function setBatchVersion($batchVersion)
  50. {
  51. $this->batchVersion = $batchVersion;
  52. }
  53. public function setDate($date)
  54. {
  55. $this->date = $date;
  56. }
  57. public function setDetails($details)
  58. {
  59. $this->details = $details;
  60. }
  61. }
  62. class PddSmsDetailbillPushRequest_DetailsItem extends PopBaseJsonEntity
  63. {
  64. public function __construct()
  65. {
  66. }
  67. /**
  68. * @JsonProperty(String, "deliver_time")
  69. */
  70. private $deliverTime;
  71. /**
  72. * @JsonProperty(String, "error_code")
  73. */
  74. private $errorCode;
  75. /**
  76. * @JsonProperty(Long, "msg_id")
  77. */
  78. private $msgId;
  79. /**
  80. * @JsonProperty(String, "submit_time")
  81. */
  82. private $submitTime;
  83. public function setDeliverTime($deliverTime)
  84. {
  85. $this->deliverTime = $deliverTime;
  86. }
  87. public function setErrorCode($errorCode)
  88. {
  89. $this->errorCode = $errorCode;
  90. }
  91. public function setMsgId($msgId)
  92. {
  93. $this->msgId = $msgId;
  94. }
  95. public function setSubmitTime($submitTime)
  96. {
  97. $this->submitTime = $submitTime;
  98. }
  99. }