PddVoucherVoucherComplainRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 PddVoucherVoucherComplainRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "order_sn")
  12. */
  13. private $orderSn;
  14. /**
  15. * @JsonProperty(String, "out_biz_no")
  16. */
  17. private $outBizNo;
  18. /**
  19. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherVoucherComplainRequest_VoucherListItem>, "voucher_list")
  20. */
  21. private $voucherList;
  22. /**
  23. * @JsonProperty(String, "complain_user")
  24. */
  25. private $complainUser;
  26. /**
  27. * @JsonProperty(String, "complain_user_mobile")
  28. */
  29. private $complainUserMobile;
  30. /**
  31. * @JsonProperty(String, "complain_content")
  32. */
  33. private $complainContent;
  34. /**
  35. * @JsonProperty(List<String>, "complain_attachment_list")
  36. */
  37. private $complainAttachmentList;
  38. /**
  39. * @JsonProperty(Integer, "complain_type")
  40. */
  41. private $complainType;
  42. protected function setUserParams(&$params)
  43. {
  44. $this->setUserParam($params, "order_sn", $this->orderSn);
  45. $this->setUserParam($params, "out_biz_no", $this->outBizNo);
  46. $this->setUserParam($params, "voucher_list", $this->voucherList);
  47. $this->setUserParam($params, "complain_user", $this->complainUser);
  48. $this->setUserParam($params, "complain_user_mobile", $this->complainUserMobile);
  49. $this->setUserParam($params, "complain_content", $this->complainContent);
  50. $this->setUserParam($params, "complain_attachment_list", $this->complainAttachmentList);
  51. $this->setUserParam($params, "complain_type", $this->complainType);
  52. }
  53. public function getVersion()
  54. {
  55. return "V1";
  56. }
  57. public function getDataType()
  58. {
  59. return "JSON";
  60. }
  61. public function getType()
  62. {
  63. return "pdd.voucher.voucher.complain";
  64. }
  65. public function setOrderSn($orderSn)
  66. {
  67. $this->orderSn = $orderSn;
  68. }
  69. public function setOutBizNo($outBizNo)
  70. {
  71. $this->outBizNo = $outBizNo;
  72. }
  73. public function setVoucherList($voucherList)
  74. {
  75. $this->voucherList = $voucherList;
  76. }
  77. public function setComplainUser($complainUser)
  78. {
  79. $this->complainUser = $complainUser;
  80. }
  81. public function setComplainUserMobile($complainUserMobile)
  82. {
  83. $this->complainUserMobile = $complainUserMobile;
  84. }
  85. public function setComplainContent($complainContent)
  86. {
  87. $this->complainContent = $complainContent;
  88. }
  89. public function setComplainAttachmentList($complainAttachmentList)
  90. {
  91. $this->complainAttachmentList = $complainAttachmentList;
  92. }
  93. public function setComplainType($complainType)
  94. {
  95. $this->complainType = $complainType;
  96. }
  97. }
  98. class PddVoucherVoucherComplainRequest_VoucherListItem extends PopBaseJsonEntity
  99. {
  100. public function __construct()
  101. {
  102. }
  103. /**
  104. * @JsonProperty(String, "voucher_id")
  105. */
  106. private $voucherId;
  107. /**
  108. * @JsonProperty(String, "voucher_no")
  109. */
  110. private $voucherNo;
  111. public function setVoucherId($voucherId)
  112. {
  113. $this->voucherId = $voucherId;
  114. }
  115. public function setVoucherNo($voucherNo)
  116. {
  117. $this->voucherNo = $voucherNo;
  118. }
  119. }