PddCloudprintCmdprintRenderRequest.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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 PddCloudprintCmdprintRenderRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_Request, "request")
  12. */
  13. private $request;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "request", $this->request);
  17. }
  18. public function getVersion()
  19. {
  20. return "V1";
  21. }
  22. public function getDataType()
  23. {
  24. return "JSON";
  25. }
  26. public function getType()
  27. {
  28. return "pdd.cloudprint.cmdprint.render";
  29. }
  30. public function setRequest($request)
  31. {
  32. $this->request = $request;
  33. }
  34. }
  35. class PddCloudprintCmdprintRenderRequest_Request extends PopBaseJsonEntity
  36. {
  37. public function __construct()
  38. {
  39. }
  40. /**
  41. * @JsonProperty(String, "client_side_id")
  42. */
  43. private $clientSideId;
  44. /**
  45. * @JsonProperty(String, "client_type")
  46. */
  47. private $clientType;
  48. /**
  49. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestConfig, "config")
  50. */
  51. private $config;
  52. /**
  53. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocument, "document")
  54. */
  55. private $document;
  56. /**
  57. * @JsonProperty(String, "printer_name")
  58. */
  59. private $printerName;
  60. /**
  61. * @JsonProperty(String, "print_command_type")
  62. */
  63. private $printCommandType;
  64. public function setClientSideId($clientSideId)
  65. {
  66. $this->clientSideId = $clientSideId;
  67. }
  68. public function setClientType($clientType)
  69. {
  70. $this->clientType = $clientType;
  71. }
  72. public function setConfig($config)
  73. {
  74. $this->config = $config;
  75. }
  76. public function setDocument($document)
  77. {
  78. $this->document = $document;
  79. }
  80. public function setPrinterName($printerName)
  81. {
  82. $this->printerName = $printerName;
  83. }
  84. public function setPrintCommandType($printCommandType)
  85. {
  86. $this->printCommandType = $printCommandType;
  87. }
  88. }
  89. class PddCloudprintCmdprintRenderRequest_RequestConfig extends PopBaseJsonEntity
  90. {
  91. public function __construct()
  92. {
  93. }
  94. /**
  95. * @JsonProperty(Double, "horizontal_offset")
  96. */
  97. private $horizontalOffset;
  98. /**
  99. * @JsonProperty(Boolean, "need_bottom_logo")
  100. */
  101. private $needBottomLogo;
  102. /**
  103. * @JsonProperty(Boolean, "need_middle_logo")
  104. */
  105. private $needMiddleLogo;
  106. /**
  107. * @JsonProperty(Boolean, "need_top_logo")
  108. */
  109. private $needTopLogo;
  110. /**
  111. * @JsonProperty(String, "orientation")
  112. */
  113. private $orientation;
  114. /**
  115. * @JsonProperty(Double, "vertical_offset")
  116. */
  117. private $verticalOffset;
  118. public function setHorizontalOffset($horizontalOffset)
  119. {
  120. $this->horizontalOffset = $horizontalOffset;
  121. }
  122. public function setNeedBottomLogo($needBottomLogo)
  123. {
  124. $this->needBottomLogo = $needBottomLogo;
  125. }
  126. public function setNeedMiddleLogo($needMiddleLogo)
  127. {
  128. $this->needMiddleLogo = $needMiddleLogo;
  129. }
  130. public function setNeedTopLogo($needTopLogo)
  131. {
  132. $this->needTopLogo = $needTopLogo;
  133. }
  134. public function setOrientation($orientation)
  135. {
  136. $this->orientation = $orientation;
  137. }
  138. public function setVerticalOffset($verticalOffset)
  139. {
  140. $this->verticalOffset = $verticalOffset;
  141. }
  142. }
  143. class PddCloudprintCmdprintRenderRequest_RequestDocument extends PopBaseJsonEntity
  144. {
  145. public function __construct()
  146. {
  147. }
  148. /**
  149. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem>, "contents")
  150. */
  151. private $contents;
  152. public function setContents($contents)
  153. {
  154. $this->contents = $contents;
  155. }
  156. }
  157. class PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem extends PopBaseJsonEntity
  158. {
  159. public function __construct()
  160. {
  161. }
  162. /**
  163. * @JsonProperty(String, "add_data")
  164. */
  165. private $addData;
  166. /**
  167. * @JsonProperty(Boolean, "encrypted")
  168. */
  169. private $encrypted;
  170. /**
  171. * @JsonProperty(String, "print_data")
  172. */
  173. private $printData;
  174. /**
  175. * @JsonProperty(String, "signature")
  176. */
  177. private $signature;
  178. /**
  179. * @JsonProperty(String, "template_url")
  180. */
  181. private $templateUrl;
  182. /**
  183. * @JsonProperty(String, "ver")
  184. */
  185. private $ver;
  186. public function setAddData($addData)
  187. {
  188. $this->addData = $addData;
  189. }
  190. public function setEncrypted($encrypted)
  191. {
  192. $this->encrypted = $encrypted;
  193. }
  194. public function setPrintData($printData)
  195. {
  196. $this->printData = $printData;
  197. }
  198. public function setSignature($signature)
  199. {
  200. $this->signature = $signature;
  201. }
  202. public function setTemplateUrl($templateUrl)
  203. {
  204. $this->templateUrl = $templateUrl;
  205. }
  206. public function setVer($ver)
  207. {
  208. $this->ver = $ver;
  209. }
  210. }