PddOpenMsgServiceSendBatchMsgRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 PddOpenMsgServiceSendBatchMsgRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(List<String>, "phone_numbers")
  12. */
  13. private $phoneNumbers;
  14. /**
  15. * @JsonProperty(String, "sign_name")
  16. */
  17. private $signName;
  18. /**
  19. * @JsonProperty(Long, "template_code")
  20. */
  21. private $templateCode;
  22. /**
  23. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddOpenMsgServiceSendBatchMsgRequest_Map<String, String>>, "template_param_json")
  24. */
  25. private $templateParamJson;
  26. /**
  27. * @JsonProperty(String, "out_id")
  28. */
  29. private $outId;
  30. /**
  31. * @JsonProperty(String, "sms_up_extend_code")
  32. */
  33. private $smsUpExtendCode;
  34. protected function setUserParams(&$params)
  35. {
  36. $this->setUserParam($params, "phone_numbers", $this->phoneNumbers);
  37. $this->setUserParam($params, "sign_name", $this->signName);
  38. $this->setUserParam($params, "template_code", $this->templateCode);
  39. $this->setUserParam($params, "template_param_json", $this->templateParamJson);
  40. $this->setUserParam($params, "out_id", $this->outId);
  41. $this->setUserParam($params, "sms_up_extend_code", $this->smsUpExtendCode);
  42. }
  43. public function getVersion()
  44. {
  45. return "V1";
  46. }
  47. public function getDataType()
  48. {
  49. return "JSON";
  50. }
  51. public function getType()
  52. {
  53. return "pdd.open.msg.service.send.batch.msg";
  54. }
  55. public function setPhoneNumbers($phoneNumbers)
  56. {
  57. $this->phoneNumbers = $phoneNumbers;
  58. }
  59. public function setSignName($signName)
  60. {
  61. $this->signName = $signName;
  62. }
  63. public function setTemplateCode($templateCode)
  64. {
  65. $this->templateCode = $templateCode;
  66. }
  67. public function setTemplateParamJson($templateParamJson)
  68. {
  69. $this->templateParamJson = $templateParamJson;
  70. }
  71. public function setOutId($outId)
  72. {
  73. $this->outId = $outId;
  74. }
  75. public function setSmsUpExtendCode($smsUpExtendCode)
  76. {
  77. $this->smsUpExtendCode = $smsUpExtendCode;
  78. }
  79. }