PddCloudLogisticsOnlineSendRequest.php 1.8 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 PddCloudLogisticsOnlineSendRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "feature")
  12. */
  13. private $feature;
  14. /**
  15. * @JsonProperty(Long, "logistics_id")
  16. */
  17. private $logisticsId;
  18. /**
  19. * @JsonProperty(String, "order_sn")
  20. */
  21. private $orderSn;
  22. /**
  23. * @JsonProperty(String, "refund_address_id")
  24. */
  25. private $refundAddressId;
  26. /**
  27. * @JsonProperty(String, "tracking_number")
  28. */
  29. private $trackingNumber;
  30. /**
  31. * @JsonProperty(String, "ext_token")
  32. */
  33. private $extToken;
  34. protected function setUserParams(&$params)
  35. {
  36. $this->setUserParam($params, "feature", $this->feature);
  37. $this->setUserParam($params, "logistics_id", $this->logisticsId);
  38. $this->setUserParam($params, "order_sn", $this->orderSn);
  39. $this->setUserParam($params, "refund_address_id", $this->refundAddressId);
  40. $this->setUserParam($params, "tracking_number", $this->trackingNumber);
  41. $this->setUserParam($params, "ext_token", $this->extToken);
  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.cloud.logistics.online.send";
  54. }
  55. public function setFeature($feature)
  56. {
  57. $this->feature = $feature;
  58. }
  59. public function setLogisticsId($logisticsId)
  60. {
  61. $this->logisticsId = $logisticsId;
  62. }
  63. public function setOrderSn($orderSn)
  64. {
  65. $this->orderSn = $orderSn;
  66. }
  67. public function setRefundAddressId($refundAddressId)
  68. {
  69. $this->refundAddressId = $refundAddressId;
  70. }
  71. public function setTrackingNumber($trackingNumber)
  72. {
  73. $this->trackingNumber = $trackingNumber;
  74. }
  75. public function setExtToken($extToken)
  76. {
  77. $this->extToken = $extToken;
  78. }
  79. }