WxPayOrderQuery.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?php
  2. /**
  3. * 配置账号信息
  4. */
  5. namespace common\library\Pay\lib;
  6. /**
  7. *
  8. * 订单查询输入对象
  9. * @author widyhu
  10. *
  11. */
  12. class WxPayOrderQuery extends WxPayDataBase
  13. {
  14. /**
  15. * 设置微信分配的公众账号ID
  16. * @param string $value
  17. **/
  18. public function SetAppid($value)
  19. {
  20. $this->values['appid'] = $value;
  21. }
  22. /**
  23. * 获取微信分配的公众账号ID的值
  24. * @return 值
  25. **/
  26. public function GetAppid()
  27. {
  28. return $this->values['appid'];
  29. }
  30. /**
  31. * 判断微信分配的公众账号ID是否存在
  32. * @return true 或 false
  33. **/
  34. public function IsAppidSet()
  35. {
  36. return array_key_exists('appid', $this->values);
  37. }
  38. /**
  39. * 设置微信支付分配的商户号
  40. * @param string $value
  41. **/
  42. public function SetMch_id($value)
  43. {
  44. $this->values['mch_id'] = $value;
  45. }
  46. /**
  47. * 获取微信支付分配的商户号的值
  48. * @return 值
  49. **/
  50. public function GetMch_id()
  51. {
  52. return $this->values['mch_id'];
  53. }
  54. /**
  55. * 判断微信支付分配的商户号是否存在
  56. * @return true 或 false
  57. **/
  58. public function IsMch_idSet()
  59. {
  60. return array_key_exists('mch_id', $this->values);
  61. }
  62. /**
  63. * 设置微信的订单号,优先使用
  64. * @param string $value
  65. **/
  66. public function SetTransaction_id($value)
  67. {
  68. $this->values['transaction_id'] = $value;
  69. }
  70. /**
  71. * 获取微信的订单号,优先使用的值
  72. * @return 值
  73. **/
  74. public function GetTransaction_id()
  75. {
  76. return $this->values['transaction_id'];
  77. }
  78. /**
  79. * 判断微信的订单号,优先使用是否存在
  80. * @return true 或 false
  81. **/
  82. public function IsTransaction_idSet()
  83. {
  84. return array_key_exists('transaction_id', $this->values);
  85. }
  86. /**
  87. * 设置商户系统内部的订单号,当没提供transaction_id时需要传这个。
  88. * @param string $value
  89. **/
  90. public function SetOut_trade_no($value)
  91. {
  92. $this->values['out_trade_no'] = $value;
  93. }
  94. /**
  95. * 获取商户系统内部的订单号,当没提供transaction_id时需要传这个。的值
  96. * @return 值
  97. **/
  98. public function GetOut_trade_no()
  99. {
  100. return $this->values['out_trade_no'];
  101. }
  102. /**
  103. * 判断商户系统内部的订单号,当没提供transaction_id时需要传这个。是否存在
  104. * @return true 或 false
  105. **/
  106. public function IsOut_trade_noSet()
  107. {
  108. return array_key_exists('out_trade_no', $this->values);
  109. }
  110. /**
  111. * 设置随机字符串,不长于32位。推荐随机数生成算法
  112. * @param string $value
  113. **/
  114. public function SetNonce_str($value)
  115. {
  116. $this->values['nonce_str'] = $value;
  117. }
  118. /**
  119. * 获取随机字符串,不长于32位。推荐随机数生成算法的值
  120. * @return 值
  121. **/
  122. public function GetNonce_str()
  123. {
  124. return $this->values['nonce_str'];
  125. }
  126. /**
  127. * 判断随机字符串,不长于32位。推荐随机数生成算法是否存在
  128. * @return true 或 false
  129. **/
  130. public function IsNonce_strSet()
  131. {
  132. return array_key_exists('nonce_str', $this->values);
  133. }
  134. }