AntMerchantExpandIndirectImageUploadRequest.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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: ant.merchant.expand.indirect.image.upload request
  10. *
  11. * @author auto create
  12. * @since 1.0, 2021-09-22 18:41:50
  13. */
  14. class AntMerchantExpandIndirectImageUploadRequest
  15. {
  16. /**
  17. * 图片二进制字节流,最大为10M
  18. **/
  19. private $imageContent;
  20. /**
  21. * 图片格式,支持格式:bmp、jpg、jpeg、png、gif.
  22. **/
  23. private $imageType;
  24. private $apiParas = array();
  25. private $terminalType;
  26. private $terminalInfo;
  27. private $prodCode;
  28. private $apiVersion="1.0";
  29. private $notifyUrl;
  30. private $returnUrl;
  31. private $needEncrypt=false;
  32. public function setImageContent($imageContent)
  33. {
  34. $this->imageContent = $imageContent;
  35. $this->apiParas["image_content"] = $imageContent;
  36. }
  37. public function getImageContent()
  38. {
  39. return $this->imageContent;
  40. }
  41. public function setImageType($imageType)
  42. {
  43. $this->imageType = $imageType;
  44. $this->apiParas["image_type"] = $imageType;
  45. }
  46. public function getImageType()
  47. {
  48. return $this->imageType;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "ant.merchant.expand.indirect.image.upload";
  53. }
  54. public function setNotifyUrl($notifyUrl)
  55. {
  56. $this->notifyUrl=$notifyUrl;
  57. }
  58. public function getNotifyUrl()
  59. {
  60. return $this->notifyUrl;
  61. }
  62. public function setReturnUrl($returnUrl)
  63. {
  64. $this->returnUrl=$returnUrl;
  65. }
  66. public function getReturnUrl()
  67. {
  68. return $this->returnUrl;
  69. }
  70. public function getApiParas()
  71. {
  72. return $this->apiParas;
  73. }
  74. public function getTerminalType()
  75. {
  76. return $this->terminalType;
  77. }
  78. public function setTerminalType($terminalType)
  79. {
  80. $this->terminalType = $terminalType;
  81. }
  82. public function getTerminalInfo()
  83. {
  84. return $this->terminalInfo;
  85. }
  86. public function setTerminalInfo($terminalInfo)
  87. {
  88. $this->terminalInfo = $terminalInfo;
  89. }
  90. public function getProdCode()
  91. {
  92. return $this->prodCode;
  93. }
  94. public function setProdCode($prodCode)
  95. {
  96. $this->prodCode = $prodCode;
  97. }
  98. public function setApiVersion($apiVersion)
  99. {
  100. $this->apiVersion=$apiVersion;
  101. }
  102. public function getApiVersion()
  103. {
  104. return $this->apiVersion;
  105. }
  106. public function setNeedEncrypt($needEncrypt)
  107. {
  108. $this->needEncrypt=$needEncrypt;
  109. }
  110. public function getNeedEncrypt()
  111. {
  112. return $this->needEncrypt;
  113. }
  114. }