PddOpenMsgServiceSendExpressMsgRequest.php 2.1 KB

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