PddDdkOauthResourceUrlGenRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 PddDdkOauthResourceUrlGenRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "custom_parameters")
  12. */
  13. private $customParameters;
  14. /**
  15. * @JsonProperty(Boolean, "generate_we_app")
  16. */
  17. private $generateWeApp;
  18. /**
  19. * @JsonProperty(String, "pid")
  20. */
  21. private $pid;
  22. /**
  23. * @JsonProperty(Integer, "resource_type")
  24. */
  25. private $resourceType;
  26. /**
  27. * @JsonProperty(String, "url")
  28. */
  29. private $url;
  30. /**
  31. * @JsonProperty(Boolean, "generate_schema_url")
  32. */
  33. private $generateSchemaUrl;
  34. /**
  35. * @JsonProperty(Boolean, "generate_qq_app")
  36. */
  37. private $generateQqApp;
  38. protected function setUserParams(&$params)
  39. {
  40. $this->setUserParam($params, "custom_parameters", $this->customParameters);
  41. $this->setUserParam($params, "generate_we_app", $this->generateWeApp);
  42. $this->setUserParam($params, "pid", $this->pid);
  43. $this->setUserParam($params, "resource_type", $this->resourceType);
  44. $this->setUserParam($params, "url", $this->url);
  45. $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl);
  46. $this->setUserParam($params, "generate_qq_app", $this->generateQqApp);
  47. }
  48. public function getVersion()
  49. {
  50. return "V1";
  51. }
  52. public function getDataType()
  53. {
  54. return "JSON";
  55. }
  56. public function getType()
  57. {
  58. return "pdd.ddk.oauth.resource.url.gen";
  59. }
  60. public function setCustomParameters($customParameters)
  61. {
  62. $this->customParameters = $customParameters;
  63. }
  64. public function setGenerateWeApp($generateWeApp)
  65. {
  66. $this->generateWeApp = $generateWeApp;
  67. }
  68. public function setPid($pid)
  69. {
  70. $this->pid = $pid;
  71. }
  72. public function setResourceType($resourceType)
  73. {
  74. $this->resourceType = $resourceType;
  75. }
  76. public function setUrl($url)
  77. {
  78. $this->url = $url;
  79. }
  80. public function setGenerateSchemaUrl($generateSchemaUrl)
  81. {
  82. $this->generateSchemaUrl = $generateSchemaUrl;
  83. }
  84. public function setGenerateQqApp($generateQqApp)
  85. {
  86. $this->generateQqApp = $generateQqApp;
  87. }
  88. }