WxPayOrderQuery.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: yunzhong
  5. * Date: 2019/11/18
  6. * Time: 10:23
  7. */
  8. namespace app\common\services\wechat\lib;
  9. /**
  10. *
  11. * 订单查询输入对象
  12. * @author widyhu
  13. *
  14. */
  15. class WxPayOrderQuery extends WxPayDataBase
  16. {
  17. /**
  18. * 设置微信分配的公众账号ID
  19. * @param string $value
  20. **/
  21. public function SetAppid($value)
  22. {
  23. $this->values['appid'] = $value;
  24. }
  25. /**
  26. * 获取微信分配的公众账号ID的值
  27. * @return 值
  28. **/
  29. public function GetAppid()
  30. {
  31. return $this->values['appid'];
  32. }
  33. /**
  34. * 判断微信分配的公众账号ID是否存在
  35. * @return true 或 false
  36. **/
  37. public function IsAppidSet()
  38. {
  39. return array_key_exists('appid', $this->values);
  40. }
  41. /**
  42. * 设置微信分配的子商户公众账号ID
  43. * @param string $value
  44. **/
  45. public function SetSub_appid($value)
  46. {
  47. $this->values['sub_appid'] = $value;
  48. }
  49. /**
  50. * 获取微信分配的子商户公众账号ID的值
  51. * @return 值
  52. **/
  53. public function GetSub_appid()
  54. {
  55. return $this->values['sub_appid'];
  56. }
  57. /**
  58. * 判断微信分配的子商户公众账号ID是否存在
  59. * @return true 或 false
  60. **/
  61. public function IsSub_appidSet()
  62. {
  63. return array_key_exists('sub_appid', $this->values);
  64. }
  65. /**
  66. * 设置微信支付分配的商户号
  67. * @param string $value
  68. **/
  69. public function SetMch_id($value)
  70. {
  71. $this->values['mch_id'] = $value;
  72. }
  73. /**
  74. * 获取微信支付分配的商户号的值
  75. * @return 值
  76. **/
  77. public function GetMch_id()
  78. {
  79. return $this->values['mch_id'];
  80. }
  81. /**
  82. * 判断微信支付分配的商户号是否存在
  83. * @return true 或 false
  84. **/
  85. public function IsMch_idSet()
  86. {
  87. return array_key_exists('mch_id', $this->values);
  88. }
  89. /**
  90. * 设置微信支付分配的子商户号
  91. * @param string $value
  92. **/
  93. public function SetSub_mch_id($value)
  94. {
  95. $this->values['sub_mch_id'] = $value;
  96. }
  97. /**
  98. * 获取微信支付分配的子商户号的值
  99. * @return 值
  100. **/
  101. public function GetSub_mch_id()
  102. {
  103. return $this->values['sub_mch_id'];
  104. }
  105. /**
  106. * 判断微信支付分配的子商户号是否存在
  107. * @return true 或 false
  108. **/
  109. public function IsSub_mch_idSet()
  110. {
  111. return array_key_exists('sub_mch_id', $this->values);
  112. }
  113. /**
  114. * 设置微信的订单号,优先使用
  115. * @param string $value
  116. **/
  117. public function SetTransaction_id($value)
  118. {
  119. $this->values['transaction_id'] = $value;
  120. }
  121. /**
  122. * 获取微信的订单号,优先使用的值
  123. * @return 值
  124. **/
  125. public function GetTransaction_id()
  126. {
  127. return $this->values['transaction_id'];
  128. }
  129. /**
  130. * 判断微信的订单号,优先使用是否存在
  131. * @return true 或 false
  132. **/
  133. public function IsTransaction_idSet()
  134. {
  135. return array_key_exists('transaction_id', $this->values);
  136. }
  137. /**
  138. * 设置商户系统内部的订单号,当没提供transaction_id时需要传这个。
  139. * @param string $value
  140. **/
  141. public function SetOut_trade_no($value)
  142. {
  143. $this->values['out_trade_no'] = $value;
  144. }
  145. /**
  146. * 获取商户系统内部的订单号,当没提供transaction_id时需要传这个。的值
  147. * @return 值
  148. **/
  149. public function GetOut_trade_no()
  150. {
  151. return $this->values['out_trade_no'];
  152. }
  153. /**
  154. * 判断商户系统内部的订单号,当没提供transaction_id时需要传这个。是否存在
  155. * @return true 或 false
  156. **/
  157. public function IsOut_trade_noSet()
  158. {
  159. return array_key_exists('out_trade_no', $this->values);
  160. }
  161. /**
  162. * 设置随机字符串,不长于32位。推荐随机数生成算法
  163. * @param string $value
  164. **/
  165. public function SetNonce_str($value)
  166. {
  167. $this->values['nonce_str'] = $value;
  168. }
  169. /**
  170. * 获取随机字符串,不长于32位。推荐随机数生成算法的值
  171. * @return 值
  172. **/
  173. public function GetNonce_str()
  174. {
  175. return $this->values['nonce_str'];
  176. }
  177. /**
  178. * 判断随机字符串,不长于32位。推荐随机数生成算法是否存在
  179. * @return true 或 false
  180. **/
  181. public function IsNonce_strSet()
  182. {
  183. return array_key_exists('nonce_str', $this->values);
  184. }
  185. }