AlipayOperatorMobileBindRequest.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.operator.mobile.bind request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017-05-03 16:48:39
  7. */
  8. class AlipayOperatorMobileBindRequest
  9. {
  10. /**
  11. * 标识该运营商是否需要验证用户的手机号绑定过快捷卡
  12. 1:需要
  13. 0:不需要
  14. **/
  15. private $checkSigncard;
  16. /**
  17. * 支付宝处理完请求后,如验证失败,当前页面自动跳转到商户网站里指定页面的http路径。
  18. **/
  19. private $fReturnUrl;
  20. /**
  21. * 标识该运营商是否提供了查询手机归属的spi接口。
  22. 1:提供了
  23. 0:没提供
  24. **/
  25. private $hasSpi;
  26. /**
  27. * 标识该运营商名称
  28. **/
  29. private $operatorName;
  30. /**
  31. * 标识该运营商所在省份
  32. **/
  33. private $provinceName;
  34. /**
  35. * 支付宝处理完请求后,如验证成功,当前页面自动跳转到商户网站里指定页面的http路径。
  36. **/
  37. private $sReturnUrl;
  38. private $apiParas = array();
  39. private $terminalType;
  40. private $terminalInfo;
  41. private $prodCode;
  42. private $apiVersion="1.0";
  43. private $notifyUrl;
  44. private $returnUrl;
  45. private $needEncrypt=false;
  46. public function setCheckSigncard($checkSigncard)
  47. {
  48. $this->checkSigncard = $checkSigncard;
  49. $this->apiParas["check_signcard"] = $checkSigncard;
  50. }
  51. public function getCheckSigncard()
  52. {
  53. return $this->checkSigncard;
  54. }
  55. public function setfReturnUrl($fReturnUrl)
  56. {
  57. $this->fReturnUrl = $fReturnUrl;
  58. $this->apiParas["f_return_url"] = $fReturnUrl;
  59. }
  60. public function getfReturnUrl()
  61. {
  62. return $this->fReturnUrl;
  63. }
  64. public function setHasSpi($hasSpi)
  65. {
  66. $this->hasSpi = $hasSpi;
  67. $this->apiParas["has_spi"] = $hasSpi;
  68. }
  69. public function getHasSpi()
  70. {
  71. return $this->hasSpi;
  72. }
  73. public function setOperatorName($operatorName)
  74. {
  75. $this->operatorName = $operatorName;
  76. $this->apiParas["operator_name"] = $operatorName;
  77. }
  78. public function getOperatorName()
  79. {
  80. return $this->operatorName;
  81. }
  82. public function setProvinceName($provinceName)
  83. {
  84. $this->provinceName = $provinceName;
  85. $this->apiParas["province_name"] = $provinceName;
  86. }
  87. public function getProvinceName()
  88. {
  89. return $this->provinceName;
  90. }
  91. public function setsReturnUrl($sReturnUrl)
  92. {
  93. $this->sReturnUrl = $sReturnUrl;
  94. $this->apiParas["s_return_url"] = $sReturnUrl;
  95. }
  96. public function getsReturnUrl()
  97. {
  98. return $this->sReturnUrl;
  99. }
  100. public function getApiMethodName()
  101. {
  102. return "alipay.operator.mobile.bind";
  103. }
  104. public function setNotifyUrl($notifyUrl)
  105. {
  106. $this->notifyUrl=$notifyUrl;
  107. }
  108. public function getNotifyUrl()
  109. {
  110. return $this->notifyUrl;
  111. }
  112. public function setReturnUrl($returnUrl)
  113. {
  114. $this->returnUrl=$returnUrl;
  115. }
  116. public function getReturnUrl()
  117. {
  118. return $this->returnUrl;
  119. }
  120. public function getApiParas()
  121. {
  122. return $this->apiParas;
  123. }
  124. public function getTerminalType()
  125. {
  126. return $this->terminalType;
  127. }
  128. public function setTerminalType($terminalType)
  129. {
  130. $this->terminalType = $terminalType;
  131. }
  132. public function getTerminalInfo()
  133. {
  134. return $this->terminalInfo;
  135. }
  136. public function setTerminalInfo($terminalInfo)
  137. {
  138. $this->terminalInfo = $terminalInfo;
  139. }
  140. public function getProdCode()
  141. {
  142. return $this->prodCode;
  143. }
  144. public function setProdCode($prodCode)
  145. {
  146. $this->prodCode = $prodCode;
  147. }
  148. public function setApiVersion($apiVersion)
  149. {
  150. $this->apiVersion=$apiVersion;
  151. }
  152. public function getApiVersion()
  153. {
  154. return $this->apiVersion;
  155. }
  156. public function setNeedEncrypt($needEncrypt)
  157. {
  158. $this->needEncrypt=$needEncrypt;
  159. }
  160. public function getNeedEncrypt()
  161. {
  162. return $this->needEncrypt;
  163. }
  164. }