PddDdkOauthGoodsZsUnitUrlGenRequest.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 PddDdkOauthGoodsZsUnitUrlGenRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Boolean, "generate_schema_url")
  12. */
  13. private $generateSchemaUrl;
  14. /**
  15. * @JsonProperty(String, "pid")
  16. */
  17. private $pid;
  18. /**
  19. * @JsonProperty(String, "source_url")
  20. */
  21. private $sourceUrl;
  22. /**
  23. * @JsonProperty(String, "custom_parameters")
  24. */
  25. private $customParameters;
  26. protected function setUserParams(&$params)
  27. {
  28. $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl);
  29. $this->setUserParam($params, "pid", $this->pid);
  30. $this->setUserParam($params, "source_url", $this->sourceUrl);
  31. $this->setUserParam($params, "custom_parameters", $this->customParameters);
  32. }
  33. public function getVersion()
  34. {
  35. return "V1";
  36. }
  37. public function getDataType()
  38. {
  39. return "JSON";
  40. }
  41. public function getType()
  42. {
  43. return "pdd.ddk.oauth.goods.zs.unit.url.gen";
  44. }
  45. public function setGenerateSchemaUrl($generateSchemaUrl)
  46. {
  47. $this->generateSchemaUrl = $generateSchemaUrl;
  48. }
  49. public function setPid($pid)
  50. {
  51. $this->pid = $pid;
  52. }
  53. public function setSourceUrl($sourceUrl)
  54. {
  55. $this->sourceUrl = $sourceUrl;
  56. }
  57. public function setCustomParameters($customParameters)
  58. {
  59. $this->customParameters = $customParameters;
  60. }
  61. }