PddCloudSecurityEventTrackingBatchOrderRequest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 PddCloudSecurityEventTrackingBatchOrderRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Integer, "eventType")
  12. */
  13. private $eventType;
  14. /**
  15. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudSecurityEventTrackingBatchOrderRequest_OrderEventsItem>, "orderEvents")
  16. */
  17. private $orderEvents;
  18. protected function setUserParams(&$params)
  19. {
  20. $this->setUserParam($params, "eventType", $this->eventType);
  21. $this->setUserParam($params, "orderEvents", $this->orderEvents);
  22. }
  23. public function getVersion()
  24. {
  25. return "V1";
  26. }
  27. public function getDataType()
  28. {
  29. return "JSON";
  30. }
  31. public function getType()
  32. {
  33. return "pdd.cloud.security.event.tracking.batch.order";
  34. }
  35. public function setEventType($eventType)
  36. {
  37. $this->eventType = $eventType;
  38. }
  39. public function setOrderEvents($orderEvents)
  40. {
  41. $this->orderEvents = $orderEvents;
  42. }
  43. }
  44. class PddCloudSecurityEventTrackingBatchOrderRequest_OrderEventsItem extends PopBaseJsonEntity
  45. {
  46. public function __construct()
  47. {
  48. }
  49. /**
  50. * @JsonProperty(List<Long>, "mallIdList")
  51. */
  52. private $mallIdList;
  53. /**
  54. * @JsonProperty(String, "operation")
  55. */
  56. private $operation;
  57. /**
  58. * @JsonProperty(List<String>, "orderList")
  59. */
  60. private $orderList;
  61. /**
  62. * @JsonProperty(String, "pati")
  63. */
  64. private $pati;
  65. /**
  66. * @JsonProperty(String, "sendTo")
  67. */
  68. private $sendTo;
  69. /**
  70. * @JsonProperty(Long, "timestamp")
  71. */
  72. private $timestamp;
  73. /**
  74. * @JsonProperty(String, "url")
  75. */
  76. private $url;
  77. /**
  78. * @JsonProperty(String, "userId")
  79. */
  80. private $userId;
  81. /**
  82. * @JsonProperty(String, "userIp")
  83. */
  84. private $userIp;
  85. public function setMallIdList($mallIdList)
  86. {
  87. $this->mallIdList = $mallIdList;
  88. }
  89. public function setOperation($operation)
  90. {
  91. $this->operation = $operation;
  92. }
  93. public function setOrderList($orderList)
  94. {
  95. $this->orderList = $orderList;
  96. }
  97. public function setPati($pati)
  98. {
  99. $this->pati = $pati;
  100. }
  101. public function setSendTo($sendTo)
  102. {
  103. $this->sendTo = $sendTo;
  104. }
  105. public function setTimestamp($timestamp)
  106. {
  107. $this->timestamp = $timestamp;
  108. }
  109. public function setUrl($url)
  110. {
  111. $this->url = $url;
  112. }
  113. public function setUserId($userId)
  114. {
  115. $this->userId = $userId;
  116. }
  117. public function setUserIp($userIp)
  118. {
  119. $this->userIp = $userIp;
  120. }
  121. }