AlipayOfflineMaterialImageUploadRequest.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\utils\Alipay\alipaySdk\aop\request;
  8. /**
  9. * ALIPAY API: alipay.offline.material.image.upload request
  10. *
  11. * @author auto create
  12. * @since 1.0, 2021-09-13 20:13:07
  13. */
  14. class AlipayOfflineMaterialImageUploadRequest
  15. {
  16. /**
  17. * 图片/视频二进制内容,图片/视频大小不能超过5M
  18. **/
  19. private $imageContent;
  20. /**
  21. * 图片/视频名称
  22. **/
  23. private $imageName;
  24. /**
  25. * 用于显示指定图片/视频所属的partnerId(支付宝内部使用,外部商户无需填写此字段)
  26. **/
  27. private $imagePid;
  28. /**
  29. * 图片/视频格式
  30. **/
  31. private $imageType;
  32. private $apiParas = array();
  33. private $terminalType;
  34. private $terminalInfo;
  35. private $prodCode;
  36. private $apiVersion="1.0";
  37. private $notifyUrl;
  38. private $returnUrl;
  39. private $needEncrypt=false;
  40. public function setImageContent($imageContent)
  41. {
  42. $this->imageContent = $imageContent;
  43. $this->apiParas["image_content"] = $imageContent;
  44. }
  45. public function getImageContent()
  46. {
  47. return $this->imageContent;
  48. }
  49. public function setImageName($imageName)
  50. {
  51. $this->imageName = $imageName;
  52. $this->apiParas["image_name"] = $imageName;
  53. }
  54. public function getImageName()
  55. {
  56. return $this->imageName;
  57. }
  58. public function setImagePid($imagePid)
  59. {
  60. $this->imagePid = $imagePid;
  61. $this->apiParas["image_pid"] = $imagePid;
  62. }
  63. public function getImagePid()
  64. {
  65. return $this->imagePid;
  66. }
  67. public function setImageType($imageType)
  68. {
  69. $this->imageType = $imageType;
  70. $this->apiParas["image_type"] = $imageType;
  71. }
  72. public function getImageType()
  73. {
  74. return $this->imageType;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "alipay.offline.material.image.upload";
  79. }
  80. public function setNotifyUrl($notifyUrl)
  81. {
  82. $this->notifyUrl=$notifyUrl;
  83. }
  84. public function getNotifyUrl()
  85. {
  86. return $this->notifyUrl;
  87. }
  88. public function setReturnUrl($returnUrl)
  89. {
  90. $this->returnUrl=$returnUrl;
  91. }
  92. public function getReturnUrl()
  93. {
  94. return $this->returnUrl;
  95. }
  96. public function getApiParas()
  97. {
  98. return $this->apiParas;
  99. }
  100. public function getTerminalType()
  101. {
  102. return $this->terminalType;
  103. }
  104. public function setTerminalType($terminalType)
  105. {
  106. $this->terminalType = $terminalType;
  107. }
  108. public function getTerminalInfo()
  109. {
  110. return $this->terminalInfo;
  111. }
  112. public function setTerminalInfo($terminalInfo)
  113. {
  114. $this->terminalInfo = $terminalInfo;
  115. }
  116. public function getProdCode()
  117. {
  118. return $this->prodCode;
  119. }
  120. public function setProdCode($prodCode)
  121. {
  122. $this->prodCode = $prodCode;
  123. }
  124. public function setApiVersion($apiVersion)
  125. {
  126. $this->apiVersion=$apiVersion;
  127. }
  128. public function getApiVersion()
  129. {
  130. return $this->apiVersion;
  131. }
  132. public function setNeedEncrypt($needEncrypt)
  133. {
  134. $this->needEncrypt=$needEncrypt;
  135. }
  136. public function getNeedEncrypt()
  137. {
  138. return $this->needEncrypt;
  139. }
  140. }