dever 6 年 前
コミット
84fd25d01c
100 ファイル変更14956 行追加1 行削除
  1. 1 1
      config/base.php
  2. 166 0
      lib/Alipay.php
  3. 6 0
      sdk/alipay.php
  4. 43 0
      sdk/alipay/AopSdk.php
  5. 231 0
      sdk/alipay/aop/AlipayMobilePublicMultiMediaClient.php
  6. 108 0
      sdk/alipay/aop/AlipayMobilePublicMultiMediaExecute.php
  7. 1110 0
      sdk/alipay/aop/AopClient.php
  8. 71 0
      sdk/alipay/aop/AopEncrypt.php
  9. 19 0
      sdk/alipay/aop/EncryptParseItem.php
  10. 18 0
      sdk/alipay/aop/EncryptResponseData.php
  11. 16 0
      sdk/alipay/aop/SignData.php
  12. 118 0
      sdk/alipay/aop/request/AlipayAccountExrateAdviceAcceptRequest.php
  13. 118 0
      sdk/alipay/aop/request/AlipayAccountExrateAllclientrateQueryRequest.php
  14. 118 0
      sdk/alipay/aop/request/AlipayAccountExrateRatequeryRequest.php
  15. 171 0
      sdk/alipay/aop/request/AlipayAcquireCancelRequest.php
  16. 152 0
      sdk/alipay/aop/request/AlipayAcquireCloseRequest.php
  17. 550 0
      sdk/alipay/aop/request/AlipayAcquireCreateandpayRequest.php
  18. 402 0
      sdk/alipay/aop/request/AlipayAcquirePrecreateRequest.php
  19. 136 0
      sdk/alipay/aop/request/AlipayAcquireQueryRequest.php
  20. 236 0
      sdk/alipay/aop/request/AlipayAcquireRefundRequest.php
  21. 118 0
      sdk/alipay/aop/request/AlipayAppTokenGetRequest.php
  22. 170 0
      sdk/alipay/aop/request/AlipayAssetAccountBindRequest.php
  23. 135 0
      sdk/alipay/aop/request/AlipayAssetAccountGetRequest.php
  24. 134 0
      sdk/alipay/aop/request/AlipayAssetAccountUnbindRequest.php
  25. 103 0
      sdk/alipay/aop/request/AlipayAssetPointBalanceQueryRequest.php
  26. 103 0
      sdk/alipay/aop/request/AlipayAssetPointBudgetQueryRequest.php
  27. 118 0
      sdk/alipay/aop/request/AlipayAssetPointOrderCreateRequest.php
  28. 118 0
      sdk/alipay/aop/request/AlipayAssetPointOrderQueryRequest.php
  29. 118 0
      sdk/alipay/aop/request/AlipayBossCsChannelQueryRequest.php
  30. 118 0
      sdk/alipay/aop/request/AlipayBossProdArrangementOfflineQueryRequest.php
  31. 103 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorCityQueryRequest.php
  32. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorDepositCancelRequest.php
  33. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorDepositConfirmRequest.php
  34. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorDepositQueryRequest.php
  35. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorFunctionQueryRequest.php
  36. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorScriptQueryRequest.php
  37. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorStationQueryRequest.php
  38. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherBatchqueryRequest.php
  39. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherCancelRequest.php
  40. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherConfirmRequest.php
  41. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherGenerateRequest.php
  42. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherQueryRequest.php
  43. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherRefundRequest.php
  44. 118 0
      sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherUploadRequest.php
  45. 103 0
      sdk/alipay/aop/request/AlipayCommerceEducateStudentinfoShareRequest.php
  46. 118 0
      sdk/alipay/aop/request/AlipayCommerceMedicalCardQueryRequest.php
  47. 118 0
      sdk/alipay/aop/request/AlipayCommerceMedicalInstcardBindRequest.php
  48. 118 0
      sdk/alipay/aop/request/AlipayCommerceMedicalInstcardCreateandpayRequest.php
  49. 103 0
      sdk/alipay/aop/request/AlipayCommerceTransportOfflinepayKeyQueryRequest.php
  50. 118 0
      sdk/alipay/aop/request/AlipayCommerceTransportOfflinepayRecordVerifyRequest.php
  51. 118 0
      sdk/alipay/aop/request/AlipayCommerceTransportOfflinepayUserblacklistQueryRequest.php
  52. 134 0
      sdk/alipay/aop/request/AlipayDataBillDownloadurlGetRequest.php
  53. 118 0
      sdk/alipay/aop/request/AlipayDataDataexchangeSfasdfRequest.php
  54. 118 0
      sdk/alipay/aop/request/AlipayDataDataserviceBillDownloadurlQueryRequest.php
  55. 118 0
      sdk/alipay/aop/request/AlipayDataDataserviceChinaremodelQueryRequest.php
  56. 118 0
      sdk/alipay/aop/request/AlipayDataDataserviceCodeRecoRequest.php
  57. 103 0
      sdk/alipay/aop/request/AlipayDataDataserviceSdfsdfRequest.php
  58. 118 0
      sdk/alipay/aop/request/AlipayDataDataserviceUserlevelZrankGetRequest.php
  59. 326 0
      sdk/alipay/aop/request/AlipayEbppBillAddRequest.php
  60. 150 0
      sdk/alipay/aop/request/AlipayEbppBillBatchPayurlGetRequest.php
  61. 134 0
      sdk/alipay/aop/request/AlipayEbppBillGetRequest.php
  62. 182 0
      sdk/alipay/aop/request/AlipayEbppBillPayRequest.php
  63. 166 0
      sdk/alipay/aop/request/AlipayEbppBillPayurlGetRequest.php
  64. 215 0
      sdk/alipay/aop/request/AlipayEbppBillSearchRequest.php
  65. 103 0
      sdk/alipay/aop/request/AlipayEbppMerchantConfigGetRequest.php
  66. 134 0
      sdk/alipay/aop/request/AlipayEbppPdeductBillPayStatusRequest.php
  67. 297 0
      sdk/alipay/aop/request/AlipayEbppPdeductPayRequest.php
  68. 372 0
      sdk/alipay/aop/request/AlipayEbppPdeductSignAddRequest.php
  69. 182 0
      sdk/alipay/aop/request/AlipayEbppPdeductSignCancelRequest.php
  70. 118 0
      sdk/alipay/aop/request/AlipayEbppPdeductSignQueryRequest.php
  71. 118 0
      sdk/alipay/aop/request/AlipayEbppPdeductSignValidateRequest.php
  72. 182 0
      sdk/alipay/aop/request/AlipayEcapiprodCreditGetRequest.php
  73. 246 0
      sdk/alipay/aop/request/AlipayEcapiprodDataPutRequest.php
  74. 182 0
      sdk/alipay/aop/request/AlipayEcapiprodDrawndnContractGetRequest.php
  75. 182 0
      sdk/alipay/aop/request/AlipayEcapiprodDrawndnDrawndnlistQueryRequest.php
  76. 214 0
      sdk/alipay/aop/request/AlipayEcapiprodDrawndnFeerecordQueryRequest.php
  77. 214 0
      sdk/alipay/aop/request/AlipayEcapiprodDrawndnLendingrecordQueryRequest.php
  78. 182 0
      sdk/alipay/aop/request/AlipayEcapiprodDrawndnPaymentscheduleGetRequest.php
  79. 214 0
      sdk/alipay/aop/request/AlipayEcapiprodDrawndnRepaymentrecordQueryRequest.php
  80. 198 0
      sdk/alipay/aop/request/AlipayEcardEduPublicBindRequest.php
  81. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeBillBatchUploadRequest.php
  82. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeBillSyncRequest.php
  83. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeNoticeDeleteRequest.php
  84. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeNoticePublishRequest.php
  85. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeRepairStatusUpdateRequest.php
  86. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeResidentinfoDeleteRequest.php
  87. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeResidentinfoUploadRequest.php
  88. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeRoominfoDeleteRequest.php
  89. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeRoominfoUploadRequest.php
  90. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeRooominfoQueryRequest.php
  91. 118 0
      sdk/alipay/aop/request/AlipayEcoCplifeUseridentityStatusUpdateRequest.php
  92. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarCarlibInfoPushRequest.php
  93. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarDataExternalQueryRequest.php
  94. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarDataExternalSendRequest.php
  95. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarDataserviceMaintainvehicleShareRequest.php
  96. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarDataserviceViolationinfoShareRequest.php
  97. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarMaintainDataUpdateRequest.php
  98. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarMaintainOrderCreateRequest.php
  99. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarMaintainOrderstatusUpdateRequest.php
  100. 118 0
      sdk/alipay/aop/request/AlipayEcoMycarOrderRefundRequest.php

+ 1 - 1
config/base.php

@@ -8,7 +8,7 @@ $config['base'] = array
 		'type' => array
 		(
 			'wechat' => '微信支付',
-			//'alipay' => '支付宝',
+			'alipay' => '支付宝',
 			'cmbc' => '招商支付',
 		),
 

+ 166 - 0
lib/Alipay.php

@@ -0,0 +1,166 @@
+<?php namespace Pay\Lib;
+use Dever;
+Dever::apply('sdk/alipay', 'pay');
+
+class Alipay extends Core
+{
+	public function __construct($config)
+	{
+		$project = Dever::project('pay');
+		$this->config = new \Cmbc\Setting();
+		# 通知接口
+		$config['notify'] = $this->url($config['type'], $config['id']);
+		# 证书
+		$config['ssl'] = array
+		(
+			'cert' => $config['file_cert'],
+			'key' => $config['file_key'],
+		);
+
+		$this->config->set($config['appid'], $config['appsecret'], $config['mchid'], $config['notify'], $config['key'], $config['ssl'], $config['type'], $config['timeout']);
+	}
+
+	/**
+	 * 通知
+	 */
+	public function notify()
+	{
+		$input = file_get_contents("php://input");
+		if ($input) {
+			parse_str($input, $input);
+		} else {
+			$input = Dever::input();
+		}
+		$this->log('支付回调-初始化', $input);
+		
+		$tools = new \Cmbc\Handle();
+		$callback = $tools->get('notify', $this->config);
+		$result = $callback->request($input, $this);
+		if ($result) {
+			$this->log('支付回调-获取数据', $result);
+			$this->updateOrder($result['mhtOrderNo'], $result['mhtOrderAmt']);
+			echo 'success=Y';die;
+		} else {
+			echo 'success=N';die;
+		}
+	}
+
+	/**
+	 * 获取统一下单的基本信息
+	 */
+	public function order($account_id, $project_id, $uid, $username, $product_id, $name, $cash, $openid = false, $type = 1, $order_id = false)
+	{
+		$trade_type = $this->getType($type);
+		$order_id = $this->createOrder($uid, $username, $account_id, $project_id, $product_id, $name, $cash, $this->config->GetType(), $order_id);
+
+		$tools = new \Cmbc\Handle();
+
+		$order = $tools->get('order', $this->config);
+
+		$request['mhtOrderNo'] = $order_id;
+		$request['mhtOrderName'] = $name;
+		$request['mhtOrderAmt'] = $cash * 100;
+		$request['mhtOrderDetail'] = $name;
+		$request['mhtOrderStartTime'] = date("YmdHis");
+		$request['notifyUrl'] = $this->config->getNotifyUrl();
+		$request['outputType'] = 1;
+		if (!$openid) {
+			$request['consumerId'] = 'ofBUV0RUoy_8C4VctZjrSDGzhUfY';
+		} else {
+			$request['consumerId'] = $openid;
+		}
+		
+		$result = $order->request($request);
+		$this->updateOrderParam($order_id, $result);
+		return $result;
+	}
+
+	/**
+	 * 获取二维码支付
+	 */
+	public function qrcode($order, $refer)
+	{
+		$notify = new \NativePay();
+		$result = $notify->GetPayUrl($order);
+		$url = $result['code_url'];
+		return $url;
+	}
+
+	/**
+	 * 获取小程序支付
+	 */
+	public function applet($order)
+	{
+		$result = array();
+		if (isset($order['prepay_id'])) {
+			$result['time'] = $order['timeStamp'];
+			$result['nonce_str'] = $order['nonceStr'];
+			$result['prepay_id'] = $order['prepay_id'];
+			$result['sign_type'] = $order['signType'];
+			$result['sign'] = $order['paySign'];
+		}
+		return $result;
+	}
+
+
+	/**
+	 * 获取页面支付
+	 */
+	public function page($order, $refer)
+	{
+		$refer = urldecode($refer);
+		$tools = new \JsApiPay($this->config);
+		$info = $tools->GetJsApiParameters($order);
+
+		$html = '<script type="text/javascript">
+		function jsApiCall()
+		{
+			WeixinJSBridge.invoke(
+				"getBrandWCPayRequest",
+				'.$info.',
+				function(res){
+					//WeixinJSBridge.log(res.err_msg);
+					if(res.err_msg == "get_brand_wcpay_request:ok")
+					{
+						location.href = "'.$refer.'";
+					} else {
+						alert(res.err_code+res.err_desc+res.err_msg);
+					}
+				}
+			);
+		}
+
+		function callpay()
+		{
+			if (typeof WeixinJSBridge == "undefined"){
+			    if( document.addEventListener ){
+			        document.addEventListener("WeixinJSBridgeReady", jsApiCall, false);
+			    }else if (document.attachEvent){
+			        document.attachEvent("WeixinJSBridgeReady", jsApiCall); 
+			        document.attachEvent("onWeixinJSBridgeReady", jsApiCall);
+			    }
+			}else{
+			    jsApiCall();
+			}
+		}
+		callpay();
+		</script>';
+
+		return $html;
+	}
+
+	private function getType($type)
+	{
+		switch ($type) {
+			case 1:
+				$type = 'JSAPI';
+				break;
+			
+			case 2:
+				$type = 'NATIVE';
+				break;
+		}
+
+		return $type;
+	}
+}

+ 6 - 0
sdk/alipay.php

@@ -0,0 +1,6 @@
+<?php
+
+Dever::apply('sdk/wechat/WxPay.Api', 'pay');
+Dever::apply('sdk/wechat/WxPay.JsApiPay', 'pay');
+Dever::apply('sdk/wechat/WxPay.Config', 'pay');
+Dever::apply('sdk/wechat/WxPay.Notify', 'pay');

+ 43 - 0
sdk/alipay/AopSdk.php

@@ -0,0 +1,43 @@
+<?php
+/**
+ * AOP SDK 入口文件
+ * 请不要修改这个文件,除非你知道怎样修改以及怎样恢复
+ * @author wuxiao
+ */
+
+/**
+ * 定义常量开始
+ * 在include("AopSdk.php")之前定义这些常量,不要直接修改本文件,以利于升级覆盖
+ */
+/**
+ * SDK工作目录
+ * 存放日志,AOP缓存数据
+ */
+if (!defined("AOP_SDK_WORK_DIR"))
+{
+	define("AOP_SDK_WORK_DIR", "/tmp/");
+}
+/**
+ * 是否处于开发模式
+ * 在你自己电脑上开发程序的时候千万不要设为false,以免缓存造成你的代码修改了不生效
+ * 部署到生产环境正式运营后,如果性能压力大,可以把此常量设定为false,能提高运行速度(对应的代价就是你下次升级程序时要清一下缓存)
+ */
+if (!defined("AOP_SDK_DEV_MODE"))
+{
+	define("AOP_SDK_DEV_MODE", true);
+}
+/**
+ * 定义常量结束
+ */
+
+/**
+ * 找到lotusphp入口文件,并初始化lotusphp
+ * lotusphp是一个第三方php框架,其主页在:lotusphp.googlecode.com
+ */
+$lotusHome = dirname(__FILE__) . DIRECTORY_SEPARATOR . "lotusphp_runtime" . DIRECTORY_SEPARATOR;
+include($lotusHome . "Lotus.php");
+$lotus = new Lotus;
+$lotus->option["autoload_dir"] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'aop';
+$lotus->devMode = AOP_SDK_DEV_MODE;
+$lotus->defaultStoreDir = AOP_SDK_WORK_DIR;
+$lotus->init();

+ 231 - 0
sdk/alipay/aop/AlipayMobilePublicMultiMediaClient.php

@@ -0,0 +1,231 @@
+<?php
+
+/**
+ * 多媒体文件客户端
+ * @author yikai.hu
+ * @version $Id: AlipayMobilePublicMultiMediaClient.php, v 0.1 Aug 15, 2014 10:19:01 AM yikai.hu Exp $
+ */
+
+//namespace alipay\api ;
+
+include("AlipayMobilePublicMultiMediaExecute.php");
+
+
+class AlipayMobilePublicMultiMediaClient{
+
+    private				$DEFAULT_CHARSET = 'UTF-8';
+    private				$METHOD_POST     = "POST";
+    private				$METHOD_GET      = "GET";
+	private				$SIGN			= 'sign'; //get name
+
+	private				$timeout = 10 ;// 超时时间
+    private				$serverUrl;
+    private				$appId;
+    private				$privateKey;
+    private				$prodCode;
+    private				$format          = 'json'; //todo
+    private				$sign_type       = 'RSA'; //todo
+
+	private				$charset;
+	private				$apiVersion    = "1.0";
+	private				$apiMethodName = "alipay.mobile.public.multimedia.download";
+	private				$media_id = "L21pZnMvVDFQV3hYWGJKWFhYYUNucHJYP3Q9YW13ZiZ4c2lnPTU0MzRhYjg1ZTZjNWJmZTMxZGJiNjIzNDdjMzFkNzkw575";
+	//此处写死的,实际开发中,请传入
+
+    private				$connectTimeout  = 3000;
+    private				$readTimeout     = 15000;
+
+
+
+	function __construct($serverUrl = '', $appId = '', $partner_private_key = '', $format = '', $charset = 'GBK'){
+		$this -> serverUrl = $serverUrl;
+		$this -> appId = $appId;
+		$this -> privateKey = $partner_private_key;
+		$this -> format = $format;
+		$this -> charset = $charset;
+	}
+
+	/**
+	 * getContents 获取网址内容
+	 * @param $request
+	 * @return text | bin
+	 */
+	public function getContents(){
+		//自己的服务器如果没有 curl,可用:fsockopen() 等
+
+
+		//1:
+		//2: 私钥格式
+		$datas = array(
+			"app_id" 		=> $this -> appId,
+			"method" 		=> $this -> METHOD_POST,
+			"sign_type" 	=> $this -> sign_type,
+			"version" 		=> $this -> apiVersion,
+			"timestamp" 	=> date('Y-m-d H:i:s')  ,//yyyy-MM-dd HH:mm:ss
+			"biz_content" 	=> '{"mediaId":"'. $this -> media_id  .'"}',
+			"charset" 		=> $this -> charset
+		);
+
+
+
+		//要提交的数据
+		$data_sign = $this -> buildGetUrl( $datas );
+
+		$post_data = $data_sign;
+		//初始化 curl
+		$ch = curl_init();
+		//设置目标服务器
+		curl_setopt($ch, CURLOPT_URL, $this -> serverUrl );
+		curl_setopt($ch, CURLOPT_HEADER, TRUE);
+		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+		//超时时间
+		curl_setopt($ch, CURLOPT_TIMEOUT, $this-> timeout);
+
+		if( $this-> METHOD_POST == 'POST'){
+			// post数据
+			curl_setopt($ch, CURLOPT_POST, 1);
+			// post的变量
+			curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
+		}
+
+
+
+
+		$output = curl_exec($ch);
+		$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+		curl_close($ch);
+
+		echo $output;
+
+		//分离头部
+		//list($header, $body) = explode("\r\n\r\n", $output, 2);
+		$datas = explode("\r\n\r\n", $output, 2);
+		$header = $datas[0];
+
+		if( $httpCode == '200'){
+			$body = $datas[1];
+		}else{
+			$body = '';
+
+		}
+
+
+
+
+		return $this -> execute( $header, $body, $httpCode );
+	}
+
+	/**
+	 *
+	 * @param $request
+	 * @return text | bin
+	 */
+	public function execute( $header = '', $body = '', $httpCode = '' ){
+		$exe = new AlipayMobilePublicMultiMediaExecute( $header, $body, $httpCode );
+		return $exe;
+	}
+
+	public function buildGetUrl( $query = array() ){
+
+		if( ! is_array( $query ) ){
+			//exit;
+		}
+
+		//排序参数,
+		$data = $this -> buildQuery( $query );
+
+
+
+		// 私钥密码
+		$passphrase = '';
+		$key_width = 64;
+
+		//私钥
+		$privateKey = $this -> privateKey;
+		$p_key = array();
+		//如果私钥是 1行
+		if( ! stripos( $privateKey, "\n" )  ){
+			$i = 0;
+			while( $key_str = substr( $privateKey , $i * $key_width , $key_width) ){
+				$p_key[] = $key_str;
+				$i ++ ;
+			}
+		}else{
+			//echo '一行?';
+		}
+		$privateKey = "-----BEGIN RSA PRIVATE KEY-----\n" . implode("\n", $p_key) ;
+		$privateKey = $privateKey ."\n-----END RSA PRIVATE KEY-----";
+
+//		echo "\n\n私钥:\n";
+//		echo( $privateKey );
+//		echo "\n\n\n";
+
+		//私钥
+		$private_id = openssl_pkey_get_private( $privateKey , $passphrase);
+
+
+		// 签名
+		$signature = '';
+
+		if("RSA2"==$this->sign_type){
+
+			openssl_sign($data, $signature, $private_id, OPENSSL_ALGO_SHA256 );
+		}else{
+
+			openssl_sign($data, $signature, $private_id, OPENSSL_ALGO_SHA1 );
+		}
+
+		openssl_free_key( $private_id );
+
+		//加密后的内容通常含有特殊字符,需要编码转换下
+		$signature = base64_encode($signature);
+
+		$signature = urlencode( $signature );
+
+		//$signature = 'XjUN6YM1Mc9HXebKMv7GTLy7gmyhktyOgKk2/Jf+cz4DtP6udkzTdpkjW2j/Z4ZSD7xD6CNYI1Spz4yS93HPT0a5X9LgFWYY8SaADqe+ArXg+FBSiTwUz49SE//Xd9+LEiIRsSFkbpkuiGoO6mqJmB7vXjlD5lx6qCM3nb41wb8=';
+
+		$out = $data .'&'. $this -> SIGN .'='. $signature;
+
+//		echo "\n\n 加密后:\n";
+//		echo( $out );
+//		echo "\n\n\n";
+
+		return $out ;
+	}
+
+	/*
+	 * 查询参数排序 a-z
+	 * */
+	public function buildQuery( $query ){
+		if ( !$query ) {
+			return null;
+		}
+
+//将要 参数 排序
+		ksort( $query );
+
+		//重新组装参数
+		$params = array();
+		foreach($query as $key => $value){
+			$params[] = $key .'='. $value ;
+		}
+		$data = implode('&', $params);
+
+		return $data;
+
+	}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}

+ 108 - 0
sdk/alipay/aop/AlipayMobilePublicMultiMediaExecute.php

@@ -0,0 +1,108 @@
+<?php
+
+/**
+ * 多媒体文件客户端
+ * @author yuanwai.wang
+ * @version $Id: AlipayMobilePublicMultiMediaExecute.php, v 0.1 Aug 15, 2014 10:19:01 AM yuanwai.wang Exp $
+ */
+
+//namespace alipay\api ;
+
+
+
+class AlipayMobilePublicMultiMediaExecute{
+
+	private $code = 200 ;
+	private $msg = '';
+	private $body = '';
+	private $params = '';
+
+	private $fileSuffix = array(
+		"image/jpeg" 		=> 'jpg', //+
+		"text/plain"		=> 'text'
+	);
+
+	/*
+	 * @$header : 头部
+	 * */
+	function __construct( $header, $body, $httpCode ){
+		$this -> code = $httpCode;
+		$this -> msg = '';
+		$this -> params = $header ;
+		$this -> body = $body;
+	}
+
+	/**
+	 *
+	 * @return text | bin
+	 */
+	public function getCode(){
+		return $this -> code ;
+	}
+
+	/**
+	 *
+	 * @return text | bin
+	 */
+	public function getMsg(){
+		return $this -> msg ;
+	}
+
+	/**
+	 *
+	 * @return text | bin
+	 */
+	public function getType(){
+		$subject = $this -> params ;
+		$pattern = '/Content\-Type:([^;]+)/';
+		preg_match($pattern, $subject, $matches);
+		if( $matches ){
+			$type = $matches[1];
+		}else{
+			$type = 'application/download';
+		}
+
+		return str_replace( ' ', '', $type );
+	}
+
+	/**
+	 *
+	 * @return text | bin
+	 */
+	public function getContentLength(){
+		$subject = $this -> params ;
+		$pattern = '/Content-Length:\s*([^\n]+)/';
+		preg_match($pattern, $subject, $matches);
+		return (int)( isset($matches[1] ) ? $matches[1]  : '' );
+	}
+
+
+	public function getFileSuffix( $fileType ){
+		$type = isset( $this -> fileSuffix[ $fileType ] ) ? $this -> fileSuffix[ $fileType ] : 'text/plain' ;
+		if( !$type ){
+			$type = 'json';
+		}
+		return $type;
+	}
+
+
+
+	/**
+	 *
+	 * @return text | bin
+	 */
+	public function getBody(){
+		//header('Content-type: image/jpeg');
+		return $this -> body ;
+	}
+
+	/**
+	 * 获取参数
+	 * @return text | bin
+	 */
+	public function getParams(){
+		return $this -> params ;
+	}
+
+
+}

+ 1110 - 0
sdk/alipay/aop/AopClient.php

@@ -0,0 +1,1110 @@
+<?php
+
+require_once 'AopEncrypt.php';
+
+class AopClient {
+	//应用ID
+	public $appId;
+	//私钥文件路径
+	public $rsaPrivateKeyFilePath;
+
+	//私钥值
+	public $rsaPrivateKey;
+	//网关
+	public $gatewayUrl = "https://openapi.alipay.com/gateway.do";
+	//返回数据格式
+	public $format = "json";
+	//api版本
+	public $apiVersion = "1.0";
+
+	// 表单提交字符集编码
+	public $postCharset = "UTF-8";
+
+
+	public $alipayPublicKey = null;
+
+	public $alipayrsaPublicKey;
+
+
+	public $debugInfo = false;
+
+	private $fileCharset = "UTF-8";
+
+	private $RESPONSE_SUFFIX = "_response";
+
+	private $ERROR_RESPONSE = "error_response";
+
+	private $SIGN_NODE_NAME = "sign";
+
+
+	//加密XML节点名称
+	private $ENCRYPT_XML_NODE_NAME = "response_encrypted";
+
+	private $needEncrypt = false;
+
+
+	//签名类型
+	public $signType = "RSA";
+
+
+	//加密密钥和类型
+
+	public $encryptKey;
+
+	public $encryptType = "AES";
+
+	protected $alipaySdkVersion = "alipay-sdk-php-20161101";
+
+	public function generateSign($params, $signType = "RSA") {
+		return $this->sign($this->getSignContent($params), $signType);
+	}
+
+	public function rsaSign($params, $signType = "RSA") {
+		return $this->sign($this->getSignContent($params), $signType);
+	}
+
+	protected function getSignContent($params) {
+		ksort($params);
+
+		$stringToBeSigned = "";
+		$i = 0;
+		foreach ($params as $k => $v) {
+			if (false === $this->checkEmpty($v) && "@" != substr($v, 0, 1)) {
+
+				// 转换成目标字符集
+				$v = $this->characet($v, $this->postCharset);
+
+				if ($i == 0) {
+					$stringToBeSigned .= "$k" . "=" . "$v";
+				} else {
+					$stringToBeSigned .= "&" . "$k" . "=" . "$v";
+				}
+				$i++;
+			}
+		}
+
+		unset ($k, $v);
+		return $stringToBeSigned;
+	}
+
+	protected function sign($data, $signType = "RSA") {
+		if($this->checkEmpty($this->rsaPrivateKeyFilePath)){
+			$priKey=$this->rsaPrivateKey;
+			$res = "-----BEGIN RSA PRIVATE KEY-----\n" .
+				wordwrap($priKey, 64, "\n", true) .
+				"\n-----END RSA PRIVATE KEY-----";
+		}else {
+			$priKey = file_get_contents($this->rsaPrivateKeyFilePath);
+			$res = openssl_get_privatekey($priKey);
+		}
+
+		($res) or die('您使用的私钥格式错误,请检查RSA私钥配置'); 
+
+		if ("RSA2" == $signType) {
+			openssl_sign($data, $sign, $res, OPENSSL_ALGO_SHA256);
+		} else {
+			openssl_sign($data, $sign, $res);
+		}
+
+		if(!$this->checkEmpty($this->rsaPrivateKeyFilePath)){
+			openssl_free_key($res);
+		}
+		$sign = base64_encode($sign);
+		return $sign;
+	}
+
+
+	protected function curl($url, $postFields = null) {
+		$ch = curl_init();
+		curl_setopt($ch, CURLOPT_URL, $url);
+		curl_setopt($ch, CURLOPT_FAILONERROR, false);
+		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+
+		$postBodyString = "";
+		$encodeArray = Array();
+		$postMultipart = false;
+
+
+		if (is_array($postFields) && 0 < count($postFields)) {
+
+			foreach ($postFields as $k => $v) {
+				if ("@" != substr($v, 0, 1)) //判断是不是文件上传
+				{
+
+					$postBodyString .= "$k=" . urlencode($this->characet($v, $this->postCharset)) . "&";
+					$encodeArray[$k] = $this->characet($v, $this->postCharset);
+				} else //文件上传用multipart/form-data,否则用www-form-urlencoded
+				{
+					$postMultipart = true;
+					$encodeArray[$k] = new \CURLFile(substr($v, 1));
+				}
+
+			}
+			unset ($k, $v);
+			curl_setopt($ch, CURLOPT_POST, true);
+			if ($postMultipart) {
+				curl_setopt($ch, CURLOPT_POSTFIELDS, $encodeArray);
+			} else {
+				curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString, 0, -1));
+			}
+		}
+
+		if ($postMultipart) {
+
+			$headers = array('content-type: multipart/form-data;charset=' . $this->postCharset . ';boundary=' . $this->getMillisecond());
+		} else {
+
+			$headers = array('content-type: application/x-www-form-urlencoded;charset=' . $this->postCharset);
+		}
+		curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+
+
+
+
+		$reponse = curl_exec($ch);
+
+		if (curl_errno($ch)) {
+
+			throw new Exception(curl_error($ch), 0);
+		} else {
+			$httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+			if (200 !== $httpStatusCode) {
+				throw new Exception($reponse, $httpStatusCode);
+			}
+		}
+
+		curl_close($ch);
+		return $reponse;
+	}
+
+	protected function getMillisecond() {
+		list($s1, $s2) = explode(' ', microtime());
+		return (float)sprintf('%.0f', (floatval($s1) + floatval($s2)) * 1000);
+	}
+
+
+	protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) {
+		$localIp = isset ($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI";
+		$logger = new LtLogger;
+		$logger->conf["log_file"] = rtrim(AOP_SDK_WORK_DIR, '\\/') . '/' . "logs/aop_comm_err_" . $this->appId . "_" . date("Y-m-d") . ".log";
+		$logger->conf["separator"] = "^_^";
+		$logData = array(
+			date("Y-m-d H:i:s"),
+			$apiName,
+			$this->appId,
+			$localIp,
+			PHP_OS,
+			$this->alipaySdkVersion,
+			$requestUrl,
+			$errorCode,
+			str_replace("\n", "", $responseTxt)
+		);
+		$logger->log($logData);
+	}
+
+    /**
+     * 生成用于调用收银台SDK的字符串
+     * @param $request SDK接口的请求参数对象
+     * @return string 
+     * @author guofa.tgf
+     */
+	public function sdkExecute($request) {
+		
+		$this->setupCharsets($request);
+
+		$params['app_id'] = $this->appId;
+		$params['method'] = $request->getApiMethodName();
+		$params['format'] = $this->format; 
+		$params['sign_type'] = $this->signType;
+		$params['timestamp'] = date("Y-m-d H:i:s");
+		$params['alipay_sdk'] = $this->alipaySdkVersion;
+		$params['charset'] = $this->postCharset;
+
+		$version = $request->getApiVersion();
+		$params['version'] = $this->checkEmpty($version) ? $this->apiVersion : $version;
+
+		if ($notify_url = $request->getNotifyUrl()) {
+			$params['notify_url'] = $notify_url;
+		}
+
+		$dict = $request->getApiParas();
+		$params['biz_content'] = $dict['biz_content'];
+
+		ksort($params);
+
+		$params['sign'] = $this->generateSign($params, $this->signType);
+
+		foreach ($params as &$value) {
+			$value = $this->characet($value, $params['charset']);
+		}
+		
+		return http_build_query($params);
+	}
+
+	/*
+		页面提交执行方法
+		@param:跳转类接口的request; $httpmethod 提交方式。两个值可选:post、get
+		@return:构建好的、签名后的最终跳转URL(GET)或String形式的form(POST)
+		auther:笙默
+	*/
+	public function pageExecute($request,$httpmethod = "POST") {
+
+		$this->setupCharsets($request);
+
+		if (strcasecmp($this->fileCharset, $this->postCharset)) {
+
+			// writeLog("本地文件字符集编码与表单提交编码不一致,请务必设置成一样,属性名分别为postCharset!");
+			throw new Exception("文件编码:[" . $this->fileCharset . "] 与表单提交编码:[" . $this->postCharset . "]两者不一致!");
+		}
+
+		$iv=null;
+
+		if(!$this->checkEmpty($request->getApiVersion())){
+			$iv=$request->getApiVersion();
+		}else{
+			$iv=$this->apiVersion;
+		}
+
+		//组装系统参数
+		$sysParams["app_id"] = $this->appId;
+		$sysParams["version"] = $iv;
+		$sysParams["format"] = $this->format;
+		$sysParams["sign_type"] = $this->signType;
+		$sysParams["method"] = $request->getApiMethodName();
+		$sysParams["timestamp"] = date("Y-m-d H:i:s");
+		$sysParams["alipay_sdk"] = $this->alipaySdkVersion;
+		$sysParams["terminal_type"] = $request->getTerminalType();
+		$sysParams["terminal_info"] = $request->getTerminalInfo();
+		$sysParams["prod_code"] = $request->getProdCode();
+		$sysParams["notify_url"] = $request->getNotifyUrl();
+		$sysParams["return_url"] = $request->getReturnUrl();
+		$sysParams["charset"] = $this->postCharset;
+
+		//获取业务参数
+		$apiParams = $request->getApiParas();
+
+		if (method_exists($request,"getNeedEncrypt") &&$request->getNeedEncrypt()){
+
+			$sysParams["encrypt_type"] = $this->encryptType;
+
+			if ($this->checkEmpty($apiParams['biz_content'])) {
+
+				throw new Exception(" api request Fail! The reason : encrypt request is not supperted!");
+			}
+
+			if ($this->checkEmpty($this->encryptKey) || $this->checkEmpty($this->encryptType)) {
+
+				throw new Exception(" encryptType and encryptKey must not null! ");
+			}
+
+			if ("AES" != $this->encryptType) {
+
+				throw new Exception("加密类型只支持AES");
+			}
+
+			// 执行加密
+			$enCryptContent = encrypt($apiParams['biz_content'], $this->encryptKey);
+			$apiParams['biz_content'] = $enCryptContent;
+
+		}
+
+		//print_r($apiParams);
+		$totalParams = array_merge($apiParams, $sysParams);
+		
+		//待签名字符串
+		$preSignStr = $this->getSignContent($totalParams);
+
+		//签名
+		$totalParams["sign"] = $this->generateSign($totalParams, $this->signType);
+
+		if ("GET" == $httpmethod) {
+
+			//拼接GET请求串
+			$requestUrl = $this->gatewayUrl."?".$preSignStr."&sign=".urlencode($totalParams["sign"]);
+			
+			return $requestUrl;
+		} else {
+			//拼接表单字符串
+			return $this->buildRequestForm($totalParams);
+		}
+
+
+	}
+
+	/**
+     * 建立请求,以表单HTML形式构造(默认)
+     * @param $para_temp 请求参数数组
+     * @return 提交表单HTML文本
+     */
+	protected function buildRequestForm($para_temp) {
+		
+		$sHtml = "<form id='alipaysubmit' name='alipaysubmit' action='".$this->gatewayUrl."?charset=".trim($this->postCharset)."' method='POST'>";
+		while (list ($key, $val) = each ($para_temp)) {
+			if (false === $this->checkEmpty($val)) {
+				//$val = $this->characet($val, $this->postCharset);
+				$val = str_replace("'","&apos;",$val);
+				//$val = str_replace("\"","&quot;",$val);
+				$sHtml.= "<input type='hidden' name='".$key."' value='".$val."'/>";
+			}
+        }
+
+		//submit按钮控件请不要含有name属性
+        $sHtml = $sHtml."<input type='submit' value='ok' style='display:none;''></form>";
+		
+		$sHtml = $sHtml."<script>document.forms['alipaysubmit'].submit();</script>";
+		
+		return $sHtml;
+	}
+
+
+	public function execute($request, $authToken = null, $appInfoAuthtoken = null) {
+
+		$this->setupCharsets($request);
+
+		//		//  如果两者编码不一致,会出现签名验签或者乱码
+		if (strcasecmp($this->fileCharset, $this->postCharset)) {
+
+			// writeLog("本地文件字符集编码与表单提交编码不一致,请务必设置成一样,属性名分别为postCharset!");
+			throw new Exception("文件编码:[" . $this->fileCharset . "] 与表单提交编码:[" . $this->postCharset . "]两者不一致!");
+		}
+
+		$iv = null;
+
+		if (!$this->checkEmpty($request->getApiVersion())) {
+			$iv = $request->getApiVersion();
+		} else {
+			$iv = $this->apiVersion;
+		}
+
+
+		//组装系统参数
+		$sysParams["app_id"] = $this->appId;
+		$sysParams["version"] = $iv;
+		$sysParams["format"] = $this->format;
+		$sysParams["sign_type"] = $this->signType;
+		$sysParams["method"] = $request->getApiMethodName();
+		$sysParams["timestamp"] = date("Y-m-d H:i:s");
+		$sysParams["auth_token"] = $authToken;
+		$sysParams["alipay_sdk"] = $this->alipaySdkVersion;
+		$sysParams["terminal_type"] = $request->getTerminalType();
+		$sysParams["terminal_info"] = $request->getTerminalInfo();
+		$sysParams["prod_code"] = $request->getProdCode();
+		$sysParams["notify_url"] = $request->getNotifyUrl();
+		$sysParams["charset"] = $this->postCharset;
+		$sysParams["app_auth_token"] = $appInfoAuthtoken;
+
+
+		//获取业务参数
+		$apiParams = $request->getApiParas();
+
+			if (method_exists($request,"getNeedEncrypt") &&$request->getNeedEncrypt()){
+
+			$sysParams["encrypt_type"] = $this->encryptType;
+
+			if ($this->checkEmpty($apiParams['biz_content'])) {
+
+				throw new Exception(" api request Fail! The reason : encrypt request is not supperted!");
+			}
+
+			if ($this->checkEmpty($this->encryptKey) || $this->checkEmpty($this->encryptType)) {
+
+				throw new Exception(" encryptType and encryptKey must not null! ");
+			}
+
+			if ("AES" != $this->encryptType) {
+
+				throw new Exception("加密类型只支持AES");
+			}
+
+			// 执行加密
+			$enCryptContent = encrypt($apiParams['biz_content'], $this->encryptKey);
+			$apiParams['biz_content'] = $enCryptContent;
+
+		}
+
+
+		//签名
+		$sysParams["sign"] = $this->generateSign(array_merge($apiParams, $sysParams), $this->signType);
+
+
+		//系统参数放入GET请求串
+		$requestUrl = $this->gatewayUrl . "?";
+		foreach ($sysParams as $sysParamKey => $sysParamValue) {
+			$requestUrl .= "$sysParamKey=" . urlencode($this->characet($sysParamValue, $this->postCharset)) . "&";
+		}
+		$requestUrl = substr($requestUrl, 0, -1);
+
+
+		//发起HTTP请求
+		try {
+			$resp = $this->curl($requestUrl, $apiParams);
+		} catch (Exception $e) {
+
+			$this->logCommunicationError($sysParams["method"], $requestUrl, "HTTP_ERROR_" . $e->getCode(), $e->getMessage());
+			return false;
+		}
+
+		//解析AOP返回结果
+		$respWellFormed = false;
+
+
+		// 将返回结果转换本地文件编码
+		$r = iconv($this->postCharset, $this->fileCharset . "//IGNORE", $resp);
+
+
+
+		$signData = null;
+
+		if ("json" == $this->format) {
+
+			$respObject = json_decode($r);
+			if (null !== $respObject) {
+				$respWellFormed = true;
+				$signData = $this->parserJSONSignData($request, $resp, $respObject);
+			}
+		} else if ("xml" == $this->format) {
+
+			$respObject = @ simplexml_load_string($resp);
+			if (false !== $respObject) {
+				$respWellFormed = true;
+
+				$signData = $this->parserXMLSignData($request, $resp);
+			}
+		}
+
+
+		//返回的HTTP文本不是标准JSON或者XML,记下错误日志
+		if (false === $respWellFormed) {
+			$this->logCommunicationError($sysParams["method"], $requestUrl, "HTTP_RESPONSE_NOT_WELL_FORMED", $resp);
+			return false;
+		}
+
+		// 验签
+		$this->checkResponseSign($request, $signData, $resp, $respObject);
+
+		// 解密
+		if (method_exists($request,"getNeedEncrypt") &&$request->getNeedEncrypt()){
+
+			if ("json" == $this->format) {
+
+
+				$resp = $this->encryptJSONSignSource($request, $resp);
+
+				// 将返回结果转换本地文件编码
+				$r = iconv($this->postCharset, $this->fileCharset . "//IGNORE", $resp);
+				$respObject = json_decode($r);
+			}else{
+
+				$resp = $this->encryptXMLSignSource($request, $resp);
+
+				$r = iconv($this->postCharset, $this->fileCharset . "//IGNORE", $resp);
+				$respObject = @ simplexml_load_string($r);
+
+			}
+		}
+
+		return $respObject;
+	}
+
+	/**
+	 * 转换字符集编码
+	 * @param $data
+	 * @param $targetCharset
+	 * @return string
+	 */
+	function characet($data, $targetCharset) {
+		
+		if (!empty($data)) {
+			$fileType = $this->fileCharset;
+			if (strcasecmp($fileType, $targetCharset) != 0) {
+				$data = mb_convert_encoding($data, $targetCharset, $fileType);
+				//				$data = iconv($fileType, $targetCharset.'//IGNORE', $data);
+			}
+		}
+
+
+		return $data;
+	}
+
+	public function exec($paramsArray) {
+		if (!isset ($paramsArray["method"])) {
+			trigger_error("No api name passed");
+		}
+		$inflector = new LtInflector;
+		$inflector->conf["separator"] = ".";
+		$requestClassName = ucfirst($inflector->camelize(substr($paramsArray["method"], 7))) . "Request";
+		if (!class_exists($requestClassName)) {
+			trigger_error("No such api: " . $paramsArray["method"]);
+		}
+
+		$session = isset ($paramsArray["session"]) ? $paramsArray["session"] : null;
+
+		$req = new $requestClassName;
+		foreach ($paramsArray as $paraKey => $paraValue) {
+			$inflector->conf["separator"] = "_";
+			$setterMethodName = $inflector->camelize($paraKey);
+			$inflector->conf["separator"] = ".";
+			$setterMethodName = "set" . $inflector->camelize($setterMethodName);
+			if (method_exists($req, $setterMethodName)) {
+				$req->$setterMethodName ($paraValue);
+			}
+		}
+		return $this->execute($req, $session);
+	}
+
+	/**
+	 * 校验$value是否非空
+	 *  if not set ,return true;
+	 *    if is null , return true;
+	 **/
+	protected function checkEmpty($value) {
+		if (!isset($value))
+			return true;
+		if ($value === null)
+			return true;
+		if (trim($value) === "")
+			return true;
+
+		return false;
+	}
+
+	/** rsaCheckV1 & rsaCheckV2
+	 *  验证签名
+	 *  在使用本方法前,必须初始化AopClient且传入公钥参数。
+	 *  公钥是否是读取字符串还是读取文件,是根据初始化传入的值判断的。
+	 **/
+	public function rsaCheckV1($params, $rsaPublicKeyFilePath,$signType='RSA') {
+		$sign = $params['sign'];
+		$params['sign_type'] = null;
+		$params['sign'] = null;
+		return $this->verify($this->getSignContent($params), $sign, $rsaPublicKeyFilePath,$signType);
+	}
+	public function rsaCheckV2($params, $rsaPublicKeyFilePath, $signType='RSA') {
+		$sign = $params['sign'];
+		$params['sign'] = null;
+		return $this->verify($this->getSignContent($params), $sign, $rsaPublicKeyFilePath, $signType);
+	}
+
+	function verify($data, $sign, $rsaPublicKeyFilePath, $signType = 'RSA') {
+
+		if($this->checkEmpty($this->alipayPublicKey)){
+
+			$pubKey= $this->alipayrsaPublicKey;
+			$res = "-----BEGIN PUBLIC KEY-----\n" .
+				wordwrap($pubKey, 64, "\n", true) .
+				"\n-----END PUBLIC KEY-----";
+		}else {
+			//读取公钥文件
+			$pubKey = file_get_contents($rsaPublicKeyFilePath);
+			//转换为openssl格式密钥
+			$res = openssl_get_publickey($pubKey);
+		}
+
+		($res) or die('支付宝RSA公钥错误。请检查公钥文件格式是否正确');  
+
+		//调用openssl内置方法验签,返回bool值
+
+		if ("RSA2" == $signType) {
+			$result = (bool)openssl_verify($data, base64_decode($sign), $res, OPENSSL_ALGO_SHA256);
+		} else {
+			$result = (bool)openssl_verify($data, base64_decode($sign), $res);
+		}
+
+		if(!$this->checkEmpty($this->alipayPublicKey)) {
+			//释放资源
+			openssl_free_key($res);
+		}
+
+		return $result;
+	}
+
+	public function checkSignAndDecrypt($params, $rsaPublicKeyPem, $rsaPrivateKeyPem, $isCheckSign, $isDecrypt) {
+		$charset = $params['charset'];
+		$bizContent = $params['biz_content'];
+		if ($isCheckSign) {
+			if (!$this->rsaCheckV2($params, $rsaPublicKeyPem)) {
+				echo "<br/>checkSign failure<br/>";
+				exit;
+			}
+		}
+		if ($isDecrypt) {
+			return $this->rsaDecrypt($bizContent, $rsaPrivateKeyPem, $charset);
+		}
+
+		return $bizContent;
+	}
+
+	public function encryptAndSign($bizContent, $rsaPublicKeyPem, $rsaPrivateKeyPem, $charset, $isEncrypt, $isSign) {
+		// 加密,并签名
+		if ($isEncrypt && $isSign) {
+			$encrypted = $this->rsaEncrypt($bizContent, $rsaPublicKeyPem, $charset);
+			$sign = $this->sign($bizContent);
+			$response = "<?xml version=\"1.0\" encoding=\"$charset\"?><alipay><response>$encrypted</response><encryption_type>RSA</encryption_type><sign>$sign</sign><sign_type>RSA</sign_type></alipay>";
+			return $response;
+		}
+		// 加密,不签名
+		if ($isEncrypt && (!$isSign)) {
+			$encrypted = $this->rsaEncrypt($bizContent, $rsaPublicKeyPem, $charset);
+			$response = "<?xml version=\"1.0\" encoding=\"$charset\"?><alipay><response>$encrypted</response><encryption_type>RSA</encryption_type></alipay>";
+			return $response;
+		}
+		// 不加密,但签名
+		if ((!$isEncrypt) && $isSign) {
+			$sign = $this->sign($bizContent);
+			$response = "<?xml version=\"1.0\" encoding=\"$charset\"?><alipay><response>$bizContent</response><sign>$sign</sign><sign_type>RSA</sign_type></alipay>";
+			return $response;
+		}
+		// 不加密,不签名
+		$response = "<?xml version=\"1.0\" encoding=\"$charset\"?>$bizContent";
+		return $response;
+	}
+
+	public function rsaEncrypt($data, $rsaPublicKeyPem, $charset) {
+		//读取公钥文件
+		$pubKey = file_get_contents($rsaPublicKeyPem);
+		//转换为openssl格式密钥
+		$res = openssl_get_publickey($pubKey);
+		$blocks = $this->splitCN($data, 0, 30, $charset);
+		$chrtext  = null;
+		$encodes  = array();
+		foreach ($blocks as $n => $block) {
+			if (!openssl_public_encrypt($block, $chrtext , $res)) {
+				echo "<br/>" . openssl_error_string() . "<br/>";
+			}
+			$encodes[] = $chrtext ;
+		}
+		$chrtext = implode(",", $encodes);
+
+		return $chrtext;
+	}
+
+	public function rsaDecrypt($data, $rsaPrivateKeyPem, $charset) {
+		//读取私钥文件
+		$priKey = file_get_contents($rsaPrivateKeyPem);
+		//转换为openssl格式密钥
+		$res = openssl_get_privatekey($priKey);
+		$decodes = explode(',', $data);
+		$strnull = "";
+		$dcyCont = "";
+		foreach ($decodes as $n => $decode) {
+			if (!openssl_private_decrypt($decode, $dcyCont, $res)) {
+				echo "<br/>" . openssl_error_string() . "<br/>";
+			}
+			$strnull .= $dcyCont;
+		}
+		return $strnull;
+	}
+
+	function splitCN($cont, $n = 0, $subnum, $charset) {
+		//$len = strlen($cont) / 3;
+		$arrr = array();
+		for ($i = $n; $i < strlen($cont); $i += $subnum) {
+			$res = $this->subCNchar($cont, $i, $subnum, $charset);
+			if (!empty ($res)) {
+				$arrr[] = $res;
+			}
+		}
+
+		return $arrr;
+	}
+
+	function subCNchar($str, $start = 0, $length, $charset = "gbk") {
+		if (strlen($str) <= $length) {
+			return $str;
+		}
+		$re['utf-8'] = "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xff][\x80-\xbf]{3}/";
+		$re['gb2312'] = "/[\x01-\x7f]|[\xb0-\xf7][\xa0-\xfe]/";
+		$re['gbk'] = "/[\x01-\x7f]|[\x81-\xfe][\x40-\xfe]/";
+		$re['big5'] = "/[\x01-\x7f]|[\x81-\xfe]([\x40-\x7e]|\xa1-\xfe])/";
+		preg_match_all($re[$charset], $str, $match);
+		$slice = join("", array_slice($match[0], $start, $length));
+		return $slice;
+	}
+
+	function parserResponseSubCode($request, $responseContent, $respObject, $format) {
+
+		if ("json" == $format) {
+
+			$apiName = $request->getApiMethodName();
+			$rootNodeName = str_replace(".", "_", $apiName) . $this->RESPONSE_SUFFIX;
+			$errorNodeName = $this->ERROR_RESPONSE;
+
+			$rootIndex = strpos($responseContent, $rootNodeName);
+			$errorIndex = strpos($responseContent, $errorNodeName);
+
+			if ($rootIndex > 0) {
+				// 内部节点对象
+				$rInnerObject = $respObject->$rootNodeName;
+			} elseif ($errorIndex > 0) {
+
+				$rInnerObject = $respObject->$errorNodeName;
+			} else {
+				return null;
+			}
+
+			// 存在属性则返回对应值
+			if (isset($rInnerObject->sub_code)) {
+
+				return $rInnerObject->sub_code;
+			} else {
+
+				return null;
+			}
+
+
+		} elseif ("xml" == $format) {
+
+			// xml格式sub_code在同一层级
+			return $respObject->sub_code;
+
+		}
+
+
+	}
+
+	function parserJSONSignData($request, $responseContent, $responseJSON) {
+
+		$signData = new SignData();
+
+		$signData->sign = $this->parserJSONSign($responseJSON);
+		$signData->signSourceData = $this->parserJSONSignSource($request, $responseContent);
+
+
+		return $signData;
+
+	}
+
+	function parserJSONSignSource($request, $responseContent) {
+
+		$apiName = $request->getApiMethodName();
+		$rootNodeName = str_replace(".", "_", $apiName) . $this->RESPONSE_SUFFIX;
+
+		$rootIndex = strpos($responseContent, $rootNodeName);
+		$errorIndex = strpos($responseContent, $this->ERROR_RESPONSE);
+
+
+		if ($rootIndex > 0) {
+
+			return $this->parserJSONSource($responseContent, $rootNodeName, $rootIndex);
+		} else if ($errorIndex > 0) {
+
+			return $this->parserJSONSource($responseContent, $this->ERROR_RESPONSE, $errorIndex);
+		} else {
+
+			return null;
+		}
+
+
+	}
+
+	function parserJSONSource($responseContent, $nodeName, $nodeIndex) {
+		$signDataStartIndex = $nodeIndex + strlen($nodeName) + 2;
+		$signIndex = strpos($responseContent, "\"" . $this->SIGN_NODE_NAME . "\"");
+		// 签名前-逗号
+		$signDataEndIndex = $signIndex - 1;
+		$indexLen = $signDataEndIndex - $signDataStartIndex;
+		if ($indexLen < 0) {
+
+			return null;
+		}
+
+		return substr($responseContent, $signDataStartIndex, $indexLen);
+
+	}
+
+	function parserJSONSign($responseJSon) {
+
+		return $responseJSon->sign;
+	}
+
+	function parserXMLSignData($request, $responseContent) {
+
+
+		$signData = new SignData();
+
+		$signData->sign = $this->parserXMLSign($responseContent);
+		$signData->signSourceData = $this->parserXMLSignSource($request, $responseContent);
+
+
+		return $signData;
+
+
+	}
+
+	function parserXMLSignSource($request, $responseContent) {
+
+
+		$apiName = $request->getApiMethodName();
+		$rootNodeName = str_replace(".", "_", $apiName) . $this->RESPONSE_SUFFIX;
+
+
+		$rootIndex = strpos($responseContent, $rootNodeName);
+		$errorIndex = strpos($responseContent, $this->ERROR_RESPONSE);
+		//		$this->echoDebug("<br/>rootNodeName:" . $rootNodeName);
+		//		$this->echoDebug("<br/> responseContent:<xmp>" . $responseContent . "</xmp>");
+
+
+		if ($rootIndex > 0) {
+
+			return $this->parserXMLSource($responseContent, $rootNodeName, $rootIndex);
+		} else if ($errorIndex > 0) {
+
+			return $this->parserXMLSource($responseContent, $this->ERROR_RESPONSE, $errorIndex);
+		} else {
+
+			return null;
+		}
+
+
+	}
+
+	function parserXMLSource($responseContent, $nodeName, $nodeIndex) {
+		$signDataStartIndex = $nodeIndex + strlen($nodeName) + 1;
+		$signIndex = strpos($responseContent, "<" . $this->SIGN_NODE_NAME . ">");
+		// 签名前-逗号
+		$signDataEndIndex = $signIndex - 1;
+		$indexLen = $signDataEndIndex - $signDataStartIndex + 1;
+
+		if ($indexLen < 0) {
+			return null;
+		}
+
+
+		return substr($responseContent, $signDataStartIndex, $indexLen);
+
+
+	}
+
+	function parserXMLSign($responseContent) {
+		$signNodeName = "<" . $this->SIGN_NODE_NAME . ">";
+		$signEndNodeName = "</" . $this->SIGN_NODE_NAME . ">";
+
+		$indexOfSignNode = strpos($responseContent, $signNodeName);
+		$indexOfSignEndNode = strpos($responseContent, $signEndNodeName);
+
+
+		if ($indexOfSignNode < 0 || $indexOfSignEndNode < 0) {
+			return null;
+		}
+
+		$nodeIndex = ($indexOfSignNode + strlen($signNodeName));
+
+		$indexLen = $indexOfSignEndNode - $nodeIndex;
+
+		if ($indexLen < 0) {
+			return null;
+		}
+
+		// 签名
+		return substr($responseContent, $nodeIndex, $indexLen);
+
+	}
+
+	/**
+	 * 验签
+	 * @param $request
+	 * @param $signData
+	 * @param $resp
+	 * @param $respObject
+	 * @throws Exception
+	 */
+	public function checkResponseSign($request, $signData, $resp, $respObject) {
+
+		if (!$this->checkEmpty($this->alipayPublicKey) || !$this->checkEmpty($this->alipayrsaPublicKey)) {
+
+
+			if ($signData == null || $this->checkEmpty($signData->sign) || $this->checkEmpty($signData->signSourceData)) {
+
+				throw new Exception(" check sign Fail! The reason : signData is Empty");
+			}
+
+
+			// 获取结果sub_code
+			$responseSubCode = $this->parserResponseSubCode($request, $resp, $respObject, $this->format);
+
+
+			if (!$this->checkEmpty($responseSubCode) || ($this->checkEmpty($responseSubCode) && !$this->checkEmpty($signData->sign))) {
+
+				$checkResult = $this->verify($signData->signSourceData, $signData->sign, $this->alipayPublicKey, $this->signType);
+
+
+				if (!$checkResult) {
+
+					if (strpos($signData->signSourceData, "\\/") > 0) {
+
+						$signData->signSourceData = str_replace("\\/", "/", $signData->signSourceData);
+
+						$checkResult = $this->verify($signData->signSourceData, $signData->sign, $this->alipayPublicKey, $this->signType);
+
+						if (!$checkResult) {
+							throw new Exception("check sign Fail! [sign=" . $signData->sign . ", signSourceData=" . $signData->signSourceData . "]");
+						}
+
+					} else {
+
+						throw new Exception("check sign Fail! [sign=" . $signData->sign . ", signSourceData=" . $signData->signSourceData . "]");
+					}
+
+				}
+			}
+
+
+		}
+	}
+
+	private function setupCharsets($request) {
+		if ($this->checkEmpty($this->postCharset)) {
+			$this->postCharset = 'UTF-8';
+		}
+		$str = preg_match('/[\x80-\xff]/', $this->appId) ? $this->appId : print_r($request, true);
+		$this->fileCharset = mb_detect_encoding($str, "UTF-8, GBK") == 'UTF-8' ? 'UTF-8' : 'GBK';
+	}
+
+	// 获取加密内容
+
+	private function encryptJSONSignSource($request, $responseContent) {
+
+		$parsetItem = $this->parserEncryptJSONSignSource($request, $responseContent);
+
+		$bodyIndexContent = substr($responseContent, 0, $parsetItem->startIndex);
+		$bodyEndContent = substr($responseContent, $parsetItem->endIndex, strlen($responseContent) + 1 - $parsetItem->endIndex);
+
+		$bizContent = decrypt($parsetItem->encryptContent, $this->encryptKey);
+		return $bodyIndexContent . $bizContent . $bodyEndContent;
+
+	}
+
+
+	private function parserEncryptJSONSignSource($request, $responseContent) {
+
+		$apiName = $request->getApiMethodName();
+		$rootNodeName = str_replace(".", "_", $apiName) . $this->RESPONSE_SUFFIX;
+
+		$rootIndex = strpos($responseContent, $rootNodeName);
+		$errorIndex = strpos($responseContent, $this->ERROR_RESPONSE);
+
+
+		if ($rootIndex > 0) {
+
+			return $this->parserEncryptJSONItem($responseContent, $rootNodeName, $rootIndex);
+		} else if ($errorIndex > 0) {
+
+			return $this->parserEncryptJSONItem($responseContent, $this->ERROR_RESPONSE, $errorIndex);
+		} else {
+
+			return null;
+		}
+
+
+	}
+
+
+	private function parserEncryptJSONItem($responseContent, $nodeName, $nodeIndex) {
+		$signDataStartIndex = $nodeIndex + strlen($nodeName) + 2;
+		$signIndex = strpos($responseContent, "\"" . $this->SIGN_NODE_NAME . "\"");
+		// 签名前-逗号
+		$signDataEndIndex = $signIndex - 1;
+
+		if ($signDataEndIndex < 0) {
+
+			$signDataEndIndex = strlen($responseContent)-1 ;
+		}
+
+		$indexLen = $signDataEndIndex - $signDataStartIndex;
+
+		$encContent = substr($responseContent, $signDataStartIndex+1, $indexLen-2);
+
+
+		$encryptParseItem = new EncryptParseItem();
+
+		$encryptParseItem->encryptContent = $encContent;
+		$encryptParseItem->startIndex = $signDataStartIndex;
+		$encryptParseItem->endIndex = $signDataEndIndex;
+
+		return $encryptParseItem;
+
+	}
+
+	// 获取加密内容
+
+	private function encryptXMLSignSource($request, $responseContent) {
+
+		$parsetItem = $this->parserEncryptXMLSignSource($request, $responseContent);
+
+		$bodyIndexContent = substr($responseContent, 0, $parsetItem->startIndex);
+		$bodyEndContent = substr($responseContent, $parsetItem->endIndex, strlen($responseContent) + 1 - $parsetItem->endIndex);
+		$bizContent = decrypt($parsetItem->encryptContent, $this->encryptKey);
+
+		return $bodyIndexContent . $bizContent . $bodyEndContent;
+
+	}
+
+	private function parserEncryptXMLSignSource($request, $responseContent) {
+
+
+		$apiName = $request->getApiMethodName();
+		$rootNodeName = str_replace(".", "_", $apiName) . $this->RESPONSE_SUFFIX;
+
+
+		$rootIndex = strpos($responseContent, $rootNodeName);
+		$errorIndex = strpos($responseContent, $this->ERROR_RESPONSE);
+		//		$this->echoDebug("<br/>rootNodeName:" . $rootNodeName);
+		//		$this->echoDebug("<br/> responseContent:<xmp>" . $responseContent . "</xmp>");
+
+
+		if ($rootIndex > 0) {
+
+			return $this->parserEncryptXMLItem($responseContent, $rootNodeName, $rootIndex);
+		} else if ($errorIndex > 0) {
+
+			return $this->parserEncryptXMLItem($responseContent, $this->ERROR_RESPONSE, $errorIndex);
+		} else {
+
+			return null;
+		}
+
+
+	}
+
+	private function parserEncryptXMLItem($responseContent, $nodeName, $nodeIndex) {
+
+		$signDataStartIndex = $nodeIndex + strlen($nodeName) + 1;
+
+		$xmlStartNode="<".$this->ENCRYPT_XML_NODE_NAME.">";
+		$xmlEndNode="</".$this->ENCRYPT_XML_NODE_NAME.">";
+
+		$indexOfXmlNode=strpos($responseContent,$xmlEndNode);
+		if($indexOfXmlNode<0){
+
+			$item = new EncryptParseItem();
+			$item->encryptContent = null;
+			$item->startIndex = 0;
+			$item->endIndex = 0;
+			return $item;
+		}
+
+		$startIndex=$signDataStartIndex+strlen($xmlStartNode);
+		$bizContentLen=$indexOfXmlNode-$startIndex;
+		$bizContent=substr($responseContent,$startIndex,$bizContentLen);
+
+		$encryptParseItem = new EncryptParseItem();
+		$encryptParseItem->encryptContent = $bizContent;
+		$encryptParseItem->startIndex = $signDataStartIndex;
+		$encryptParseItem->endIndex = $indexOfXmlNode+strlen($xmlEndNode);
+
+		return $encryptParseItem;
+
+	}
+
+
+	function echoDebug($content) {
+
+		if ($this->debugInfo) {
+			echo "<br/>" . $content;
+		}
+
+	}
+
+
+}

+ 71 - 0
sdk/alipay/aop/AopEncrypt.php

@@ -0,0 +1,71 @@
+<?php
+/**
+ *   加密工具类
+ *
+ * User: jiehua
+ * Date: 16/3/30
+ * Time: 下午3:25
+ */
+
+/**
+ * 加密方法
+ * @param string $str
+ * @return string
+ */
+ function encrypt($str,$screct_key){
+	//AES, 128 模式加密数据 CBC
+	$screct_key = base64_decode($screct_key);
+	$str = trim($str);
+	$str = addPKCS7Padding($str);
+	$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128,MCRYPT_MODE_CBC),1);
+	$encrypt_str =  mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $screct_key, $str, MCRYPT_MODE_CBC);
+	return base64_encode($encrypt_str);
+}
+
+/**
+ * 解密方法
+ * @param string $str
+ * @return string
+ */
+ function decrypt($str,$screct_key){
+	//AES, 128 模式加密数据 CBC
+	$str = base64_decode($str);
+	$screct_key = base64_decode($screct_key);
+	$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128,MCRYPT_MODE_CBC),1);
+	$encrypt_str =  mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $screct_key, $str, MCRYPT_MODE_CBC);
+	$encrypt_str = trim($encrypt_str);
+
+	$encrypt_str = stripPKSC7Padding($encrypt_str);
+	return $encrypt_str;
+
+}
+
+/**
+ * 填充算法
+ * @param string $source
+ * @return string
+ */
+function addPKCS7Padding($source){
+	$source = trim($source);
+	$block = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
+
+	$pad = $block - (strlen($source) % $block);
+	if ($pad <= $block) {
+		$char = chr($pad);
+		$source .= str_repeat($char, $pad);
+	}
+	return $source;
+}
+/**
+ * 移去填充算法
+ * @param string $source
+ * @return string
+ */
+function stripPKSC7Padding($source){
+	$source = trim($source);
+	$char = substr($source, -1);
+	$num = ord($char);
+	if($num==62)return $source;
+	$source = substr($source,0,-$num);
+	return $source;
+}

+ 19 - 0
sdk/alipay/aop/EncryptParseItem.php

@@ -0,0 +1,19 @@
+<?php
+/**
+ *  TODO 补充说明 
+ *
+ * User: jiehua
+ * Date: 16/3/30
+ * Time: 下午8:55
+ */
+
+class EncryptParseItem {
+
+
+	public $startIndex;
+
+	public $endIndex;
+
+	public $encryptContent;
+
+} 

+ 18 - 0
sdk/alipay/aop/EncryptResponseData.php

@@ -0,0 +1,18 @@
+<?php
+/**
+ *  TODO 补充说明 
+ *
+ * User: jiehua
+ * Date: 16/3/30
+ * Time: 下午8:51
+ */
+
+class EncryptResponseData {
+
+
+	public $realContent;
+
+	public $returnContent;
+
+
+} 

+ 16 - 0
sdk/alipay/aop/SignData.php

@@ -0,0 +1,16 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: jiehua
+ * Date: 15/5/2
+ * Time: 下午6:21
+ */
+
+class SignData {
+
+    public $signSourceData=null;
+
+
+    public $sign=null;
+
+} 

+ 118 - 0
sdk/alipay/aop/request/AlipayAccountExrateAdviceAcceptRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.account.exrate.advice.accept request
+ *
+ * @author auto create
+ * @since 1.0, 2016-05-23 14:55:42
+ */
+class AlipayAccountExrateAdviceAcceptRequest
+{
+	/** 
+	 * 标准的兑换交易受理接口
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.account.exrate.advice.accept";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayAccountExrateAllclientrateQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.account.exrate.allclientrate.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-05-23 14:55:48
+ */
+class AlipayAccountExrateAllclientrateQueryRequest
+{
+	/** 
+	 * 查询客户的所有币种对最新有效汇率
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.account.exrate.allclientrate.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayAccountExrateRatequeryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.account.exrate.ratequery request
+ *
+ * @author auto create
+ * @since 1.0, 2016-05-23 14:55:56
+ */
+class AlipayAccountExrateRatequeryRequest
+{
+	/** 
+	 * 对于部分签约境内当面付的商家,为了能够在境外进行推广,因此需要汇率进行币种之间的转换,本接口提供此业务场景下的汇率查询服务
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.account.exrate.ratequery";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 171 - 0
sdk/alipay/aop/request/AlipayAcquireCancelRequest.php

@@ -0,0 +1,171 @@
+<?php
+/**
+ * ALIPAY API: alipay.acquire.cancel request
+ *
+ * @author auto create
+ * @since 1.0, 2014-06-12 17:17:06
+ */
+class AlipayAcquireCancelRequest
+{
+	/** 
+	 * 操作员ID。
+	 **/
+	private $operatorId;
+	
+	/** 
+	 * 操作员的类型:
+0:支付宝操作员
+1:商户的操作员
+如果传入其它值或者为空,则默认设置为1
+	 **/
+	private $operatorType;
+	
+	/** 
+	 * 支付宝合作商户网站唯一订单号。
+	 **/
+	private $outTradeNo;
+	
+	/** 
+	 * 该交易在支付宝系统中的交易流水号。
+最短16位,最长64位。
+如果同时传了out_trade_no和trade_no,则以trade_no为准。
+	 **/
+	private $tradeNo;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setOperatorId($operatorId)
+	{
+		$this->operatorId = $operatorId;
+		$this->apiParas["operator_id"] = $operatorId;
+	}
+
+	public function getOperatorId()
+	{
+		return $this->operatorId;
+	}
+
+	public function setOperatorType($operatorType)
+	{
+		$this->operatorType = $operatorType;
+		$this->apiParas["operator_type"] = $operatorType;
+	}
+
+	public function getOperatorType()
+	{
+		return $this->operatorType;
+	}
+
+	public function setOutTradeNo($outTradeNo)
+	{
+		$this->outTradeNo = $outTradeNo;
+		$this->apiParas["out_trade_no"] = $outTradeNo;
+	}
+
+	public function getOutTradeNo()
+	{
+		return $this->outTradeNo;
+	}
+
+	public function setTradeNo($tradeNo)
+	{
+		$this->tradeNo = $tradeNo;
+		$this->apiParas["trade_no"] = $tradeNo;
+	}
+
+	public function getTradeNo()
+	{
+		return $this->tradeNo;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.acquire.cancel";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 152 - 0
sdk/alipay/aop/request/AlipayAcquireCloseRequest.php

@@ -0,0 +1,152 @@
+<?php
+/**
+ * ALIPAY API: alipay.acquire.close request
+ *
+ * @author auto create
+ * @since 1.0, 2014-06-12 17:17:06
+ */
+class AlipayAcquireCloseRequest
+{
+	/** 
+	 * 卖家的操作员ID
+	 **/
+	private $operatorId;
+	
+	/** 
+	 * 支付宝合作商户网站唯一订单号
+	 **/
+	private $outTradeNo;
+	
+	/** 
+	 * 该交易在支付宝系统中的交易流水号。
+最短16位,最长64位。
+如果同时传了out_trade_no和trade_no,则以trade_no为准
+	 **/
+	private $tradeNo;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setOperatorId($operatorId)
+	{
+		$this->operatorId = $operatorId;
+		$this->apiParas["operator_id"] = $operatorId;
+	}
+
+	public function getOperatorId()
+	{
+		return $this->operatorId;
+	}
+
+	public function setOutTradeNo($outTradeNo)
+	{
+		$this->outTradeNo = $outTradeNo;
+		$this->apiParas["out_trade_no"] = $outTradeNo;
+	}
+
+	public function getOutTradeNo()
+	{
+		return $this->outTradeNo;
+	}
+
+	public function setTradeNo($tradeNo)
+	{
+		$this->tradeNo = $tradeNo;
+		$this->apiParas["trade_no"] = $tradeNo;
+	}
+
+	public function getTradeNo()
+	{
+		return $this->tradeNo;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.acquire.close";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 550 - 0
sdk/alipay/aop/request/AlipayAcquireCreateandpayRequest.php

@@ -0,0 +1,550 @@
+<?php
+/**
+ * ALIPAY API: alipay.acquire.createandpay request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-22 19:31:24
+ */
+class AlipayAcquireCreateandpayRequest
+{
+	/** 
+	 * 证书签名
+	 **/
+	private $alipayCaRequest;
+	
+	/** 
+	 * 对一笔交易的具体描述信息。如果是多种商品,请将商品描述字符串累加传给body。
+	 **/
+	private $body;
+	
+	/** 
+	 * 买家支付宝账号,可以为email或者手机号。
+	 **/
+	private $buyerEmail;
+	
+	/** 
+	 * 买家支付宝账号对应的支付宝唯一用户号。
+以2088开头的纯16位数字。
+	 **/
+	private $buyerId;
+	
+	/** 
+	 * 描述多渠道收单的渠道明细信息,json格式,具体请参见“4.5 渠道明细说明”。
+	 **/
+	private $channelParameters;
+	
+	/** 
+	 * 订单金额币种。
+目前只支持传入156(人民币)。
+如果为空,则默认设置为156。
+	 **/
+	private $currency;
+	
+	/** 
+	 * 动态ID。
+	 **/
+	private $dynamicId;
+	
+	/** 
+	 * 动态ID类型:
+&#1048698;
+soundwave:声波
+&#1048698;
+qrcode:二维码
+&#1048698;
+barcode:条码
+&#1048698;
+wave_code:声波,等同soundwave
+&#1048698;
+qr_code:二维码,等同qrcode
+&#1048698;
+bar_code:条码,等同barcode
+建议取值wave_code、qr_code、bar_code。
+	 **/
+	private $dynamicIdType;
+	
+	/** 
+	 * 用于商户的特定业务信息的传递,只有商户与支付宝约定了传递此参数且约定了参数含义,此参数才有效。
+比如可传递声波支付场景下的门店ID等信息,以json格式传输,具体请参见“4.7 业务扩展参数说明”。
+	 **/
+	private $extendParams;
+	
+	/** 
+	 * xml或json
+	 **/
+	private $formatType;
+	
+	/** 
+	 * 描述商品明细信息,json格式,具体请参见“4.3 商品明细说明”。
+	 **/
+	private $goodsDetail;
+	
+	/** 
+	 * 设置未付款交易的超时时间,一旦超时,该笔交易就会自动被关闭。
+取值范围:1m~15d。
+m-分钟,h-小时,d-天,1c-当天(无论交易何时创建,都在0点关闭)。
+该参数数值不接受小数点,如1.5h,可转换为90m。
+该功能需要联系支付宝配置关闭时间。
+	 **/
+	private $itBPay;
+	
+	/** 
+	 * 描述预付卡相关的明细信息,json格式,具体请参见“4.8 预付卡明细参数说明”。
+	 **/
+	private $mcardParameters;
+	
+	/** 
+	 * 卖家的操作员ID。
+	 **/
+	private $operatorId;
+	
+	/** 
+	 * 操作员的类型:
+&#1048698;
+0:支付宝操作员
+&#1048698;
+1:商户的操作员
+如果传入其它值或者为空,则默认设置为1。
+	 **/
+	private $operatorType;
+	
+	/** 
+	 * 支付宝合作商户网站唯一订单号。
+	 **/
+	private $outTradeNo;
+	
+	/** 
+	 * 订单中商品的单价。
+如果请求时传入本参数,则必须满足total_fee=price×quantity的条件。
+	 **/
+	private $price;
+	
+	/** 
+	 * 订单中商品的数量。
+如果请求时传入本参数,则必须满足total_fee=price×quantity的条件。
+	 **/
+	private $quantity;
+	
+	/** 
+	 * 业务关联ID集合,用于放置商户的订单号、支付流水号等信息,json格式,具体请参见“4.6 业务关联ID集合说明”。
+	 **/
+	private $refIds;
+	
+	/** 
+	 * 描述分账明细信息,json格式,具体请参见“4.4 分账明细说明”。
+	 **/
+	private $royaltyParameters;
+	
+	/** 
+	 * 卖家的分账类型,目前只支持传入ROYALTY(普通分账类型)。
+	 **/
+	private $royaltyType;
+	
+	/** 
+	 * 卖家支付宝账号,可以为email或者手机号。
+如果seller_id不为空,则以seller_id的值作为卖家账号,忽略本参数。
+	 **/
+	private $sellerEmail;
+	
+	/** 
+	 * 卖家支付宝账号对应的支付宝唯一用户号。
+以2088开头的纯16位数字。
+如果和seller_email同时为空,则本参数默认填充partner的值。
+	 **/
+	private $sellerId;
+	
+	/** 
+	 * 收银台页面上,商品展示的超链接。
+	 **/
+	private $showUrl;
+	
+	/** 
+	 * 商品的标题/交易标题/订单标题/订单关键字等。
+该参数最长为128个汉字。
+	 **/
+	private $subject;
+	
+	/** 
+	 * 该笔订单的资金总额,取值范围[0.01,100000000],精确到小数点后2位。
+	 **/
+	private $totalFee;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAlipayCaRequest($alipayCaRequest)
+	{
+		$this->alipayCaRequest = $alipayCaRequest;
+		$this->apiParas["alipay_ca_request"] = $alipayCaRequest;
+	}
+
+	public function getAlipayCaRequest()
+	{
+		return $this->alipayCaRequest;
+	}
+
+	public function setBody($body)
+	{
+		$this->body = $body;
+		$this->apiParas["body"] = $body;
+	}
+
+	public function getBody()
+	{
+		return $this->body;
+	}
+
+	public function setBuyerEmail($buyerEmail)
+	{
+		$this->buyerEmail = $buyerEmail;
+		$this->apiParas["buyer_email"] = $buyerEmail;
+	}
+
+	public function getBuyerEmail()
+	{
+		return $this->buyerEmail;
+	}
+
+	public function setBuyerId($buyerId)
+	{
+		$this->buyerId = $buyerId;
+		$this->apiParas["buyer_id"] = $buyerId;
+	}
+
+	public function getBuyerId()
+	{
+		return $this->buyerId;
+	}
+
+	public function setChannelParameters($channelParameters)
+	{
+		$this->channelParameters = $channelParameters;
+		$this->apiParas["channel_parameters"] = $channelParameters;
+	}
+
+	public function getChannelParameters()
+	{
+		return $this->channelParameters;
+	}
+
+	public function setCurrency($currency)
+	{
+		$this->currency = $currency;
+		$this->apiParas["currency"] = $currency;
+	}
+
+	public function getCurrency()
+	{
+		return $this->currency;
+	}
+
+	public function setDynamicId($dynamicId)
+	{
+		$this->dynamicId = $dynamicId;
+		$this->apiParas["dynamic_id"] = $dynamicId;
+	}
+
+	public function getDynamicId()
+	{
+		return $this->dynamicId;
+	}
+
+	public function setDynamicIdType($dynamicIdType)
+	{
+		$this->dynamicIdType = $dynamicIdType;
+		$this->apiParas["dynamic_id_type"] = $dynamicIdType;
+	}
+
+	public function getDynamicIdType()
+	{
+		return $this->dynamicIdType;
+	}
+
+	public function setExtendParams($extendParams)
+	{
+		$this->extendParams = $extendParams;
+		$this->apiParas["extend_params"] = $extendParams;
+	}
+
+	public function getExtendParams()
+	{
+		return $this->extendParams;
+	}
+
+	public function setFormatType($formatType)
+	{
+		$this->formatType = $formatType;
+		$this->apiParas["format_type"] = $formatType;
+	}
+
+	public function getFormatType()
+	{
+		return $this->formatType;
+	}
+
+	public function setGoodsDetail($goodsDetail)
+	{
+		$this->goodsDetail = $goodsDetail;
+		$this->apiParas["goods_detail"] = $goodsDetail;
+	}
+
+	public function getGoodsDetail()
+	{
+		return $this->goodsDetail;
+	}
+
+	public function setItBPay($itBPay)
+	{
+		$this->itBPay = $itBPay;
+		$this->apiParas["it_b_pay"] = $itBPay;
+	}
+
+	public function getItBPay()
+	{
+		return $this->itBPay;
+	}
+
+	public function setMcardParameters($mcardParameters)
+	{
+		$this->mcardParameters = $mcardParameters;
+		$this->apiParas["mcard_parameters"] = $mcardParameters;
+	}
+
+	public function getMcardParameters()
+	{
+		return $this->mcardParameters;
+	}
+
+	public function setOperatorId($operatorId)
+	{
+		$this->operatorId = $operatorId;
+		$this->apiParas["operator_id"] = $operatorId;
+	}
+
+	public function getOperatorId()
+	{
+		return $this->operatorId;
+	}
+
+	public function setOperatorType($operatorType)
+	{
+		$this->operatorType = $operatorType;
+		$this->apiParas["operator_type"] = $operatorType;
+	}
+
+	public function getOperatorType()
+	{
+		return $this->operatorType;
+	}
+
+	public function setOutTradeNo($outTradeNo)
+	{
+		$this->outTradeNo = $outTradeNo;
+		$this->apiParas["out_trade_no"] = $outTradeNo;
+	}
+
+	public function getOutTradeNo()
+	{
+		return $this->outTradeNo;
+	}
+
+	public function setPrice($price)
+	{
+		$this->price = $price;
+		$this->apiParas["price"] = $price;
+	}
+
+	public function getPrice()
+	{
+		return $this->price;
+	}
+
+	public function setQuantity($quantity)
+	{
+		$this->quantity = $quantity;
+		$this->apiParas["quantity"] = $quantity;
+	}
+
+	public function getQuantity()
+	{
+		return $this->quantity;
+	}
+
+	public function setRefIds($refIds)
+	{
+		$this->refIds = $refIds;
+		$this->apiParas["ref_ids"] = $refIds;
+	}
+
+	public function getRefIds()
+	{
+		return $this->refIds;
+	}
+
+	public function setRoyaltyParameters($royaltyParameters)
+	{
+		$this->royaltyParameters = $royaltyParameters;
+		$this->apiParas["royalty_parameters"] = $royaltyParameters;
+	}
+
+	public function getRoyaltyParameters()
+	{
+		return $this->royaltyParameters;
+	}
+
+	public function setRoyaltyType($royaltyType)
+	{
+		$this->royaltyType = $royaltyType;
+		$this->apiParas["royalty_type"] = $royaltyType;
+	}
+
+	public function getRoyaltyType()
+	{
+		return $this->royaltyType;
+	}
+
+	public function setSellerEmail($sellerEmail)
+	{
+		$this->sellerEmail = $sellerEmail;
+		$this->apiParas["seller_email"] = $sellerEmail;
+	}
+
+	public function getSellerEmail()
+	{
+		return $this->sellerEmail;
+	}
+
+	public function setSellerId($sellerId)
+	{
+		$this->sellerId = $sellerId;
+		$this->apiParas["seller_id"] = $sellerId;
+	}
+
+	public function getSellerId()
+	{
+		return $this->sellerId;
+	}
+
+	public function setShowUrl($showUrl)
+	{
+		$this->showUrl = $showUrl;
+		$this->apiParas["show_url"] = $showUrl;
+	}
+
+	public function getShowUrl()
+	{
+		return $this->showUrl;
+	}
+
+	public function setSubject($subject)
+	{
+		$this->subject = $subject;
+		$this->apiParas["subject"] = $subject;
+	}
+
+	public function getSubject()
+	{
+		return $this->subject;
+	}
+
+	public function setTotalFee($totalFee)
+	{
+		$this->totalFee = $totalFee;
+		$this->apiParas["total_fee"] = $totalFee;
+	}
+
+	public function getTotalFee()
+	{
+		return $this->totalFee;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.acquire.createandpay";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 402 - 0
sdk/alipay/aop/request/AlipayAcquirePrecreateRequest.php

@@ -0,0 +1,402 @@
+<?php
+/**
+ * ALIPAY API: alipay.acquire.precreate request
+ *
+ * @author auto create
+ * @since 1.0, 2014-05-28 11:57:10
+ */
+class AlipayAcquirePrecreateRequest
+{
+	/** 
+	 * 对一笔交易的具体描述信息。如果是多种商品,请将商品描述字符串累加传给body
+	 **/
+	private $body;
+	
+	/** 
+	 * 描述多渠道收单的渠道明细信息,json格式
+	 **/
+	private $channelParameters;
+	
+	/** 
+	 * 订单金额币种。目前只支持传入156(人民币)。
+如果为空,则默认设置为156
+	 **/
+	private $currency;
+	
+	/** 
+	 * 公用业务扩展信息。用于商户的特定业务信息的传递,只有商户与支付宝约定了传递此参数且约定了参数含义,此参数才有效。
+比如可传递二维码支付场景下的门店ID等信息,以json格式传输。
+	 **/
+	private $extendParams;
+	
+	/** 
+	 * 描述商品明细信息,json格式。
+	 **/
+	private $goodsDetail;
+	
+	/** 
+	 * 订单支付超时时间。设置未付款交易的超时时间,一旦超时,该笔交易就会自动被关闭。
+取值范围:1m~15d。
+m-分钟,h-小时,d-天,1c-当天(无论交易何时创建,都在0点关闭)。
+该参数数值不接受小数点,如1.5h,可转换为90m。
+该功能需要联系支付宝配置关闭时间。
+	 **/
+	private $itBPay;
+	
+	/** 
+	 * 操作员的类型:
+0:支付宝操作员
+1:商户的操作员
+如果传入其它值或者为空,则默认设置为1
+	 **/
+	private $operatorCode;
+	
+	/** 
+	 * 卖家的操作员ID
+	 **/
+	private $operatorId;
+	
+	/** 
+	 * 支付宝合作商户网站唯一订单号
+	 **/
+	private $outTradeNo;
+	
+	/** 
+	 * 订单中商品的单价。
+如果请求时传入本参数,则必须满足total_fee=price×quantity的条件
+	 **/
+	private $price;
+	
+	/** 
+	 * 订单中商品的数量。
+如果请求时传入本参数,则必须满足total_fee=price×quantity的条件
+	 **/
+	private $quantity;
+	
+	/** 
+	 * 分账信息。
+描述分账明细信息,json格式
+	 **/
+	private $royaltyParameters;
+	
+	/** 
+	 * 分账类型。卖家的分账类型,目前只支持传入ROYALTY(普通分账类型)
+	 **/
+	private $royaltyType;
+	
+	/** 
+	 * 卖家支付宝账号,可以为email或者手机号。如果seller_id不为空,则以seller_id的值作为卖家账号,忽略本参数
+	 **/
+	private $sellerEmail;
+	
+	/** 
+	 * 卖家支付宝账号对应的支付宝唯一用户号,以2088开头的纯16位数字。如果和seller_email同时为空,则本参数默认填充partner的值
+	 **/
+	private $sellerId;
+	
+	/** 
+	 * 收银台页面上,商品展示的超链接
+	 **/
+	private $showUrl;
+	
+	/** 
+	 * 商品购买
+	 **/
+	private $subject;
+	
+	/** 
+	 * 订单金额。该笔订单的资金总额,取值范围[0.01,100000000],精确到小数点后2位。
+	 **/
+	private $totalFee;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBody($body)
+	{
+		$this->body = $body;
+		$this->apiParas["body"] = $body;
+	}
+
+	public function getBody()
+	{
+		return $this->body;
+	}
+
+	public function setChannelParameters($channelParameters)
+	{
+		$this->channelParameters = $channelParameters;
+		$this->apiParas["channel_parameters"] = $channelParameters;
+	}
+
+	public function getChannelParameters()
+	{
+		return $this->channelParameters;
+	}
+
+	public function setCurrency($currency)
+	{
+		$this->currency = $currency;
+		$this->apiParas["currency"] = $currency;
+	}
+
+	public function getCurrency()
+	{
+		return $this->currency;
+	}
+
+	public function setExtendParams($extendParams)
+	{
+		$this->extendParams = $extendParams;
+		$this->apiParas["extend_params"] = $extendParams;
+	}
+
+	public function getExtendParams()
+	{
+		return $this->extendParams;
+	}
+
+	public function setGoodsDetail($goodsDetail)
+	{
+		$this->goodsDetail = $goodsDetail;
+		$this->apiParas["goods_detail"] = $goodsDetail;
+	}
+
+	public function getGoodsDetail()
+	{
+		return $this->goodsDetail;
+	}
+
+	public function setItBPay($itBPay)
+	{
+		$this->itBPay = $itBPay;
+		$this->apiParas["it_b_pay"] = $itBPay;
+	}
+
+	public function getItBPay()
+	{
+		return $this->itBPay;
+	}
+
+	public function setOperatorCode($operatorCode)
+	{
+		$this->operatorCode = $operatorCode;
+		$this->apiParas["operator_code"] = $operatorCode;
+	}
+
+	public function getOperatorCode()
+	{
+		return $this->operatorCode;
+	}
+
+	public function setOperatorId($operatorId)
+	{
+		$this->operatorId = $operatorId;
+		$this->apiParas["operator_id"] = $operatorId;
+	}
+
+	public function getOperatorId()
+	{
+		return $this->operatorId;
+	}
+
+	public function setOutTradeNo($outTradeNo)
+	{
+		$this->outTradeNo = $outTradeNo;
+		$this->apiParas["out_trade_no"] = $outTradeNo;
+	}
+
+	public function getOutTradeNo()
+	{
+		return $this->outTradeNo;
+	}
+
+	public function setPrice($price)
+	{
+		$this->price = $price;
+		$this->apiParas["price"] = $price;
+	}
+
+	public function getPrice()
+	{
+		return $this->price;
+	}
+
+	public function setQuantity($quantity)
+	{
+		$this->quantity = $quantity;
+		$this->apiParas["quantity"] = $quantity;
+	}
+
+	public function getQuantity()
+	{
+		return $this->quantity;
+	}
+
+	public function setRoyaltyParameters($royaltyParameters)
+	{
+		$this->royaltyParameters = $royaltyParameters;
+		$this->apiParas["royalty_parameters"] = $royaltyParameters;
+	}
+
+	public function getRoyaltyParameters()
+	{
+		return $this->royaltyParameters;
+	}
+
+	public function setRoyaltyType($royaltyType)
+	{
+		$this->royaltyType = $royaltyType;
+		$this->apiParas["royalty_type"] = $royaltyType;
+	}
+
+	public function getRoyaltyType()
+	{
+		return $this->royaltyType;
+	}
+
+	public function setSellerEmail($sellerEmail)
+	{
+		$this->sellerEmail = $sellerEmail;
+		$this->apiParas["seller_email"] = $sellerEmail;
+	}
+
+	public function getSellerEmail()
+	{
+		return $this->sellerEmail;
+	}
+
+	public function setSellerId($sellerId)
+	{
+		$this->sellerId = $sellerId;
+		$this->apiParas["seller_id"] = $sellerId;
+	}
+
+	public function getSellerId()
+	{
+		return $this->sellerId;
+	}
+
+	public function setShowUrl($showUrl)
+	{
+		$this->showUrl = $showUrl;
+		$this->apiParas["show_url"] = $showUrl;
+	}
+
+	public function getShowUrl()
+	{
+		return $this->showUrl;
+	}
+
+	public function setSubject($subject)
+	{
+		$this->subject = $subject;
+		$this->apiParas["subject"] = $subject;
+	}
+
+	public function getSubject()
+	{
+		return $this->subject;
+	}
+
+	public function setTotalFee($totalFee)
+	{
+		$this->totalFee = $totalFee;
+		$this->apiParas["total_fee"] = $totalFee;
+	}
+
+	public function getTotalFee()
+	{
+		return $this->totalFee;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.acquire.precreate";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 136 - 0
sdk/alipay/aop/request/AlipayAcquireQueryRequest.php

@@ -0,0 +1,136 @@
+<?php
+/**
+ * ALIPAY API: alipay.acquire.query request
+ *
+ * @author auto create
+ * @since 1.0, 2014-05-28 11:58:01
+ */
+class AlipayAcquireQueryRequest
+{
+	/** 
+	 * 支付宝合作商户网站唯一订单号
+	 **/
+	private $outTradeNo;
+	
+	/** 
+	 * 该交易在支付宝系统中的交易流水号。
+最短16位,最长64位。
+如果同时传了out_trade_no和trade_no,则以trade_no为准。
+	 **/
+	private $tradeNo;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setOutTradeNo($outTradeNo)
+	{
+		$this->outTradeNo = $outTradeNo;
+		$this->apiParas["out_trade_no"] = $outTradeNo;
+	}
+
+	public function getOutTradeNo()
+	{
+		return $this->outTradeNo;
+	}
+
+	public function setTradeNo($tradeNo)
+	{
+		$this->tradeNo = $tradeNo;
+		$this->apiParas["trade_no"] = $tradeNo;
+	}
+
+	public function getTradeNo()
+	{
+		return $this->tradeNo;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.acquire.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 236 - 0
sdk/alipay/aop/request/AlipayAcquireRefundRequest.php

@@ -0,0 +1,236 @@
+<?php
+/**
+ * ALIPAY API: alipay.acquire.refund request
+ *
+ * @author auto create
+ * @since 1.0, 2014-06-12 17:17:03
+ */
+class AlipayAcquireRefundRequest
+{
+	/** 
+	 * 卖家的操作员ID。
+	 **/
+	private $operatorId;
+	
+	/** 
+	 * 操作员的类型:
+0:支付宝操作员
+1:商户的操作员
+如果传入其它值或者为空,则默认设置为1。
+	 **/
+	private $operatorType;
+	
+	/** 
+	 * 商户退款请求单号,用以标识本次交易的退款请求。
+如果不传入本参数,则以out_trade_no填充本参数的值。同时,认为本次请求为全额退款,要求退款金额和交易支付金额一致。
+	 **/
+	private $outRequestNo;
+	
+	/** 
+	 * 商户网站唯一订单号
+	 **/
+	private $outTradeNo;
+	
+	/** 
+	 * 业务关联ID集合,用于放置商户的退款单号、退款流水号等信息,json格式
+	 **/
+	private $refIds;
+	
+	/** 
+	 * 退款金额;退款金额不能大于订单金额,全额退款必须与订单金额一致。
+	 **/
+	private $refundAmount;
+	
+	/** 
+	 * 退款原因说明。
+	 **/
+	private $refundReason;
+	
+	/** 
+	 * 该交易在支付宝系统中的交易流水号。
+最短16位,最长64位。
+如果同时传了out_trade_no和trade_no,则以trade_no为准
+	 **/
+	private $tradeNo;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setOperatorId($operatorId)
+	{
+		$this->operatorId = $operatorId;
+		$this->apiParas["operator_id"] = $operatorId;
+	}
+
+	public function getOperatorId()
+	{
+		return $this->operatorId;
+	}
+
+	public function setOperatorType($operatorType)
+	{
+		$this->operatorType = $operatorType;
+		$this->apiParas["operator_type"] = $operatorType;
+	}
+
+	public function getOperatorType()
+	{
+		return $this->operatorType;
+	}
+
+	public function setOutRequestNo($outRequestNo)
+	{
+		$this->outRequestNo = $outRequestNo;
+		$this->apiParas["out_request_no"] = $outRequestNo;
+	}
+
+	public function getOutRequestNo()
+	{
+		return $this->outRequestNo;
+	}
+
+	public function setOutTradeNo($outTradeNo)
+	{
+		$this->outTradeNo = $outTradeNo;
+		$this->apiParas["out_trade_no"] = $outTradeNo;
+	}
+
+	public function getOutTradeNo()
+	{
+		return $this->outTradeNo;
+	}
+
+	public function setRefIds($refIds)
+	{
+		$this->refIds = $refIds;
+		$this->apiParas["ref_ids"] = $refIds;
+	}
+
+	public function getRefIds()
+	{
+		return $this->refIds;
+	}
+
+	public function setRefundAmount($refundAmount)
+	{
+		$this->refundAmount = $refundAmount;
+		$this->apiParas["refund_amount"] = $refundAmount;
+	}
+
+	public function getRefundAmount()
+	{
+		return $this->refundAmount;
+	}
+
+	public function setRefundReason($refundReason)
+	{
+		$this->refundReason = $refundReason;
+		$this->apiParas["refund_reason"] = $refundReason;
+	}
+
+	public function getRefundReason()
+	{
+		return $this->refundReason;
+	}
+
+	public function setTradeNo($tradeNo)
+	{
+		$this->tradeNo = $tradeNo;
+		$this->apiParas["trade_no"] = $tradeNo;
+	}
+
+	public function getTradeNo()
+	{
+		return $this->tradeNo;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.acquire.refund";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayAppTokenGetRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.app.token.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-29 19:56:12
+ */
+class AlipayAppTokenGetRequest
+{
+	/** 
+	 * 应用安全码
+	 **/
+	private $secret;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setSecret($secret)
+	{
+		$this->secret = $secret;
+		$this->apiParas["secret"] = $secret;
+	}
+
+	public function getSecret()
+	{
+		return $this->secret;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.app.token.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 170 - 0
sdk/alipay/aop/request/AlipayAssetAccountBindRequest.php

@@ -0,0 +1,170 @@
+<?php
+/**
+ * ALIPAY API: alipay.asset.account.bind request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-11 19:38:33
+ */
+class AlipayAssetAccountBindRequest
+{
+	/** 
+	 * 绑定场景,目前仅支持如下:
+wechat:微信公众平台;
+transport:物流转运平台;
+appOneBind:一对一app绑定; 
+注意:必须是这些值,区分大小写。
+	 **/
+	private $bindScene;
+	
+	/** 
+	 * 使用该app提供用户信息的商户,可以和app相同。
+	 **/
+	private $providerId;
+	
+	/** 
+	 * 用户在商户网站的会员标识。商户需确保其唯一性,不可变更。
+	 **/
+	private $providerUserId;
+	
+	/** 
+	 * 用户在商户网站的会员名(登录号或昵称)。
+	 **/
+	private $providerUserName;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBindScene($bindScene)
+	{
+		$this->bindScene = $bindScene;
+		$this->apiParas["bind_scene"] = $bindScene;
+	}
+
+	public function getBindScene()
+	{
+		return $this->bindScene;
+	}
+
+	public function setProviderId($providerId)
+	{
+		$this->providerId = $providerId;
+		$this->apiParas["provider_id"] = $providerId;
+	}
+
+	public function getProviderId()
+	{
+		return $this->providerId;
+	}
+
+	public function setProviderUserId($providerUserId)
+	{
+		$this->providerUserId = $providerUserId;
+		$this->apiParas["provider_user_id"] = $providerUserId;
+	}
+
+	public function getProviderUserId()
+	{
+		return $this->providerUserId;
+	}
+
+	public function setProviderUserName($providerUserName)
+	{
+		$this->providerUserName = $providerUserName;
+		$this->apiParas["provider_user_name"] = $providerUserName;
+	}
+
+	public function getProviderUserName()
+	{
+		return $this->providerUserName;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.asset.account.bind";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 135 - 0
sdk/alipay/aop/request/AlipayAssetAccountGetRequest.php

@@ -0,0 +1,135 @@
+<?php
+/**
+ * ALIPAY API: alipay.asset.account.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-11 19:39:10
+ */
+class AlipayAssetAccountGetRequest
+{
+	/** 
+	 * 使用该app提供用户信息的商户,可以和app相同。
+	 **/
+	private $providerId;
+	
+	/** 
+	 * 用户在商户网站的会员标识。商户需确保其唯一性,不可变更。
+注意:根据provider_user_id查询时该值不可空。
+	 **/
+	private $providerUserId;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setProviderId($providerId)
+	{
+		$this->providerId = $providerId;
+		$this->apiParas["provider_id"] = $providerId;
+	}
+
+	public function getProviderId()
+	{
+		return $this->providerId;
+	}
+
+	public function setProviderUserId($providerUserId)
+	{
+		$this->providerUserId = $providerUserId;
+		$this->apiParas["provider_user_id"] = $providerUserId;
+	}
+
+	public function getProviderUserId()
+	{
+		return $this->providerUserId;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.asset.account.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 134 - 0
sdk/alipay/aop/request/AlipayAssetAccountUnbindRequest.php

@@ -0,0 +1,134 @@
+<?php
+/**
+ * ALIPAY API: alipay.asset.account.unbind request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-11 19:38:49
+ */
+class AlipayAssetAccountUnbindRequest
+{
+	/** 
+	 * 业务参数 使用该app提供用户信息的商户在支付宝签约时的支付宝账户userID,可以和app相同。
+	 **/
+	private $providerId;
+	
+	/** 
+	 * 用户在商户网站的会员标识。商户需确保其唯一性,不可变更。
+	 **/
+	private $providerUserId;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setProviderId($providerId)
+	{
+		$this->providerId = $providerId;
+		$this->apiParas["provider_id"] = $providerId;
+	}
+
+	public function getProviderId()
+	{
+		return $this->providerId;
+	}
+
+	public function setProviderUserId($providerUserId)
+	{
+		$this->providerUserId = $providerUserId;
+		$this->apiParas["provider_user_id"] = $providerUserId;
+	}
+
+	public function getProviderUserId()
+	{
+		return $this->providerUserId;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.asset.account.unbind";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 103 - 0
sdk/alipay/aop/request/AlipayAssetPointBalanceQueryRequest.php

@@ -0,0 +1,103 @@
+<?php
+/**
+ * ALIPAY API: alipay.asset.point.balance.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-29 19:52:37
+ */
+class AlipayAssetPointBalanceQueryRequest
+{
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function getApiMethodName()
+	{
+		return "alipay.asset.point.balance.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 103 - 0
sdk/alipay/aop/request/AlipayAssetPointBudgetQueryRequest.php

@@ -0,0 +1,103 @@
+<?php
+/**
+ * ALIPAY API: alipay.asset.point.budget.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-29 19:52:25
+ */
+class AlipayAssetPointBudgetQueryRequest
+{
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function getApiMethodName()
+	{
+		return "alipay.asset.point.budget.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayAssetPointOrderCreateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.asset.point.order.create request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-29 19:52:44
+ */
+class AlipayAssetPointOrderCreateRequest
+{
+	/** 
+	 * 商户在采购完集分宝后可以通过此接口发放集分宝
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.asset.point.order.create";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayAssetPointOrderQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.asset.point.order.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-29 19:52:31
+ */
+class AlipayAssetPointOrderQueryRequest
+{
+	/** 
+	 * 商户在调用集分宝发放接口后可以通过此接口查询发放情况
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.asset.point.order.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayBossCsChannelQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.boss.cs.channel.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-02-23 20:04:44
+ */
+class AlipayBossCsChannelQueryRequest
+{
+	/** 
+	 * 云客服热线数据查询,云客服会有很多外部客服,他们需要查询落地在站内的自己公司的服务数据。
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.boss.cs.channel.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayBossProdArrangementOfflineQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.boss.prod.arrangement.offline.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-28 14:44:30
+ */
+class AlipayBossProdArrangementOfflineQueryRequest
+{
+	/** 
+	 * 签约销售方案的主站产品码,目前只支持ONLINE_TRADE_PAY(在线购买签约)和FACE_TO_FACE_PAYMENT(当面付)两个常量值,不允许传入其他值,否则报SYSTEM_ERROR异常。不传值时,默认查询FACE_TO_FACE_PAYM(当面付产品)。
+	 **/
+	private $productCode;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setProductCode($productCode)
+	{
+		$this->productCode = $productCode;
+		$this->apiParas["product_code"] = $productCode;
+	}
+
+	public function getProductCode()
+	{
+		return $this->productCode;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.boss.prod.arrangement.offline.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 103 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorCityQueryRequest.php

@@ -0,0 +1,103 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.city.query request
+ *
+ * @author auto create
+ * @since 1.0, 2015-12-15 11:19:13
+ */
+class AlipayCommerceCityfacilitatorCityQueryRequest
+{
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.city.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorDepositCancelRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.deposit.cancel request
+ *
+ * @author auto create
+ * @since 1.0, 2015-12-18 21:35:58
+ */
+class AlipayCommerceCityfacilitatorDepositCancelRequest
+{
+	/** 
+	 * 合作渠道可通过该接口补登扣款取消请求,以帮助支付宝将用户的资金退给用户
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.deposit.cancel";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorDepositConfirmRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.deposit.confirm request
+ *
+ * @author auto create
+ * @since 1.0, 2015-12-18 21:36:24
+ */
+class AlipayCommerceCityfacilitatorDepositConfirmRequest
+{
+	/** 
+	 * 合作渠道可通过该接口补登单笔圈存确认扣款请求,以帮助支付宝将用户的资金结算给指定的渠道,不支持单笔拆分
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.deposit.confirm";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorDepositQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.deposit.query request
+ *
+ * @author auto create
+ * @since 1.0, 2015-12-15 11:37:56
+ */
+class AlipayCommerceCityfacilitatorDepositQueryRequest
+{
+	/** 
+	 * 商户查询用户的充值转账记录
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.deposit.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorFunctionQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.function.query request
+ *
+ * @author auto create
+ * @since 1.0, 2015-12-15 11:19:03
+ */
+class AlipayCommerceCityfacilitatorFunctionQueryRequest
+{
+	/** 
+	 * 基于设备和城市查询当前支持的功能
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.function.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorScriptQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.script.query request
+ *
+ * @author auto create
+ * @since 1.0, 2015-12-09 16:24:55
+ */
+class AlipayCommerceCityfacilitatorScriptQueryRequest
+{
+	/** 
+	 * 查询城市一卡通的判卡、读卡脚本
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.script.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorStationQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.station.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-08-03 16:10:49
+ */
+class AlipayCommerceCityfacilitatorStationQueryRequest
+{
+	/** 
+	 * 地铁购票站点查询
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.station.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherBatchqueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.voucher.batchquery request
+ *
+ * @author auto create
+ * @since 1.0, 2016-08-03 16:11:01
+ */
+class AlipayCommerceCityfacilitatorVoucherBatchqueryRequest
+{
+	/** 
+	 * 地铁购票订单批量查询
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.voucher.batchquery";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherCancelRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.voucher.cancel request
+ *
+ * @author auto create
+ * @since 1.0, 2016-04-28 14:25:54
+ */
+class AlipayCommerceCityfacilitatorVoucherCancelRequest
+{
+	/** 
+	 * 钱包中地铁票购票,获得核销码,线下渠道商凭核销码撤销该笔交易
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.voucher.cancel";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherConfirmRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.voucher.confirm request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-07 13:14:52
+ */
+class AlipayCommerceCityfacilitatorVoucherConfirmRequest
+{
+	/** 
+	 * 钱包中地铁票购票,获得核销码,线下地铁自助购票机上凭核销码取票,购票确认
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.voucher.confirm";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherGenerateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.voucher.generate request
+ *
+ * @author auto create
+ * @since 1.0, 2016-08-03 16:10:34
+ */
+class AlipayCommerceCityfacilitatorVoucherGenerateRequest
+{
+	/** 
+	 * 地铁购票核销码发码
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.voucher.generate";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.voucher.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-04-28 14:25:22
+ */
+class AlipayCommerceCityfacilitatorVoucherQueryRequest
+{
+	/** 
+	 * 钱包中地铁票购票,获得核销码,线下地铁自助购票机上凭核销码取票,渠道商凭用户输入的核销码调接口查询核销码的有效性。
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.voucher.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherRefundRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.voucher.refund request
+ *
+ * @author auto create
+ * @since 1.0, 2016-08-03 16:10:56
+ */
+class AlipayCommerceCityfacilitatorVoucherRefundRequest
+{
+	/** 
+	 * 地铁购票发码退款
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.voucher.refund";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceCityfacilitatorVoucherUploadRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.cityfacilitator.voucher.upload request
+ *
+ * @author auto create
+ * @since 1.0, 2016-04-28 14:25:37
+ */
+class AlipayCommerceCityfacilitatorVoucherUploadRequest
+{
+	/** 
+	 * 钱包中地铁票购票,获得核销码,线下地铁自助购票机上凭核销码取票,票号上传接口
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.cityfacilitator.voucher.upload";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 103 - 0
sdk/alipay/aop/request/AlipayCommerceEducateStudentinfoShareRequest.php

@@ -0,0 +1,103 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.educate.studentinfo.share request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-19 14:49:22
+ */
+class AlipayCommerceEducateStudentinfoShareRequest
+{
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.educate.studentinfo.share";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceMedicalCardQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.medical.card.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-04-12 16:37:49
+ */
+class AlipayCommerceMedicalCardQueryRequest
+{
+	/** 
+	 * 医疗机构根据用户userId查询该账户的医保卡相关信息
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.medical.card.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceMedicalInstcardBindRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.medical.instcard.bind request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-25 22:06:30
+ */
+class AlipayCommerceMedicalInstcardBindRequest
+{
+	/** 
+	 * 用于支付宝用户通过医院服务窗绑定当地社保卡
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.medical.instcard.bind";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceMedicalInstcardCreateandpayRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.medical.instcard.createandpay request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-25 21:58:09
+ */
+class AlipayCommerceMedicalInstcardCreateandpayRequest
+{
+	/** 
+	 * 根据用户已经在支付宝绑定过的医保卡为医疗行业提供收单支付服务。同时支持自费支付服务
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.medical.instcard.createandpay";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 103 - 0
sdk/alipay/aop/request/AlipayCommerceTransportOfflinepayKeyQueryRequest.php

@@ -0,0 +1,103 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.transport.offlinepay.key.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-01 22:05:32
+ */
+class AlipayCommerceTransportOfflinepayKeyQueryRequest
+{
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.transport.offlinepay.key.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceTransportOfflinepayRecordVerifyRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.transport.offlinepay.record.verify request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-01 22:05:47
+ */
+class AlipayCommerceTransportOfflinepayRecordVerifyRequest
+{
+	/** 
+	 * 支付宝脱机操作信息验证
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.transport.offlinepay.record.verify";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayCommerceTransportOfflinepayUserblacklistQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.commerce.transport.offlinepay.userblacklist.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-01 22:05:44
+ */
+class AlipayCommerceTransportOfflinepayUserblacklistQueryRequest
+{
+	/** 
+	 * 脱机交易黑名单列表
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.commerce.transport.offlinepay.userblacklist.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 134 - 0
sdk/alipay/aop/request/AlipayDataBillDownloadurlGetRequest.php

@@ -0,0 +1,134 @@
+<?php
+/**
+ * ALIPAY API: alipay.data.bill.downloadurl.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-29 19:56:22
+ */
+class AlipayDataBillDownloadurlGetRequest
+{
+	/** 
+	 * 账单时间:日账单格式为yyyy-MM-dd,月账单格式为yyyy-MM
+	 **/
+	private $billDate;
+	
+	/** 
+	 * 账单类型,目前支持的类型由:trade、air、air_b2b;trade指商户通过接口所获取的账单,或商户经开放平台授权后其所属服务商通过接口所获取的账单;air、air_b2b是航旅行业定制的账单,一般商户没有此账单;
+	 **/
+	private $billType;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBillDate($billDate)
+	{
+		$this->billDate = $billDate;
+		$this->apiParas["bill_date"] = $billDate;
+	}
+
+	public function getBillDate()
+	{
+		return $this->billDate;
+	}
+
+	public function setBillType($billType)
+	{
+		$this->billType = $billType;
+		$this->apiParas["bill_type"] = $billType;
+	}
+
+	public function getBillType()
+	{
+		return $this->billType;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.data.bill.downloadurl.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayDataDataexchangeSfasdfRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.data.dataexchange.sfasdf request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-18 20:58:13
+ */
+class AlipayDataDataexchangeSfasdfRequest
+{
+	/** 
+	 * 1232456374
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.data.dataexchange.sfasdf";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayDataDataserviceBillDownloadurlQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.data.dataservice.bill.downloadurl.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-09-20 16:35:20
+ */
+class AlipayDataDataserviceBillDownloadurlQueryRequest
+{
+	/** 
+	 * 无授权模式的查询对账单下载地址
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.data.dataservice.bill.downloadurl.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayDataDataserviceChinaremodelQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.data.dataservice.chinaremodel.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-06-02 14:27:15
+ */
+class AlipayDataDataserviceChinaremodelQueryRequest
+{
+	/** 
+	 * 中再核保结果查询
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.data.dataservice.chinaremodel.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayDataDataserviceCodeRecoRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.data.dataservice.code.reco request
+ *
+ * @author auto create
+ * @since 1.0, 2016-06-02 14:27:04
+ */
+class AlipayDataDataserviceCodeRecoRequest
+{
+	/** 
+	 * 改api为数立提供验证码识别服务。isv可以通过该接口,使用我们的图片识别能力。
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.data.dataservice.code.reco";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 103 - 0
sdk/alipay/aop/request/AlipayDataDataserviceSdfsdfRequest.php

@@ -0,0 +1,103 @@
+<?php
+/**
+ * ALIPAY API: alipay.data.dataservice.sdfsdf request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-30 20:51:14
+ */
+class AlipayDataDataserviceSdfsdfRequest
+{
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function getApiMethodName()
+	{
+		return "alipay.data.dataservice.sdfsdf";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayDataDataserviceUserlevelZrankGetRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.data.dataservice.userlevel.zrank.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-06-02 14:27:08
+ */
+class AlipayDataDataserviceUserlevelZrankGetRequest
+{
+	/** 
+	 * 通用的活跃高价值用户等级,支持EMAIL,PHONE,BANKCARD,CERTNO,IMEI,MAC,TBID维度查询用户活跃高价值等级。等级从Z0-Z7,等级越高价值越高,Z0表示未实名认证或者用户信息不全。
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.data.dataservice.userlevel.zrank.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 326 - 0
sdk/alipay/aop/request/AlipayEbppBillAddRequest.php

@@ -0,0 +1,326 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.bill.add request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-20 14:11:37
+ */
+class AlipayEbppBillAddRequest
+{
+	/** 
+	 * 外部订单号
+	 **/
+	private $bankBillNo;
+	
+	/** 
+	 * 账单的账期,例如201203表示2012年3月的账单。
+	 **/
+	private $billDate;
+	
+	/** 
+	 * 账单单据号,例如水费单号,手机号,电费号,信用卡卡号。没有唯一性要求。
+	 **/
+	private $billKey;
+	
+	/** 
+	 * 支付宝给每个出账机构指定了一个对应的英文短名称来唯一表示该收费单位。
+	 **/
+	private $chargeInst;
+	
+	/** 
+	 * 扩展属性
+	 **/
+	private $extendField;
+	
+	/** 
+	 * 输出机构的业务流水号,需要保证唯一性
+	 **/
+	private $merchantOrderNo;
+	
+	/** 
+	 * 用户的手机号
+	 **/
+	private $mobile;
+	
+	/** 
+	 * 支付宝订单类型。公共事业缴纳JF,信用卡还款HK
+	 **/
+	private $orderType;
+	
+	/** 
+	 * 拥有该账单的用户姓名
+	 **/
+	private $ownerName;
+	
+	/** 
+	 * 缴费金额。用户支付的总金额。单位为:RMB Yuan。取值范围为[0.01,100000000.00],精确到小数点后两位。
+	 **/
+	private $payAmount;
+	
+	/** 
+	 * 账单的服务费。
+	 **/
+	private $serviceAmount;
+	
+	/** 
+	 * 子业务类型是业务类型的下一级概念,例如:WATER表示JF下面的水费,ELECTRIC表示JF下面的电费,GAS表示JF下面的燃气费。
+	 **/
+	private $subOrderType;
+	
+	/** 
+	 * 交通违章地点,sub_order_type=TRAFFIC时填写。
+	 **/
+	private $trafficLocation;
+	
+	/** 
+	 * 违章行为,sub_order_type=TRAFFIC时填写。
+	 **/
+	private $trafficRegulations;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBankBillNo($bankBillNo)
+	{
+		$this->bankBillNo = $bankBillNo;
+		$this->apiParas["bank_bill_no"] = $bankBillNo;
+	}
+
+	public function getBankBillNo()
+	{
+		return $this->bankBillNo;
+	}
+
+	public function setBillDate($billDate)
+	{
+		$this->billDate = $billDate;
+		$this->apiParas["bill_date"] = $billDate;
+	}
+
+	public function getBillDate()
+	{
+		return $this->billDate;
+	}
+
+	public function setBillKey($billKey)
+	{
+		$this->billKey = $billKey;
+		$this->apiParas["bill_key"] = $billKey;
+	}
+
+	public function getBillKey()
+	{
+		return $this->billKey;
+	}
+
+	public function setChargeInst($chargeInst)
+	{
+		$this->chargeInst = $chargeInst;
+		$this->apiParas["charge_inst"] = $chargeInst;
+	}
+
+	public function getChargeInst()
+	{
+		return $this->chargeInst;
+	}
+
+	public function setExtendField($extendField)
+	{
+		$this->extendField = $extendField;
+		$this->apiParas["extend_field"] = $extendField;
+	}
+
+	public function getExtendField()
+	{
+		return $this->extendField;
+	}
+
+	public function setMerchantOrderNo($merchantOrderNo)
+	{
+		$this->merchantOrderNo = $merchantOrderNo;
+		$this->apiParas["merchant_order_no"] = $merchantOrderNo;
+	}
+
+	public function getMerchantOrderNo()
+	{
+		return $this->merchantOrderNo;
+	}
+
+	public function setMobile($mobile)
+	{
+		$this->mobile = $mobile;
+		$this->apiParas["mobile"] = $mobile;
+	}
+
+	public function getMobile()
+	{
+		return $this->mobile;
+	}
+
+	public function setOrderType($orderType)
+	{
+		$this->orderType = $orderType;
+		$this->apiParas["order_type"] = $orderType;
+	}
+
+	public function getOrderType()
+	{
+		return $this->orderType;
+	}
+
+	public function setOwnerName($ownerName)
+	{
+		$this->ownerName = $ownerName;
+		$this->apiParas["owner_name"] = $ownerName;
+	}
+
+	public function getOwnerName()
+	{
+		return $this->ownerName;
+	}
+
+	public function setPayAmount($payAmount)
+	{
+		$this->payAmount = $payAmount;
+		$this->apiParas["pay_amount"] = $payAmount;
+	}
+
+	public function getPayAmount()
+	{
+		return $this->payAmount;
+	}
+
+	public function setServiceAmount($serviceAmount)
+	{
+		$this->serviceAmount = $serviceAmount;
+		$this->apiParas["service_amount"] = $serviceAmount;
+	}
+
+	public function getServiceAmount()
+	{
+		return $this->serviceAmount;
+	}
+
+	public function setSubOrderType($subOrderType)
+	{
+		$this->subOrderType = $subOrderType;
+		$this->apiParas["sub_order_type"] = $subOrderType;
+	}
+
+	public function getSubOrderType()
+	{
+		return $this->subOrderType;
+	}
+
+	public function setTrafficLocation($trafficLocation)
+	{
+		$this->trafficLocation = $trafficLocation;
+		$this->apiParas["traffic_location"] = $trafficLocation;
+	}
+
+	public function getTrafficLocation()
+	{
+		return $this->trafficLocation;
+	}
+
+	public function setTrafficRegulations($trafficRegulations)
+	{
+		$this->trafficRegulations = $trafficRegulations;
+		$this->apiParas["traffic_regulations"] = $trafficRegulations;
+	}
+
+	public function getTrafficRegulations()
+	{
+		return $this->trafficRegulations;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.bill.add";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 150 - 0
sdk/alipay/aop/request/AlipayEbppBillBatchPayurlGetRequest.php

@@ -0,0 +1,150 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.bill.batch.payurl.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-31 19:40:07
+ */
+class AlipayEbppBillBatchPayurlGetRequest
+{
+	/** 
+	 * 回调系统url
+	 **/
+	private $callbackUrl;
+	
+	/** 
+	 * 订单类型
+	 **/
+	private $orderType;
+	
+	/** 
+	 * alipayOrderNo-merchantOrderNo即业务流水号和业务订单号
+	 **/
+	private $payBillList;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setCallbackUrl($callbackUrl)
+	{
+		$this->callbackUrl = $callbackUrl;
+		$this->apiParas["callback_url"] = $callbackUrl;
+	}
+
+	public function getCallbackUrl()
+	{
+		return $this->callbackUrl;
+	}
+
+	public function setOrderType($orderType)
+	{
+		$this->orderType = $orderType;
+		$this->apiParas["order_type"] = $orderType;
+	}
+
+	public function getOrderType()
+	{
+		return $this->orderType;
+	}
+
+	public function setPayBillList($payBillList)
+	{
+		$this->payBillList = $payBillList;
+		$this->apiParas["pay_bill_list"] = $payBillList;
+	}
+
+	public function getPayBillList()
+	{
+		return $this->payBillList;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.bill.batch.payurl.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 134 - 0
sdk/alipay/aop/request/AlipayEbppBillGetRequest.php

@@ -0,0 +1,134 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.bill.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-09-20 14:23:46
+ */
+class AlipayEbppBillGetRequest
+{
+	/** 
+	 * 输出机构的业务流水号,需要保证唯一性。
+	 **/
+	private $merchantOrderNo;
+	
+	/** 
+	 * 支付宝订单类型。公共事业缴纳JF,信用卡还款HK
+	 **/
+	private $orderType;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setMerchantOrderNo($merchantOrderNo)
+	{
+		$this->merchantOrderNo = $merchantOrderNo;
+		$this->apiParas["merchant_order_no"] = $merchantOrderNo;
+	}
+
+	public function getMerchantOrderNo()
+	{
+		return $this->merchantOrderNo;
+	}
+
+	public function setOrderType($orderType)
+	{
+		$this->orderType = $orderType;
+		$this->apiParas["order_type"] = $orderType;
+	}
+
+	public function getOrderType()
+	{
+		return $this->orderType;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.bill.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 182 - 0
sdk/alipay/aop/request/AlipayEbppBillPayRequest.php

@@ -0,0 +1,182 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.bill.pay request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-31 11:11:02
+ */
+class AlipayEbppBillPayRequest
+{
+	/** 
+	 * 支付宝的业务订单号,具有唯一性。
+	 **/
+	private $alipayOrderNo;
+	
+	/** 
+	 * openapi的spanner上增加规则转发到pcimapi集群上
+	 **/
+	private $dispatchClusterTarget;
+	
+	/** 
+	 * 扩展字段
+	 **/
+	private $extend;
+	
+	/** 
+	 * 输出机构的业务流水号,需要保证唯一性。
+	 **/
+	private $merchantOrderNo;
+	
+	/** 
+	 * 支付宝订单类型。公共事业缴纳JF,信用卡还款HK
+	 **/
+	private $orderType;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAlipayOrderNo($alipayOrderNo)
+	{
+		$this->alipayOrderNo = $alipayOrderNo;
+		$this->apiParas["alipay_order_no"] = $alipayOrderNo;
+	}
+
+	public function getAlipayOrderNo()
+	{
+		return $this->alipayOrderNo;
+	}
+
+	public function setDispatchClusterTarget($dispatchClusterTarget)
+	{
+		$this->dispatchClusterTarget = $dispatchClusterTarget;
+		$this->apiParas["dispatch_cluster_target"] = $dispatchClusterTarget;
+	}
+
+	public function getDispatchClusterTarget()
+	{
+		return $this->dispatchClusterTarget;
+	}
+
+	public function setExtend($extend)
+	{
+		$this->extend = $extend;
+		$this->apiParas["extend"] = $extend;
+	}
+
+	public function getExtend()
+	{
+		return $this->extend;
+	}
+
+	public function setMerchantOrderNo($merchantOrderNo)
+	{
+		$this->merchantOrderNo = $merchantOrderNo;
+		$this->apiParas["merchant_order_no"] = $merchantOrderNo;
+	}
+
+	public function getMerchantOrderNo()
+	{
+		return $this->merchantOrderNo;
+	}
+
+	public function setOrderType($orderType)
+	{
+		$this->orderType = $orderType;
+		$this->apiParas["order_type"] = $orderType;
+	}
+
+	public function getOrderType()
+	{
+		return $this->orderType;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.bill.pay";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 166 - 0
sdk/alipay/aop/request/AlipayEbppBillPayurlGetRequest.php

@@ -0,0 +1,166 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.bill.payurl.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-31 11:11:08
+ */
+class AlipayEbppBillPayurlGetRequest
+{
+	/** 
+	 * 支付宝的业务订单号,具有唯一性。
+	 **/
+	private $alipayOrderNo;
+	
+	/** 
+	 * 回调系统url
+	 **/
+	private $callbackUrl;
+	
+	/** 
+	 * 输出机构的业务流水号,需要保证唯一性。
+	 **/
+	private $merchantOrderNo;
+	
+	/** 
+	 * 支付宝订单类型。公共事业缴纳JF,信用卡还款HK。
+	 **/
+	private $orderType;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAlipayOrderNo($alipayOrderNo)
+	{
+		$this->alipayOrderNo = $alipayOrderNo;
+		$this->apiParas["alipay_order_no"] = $alipayOrderNo;
+	}
+
+	public function getAlipayOrderNo()
+	{
+		return $this->alipayOrderNo;
+	}
+
+	public function setCallbackUrl($callbackUrl)
+	{
+		$this->callbackUrl = $callbackUrl;
+		$this->apiParas["callback_url"] = $callbackUrl;
+	}
+
+	public function getCallbackUrl()
+	{
+		return $this->callbackUrl;
+	}
+
+	public function setMerchantOrderNo($merchantOrderNo)
+	{
+		$this->merchantOrderNo = $merchantOrderNo;
+		$this->apiParas["merchant_order_no"] = $merchantOrderNo;
+	}
+
+	public function getMerchantOrderNo()
+	{
+		return $this->merchantOrderNo;
+	}
+
+	public function setOrderType($orderType)
+	{
+		$this->orderType = $orderType;
+		$this->apiParas["order_type"] = $orderType;
+	}
+
+	public function getOrderType()
+	{
+		return $this->orderType;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.bill.payurl.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 215 - 0
sdk/alipay/aop/request/AlipayEbppBillSearchRequest.php

@@ -0,0 +1,215 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.bill.search request
+ *
+ * @author auto create
+ * @since 1.0, 2016-09-20 14:23:46
+ */
+class AlipayEbppBillSearchRequest
+{
+	/** 
+	 * 账单流水
+	 **/
+	private $billKey;
+	
+	/** 
+	 * 出账机构
+	 **/
+	private $chargeInst;
+	
+	/** 
+	 * 销账机构
+	 **/
+	private $chargeoffInst;
+	
+	/** 
+	 * 销账机构给出账机构分配的id
+	 **/
+	private $companyId;
+	
+	/** 
+	 * 必须以key value形式定义,转为json为格式:{"key1":"value1","key2":"value2","key3":"value3","key4":"value4"}
+ 后端会直接转换为MAP对象,转换异常会报参数格式错误
+	 **/
+	private $extend;
+	
+	/** 
+	 * 业务类型
+	 **/
+	private $orderType;
+	
+	/** 
+	 * 子业务类型
+	 **/
+	private $subOrderType;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBillKey($billKey)
+	{
+		$this->billKey = $billKey;
+		$this->apiParas["bill_key"] = $billKey;
+	}
+
+	public function getBillKey()
+	{
+		return $this->billKey;
+	}
+
+	public function setChargeInst($chargeInst)
+	{
+		$this->chargeInst = $chargeInst;
+		$this->apiParas["charge_inst"] = $chargeInst;
+	}
+
+	public function getChargeInst()
+	{
+		return $this->chargeInst;
+	}
+
+	public function setChargeoffInst($chargeoffInst)
+	{
+		$this->chargeoffInst = $chargeoffInst;
+		$this->apiParas["chargeoff_inst"] = $chargeoffInst;
+	}
+
+	public function getChargeoffInst()
+	{
+		return $this->chargeoffInst;
+	}
+
+	public function setCompanyId($companyId)
+	{
+		$this->companyId = $companyId;
+		$this->apiParas["company_id"] = $companyId;
+	}
+
+	public function getCompanyId()
+	{
+		return $this->companyId;
+	}
+
+	public function setExtend($extend)
+	{
+		$this->extend = $extend;
+		$this->apiParas["extend"] = $extend;
+	}
+
+	public function getExtend()
+	{
+		return $this->extend;
+	}
+
+	public function setOrderType($orderType)
+	{
+		$this->orderType = $orderType;
+		$this->apiParas["order_type"] = $orderType;
+	}
+
+	public function getOrderType()
+	{
+		return $this->orderType;
+	}
+
+	public function setSubOrderType($subOrderType)
+	{
+		$this->subOrderType = $subOrderType;
+		$this->apiParas["sub_order_type"] = $subOrderType;
+	}
+
+	public function getSubOrderType()
+	{
+		return $this->subOrderType;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.bill.search";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 103 - 0
sdk/alipay/aop/request/AlipayEbppMerchantConfigGetRequest.php

@@ -0,0 +1,103 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.merchant.config.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-31 11:11:13
+ */
+class AlipayEbppMerchantConfigGetRequest
+{
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.merchant.config.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 134 - 0
sdk/alipay/aop/request/AlipayEbppPdeductBillPayStatusRequest.php

@@ -0,0 +1,134 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.pdeduct.bill.pay.status request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-16 13:55:02
+ */
+class AlipayEbppPdeductBillPayStatusRequest
+{
+	/** 
+	 * 支付宝用户ID
+	 **/
+	private $agreementId;
+	
+	/** 
+	 * 商户代扣业务流水
+	 **/
+	private $outOrderNo;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAgreementId($agreementId)
+	{
+		$this->agreementId = $agreementId;
+		$this->apiParas["agreement_id"] = $agreementId;
+	}
+
+	public function getAgreementId()
+	{
+		return $this->agreementId;
+	}
+
+	public function setOutOrderNo($outOrderNo)
+	{
+		$this->outOrderNo = $outOrderNo;
+		$this->apiParas["out_order_no"] = $outOrderNo;
+	}
+
+	public function getOutOrderNo()
+	{
+		return $this->outOrderNo;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.pdeduct.bill.pay.status";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 297 - 0
sdk/alipay/aop/request/AlipayEbppPdeductPayRequest.php

@@ -0,0 +1,297 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.pdeduct.pay request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-17 11:02:59
+ */
+class AlipayEbppPdeductPayRequest
+{
+	/** 
+	 * 渠道码,如用户通过机构通过服务窗进来签约则是PUBLICFORM,此值可随意传,只要不空就行
+	 **/
+	private $agentChannel;
+	
+	/** 
+	 * 二级渠道码,预留字段
+	 **/
+	private $agentCode;
+	
+	/** 
+	 * 支付宝代扣协议Id
+	 **/
+	private $agreementId;
+	
+	/** 
+	 * 账期
+	 **/
+	private $billDate;
+	
+	/** 
+	 * 户号,缴费单位用于标识每一户的唯一性的
+	 **/
+	private $billKey;
+	
+	/** 
+	 * 扩展参数。必须以key value形式定义,
+转为json为格式:{"key1":"value1","key2":"value2",
+"key3":"value3","key4":"value4"}
+ 后端会直接转换为MAP对象,转换异常会报参数格式错误
+	 **/
+	private $extendField;
+	
+	/** 
+	 * 滞纳金
+	 **/
+	private $fineAmount;
+	
+	/** 
+	 * 备注信息
+	 **/
+	private $memo;
+	
+	/** 
+	 * 商户外部业务流水号
+	 **/
+	private $outOrderNo;
+	
+	/** 
+	 * 扣款金额,支付总金额,包含滞纳金
+	 **/
+	private $payAmount;
+	
+	/** 
+	 * 商户PartnerId
+	 **/
+	private $pid;
+	
+	/** 
+	 * 用户ID
+	 **/
+	private $userId;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAgentChannel($agentChannel)
+	{
+		$this->agentChannel = $agentChannel;
+		$this->apiParas["agent_channel"] = $agentChannel;
+	}
+
+	public function getAgentChannel()
+	{
+		return $this->agentChannel;
+	}
+
+	public function setAgentCode($agentCode)
+	{
+		$this->agentCode = $agentCode;
+		$this->apiParas["agent_code"] = $agentCode;
+	}
+
+	public function getAgentCode()
+	{
+		return $this->agentCode;
+	}
+
+	public function setAgreementId($agreementId)
+	{
+		$this->agreementId = $agreementId;
+		$this->apiParas["agreement_id"] = $agreementId;
+	}
+
+	public function getAgreementId()
+	{
+		return $this->agreementId;
+	}
+
+	public function setBillDate($billDate)
+	{
+		$this->billDate = $billDate;
+		$this->apiParas["bill_date"] = $billDate;
+	}
+
+	public function getBillDate()
+	{
+		return $this->billDate;
+	}
+
+	public function setBillKey($billKey)
+	{
+		$this->billKey = $billKey;
+		$this->apiParas["bill_key"] = $billKey;
+	}
+
+	public function getBillKey()
+	{
+		return $this->billKey;
+	}
+
+	public function setExtendField($extendField)
+	{
+		$this->extendField = $extendField;
+		$this->apiParas["extend_field"] = $extendField;
+	}
+
+	public function getExtendField()
+	{
+		return $this->extendField;
+	}
+
+	public function setFineAmount($fineAmount)
+	{
+		$this->fineAmount = $fineAmount;
+		$this->apiParas["fine_amount"] = $fineAmount;
+	}
+
+	public function getFineAmount()
+	{
+		return $this->fineAmount;
+	}
+
+	public function setMemo($memo)
+	{
+		$this->memo = $memo;
+		$this->apiParas["memo"] = $memo;
+	}
+
+	public function getMemo()
+	{
+		return $this->memo;
+	}
+
+	public function setOutOrderNo($outOrderNo)
+	{
+		$this->outOrderNo = $outOrderNo;
+		$this->apiParas["out_order_no"] = $outOrderNo;
+	}
+
+	public function getOutOrderNo()
+	{
+		return $this->outOrderNo;
+	}
+
+	public function setPayAmount($payAmount)
+	{
+		$this->payAmount = $payAmount;
+		$this->apiParas["pay_amount"] = $payAmount;
+	}
+
+	public function getPayAmount()
+	{
+		return $this->payAmount;
+	}
+
+	public function setPid($pid)
+	{
+		$this->pid = $pid;
+		$this->apiParas["pid"] = $pid;
+	}
+
+	public function getPid()
+	{
+		return $this->pid;
+	}
+
+	public function setUserId($userId)
+	{
+		$this->userId = $userId;
+		$this->apiParas["user_id"] = $userId;
+	}
+
+	public function getUserId()
+	{
+		return $this->userId;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.pdeduct.pay";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 372 - 0
sdk/alipay/aop/request/AlipayEbppPdeductSignAddRequest.php

@@ -0,0 +1,372 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.pdeduct.sign.add request
+ *
+ * @author auto create
+ * @since 1.0, 2016-10-13 21:05:09
+ */
+class AlipayEbppPdeductSignAddRequest
+{
+	/** 
+	 * 机构签约代扣来源渠道
+PUBLICPLATFORM:服务窗
+	 **/
+	private $agentChannel;
+	
+	/** 
+	 * 从服务窗发起则为publicId的值
+	 **/
+	private $agentCode;
+	
+	/** 
+	 * 户号,机构针对于每户的水、电都会有唯一的标识户号
+	 **/
+	private $billKey;
+	
+	/** 
+	 * 业务类型。
+JF:缴水、电、燃气、固话宽带、有线电视、交通罚款费用
+WUYE:缴物业费
+HK:信用卡还款
+TX:手机充值
+	 **/
+	private $bizType;
+	
+	/** 
+	 * 支付宝缴费系统中的出账机构ID
+	 **/
+	private $chargeInst;
+	
+	/** 
+	 * 签约类型可为空
+	 **/
+	private $deductType;
+	
+	/** 
+	 * 扩展字段
+	 **/
+	private $extendField;
+	
+	/** 
+	 * 通知方式设置,可为空
+	 **/
+	private $notifyConfig;
+	
+	/** 
+	 * 外部产生的协议ID
+	 **/
+	private $outAgreementId;
+	
+	/** 
+	 * 户名,户主真实姓名
+	 **/
+	private $ownerName;
+	
+	/** 
+	 * 支付工具设置,目前可为空
+	 **/
+	private $payConfig;
+	
+	/** 
+	 * 用户签约时,跳转到支付宝独立密码校验页面,校验成功后会将token和对应的用户ID缓存下来,然后跳回到机构页面生成token带回给机构,机构签约时必须传入token
+	 **/
+	private $payPasswordToken;
+	
+	/** 
+	 * 商户ID
+	 **/
+	private $pid;
+	
+	/** 
+	 * 签约到期时间。空表示无限期,一期固定传空。
+	 **/
+	private $signExpireDate;
+	
+	/** 
+	 * 业务子类型。
+WATER:缴水费
+ELECTRIC:缴电费
+GAS:缴燃气费
+COMMUN:缴固话宽带
+CATV:缴有线电视费
+TRAFFIC:缴交通罚款
+WUYE:缴物业费
+HK:信用卡还款
+CZ:手机充值
+	 **/
+	private $subBizType;
+	
+	/** 
+	 * 用户ID
+	 **/
+	private $userId;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAgentChannel($agentChannel)
+	{
+		$this->agentChannel = $agentChannel;
+		$this->apiParas["agent_channel"] = $agentChannel;
+	}
+
+	public function getAgentChannel()
+	{
+		return $this->agentChannel;
+	}
+
+	public function setAgentCode($agentCode)
+	{
+		$this->agentCode = $agentCode;
+		$this->apiParas["agent_code"] = $agentCode;
+	}
+
+	public function getAgentCode()
+	{
+		return $this->agentCode;
+	}
+
+	public function setBillKey($billKey)
+	{
+		$this->billKey = $billKey;
+		$this->apiParas["bill_key"] = $billKey;
+	}
+
+	public function getBillKey()
+	{
+		return $this->billKey;
+	}
+
+	public function setBizType($bizType)
+	{
+		$this->bizType = $bizType;
+		$this->apiParas["biz_type"] = $bizType;
+	}
+
+	public function getBizType()
+	{
+		return $this->bizType;
+	}
+
+	public function setChargeInst($chargeInst)
+	{
+		$this->chargeInst = $chargeInst;
+		$this->apiParas["charge_inst"] = $chargeInst;
+	}
+
+	public function getChargeInst()
+	{
+		return $this->chargeInst;
+	}
+
+	public function setDeductType($deductType)
+	{
+		$this->deductType = $deductType;
+		$this->apiParas["deduct_type"] = $deductType;
+	}
+
+	public function getDeductType()
+	{
+		return $this->deductType;
+	}
+
+	public function setExtendField($extendField)
+	{
+		$this->extendField = $extendField;
+		$this->apiParas["extend_field"] = $extendField;
+	}
+
+	public function getExtendField()
+	{
+		return $this->extendField;
+	}
+
+	public function setNotifyConfig($notifyConfig)
+	{
+		$this->notifyConfig = $notifyConfig;
+		$this->apiParas["notify_config"] = $notifyConfig;
+	}
+
+	public function getNotifyConfig()
+	{
+		return $this->notifyConfig;
+	}
+
+	public function setOutAgreementId($outAgreementId)
+	{
+		$this->outAgreementId = $outAgreementId;
+		$this->apiParas["out_agreement_id"] = $outAgreementId;
+	}
+
+	public function getOutAgreementId()
+	{
+		return $this->outAgreementId;
+	}
+
+	public function setOwnerName($ownerName)
+	{
+		$this->ownerName = $ownerName;
+		$this->apiParas["owner_name"] = $ownerName;
+	}
+
+	public function getOwnerName()
+	{
+		return $this->ownerName;
+	}
+
+	public function setPayConfig($payConfig)
+	{
+		$this->payConfig = $payConfig;
+		$this->apiParas["pay_config"] = $payConfig;
+	}
+
+	public function getPayConfig()
+	{
+		return $this->payConfig;
+	}
+
+	public function setPayPasswordToken($payPasswordToken)
+	{
+		$this->payPasswordToken = $payPasswordToken;
+		$this->apiParas["pay_password_token"] = $payPasswordToken;
+	}
+
+	public function getPayPasswordToken()
+	{
+		return $this->payPasswordToken;
+	}
+
+	public function setPid($pid)
+	{
+		$this->pid = $pid;
+		$this->apiParas["pid"] = $pid;
+	}
+
+	public function getPid()
+	{
+		return $this->pid;
+	}
+
+	public function setSignExpireDate($signExpireDate)
+	{
+		$this->signExpireDate = $signExpireDate;
+		$this->apiParas["sign_expire_date"] = $signExpireDate;
+	}
+
+	public function getSignExpireDate()
+	{
+		return $this->signExpireDate;
+	}
+
+	public function setSubBizType($subBizType)
+	{
+		$this->subBizType = $subBizType;
+		$this->apiParas["sub_biz_type"] = $subBizType;
+	}
+
+	public function getSubBizType()
+	{
+		return $this->subBizType;
+	}
+
+	public function setUserId($userId)
+	{
+		$this->userId = $userId;
+		$this->apiParas["user_id"] = $userId;
+	}
+
+	public function getUserId()
+	{
+		return $this->userId;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.pdeduct.sign.add";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 182 - 0
sdk/alipay/aop/request/AlipayEbppPdeductSignCancelRequest.php

@@ -0,0 +1,182 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.pdeduct.sign.cancel request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-16 13:26:07
+ */
+class AlipayEbppPdeductSignCancelRequest
+{
+	/** 
+	 * 此值只是供代扣中心做最后的渠道统计用,并不做值是什么的强校验,只要不为空就可以
+	 **/
+	private $agentChannel;
+	
+	/** 
+	 * 标识发起方的ID,从服务窗发起则为appId的值,appId即开放平台分配给接入ISV的id,此处也可以随便真其它值,只要能标识唯一即可
+	 **/
+	private $agentCode;
+	
+	/** 
+	 * 支付宝代扣协议ID
+	 **/
+	private $agreementId;
+	
+	/** 
+	 * 需要用户首先处于登陆态,然后访问https://ebppprod.alipay.com/deduct/enterMobileicPayPassword.htm?cb=自己指定的回跳连接地址,访问页面后会进到独立密码校验页,用户输入密码校验成功后,会生成token回调到指定的回跳地址,如果设置cb=www.baidu.com则最后回调的内容是www.baidu.com?token=312314ADFDSFAS,然后签约时直接取得地址后token的值即可
+	 **/
+	private $payPasswordToken;
+	
+	/** 
+	 * 用户ID
+	 **/
+	private $userId;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAgentChannel($agentChannel)
+	{
+		$this->agentChannel = $agentChannel;
+		$this->apiParas["agent_channel"] = $agentChannel;
+	}
+
+	public function getAgentChannel()
+	{
+		return $this->agentChannel;
+	}
+
+	public function setAgentCode($agentCode)
+	{
+		$this->agentCode = $agentCode;
+		$this->apiParas["agent_code"] = $agentCode;
+	}
+
+	public function getAgentCode()
+	{
+		return $this->agentCode;
+	}
+
+	public function setAgreementId($agreementId)
+	{
+		$this->agreementId = $agreementId;
+		$this->apiParas["agreement_id"] = $agreementId;
+	}
+
+	public function getAgreementId()
+	{
+		return $this->agreementId;
+	}
+
+	public function setPayPasswordToken($payPasswordToken)
+	{
+		$this->payPasswordToken = $payPasswordToken;
+		$this->apiParas["pay_password_token"] = $payPasswordToken;
+	}
+
+	public function getPayPasswordToken()
+	{
+		return $this->payPasswordToken;
+	}
+
+	public function setUserId($userId)
+	{
+		$this->userId = $userId;
+		$this->apiParas["user_id"] = $userId;
+	}
+
+	public function getUserId()
+	{
+		return $this->userId;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.pdeduct.sign.cancel";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEbppPdeductSignQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.pdeduct.sign.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-30 14:30:52
+ */
+class AlipayEbppPdeductSignQueryRequest
+{
+	/** 
+	 * 直连代扣协议查询接口
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.pdeduct.sign.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEbppPdeductSignValidateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.ebpp.pdeduct.sign.validate request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-30 14:31:02
+ */
+class AlipayEbppPdeductSignValidateRequest
+{
+	/** 
+	 * 缴费直连代扣签约前置校验
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ebpp.pdeduct.sign.validate";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 182 - 0
sdk/alipay/aop/request/AlipayEcapiprodCreditGetRequest.php

@@ -0,0 +1,182 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.credit.get request
+ *
+ * @author auto create
+ * @since 1.0, 2015-04-02 16:44:25
+ */
+class AlipayEcapiprodCreditGetRequest
+{
+	/** 
+	 * 授信编号
+	 **/
+	private $creditNo;
+	
+	/** 
+	 * 身份证号码
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 客户的姓名
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 每一个对接融资平台的系统提供商都有一个机构号
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 融资平台分配给小贷公司的机构编码
+	 **/
+	private $orgCode;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setCreditNo($creditNo)
+	{
+		$this->creditNo = $creditNo;
+		$this->apiParas["credit_no"] = $creditNo;
+	}
+
+	public function getCreditNo()
+	{
+		return $this->creditNo;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.credit.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 246 - 0
sdk/alipay/aop/request/AlipayEcapiprodDataPutRequest.php

@@ -0,0 +1,246 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.data.put request
+ *
+ * @author auto create
+ * @since 1.0, 2015-04-02 16:45:23
+ */
+class AlipayEcapiprodDataPutRequest
+{
+	/** 
+	 * 数据类型
+	 **/
+	private $category;
+	
+	/** 
+	 * 数据字符编码,默认UTF-8
+	 **/
+	private $charSet;
+	
+	/** 
+	 * 数据采集平台生成的采集任务编号
+	 **/
+	private $collectingTaskId;
+	
+	/** 
+	 * 身份证,工商注册号等
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 姓名或公司名等,name和code不能同时为空
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 人或公司等
+	 **/
+	private $entityType;
+	
+	/** 
+	 * 渠道商
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 数据主体,以json格式传输的数据
+	 **/
+	private $jsonData;
+	
+	/** 
+	 * 数据合作方
+	 **/
+	private $orgCode;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setCategory($category)
+	{
+		$this->category = $category;
+		$this->apiParas["category"] = $category;
+	}
+
+	public function getCategory()
+	{
+		return $this->category;
+	}
+
+	public function setCharSet($charSet)
+	{
+		$this->charSet = $charSet;
+		$this->apiParas["char_set"] = $charSet;
+	}
+
+	public function getCharSet()
+	{
+		return $this->charSet;
+	}
+
+	public function setCollectingTaskId($collectingTaskId)
+	{
+		$this->collectingTaskId = $collectingTaskId;
+		$this->apiParas["collecting_task_id"] = $collectingTaskId;
+	}
+
+	public function getCollectingTaskId()
+	{
+		return $this->collectingTaskId;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setEntityType($entityType)
+	{
+		$this->entityType = $entityType;
+		$this->apiParas["entity_type"] = $entityType;
+	}
+
+	public function getEntityType()
+	{
+		return $this->entityType;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setJsonData($jsonData)
+	{
+		$this->jsonData = $jsonData;
+		$this->apiParas["json_data"] = $jsonData;
+	}
+
+	public function getJsonData()
+	{
+		return $this->jsonData;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.data.put";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 182 - 0
sdk/alipay/aop/request/AlipayEcapiprodDrawndnContractGetRequest.php

@@ -0,0 +1,182 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.drawndn.contract.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-29 11:34:32
+ */
+class AlipayEcapiprodDrawndnContractGetRequest
+{
+	/** 
+	 * 支用编号
+	 **/
+	private $drawndnNo;
+	
+	/** 
+	 * 客户身份证号码,为18位,最后X必须为大写
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 客户姓名
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 融资平台分配给ISV的编码
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 融资平台分配给小贷公司的机构编码
+	 **/
+	private $orgCode;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setDrawndnNo($drawndnNo)
+	{
+		$this->drawndnNo = $drawndnNo;
+		$this->apiParas["drawndn_no"] = $drawndnNo;
+	}
+
+	public function getDrawndnNo()
+	{
+		return $this->drawndnNo;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.drawndn.contract.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 182 - 0
sdk/alipay/aop/request/AlipayEcapiprodDrawndnDrawndnlistQueryRequest.php

@@ -0,0 +1,182 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.drawndn.drawndnlist.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-29 11:34:45
+ */
+class AlipayEcapiprodDrawndnDrawndnlistQueryRequest
+{
+	/** 
+	 * 授信编号
+	 **/
+	private $creditNo;
+	
+	/** 
+	 * 身份证号码
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 客户的姓名
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 融资平台分配给ISV的编码
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 融资平台分配给小贷公司的机构编码
+	 **/
+	private $orgCode;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setCreditNo($creditNo)
+	{
+		$this->creditNo = $creditNo;
+		$this->apiParas["credit_no"] = $creditNo;
+	}
+
+	public function getCreditNo()
+	{
+		return $this->creditNo;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.drawndn.drawndnlist.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 214 - 0
sdk/alipay/aop/request/AlipayEcapiprodDrawndnFeerecordQueryRequest.php

@@ -0,0 +1,214 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.drawndn.feerecord.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-29 11:34:27
+ */
+class AlipayEcapiprodDrawndnFeerecordQueryRequest
+{
+	/** 
+	 * 支用编号
+	 **/
+	private $drawndnNo;
+	
+	/** 
+	 * 费用还款记录的终止时间,终止时间与起始时间的范围不能超过31天
+	 **/
+	private $end;
+	
+	/** 
+	 * 客户身份证号码,为18位,最后X必须为大写
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 客户姓名
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 融资平台分配给ISV的编码
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 融资平台分配给小贷公司的机构编码
+	 **/
+	private $orgCode;
+	
+	/** 
+	 * 费用还款记录的起始时间(距离当前时间不能大于183天,只能在【0-183】之间)
+	 **/
+	private $start;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setDrawndnNo($drawndnNo)
+	{
+		$this->drawndnNo = $drawndnNo;
+		$this->apiParas["drawndn_no"] = $drawndnNo;
+	}
+
+	public function getDrawndnNo()
+	{
+		return $this->drawndnNo;
+	}
+
+	public function setEnd($end)
+	{
+		$this->end = $end;
+		$this->apiParas["end"] = $end;
+	}
+
+	public function getEnd()
+	{
+		return $this->end;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function setStart($start)
+	{
+		$this->start = $start;
+		$this->apiParas["start"] = $start;
+	}
+
+	public function getStart()
+	{
+		return $this->start;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.drawndn.feerecord.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 214 - 0
sdk/alipay/aop/request/AlipayEcapiprodDrawndnLendingrecordQueryRequest.php

@@ -0,0 +1,214 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.drawndn.lendingrecord.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-29 11:34:36
+ */
+class AlipayEcapiprodDrawndnLendingrecordQueryRequest
+{
+	/** 
+	 * 支用编号
+	 **/
+	private $drawndnNo;
+	
+	/** 
+	 * 还款记录的终止时间,终止时间与起始时间的范围不能超过31天
+	 **/
+	private $end;
+	
+	/** 
+	 * 身份证号码
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 客户的姓名
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 融资平台分配给ISV的编码
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 融资平台分配给小贷公司的机构编码
+	 **/
+	private $orgCode;
+	
+	/** 
+	 * 还款记录的起始时间(距离当前时间不能大于183天,只能在【0-183】之间)
+	 **/
+	private $start;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setDrawndnNo($drawndnNo)
+	{
+		$this->drawndnNo = $drawndnNo;
+		$this->apiParas["drawndn_no"] = $drawndnNo;
+	}
+
+	public function getDrawndnNo()
+	{
+		return $this->drawndnNo;
+	}
+
+	public function setEnd($end)
+	{
+		$this->end = $end;
+		$this->apiParas["end"] = $end;
+	}
+
+	public function getEnd()
+	{
+		return $this->end;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function setStart($start)
+	{
+		$this->start = $start;
+		$this->apiParas["start"] = $start;
+	}
+
+	public function getStart()
+	{
+		return $this->start;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.drawndn.lendingrecord.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 182 - 0
sdk/alipay/aop/request/AlipayEcapiprodDrawndnPaymentscheduleGetRequest.php

@@ -0,0 +1,182 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.drawndn.paymentschedule.get request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-29 11:34:20
+ */
+class AlipayEcapiprodDrawndnPaymentscheduleGetRequest
+{
+	/** 
+	 * 支用编号
+	 **/
+	private $drawndnNo;
+	
+	/** 
+	 * 身份证
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 客户姓名
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 融资平台分配给ISV的编码
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 融资平台分配给小贷公司的机构编码
+	 **/
+	private $orgCode;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setDrawndnNo($drawndnNo)
+	{
+		$this->drawndnNo = $drawndnNo;
+		$this->apiParas["drawndn_no"] = $drawndnNo;
+	}
+
+	public function getDrawndnNo()
+	{
+		return $this->drawndnNo;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.drawndn.paymentschedule.get";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 214 - 0
sdk/alipay/aop/request/AlipayEcapiprodDrawndnRepaymentrecordQueryRequest.php

@@ -0,0 +1,214 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecapiprod.drawndn.repaymentrecord.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-03-29 11:34:40
+ */
+class AlipayEcapiprodDrawndnRepaymentrecordQueryRequest
+{
+	/** 
+	 * 支用编号
+	 **/
+	private $drawndnNo;
+	
+	/** 
+	 * 还款记录的终止时间,终止时间与起始时间的范围不能超过31天
+	 **/
+	private $end;
+	
+	/** 
+	 * 客户身份证号码,为18位,最后X必须为大写
+	 **/
+	private $entityCode;
+	
+	/** 
+	 * 客户的姓名
+	 **/
+	private $entityName;
+	
+	/** 
+	 * 融资平台分配给ISV的编码
+	 **/
+	private $isvCode;
+	
+	/** 
+	 * 融资平台分配给小贷公司的机构编码
+	 **/
+	private $orgCode;
+	
+	/** 
+	 * 还款记录的起始时间(距离当前时间不能大于183天,只能在【0-183】之间)
+	 **/
+	private $start;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setDrawndnNo($drawndnNo)
+	{
+		$this->drawndnNo = $drawndnNo;
+		$this->apiParas["drawndn_no"] = $drawndnNo;
+	}
+
+	public function getDrawndnNo()
+	{
+		return $this->drawndnNo;
+	}
+
+	public function setEnd($end)
+	{
+		$this->end = $end;
+		$this->apiParas["end"] = $end;
+	}
+
+	public function getEnd()
+	{
+		return $this->end;
+	}
+
+	public function setEntityCode($entityCode)
+	{
+		$this->entityCode = $entityCode;
+		$this->apiParas["entity_code"] = $entityCode;
+	}
+
+	public function getEntityCode()
+	{
+		return $this->entityCode;
+	}
+
+	public function setEntityName($entityName)
+	{
+		$this->entityName = $entityName;
+		$this->apiParas["entity_name"] = $entityName;
+	}
+
+	public function getEntityName()
+	{
+		return $this->entityName;
+	}
+
+	public function setIsvCode($isvCode)
+	{
+		$this->isvCode = $isvCode;
+		$this->apiParas["isv_code"] = $isvCode;
+	}
+
+	public function getIsvCode()
+	{
+		return $this->isvCode;
+	}
+
+	public function setOrgCode($orgCode)
+	{
+		$this->orgCode = $orgCode;
+		$this->apiParas["org_code"] = $orgCode;
+	}
+
+	public function getOrgCode()
+	{
+		return $this->orgCode;
+	}
+
+	public function setStart($start)
+	{
+		$this->start = $start;
+		$this->apiParas["start"] = $start;
+	}
+
+	public function getStart()
+	{
+		return $this->start;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecapiprod.drawndn.repaymentrecord.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 198 - 0
sdk/alipay/aop/request/AlipayEcardEduPublicBindRequest.php

@@ -0,0 +1,198 @@
+<?php
+/**
+ * ALIPAY API: alipay.ecard.edu.public.bind request
+ *
+ * @author auto create
+ * @since 1.0, 2014-06-12 17:16:41
+ */
+class AlipayEcardEduPublicBindRequest
+{
+	/** 
+	 * 机构编码
+	 **/
+	private $agentCode;
+	
+	/** 
+	 * 公众账号协议Id
+	 **/
+	private $agreementId;
+	
+	/** 
+	 * 支付宝userId
+	 **/
+	private $alipayUserId;
+	
+	/** 
+	 * 一卡通姓名
+	 **/
+	private $cardName;
+	
+	/** 
+	 * 一卡通卡号
+	 **/
+	private $cardNo;
+	
+	/** 
+	 * 公众账号id
+	 **/
+	private $publicId;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setAgentCode($agentCode)
+	{
+		$this->agentCode = $agentCode;
+		$this->apiParas["agent_code"] = $agentCode;
+	}
+
+	public function getAgentCode()
+	{
+		return $this->agentCode;
+	}
+
+	public function setAgreementId($agreementId)
+	{
+		$this->agreementId = $agreementId;
+		$this->apiParas["agreement_id"] = $agreementId;
+	}
+
+	public function getAgreementId()
+	{
+		return $this->agreementId;
+	}
+
+	public function setAlipayUserId($alipayUserId)
+	{
+		$this->alipayUserId = $alipayUserId;
+		$this->apiParas["alipay_user_id"] = $alipayUserId;
+	}
+
+	public function getAlipayUserId()
+	{
+		return $this->alipayUserId;
+	}
+
+	public function setCardName($cardName)
+	{
+		$this->cardName = $cardName;
+		$this->apiParas["card_name"] = $cardName;
+	}
+
+	public function getCardName()
+	{
+		return $this->cardName;
+	}
+
+	public function setCardNo($cardNo)
+	{
+		$this->cardNo = $cardNo;
+		$this->apiParas["card_no"] = $cardNo;
+	}
+
+	public function getCardNo()
+	{
+		return $this->cardNo;
+	}
+
+	public function setPublicId($publicId)
+	{
+		$this->publicId = $publicId;
+		$this->apiParas["public_id"] = $publicId;
+	}
+
+	public function getPublicId()
+	{
+		return $this->publicId;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.ecard.edu.public.bind";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeBillBatchUploadRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.bill.batch.upload request
+ *
+ * @author auto create
+ * @since 1.0, 2016-12-07 22:15:17
+ */
+class AlipayEcoCplifeBillBatchUploadRequest
+{
+	/** 
+	 * 物业费账单数据批量上传
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.bill.batch.upload";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeBillSyncRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.bill.sync request
+ *
+ * @author auto create
+ * @since 1.0, 2016-08-11 11:51:47
+ */
+class AlipayEcoCplifeBillSyncRequest
+{
+	/** 
+	 * 物业费账单数据同步
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.bill.sync";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeNoticeDeleteRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.notice.delete request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-24 16:14:49
+ */
+class AlipayEcoCplifeNoticeDeleteRequest
+{
+	/** 
+	 * 删除物业社区通知通告
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.notice.delete";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeNoticePublishRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.notice.publish request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-24 16:14:39
+ */
+class AlipayEcoCplifeNoticePublishRequest
+{
+	/** 
+	 * 发布物业通知公告
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.notice.publish";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeRepairStatusUpdateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.repair.status.update request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-14 19:53:30
+ */
+class AlipayEcoCplifeRepairStatusUpdateRequest
+{
+	/** 
+	 * 社区物业报事报修单状态更新
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.repair.status.update";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeResidentinfoDeleteRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.residentinfo.delete request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-24 16:14:56
+ */
+class AlipayEcoCplifeResidentinfoDeleteRequest
+{
+	/** 
+	 * 删除物业小区住户信息
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.residentinfo.delete";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeResidentinfoUploadRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.residentinfo.upload request
+ *
+ * @author auto create
+ * @since 1.0, 2016-12-07 22:14:29
+ */
+class AlipayEcoCplifeResidentinfoUploadRequest
+{
+	/** 
+	 * 物业小区业主信息上传
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.residentinfo.upload";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeRoominfoDeleteRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.roominfo.delete request
+ *
+ * @author auto create
+ * @since 1.0, 2016-12-12 20:08:53
+ */
+class AlipayEcoCplifeRoominfoDeleteRequest
+{
+	/** 
+	 * 删除物业小区房屋信息
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.roominfo.delete";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeRoominfoUploadRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.roominfo.upload request
+ *
+ * @author auto create
+ * @since 1.0, 2016-12-07 22:12:54
+ */
+class AlipayEcoCplifeRoominfoUploadRequest
+{
+	/** 
+	 * 上传物业小区内部房屋信息.
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.roominfo.upload";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeRooominfoQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.rooominfo.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-11-18 16:08:41
+ */
+class AlipayEcoCplifeRooominfoQueryRequest
+{
+	/** 
+	 * 查询小区房屋信息列表
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.rooominfo.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoCplifeUseridentityStatusUpdateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.cplife.useridentity.status.update request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-14 19:53:15
+ */
+class AlipayEcoCplifeUseridentityStatusUpdateRequest
+{
+	/** 
+	 * 社区物业业主鉴权状态更新
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.cplife.useridentity.status.update";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarCarlibInfoPushRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.carlib.info.push request
+ *
+ * @author auto create
+ * @since 1.0, 2016-05-12 09:57:40
+ */
+class AlipayEcoMycarCarlibInfoPushRequest
+{
+	/** 
+	 * 同步车型库
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.carlib.info.push";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarDataExternalQueryRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.data.external.query request
+ *
+ * @author auto create
+ * @since 1.0, 2016-09-20 16:38:11
+ */
+class AlipayEcoMycarDataExternalQueryRequest
+{
+	/** 
+	 * 行业平台外部查询请求
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.data.external.query";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarDataExternalSendRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.data.external.send request
+ *
+ * @author auto create
+ * @since 1.0, 2016-05-12 10:25:11
+ */
+class AlipayEcoMycarDataExternalSendRequest
+{
+	/** 
+	 * 行业平台写请求
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.data.external.send";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarDataserviceMaintainvehicleShareRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.dataservice.maintainvehicle.share request
+ *
+ * @author auto create
+ * @since 1.0, 2016-06-24 12:33:25
+ */
+class AlipayEcoMycarDataserviceMaintainvehicleShareRequest
+{
+	/** 
+	 * 同步评论接口
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.dataservice.maintainvehicle.share";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarDataserviceViolationinfoShareRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.dataservice.violationinfo.share request
+ *
+ * @author auto create
+ * @since 1.0, 2016-05-12 09:57:29
+ */
+class AlipayEcoMycarDataserviceViolationinfoShareRequest
+{
+	/** 
+	 * ISV获取违章车辆信息
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.dataservice.violationinfo.share";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarMaintainDataUpdateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.maintain.data.update request
+ *
+ * @author auto create
+ * @since 1.0, 2016-06-14 15:11:26
+ */
+class AlipayEcoMycarMaintainDataUpdateRequest
+{
+	/** 
+	 * 保养数据变更通知
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.maintain.data.update";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarMaintainOrderCreateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.maintain.order.create request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-21 12:12:55
+ */
+class AlipayEcoMycarMaintainOrderCreateRequest
+{
+	/** 
+	 * 门店产品通知接口
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.maintain.order.create";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarMaintainOrderstatusUpdateRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.maintain.orderstatus.update request
+ *
+ * @author auto create
+ * @since 1.0, 2016-07-21 12:12:48
+ */
+class AlipayEcoMycarMaintainOrderstatusUpdateRequest
+{
+	/** 
+	 * 保养订单状态更新
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.maintain.orderstatus.update";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

+ 118 - 0
sdk/alipay/aop/request/AlipayEcoMycarOrderRefundRequest.php

@@ -0,0 +1,118 @@
+<?php
+/**
+ * ALIPAY API: alipay.eco.mycar.order.refund request
+ *
+ * @author auto create
+ * @since 1.0, 2016-06-14 15:09:24
+ */
+class AlipayEcoMycarOrderRefundRequest
+{
+	/** 
+	 * 发起退款
+	 **/
+	private $bizContent;
+
+	private $apiParas = array();
+	private $terminalType;
+	private $terminalInfo;
+	private $prodCode;
+	private $apiVersion="1.0";
+	private $notifyUrl;
+	private $returnUrl;
+    private $needEncrypt=false;
+
+	
+	public function setBizContent($bizContent)
+	{
+		$this->bizContent = $bizContent;
+		$this->apiParas["biz_content"] = $bizContent;
+	}
+
+	public function getBizContent()
+	{
+		return $this->bizContent;
+	}
+
+	public function getApiMethodName()
+	{
+		return "alipay.eco.mycar.order.refund";
+	}
+
+	public function setNotifyUrl($notifyUrl)
+	{
+		$this->notifyUrl=$notifyUrl;
+	}
+
+	public function getNotifyUrl()
+	{
+		return $this->notifyUrl;
+	}
+
+	public function setReturnUrl($returnUrl)
+	{
+		$this->returnUrl=$returnUrl;
+	}
+
+	public function getReturnUrl()
+	{
+		return $this->returnUrl;
+	}
+
+	public function getApiParas()
+	{
+		return $this->apiParas;
+	}
+
+	public function getTerminalType()
+	{
+		return $this->terminalType;
+	}
+
+	public function setTerminalType($terminalType)
+	{
+		$this->terminalType = $terminalType;
+	}
+
+	public function getTerminalInfo()
+	{
+		return $this->terminalInfo;
+	}
+
+	public function setTerminalInfo($terminalInfo)
+	{
+		$this->terminalInfo = $terminalInfo;
+	}
+
+	public function getProdCode()
+	{
+		return $this->prodCode;
+	}
+
+	public function setProdCode($prodCode)
+	{
+		$this->prodCode = $prodCode;
+	}
+
+	public function setApiVersion($apiVersion)
+	{
+		$this->apiVersion=$apiVersion;
+	}
+
+	public function getApiVersion()
+	{
+		return $this->apiVersion;
+	}
+
+  public function setNeedEncrypt($needEncrypt)
+  {
+
+     $this->needEncrypt=$needEncrypt;
+
+  }
+
+  public function getNeedEncrypt()
+  {
+    return $this->needEncrypt;
+  }
+
+}

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません