PddTrainCancelChangeRequest.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 PddTrainCancelChangeRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "pdd_order_id")
  12. */
  13. private $pddOrderId;
  14. /**
  15. * @JsonProperty(String, "order_id")
  16. */
  17. private $orderId;
  18. /**
  19. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCancelChangeRequest_PassengerInfosItem>, "passenger_infos")
  20. */
  21. private $passengerInfos;
  22. protected function setUserParams(&$params)
  23. {
  24. $this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
  25. $this->setUserParam($params, "order_id", $this->orderId);
  26. $this->setUserParam($params, "passenger_infos", $this->passengerInfos);
  27. }
  28. public function getVersion()
  29. {
  30. return "V1";
  31. }
  32. public function getDataType()
  33. {
  34. return "JSON";
  35. }
  36. public function getType()
  37. {
  38. return "pdd.train.cancel.change";
  39. }
  40. public function setPddOrderId($pddOrderId)
  41. {
  42. $this->pddOrderId = $pddOrderId;
  43. }
  44. public function setOrderId($orderId)
  45. {
  46. $this->orderId = $orderId;
  47. }
  48. public function setPassengerInfos($passengerInfos)
  49. {
  50. $this->passengerInfos = $passengerInfos;
  51. }
  52. }
  53. class PddTrainCancelChangeRequest_PassengerInfosItem extends PopBaseJsonEntity
  54. {
  55. public function __construct()
  56. {
  57. }
  58. /**
  59. * @JsonProperty(String, "new_sub_order_Id")
  60. */
  61. private $newSubOrderId;
  62. /**
  63. * @JsonProperty(String, "old_sub_order_id")
  64. */
  65. private $oldSubOrderId;
  66. public function setNewSubOrderId($newSubOrderId)
  67. {
  68. $this->newSubOrderId = $newSubOrderId;
  69. }
  70. public function setOldSubOrderId($oldSubOrderId)
  71. {
  72. $this->oldSubOrderId = $oldSubOrderId;
  73. }
  74. }