AlipayOpenAppItemListQueryRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. namespace app\utils\Alipay\alipaySdk\aop\request;
  3. /**
  4. * ALIPAY API: alipay.open.app.item.list.query request
  5. *
  6. * @author auto create
  7. * @since 1.0, 2024-07-09 15:07:05
  8. */
  9. class AlipayOpenAppItemListQueryRequest
  10. {
  11. /**
  12. * 小程序商品分页查询接口
  13. **/
  14. private $bizContent;
  15. private $apiParas = array();
  16. private $terminalType;
  17. private $terminalInfo;
  18. private $prodCode;
  19. private $apiVersion="1.0";
  20. private $notifyUrl;
  21. private $returnUrl;
  22. private $needEncrypt=false;
  23. //审核驳回: AUDIT_REJECT
  24. //审核中: AUDITING
  25. //已下架: DELISTING
  26. //可售卖: AVAILABLE
  27. //已冻结: FREEZE
  28. const SPU_STATUS_AUDIT_REJECT = 'AUDIT_REJECT';
  29. const SPU_STATUS_AUDITING = 'AUDITING';
  30. const SPU_STATUS_DELISTING = 'DELISTING';
  31. const SPU_STATUS_AVAILABLE = 'AVAILABLE';
  32. const SPU_STATUS_FREEZE = 'FREEZE';
  33. public static $spu_status_arr = [
  34. 0 => self::SPU_STATUS_AUDITING,
  35. 1 => self::SPU_STATUS_AVAILABLE,
  36. 2 => self::SPU_STATUS_AUDIT_REJECT,
  37. 3 => self::SPU_STATUS_DELISTING,
  38. 4 => self::SPU_STATUS_FREEZE,
  39. ];
  40. public static $spu_status_text_arr = [
  41. self::SPU_STATUS_AUDITING => '审核中',
  42. self::SPU_STATUS_AVAILABLE => '可售卖',
  43. self::SPU_STATUS_AUDIT_REJECT => '审核驳回',
  44. self::SPU_STATUS_DELISTING => '已下架',
  45. self::SPU_STATUS_FREEZE => '已冻结',
  46. ];
  47. public function setBizContent($bizContent)
  48. {
  49. $this->bizContent = $bizContent;
  50. $this->apiParas["biz_content"] = $bizContent;
  51. }
  52. public function getBizContent()
  53. {
  54. return $this->bizContent;
  55. }
  56. public function getApiMethodName()
  57. {
  58. return "alipay.open.app.item.list.query";
  59. }
  60. public function setNotifyUrl($notifyUrl)
  61. {
  62. $this->notifyUrl=$notifyUrl;
  63. }
  64. public function getNotifyUrl()
  65. {
  66. return $this->notifyUrl;
  67. }
  68. public function setReturnUrl($returnUrl)
  69. {
  70. $this->returnUrl=$returnUrl;
  71. }
  72. public function getReturnUrl()
  73. {
  74. return $this->returnUrl;
  75. }
  76. public function getApiParas()
  77. {
  78. return $this->apiParas;
  79. }
  80. public function getTerminalType()
  81. {
  82. return $this->terminalType;
  83. }
  84. public function setTerminalType($terminalType)
  85. {
  86. $this->terminalType = $terminalType;
  87. }
  88. public function getTerminalInfo()
  89. {
  90. return $this->terminalInfo;
  91. }
  92. public function setTerminalInfo($terminalInfo)
  93. {
  94. $this->terminalInfo = $terminalInfo;
  95. }
  96. public function getProdCode()
  97. {
  98. return $this->prodCode;
  99. }
  100. public function setProdCode($prodCode)
  101. {
  102. $this->prodCode = $prodCode;
  103. }
  104. public function setApiVersion($apiVersion)
  105. {
  106. $this->apiVersion=$apiVersion;
  107. }
  108. public function getApiVersion()
  109. {
  110. return $this->apiVersion;
  111. }
  112. public function setNeedEncrypt($needEncrypt)
  113. {
  114. $this->needEncrypt=$needEncrypt;
  115. }
  116. public function getNeedEncrypt()
  117. {
  118. return $this->needEncrypt;
  119. }
  120. }