| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddCloudprintCmdprintRenderRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_Request, "request")
- */
- private $request;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "request", $this->request);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.cloudprint.cmdprint.render";
- }
- public function setRequest($request)
- {
- $this->request = $request;
- }
- }
- class PddCloudprintCmdprintRenderRequest_Request extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "client_side_id")
- */
- private $clientSideId;
- /**
- * @JsonProperty(String, "client_type")
- */
- private $clientType;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestConfig, "config")
- */
- private $config;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocument, "document")
- */
- private $document;
- /**
- * @JsonProperty(String, "printer_name")
- */
- private $printerName;
- /**
- * @JsonProperty(String, "print_command_type")
- */
- private $printCommandType;
- public function setClientSideId($clientSideId)
- {
- $this->clientSideId = $clientSideId;
- }
- public function setClientType($clientType)
- {
- $this->clientType = $clientType;
- }
- public function setConfig($config)
- {
- $this->config = $config;
- }
- public function setDocument($document)
- {
- $this->document = $document;
- }
- public function setPrinterName($printerName)
- {
- $this->printerName = $printerName;
- }
- public function setPrintCommandType($printCommandType)
- {
- $this->printCommandType = $printCommandType;
- }
- }
- class PddCloudprintCmdprintRenderRequest_RequestConfig extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Double, "horizontal_offset")
- */
- private $horizontalOffset;
- /**
- * @JsonProperty(Boolean, "need_bottom_logo")
- */
- private $needBottomLogo;
- /**
- * @JsonProperty(Boolean, "need_middle_logo")
- */
- private $needMiddleLogo;
- /**
- * @JsonProperty(Boolean, "need_top_logo")
- */
- private $needTopLogo;
- /**
- * @JsonProperty(String, "orientation")
- */
- private $orientation;
- /**
- * @JsonProperty(Double, "vertical_offset")
- */
- private $verticalOffset;
- public function setHorizontalOffset($horizontalOffset)
- {
- $this->horizontalOffset = $horizontalOffset;
- }
- public function setNeedBottomLogo($needBottomLogo)
- {
- $this->needBottomLogo = $needBottomLogo;
- }
- public function setNeedMiddleLogo($needMiddleLogo)
- {
- $this->needMiddleLogo = $needMiddleLogo;
- }
- public function setNeedTopLogo($needTopLogo)
- {
- $this->needTopLogo = $needTopLogo;
- }
- public function setOrientation($orientation)
- {
- $this->orientation = $orientation;
- }
- public function setVerticalOffset($verticalOffset)
- {
- $this->verticalOffset = $verticalOffset;
- }
- }
- class PddCloudprintCmdprintRenderRequest_RequestDocument extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem>, "contents")
- */
- private $contents;
- public function setContents($contents)
- {
- $this->contents = $contents;
- }
- }
- class PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "add_data")
- */
- private $addData;
- /**
- * @JsonProperty(Boolean, "encrypted")
- */
- private $encrypted;
- /**
- * @JsonProperty(String, "print_data")
- */
- private $printData;
- /**
- * @JsonProperty(String, "signature")
- */
- private $signature;
- /**
- * @JsonProperty(String, "template_url")
- */
- private $templateUrl;
- /**
- * @JsonProperty(String, "ver")
- */
- private $ver;
- public function setAddData($addData)
- {
- $this->addData = $addData;
- }
- public function setEncrypted($encrypted)
- {
- $this->encrypted = $encrypted;
- }
- public function setPrintData($printData)
- {
- $this->printData = $printData;
- }
- public function setSignature($signature)
- {
- $this->signature = $signature;
- }
- public function setTemplateUrl($templateUrl)
- {
- $this->templateUrl = $templateUrl;
- }
- public function setVer($ver)
- {
- $this->ver = $ver;
- }
- }
|