Passed
Push — v6 ( fe399c...515a76 )
by 光春
06:18
created
src/service/pinduoduo/bin/src/PopBaseHttpRequest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
 
45 45
     protected final function setUserParam(&$paramMap, $name, $param)
46 46
     {
47
-        if (!is_null($param)&&$param !== "") {
47
+        if (!is_null($param) && $param !== "") {
48 48
             if ($this->isPrimaryType($param)) {
49 49
                 $paramMap[$name] = $param;
50
-            } else {
50
+            }else {
51 51
                 $paramMap[$name] = json_encode($param);
52 52
             }
53 53
         }
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
     {
59 59
         if (is_bool($param)) {
60 60
             return true;
61
-        } else if (is_integer($param)) {
61
+        }else if (is_integer($param)) {
62 62
             return true;
63
-        } else if (is_long($param)) {
63
+        }else if (is_long($param)) {
64 64
             return true;
65
-        } else if (is_float($param)) {
65
+        }else if (is_float($param)) {
66 66
             return true;
67
-        } else if (is_double($param)) {
67
+        }else if (is_double($param)) {
68 68
             return true;
69
-        } else if (is_numeric($param)) {
69
+        }else if (is_numeric($param)) {
70 70
             return true;
71
-        } else {
71
+        }else {
72 72
             return is_string($param);
73 73
         }
74 74
     }
Please login to merge, or discard this patch.
src/service/pinduoduo/bin/src/PopHttpClient.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * SDK版本号
11 11
      */
12
-    public static $VERSION="0.0.2";
12
+    public static $VERSION = "0.0.2";
13 13
 
14 14
     /**
15 15
      * 接口超时时间
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param $clientId 开放平台分配的clientId
33 33
      * @param $clientSecret 开放平台分配的clientSecret
34 34
      */
35
-    public function  __construct($clientId, $clientSecret){
35
+    public function  __construct($clientId, $clientSecret) {
36 36
         $this->clientId = $clientId;
37 37
         $this->clientSecret = $clientSecret;
38 38
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param $access_token 表示调用接口的授权码
44 44
      * @return 接口返回信息
45 45
      */
46
-    public function syncInvoke($request, $access_token = ""){
46
+    public function syncInvoke($request, $access_token = "") {
47 47
 
48 48
         $params = $this->uniqueParams($request, $access_token);
49 49
 
@@ -61,20 +61,20 @@  discard block
 block discarded – undo
61 61
      * @param $request请求参数 $access_token 授权参数
62 62
      * @return 构造后的所有参数
63 63
      */
64
-    private function uniqueParams($request, $access_token){
64
+    private function uniqueParams($request, $access_token) {
65 65
 
66 66
         $params = $request->getParamsMap();
67 67
 
68 68
         $params['client_id'] = $this->clientId;
69 69
 
70
-        if($access_token){
70
+        if ($access_token) {
71 71
             $params['access_token'] = $access_token;
72 72
         }
73 73
 
74 74
         //把boolean转为true 和 false
75
-        foreach ($params as $key=>$val){
76
-            if(is_bool($val)){
77
-                $params[$key] = $val?"true":"false";
75
+        foreach ($params as $key=>$val) {
76
+            if (is_bool($val)) {
77
+                $params[$key] = $val ? "true" : "false";
78 78
             }
79 79
         }
80 80
 
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
      * @param $request 请求的参数
86 86
      * @return 返回md5后的sign值
87 87
      */
88
-    private function makeSign($params){
88
+    private function makeSign($params) {
89 89
 
90 90
         //签名步骤一:按字典序排序参数
91 91
         ksort($params);
92 92
         $string = $this->toUrlParams($params);
93 93
 
94 94
         //签名步骤二:在string首尾加上client_secret
95
-        $string = $this->clientSecret . $string . $this->clientSecret;
95
+        $string = $this->clientSecret.$string.$this->clientSecret;
96 96
 
97 97
         //签名步骤三:MD5加密
98 98
         $string = md5($string);
@@ -111,14 +111,14 @@  discard block
 block discarded – undo
111 111
         $buff = "";
112 112
         foreach ($params as $k => $v)
113 113
         {
114
-            if($k != "sign" && $v !== "" && !is_array($v)){
115
-                $buff .= $k . $v ;
114
+            if ($k != "sign" && $v !== "" && !is_array($v)) {
115
+                $buff .= $k.$v;
116 116
             }
117 117
         }
118 118
         return $buff;
119 119
     }
120 120
     
121
-    private function postCurl($params){
121
+    private function postCurl($params) {
122 122
         $ch = curl_init();
123 123
         $curlVersion = curl_version();
124 124
         $ua = "PopSDK/".self::$VERSION." (".PHP_OS.") PHP/".PHP_VERSION." CURL/".$curlVersion['version']." "
@@ -127,12 +127,12 @@  discard block
 block discarded – undo
127 127
         //设置超时
128 128
         curl_setopt($ch, CURLOPT_TIMEOUT, self::$SECONDS);
129 129
 
130
-        curl_setopt($ch,CURLOPT_URL, $this->apiServerUrl);
131
-        curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
132
-        curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);//严格校验
133
-        curl_setopt($ch,CURLOPT_USERAGENT, $ua);
130
+        curl_setopt($ch, CURLOPT_URL, $this->apiServerUrl);
131
+        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
132
+        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); //严格校验
133
+        curl_setopt($ch, CURLOPT_USERAGENT, $ua);
134 134
         //设置header
135
-        curl_setopt($ch, CURLOPT_HEADER,false);
135
+        curl_setopt($ch, CURLOPT_HEADER, false);
136 136
 
137 137
         //设置header
138 138
         $headers = array(
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
156 156
 
157 157
         //返回结果
158
-        if($raw_response){
158
+        if ($raw_response) {
159 159
             curl_close($ch);
160 160
 
161 161
             $response = new PopHttpResponse();
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $response->setBody($raw_response);
164 164
 
165 165
             return $response;
166
-        } else {
166
+        }else {
167 167
             $error = curl_errno($ch);
168 168
             curl_close($ch);
169 169
             throw new PopHttpException("curl出错,错误码:$error");
Please login to merge, or discard this patch.
src/service/pinduoduo/bin/src/PopHttpException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  */
7 7
 class PopHttpException extends \Exception
8 8
 {
9
-    public function errorMessage(){
9
+    public function errorMessage() {
10 10
         return $this->getMessage();
11 11
     }
12 12
 }
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddStockDepotPriorityUpdateRequest.php 1 patch
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -7,98 +7,98 @@
 block discarded – undo
7 7
 class PddStockDepotPriorityUpdateRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
10
+    {
11 11
 
12
-	}
13
-	/**
14
-	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddStockDepotPriorityUpdateRequest_PriorityListItem>, "priority_list")
15
-	*/
16
-	private $priorityList;
12
+    }
13
+    /**
14
+     * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddStockDepotPriorityUpdateRequest_PriorityListItem>, "priority_list")
15
+     */
16
+    private $priorityList;
17 17
 
18
-	protected function setUserParams(&$params)
19
-	{
20
-		$this->setUserParam($params, "priority_list", $this->priorityList);
18
+    protected function setUserParams(&$params)
19
+    {
20
+        $this->setUserParam($params, "priority_list", $this->priorityList);
21 21
 
22
-	}
22
+    }
23 23
 
24
-	public function getVersion()
25
-	{
26
-		return "V1";
27
-	}
24
+    public function getVersion()
25
+    {
26
+        return "V1";
27
+    }
28 28
 
29
-	public function getDataType()
30
-	{
31
-		return "JSON";
32
-	}
29
+    public function getDataType()
30
+    {
31
+        return "JSON";
32
+    }
33 33
 
34
-	public function getType()
35
-	{
36
-		return "pdd.stock.depot.priority.update";
37
-	}
34
+    public function getType()
35
+    {
36
+        return "pdd.stock.depot.priority.update";
37
+    }
38 38
 
39
-	public function setPriorityList($priorityList)
40
-	{
41
-		$this->priorityList = $priorityList;
42
-	}
39
+    public function setPriorityList($priorityList)
40
+    {
41
+        $this->priorityList = $priorityList;
42
+    }
43 43
 
44 44
 }
45 45
 
46 46
 class PddStockDepotPriorityUpdateRequest_PriorityListItem extends PopBaseJsonEntity
47 47
 {
48 48
 
49
-	public function __construct()
50
-	{
51
-
52
-	}
53
-
54
-	/**
55
-	* @JsonProperty(Integer, "priority")
56
-	*/
57
-	private $priority;
58
-
59
-	/**
60
-	* @JsonProperty(Integer, "district_id")
61
-	*/
62
-	private $districtId;
63
-
64
-	/**
65
-	* @JsonProperty(Integer, "city_id")
66
-	*/
67
-	private $cityId;
68
-
69
-	/**
70
-	* @JsonProperty(Integer, "province_id")
71
-	*/
72
-	private $provinceId;
73
-
74
-	/**
75
-	* @JsonProperty(Long, "depot_id")
76
-	*/
77
-	private $depotId;
78
-
79
-	public function setPriority($priority)
80
-	{
81
-		$this->priority = $priority;
82
-	}
83
-
84
-	public function setDistrictId($districtId)
85
-	{
86
-		$this->districtId = $districtId;
87
-	}
88
-
89
-	public function setCityId($cityId)
90
-	{
91
-		$this->cityId = $cityId;
92
-	}
93
-
94
-	public function setProvinceId($provinceId)
95
-	{
96
-		$this->provinceId = $provinceId;
97
-	}
98
-
99
-	public function setDepotId($depotId)
100
-	{
101
-		$this->depotId = $depotId;
102
-	}
49
+    public function __construct()
50
+    {
51
+
52
+    }
53
+
54
+    /**
55
+     * @JsonProperty(Integer, "priority")
56
+     */
57
+    private $priority;
58
+
59
+    /**
60
+     * @JsonProperty(Integer, "district_id")
61
+     */
62
+    private $districtId;
63
+
64
+    /**
65
+     * @JsonProperty(Integer, "city_id")
66
+     */
67
+    private $cityId;
68
+
69
+    /**
70
+     * @JsonProperty(Integer, "province_id")
71
+     */
72
+    private $provinceId;
73
+
74
+    /**
75
+     * @JsonProperty(Long, "depot_id")
76
+     */
77
+    private $depotId;
78
+
79
+    public function setPriority($priority)
80
+    {
81
+        $this->priority = $priority;
82
+    }
83
+
84
+    public function setDistrictId($districtId)
85
+    {
86
+        $this->districtId = $districtId;
87
+    }
88
+
89
+    public function setCityId($cityId)
90
+    {
91
+        $this->cityId = $cityId;
92
+    }
93
+
94
+    public function setProvinceId($provinceId)
95
+    {
96
+        $this->provinceId = $provinceId;
97
+    }
98
+
99
+    public function setDepotId($depotId)
100
+    {
101
+        $this->depotId = $depotId;
102
+    }
103 103
 
104 104
 }
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddLogisticsTicketProblemTypeGetRequest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,27 +7,27 @@
 block discarded – undo
7 7
 class PddLogisticsTicketProblemTypeGetRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
10
+    {
11 11
 
12
-	}
13
-	protected function setUserParams(&$params)
14
-	{
12
+    }
13
+    protected function setUserParams(&$params)
14
+    {
15 15
 
16
-	}
16
+    }
17 17
 
18
-	public function getVersion()
19
-	{
20
-		return "V1";
21
-	}
18
+    public function getVersion()
19
+    {
20
+        return "V1";
21
+    }
22 22
 
23
-	public function getDataType()
24
-	{
25
-		return "JSON";
26
-	}
23
+    public function getDataType()
24
+    {
25
+        return "JSON";
26
+    }
27 27
 
28
-	public function getType()
29
-	{
30
-		return "pdd.logistics.ticket.problem.type.get";
31
-	}
28
+    public function getType()
29
+    {
30
+        return "pdd.logistics.ticket.problem.type.get";
31
+    }
32 32
 
33 33
 }
Please login to merge, or discard this patch.
service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidQueryRequest.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -7,60 +7,60 @@
 block discarded – undo
7 7
 class PddDdkOauthGoodsPidQueryRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
10
+    {
11 11
 
12
-	}
13
-	/**
14
-	* @JsonProperty(Integer, "page")
15
-	*/
16
-	private $page;
12
+    }
13
+    /**
14
+     * @JsonProperty(Integer, "page")
15
+     */
16
+    private $page;
17 17
 
18
-	/**
19
-	* @JsonProperty(Integer, "page_size")
20
-	*/
21
-	private $pageSize;
18
+    /**
19
+     * @JsonProperty(Integer, "page_size")
20
+     */
21
+    private $pageSize;
22 22
 
23
-	/**
24
-	* @JsonProperty(List<String>, "pid_list")
25
-	*/
26
-	private $pidList;
23
+    /**
24
+     * @JsonProperty(List<String>, "pid_list")
25
+     */
26
+    private $pidList;
27 27
 
28
-	protected function setUserParams(&$params)
29
-	{
30
-		$this->setUserParam($params, "page", $this->page);
31
-		$this->setUserParam($params, "page_size", $this->pageSize);
32
-		$this->setUserParam($params, "pid_list", $this->pidList);
28
+    protected function setUserParams(&$params)
29
+    {
30
+        $this->setUserParam($params, "page", $this->page);
31
+        $this->setUserParam($params, "page_size", $this->pageSize);
32
+        $this->setUserParam($params, "pid_list", $this->pidList);
33 33
 
34
-	}
34
+    }
35 35
 
36
-	public function getVersion()
37
-	{
38
-		return "V1";
39
-	}
36
+    public function getVersion()
37
+    {
38
+        return "V1";
39
+    }
40 40
 
41
-	public function getDataType()
42
-	{
43
-		return "JSON";
44
-	}
41
+    public function getDataType()
42
+    {
43
+        return "JSON";
44
+    }
45 45
 
46
-	public function getType()
47
-	{
48
-		return "pdd.ddk.oauth.goods.pid.query";
49
-	}
46
+    public function getType()
47
+    {
48
+        return "pdd.ddk.oauth.goods.pid.query";
49
+    }
50 50
 
51
-	public function setPage($page)
52
-	{
53
-		$this->page = $page;
54
-	}
51
+    public function setPage($page)
52
+    {
53
+        $this->page = $page;
54
+    }
55 55
 
56
-	public function setPageSize($pageSize)
57
-	{
58
-		$this->pageSize = $pageSize;
59
-	}
56
+    public function setPageSize($pageSize)
57
+    {
58
+        $this->pageSize = $pageSize;
59
+    }
60 60
 
61
-	public function setPidList($pidList)
62
-	{
63
-		$this->pidList = $pidList;
64
-	}
61
+    public function setPidList($pidList)
62
+    {
63
+        $this->pidList = $pidList;
64
+    }
65 65
 
66 66
 }
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanCreateAdPlanRequest.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -7,49 +7,49 @@
 block discarded – undo
7 7
 class PddAdApiPlanQueryCanCreateAdPlanRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
11
-
12
-	}
13
-	/**
14
-	* @JsonProperty(String, "planName")
15
-	*/
16
-	private $planName;
17
-
18
-	/**
19
-	* @JsonProperty(Integer, "scenesType")
20
-	*/
21
-	private $scenesType;
22
-
23
-	protected function setUserParams(&$params)
24
-	{
25
-		$this->setUserParam($params, "planName", $this->planName);
26
-		$this->setUserParam($params, "scenesType", $this->scenesType);
27
-
28
-	}
29
-
30
-	public function getVersion()
31
-	{
32
-		return "V1";
33
-	}
34
-
35
-	public function getDataType()
36
-	{
37
-		return "JSON";
38
-	}
39
-
40
-	public function getType()
41
-	{
42
-		return "pdd.ad.api.plan.query.can.create.ad.plan";
43
-	}
44
-
45
-	public function setPlanName($planName)
46
-	{
47
-		$this->planName = $planName;
48
-	}
49
-
50
-	public function setScenesType($scenesType)
51
-	{
52
-		$this->scenesType = $scenesType;
53
-	}
10
+    {
11
+
12
+    }
13
+    /**
14
+     * @JsonProperty(String, "planName")
15
+     */
16
+    private $planName;
17
+
18
+    /**
19
+     * @JsonProperty(Integer, "scenesType")
20
+     */
21
+    private $scenesType;
22
+
23
+    protected function setUserParams(&$params)
24
+    {
25
+        $this->setUserParam($params, "planName", $this->planName);
26
+        $this->setUserParam($params, "scenesType", $this->scenesType);
27
+
28
+    }
29
+
30
+    public function getVersion()
31
+    {
32
+        return "V1";
33
+    }
34
+
35
+    public function getDataType()
36
+    {
37
+        return "JSON";
38
+    }
39
+
40
+    public function getType()
41
+    {
42
+        return "pdd.ad.api.plan.query.can.create.ad.plan";
43
+    }
44
+
45
+    public function setPlanName($planName)
46
+    {
47
+        $this->planName = $planName;
48
+    }
49
+
50
+    public function setScenesType($scenesType)
51
+    {
52
+        $this->scenesType = $scenesType;
53
+    }
54 54
 
55 55
 }
Please login to merge, or discard this patch.
pinduoduo/bin/src/Api/Request/PddLogisticsCsHistoryMessageGetRequest.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -7,38 +7,38 @@
 block discarded – undo
7 7
 class PddLogisticsCsHistoryMessageGetRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
11
-
12
-	}
13
-	/**
14
-	* @JsonProperty(String, "session_id")
15
-	*/
16
-	private $sessionId;
17
-
18
-	protected function setUserParams(&$params)
19
-	{
20
-		$this->setUserParam($params, "session_id", $this->sessionId);
21
-
22
-	}
23
-
24
-	public function getVersion()
25
-	{
26
-		return "V1";
27
-	}
28
-
29
-	public function getDataType()
30
-	{
31
-		return "JSON";
32
-	}
33
-
34
-	public function getType()
35
-	{
36
-		return "pdd.logistics.cs.history.message.get";
37
-	}
38
-
39
-	public function setSessionId($sessionId)
40
-	{
41
-		$this->sessionId = $sessionId;
42
-	}
10
+    {
11
+
12
+    }
13
+    /**
14
+     * @JsonProperty(String, "session_id")
15
+     */
16
+    private $sessionId;
17
+
18
+    protected function setUserParams(&$params)
19
+    {
20
+        $this->setUserParam($params, "session_id", $this->sessionId);
21
+
22
+    }
23
+
24
+    public function getVersion()
25
+    {
26
+        return "V1";
27
+    }
28
+
29
+    public function getDataType()
30
+    {
31
+        return "JSON";
32
+    }
33
+
34
+    public function getType()
35
+    {
36
+        return "pdd.logistics.cs.history.message.get";
37
+    }
38
+
39
+    public function setSessionId($sessionId)
40
+    {
41
+        $this->sessionId = $sessionId;
42
+    }
43 43
 
44 44
 }
Please login to merge, or discard this patch.
src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailUploadRequest.php 1 patch
Indentation   +264 added lines, -264 removed lines patch added patch discarded remove patch
@@ -7,269 +7,269 @@
 block discarded – undo
7 7
 class PddInvoiceDetailUploadRequest extends PopBaseHttpRequest
8 8
 {
9 9
     public function __construct()
10
-	{
11
-
12
-	}
13
-	/**
14
-	* @JsonProperty(Integer, "business_type")
15
-	*/
16
-	private $businessType;
17
-
18
-	/**
19
-	* @JsonProperty(Long, "invoice_amount")
20
-	*/
21
-	private $invoiceAmount;
22
-
23
-	/**
24
-	* @JsonProperty(String, "invoice_code")
25
-	*/
26
-	private $invoiceCode;
27
-
28
-	/**
29
-	* @JsonProperty(String, "invoice_file_content")
30
-	*/
31
-	private $invoiceFileContent;
32
-
33
-	/**
34
-	* @JsonProperty(Integer, "invoice_kind")
35
-	*/
36
-	private $invoiceKind;
37
-
38
-	/**
39
-	* @JsonProperty(String, "invoice_no")
40
-	*/
41
-	private $invoiceNo;
42
-
43
-	/**
44
-	* @JsonProperty(Long, "invoice_time")
45
-	*/
46
-	private $invoiceTime;
47
-
48
-	/**
49
-	* @JsonProperty(Integer, "invoice_type")
50
-	*/
51
-	private $invoiceType;
52
-
53
-	/**
54
-	* @JsonProperty(String, "memo")
55
-	*/
56
-	private $memo;
57
-
58
-	/**
59
-	* @JsonProperty(String, "order_sn")
60
-	*/
61
-	private $orderSn;
62
-
63
-	/**
64
-	* @JsonProperty(String, "original_invoice_code")
65
-	*/
66
-	private $originalInvoiceCode;
67
-
68
-	/**
69
-	* @JsonProperty(String, "original_invoice_no")
70
-	*/
71
-	private $originalInvoiceNo;
72
-
73
-	/**
74
-	* @JsonProperty(String, "payee_operator")
75
-	*/
76
-	private $payeeOperator;
77
-
78
-	/**
79
-	* @JsonProperty(String, "payer_account")
80
-	*/
81
-	private $payerAccount;
82
-
83
-	/**
84
-	* @JsonProperty(String, "payer_address")
85
-	*/
86
-	private $payerAddress;
87
-
88
-	/**
89
-	* @JsonProperty(String, "payer_bank")
90
-	*/
91
-	private $payerBank;
92
-
93
-	/**
94
-	* @JsonProperty(String, "payer_name")
95
-	*/
96
-	private $payerName;
97
-
98
-	/**
99
-	* @JsonProperty(String, "payer_phone")
100
-	*/
101
-	private $payerPhone;
102
-
103
-	/**
104
-	* @JsonProperty(String, "payer_register_no")
105
-	*/
106
-	private $payerRegisterNo;
107
-
108
-	/**
109
-	* @JsonProperty(Long, "sum_price")
110
-	*/
111
-	private $sumPrice;
112
-
113
-	/**
114
-	* @JsonProperty(Integer, "sum_tax")
115
-	*/
116
-	private $sumTax;
117
-
118
-	/**
119
-	* @JsonProperty(Integer, "tax_rate")
120
-	*/
121
-	private $taxRate;
122
-
123
-	protected function setUserParams(&$params)
124
-	{
125
-		$this->setUserParam($params, "business_type", $this->businessType);
126
-		$this->setUserParam($params, "invoice_amount", $this->invoiceAmount);
127
-		$this->setUserParam($params, "invoice_code", $this->invoiceCode);
128
-		$this->setUserParam($params, "invoice_file_content", $this->invoiceFileContent);
129
-		$this->setUserParam($params, "invoice_kind", $this->invoiceKind);
130
-		$this->setUserParam($params, "invoice_no", $this->invoiceNo);
131
-		$this->setUserParam($params, "invoice_time", $this->invoiceTime);
132
-		$this->setUserParam($params, "invoice_type", $this->invoiceType);
133
-		$this->setUserParam($params, "memo", $this->memo);
134
-		$this->setUserParam($params, "order_sn", $this->orderSn);
135
-		$this->setUserParam($params, "original_invoice_code", $this->originalInvoiceCode);
136
-		$this->setUserParam($params, "original_invoice_no", $this->originalInvoiceNo);
137
-		$this->setUserParam($params, "payee_operator", $this->payeeOperator);
138
-		$this->setUserParam($params, "payer_account", $this->payerAccount);
139
-		$this->setUserParam($params, "payer_address", $this->payerAddress);
140
-		$this->setUserParam($params, "payer_bank", $this->payerBank);
141
-		$this->setUserParam($params, "payer_name", $this->payerName);
142
-		$this->setUserParam($params, "payer_phone", $this->payerPhone);
143
-		$this->setUserParam($params, "payer_register_no", $this->payerRegisterNo);
144
-		$this->setUserParam($params, "sum_price", $this->sumPrice);
145
-		$this->setUserParam($params, "sum_tax", $this->sumTax);
146
-		$this->setUserParam($params, "tax_rate", $this->taxRate);
147
-
148
-	}
149
-
150
-	public function getVersion()
151
-	{
152
-		return "V1";
153
-	}
154
-
155
-	public function getDataType()
156
-	{
157
-		return "JSON";
158
-	}
159
-
160
-	public function getType()
161
-	{
162
-		return "pdd.invoice.detail.upload";
163
-	}
164
-
165
-	public function setBusinessType($businessType)
166
-	{
167
-		$this->businessType = $businessType;
168
-	}
169
-
170
-	public function setInvoiceAmount($invoiceAmount)
171
-	{
172
-		$this->invoiceAmount = $invoiceAmount;
173
-	}
174
-
175
-	public function setInvoiceCode($invoiceCode)
176
-	{
177
-		$this->invoiceCode = $invoiceCode;
178
-	}
179
-
180
-	public function setInvoiceFileContent($invoiceFileContent)
181
-	{
182
-		$this->invoiceFileContent = $invoiceFileContent;
183
-	}
184
-
185
-	public function setInvoiceKind($invoiceKind)
186
-	{
187
-		$this->invoiceKind = $invoiceKind;
188
-	}
189
-
190
-	public function setInvoiceNo($invoiceNo)
191
-	{
192
-		$this->invoiceNo = $invoiceNo;
193
-	}
194
-
195
-	public function setInvoiceTime($invoiceTime)
196
-	{
197
-		$this->invoiceTime = $invoiceTime;
198
-	}
199
-
200
-	public function setInvoiceType($invoiceType)
201
-	{
202
-		$this->invoiceType = $invoiceType;
203
-	}
204
-
205
-	public function setMemo($memo)
206
-	{
207
-		$this->memo = $memo;
208
-	}
209
-
210
-	public function setOrderSn($orderSn)
211
-	{
212
-		$this->orderSn = $orderSn;
213
-	}
214
-
215
-	public function setOriginalInvoiceCode($originalInvoiceCode)
216
-	{
217
-		$this->originalInvoiceCode = $originalInvoiceCode;
218
-	}
219
-
220
-	public function setOriginalInvoiceNo($originalInvoiceNo)
221
-	{
222
-		$this->originalInvoiceNo = $originalInvoiceNo;
223
-	}
224
-
225
-	public function setPayeeOperator($payeeOperator)
226
-	{
227
-		$this->payeeOperator = $payeeOperator;
228
-	}
229
-
230
-	public function setPayerAccount($payerAccount)
231
-	{
232
-		$this->payerAccount = $payerAccount;
233
-	}
234
-
235
-	public function setPayerAddress($payerAddress)
236
-	{
237
-		$this->payerAddress = $payerAddress;
238
-	}
239
-
240
-	public function setPayerBank($payerBank)
241
-	{
242
-		$this->payerBank = $payerBank;
243
-	}
244
-
245
-	public function setPayerName($payerName)
246
-	{
247
-		$this->payerName = $payerName;
248
-	}
249
-
250
-	public function setPayerPhone($payerPhone)
251
-	{
252
-		$this->payerPhone = $payerPhone;
253
-	}
254
-
255
-	public function setPayerRegisterNo($payerRegisterNo)
256
-	{
257
-		$this->payerRegisterNo = $payerRegisterNo;
258
-	}
259
-
260
-	public function setSumPrice($sumPrice)
261
-	{
262
-		$this->sumPrice = $sumPrice;
263
-	}
264
-
265
-	public function setSumTax($sumTax)
266
-	{
267
-		$this->sumTax = $sumTax;
268
-	}
269
-
270
-	public function setTaxRate($taxRate)
271
-	{
272
-		$this->taxRate = $taxRate;
273
-	}
10
+    {
11
+
12
+    }
13
+    /**
14
+     * @JsonProperty(Integer, "business_type")
15
+     */
16
+    private $businessType;
17
+
18
+    /**
19
+     * @JsonProperty(Long, "invoice_amount")
20
+     */
21
+    private $invoiceAmount;
22
+
23
+    /**
24
+     * @JsonProperty(String, "invoice_code")
25
+     */
26
+    private $invoiceCode;
27
+
28
+    /**
29
+     * @JsonProperty(String, "invoice_file_content")
30
+     */
31
+    private $invoiceFileContent;
32
+
33
+    /**
34
+     * @JsonProperty(Integer, "invoice_kind")
35
+     */
36
+    private $invoiceKind;
37
+
38
+    /**
39
+     * @JsonProperty(String, "invoice_no")
40
+     */
41
+    private $invoiceNo;
42
+
43
+    /**
44
+     * @JsonProperty(Long, "invoice_time")
45
+     */
46
+    private $invoiceTime;
47
+
48
+    /**
49
+     * @JsonProperty(Integer, "invoice_type")
50
+     */
51
+    private $invoiceType;
52
+
53
+    /**
54
+     * @JsonProperty(String, "memo")
55
+     */
56
+    private $memo;
57
+
58
+    /**
59
+     * @JsonProperty(String, "order_sn")
60
+     */
61
+    private $orderSn;
62
+
63
+    /**
64
+     * @JsonProperty(String, "original_invoice_code")
65
+     */
66
+    private $originalInvoiceCode;
67
+
68
+    /**
69
+     * @JsonProperty(String, "original_invoice_no")
70
+     */
71
+    private $originalInvoiceNo;
72
+
73
+    /**
74
+     * @JsonProperty(String, "payee_operator")
75
+     */
76
+    private $payeeOperator;
77
+
78
+    /**
79
+     * @JsonProperty(String, "payer_account")
80
+     */
81
+    private $payerAccount;
82
+
83
+    /**
84
+     * @JsonProperty(String, "payer_address")
85
+     */
86
+    private $payerAddress;
87
+
88
+    /**
89
+     * @JsonProperty(String, "payer_bank")
90
+     */
91
+    private $payerBank;
92
+
93
+    /**
94
+     * @JsonProperty(String, "payer_name")
95
+     */
96
+    private $payerName;
97
+
98
+    /**
99
+     * @JsonProperty(String, "payer_phone")
100
+     */
101
+    private $payerPhone;
102
+
103
+    /**
104
+     * @JsonProperty(String, "payer_register_no")
105
+     */
106
+    private $payerRegisterNo;
107
+
108
+    /**
109
+     * @JsonProperty(Long, "sum_price")
110
+     */
111
+    private $sumPrice;
112
+
113
+    /**
114
+     * @JsonProperty(Integer, "sum_tax")
115
+     */
116
+    private $sumTax;
117
+
118
+    /**
119
+     * @JsonProperty(Integer, "tax_rate")
120
+     */
121
+    private $taxRate;
122
+
123
+    protected function setUserParams(&$params)
124
+    {
125
+        $this->setUserParam($params, "business_type", $this->businessType);
126
+        $this->setUserParam($params, "invoice_amount", $this->invoiceAmount);
127
+        $this->setUserParam($params, "invoice_code", $this->invoiceCode);
128
+        $this->setUserParam($params, "invoice_file_content", $this->invoiceFileContent);
129
+        $this->setUserParam($params, "invoice_kind", $this->invoiceKind);
130
+        $this->setUserParam($params, "invoice_no", $this->invoiceNo);
131
+        $this->setUserParam($params, "invoice_time", $this->invoiceTime);
132
+        $this->setUserParam($params, "invoice_type", $this->invoiceType);
133
+        $this->setUserParam($params, "memo", $this->memo);
134
+        $this->setUserParam($params, "order_sn", $this->orderSn);
135
+        $this->setUserParam($params, "original_invoice_code", $this->originalInvoiceCode);
136
+        $this->setUserParam($params, "original_invoice_no", $this->originalInvoiceNo);
137
+        $this->setUserParam($params, "payee_operator", $this->payeeOperator);
138
+        $this->setUserParam($params, "payer_account", $this->payerAccount);
139
+        $this->setUserParam($params, "payer_address", $this->payerAddress);
140
+        $this->setUserParam($params, "payer_bank", $this->payerBank);
141
+        $this->setUserParam($params, "payer_name", $this->payerName);
142
+        $this->setUserParam($params, "payer_phone", $this->payerPhone);
143
+        $this->setUserParam($params, "payer_register_no", $this->payerRegisterNo);
144
+        $this->setUserParam($params, "sum_price", $this->sumPrice);
145
+        $this->setUserParam($params, "sum_tax", $this->sumTax);
146
+        $this->setUserParam($params, "tax_rate", $this->taxRate);
147
+
148
+    }
149
+
150
+    public function getVersion()
151
+    {
152
+        return "V1";
153
+    }
154
+
155
+    public function getDataType()
156
+    {
157
+        return "JSON";
158
+    }
159
+
160
+    public function getType()
161
+    {
162
+        return "pdd.invoice.detail.upload";
163
+    }
164
+
165
+    public function setBusinessType($businessType)
166
+    {
167
+        $this->businessType = $businessType;
168
+    }
169
+
170
+    public function setInvoiceAmount($invoiceAmount)
171
+    {
172
+        $this->invoiceAmount = $invoiceAmount;
173
+    }
174
+
175
+    public function setInvoiceCode($invoiceCode)
176
+    {
177
+        $this->invoiceCode = $invoiceCode;
178
+    }
179
+
180
+    public function setInvoiceFileContent($invoiceFileContent)
181
+    {
182
+        $this->invoiceFileContent = $invoiceFileContent;
183
+    }
184
+
185
+    public function setInvoiceKind($invoiceKind)
186
+    {
187
+        $this->invoiceKind = $invoiceKind;
188
+    }
189
+
190
+    public function setInvoiceNo($invoiceNo)
191
+    {
192
+        $this->invoiceNo = $invoiceNo;
193
+    }
194
+
195
+    public function setInvoiceTime($invoiceTime)
196
+    {
197
+        $this->invoiceTime = $invoiceTime;
198
+    }
199
+
200
+    public function setInvoiceType($invoiceType)
201
+    {
202
+        $this->invoiceType = $invoiceType;
203
+    }
204
+
205
+    public function setMemo($memo)
206
+    {
207
+        $this->memo = $memo;
208
+    }
209
+
210
+    public function setOrderSn($orderSn)
211
+    {
212
+        $this->orderSn = $orderSn;
213
+    }
214
+
215
+    public function setOriginalInvoiceCode($originalInvoiceCode)
216
+    {
217
+        $this->originalInvoiceCode = $originalInvoiceCode;
218
+    }
219
+
220
+    public function setOriginalInvoiceNo($originalInvoiceNo)
221
+    {
222
+        $this->originalInvoiceNo = $originalInvoiceNo;
223
+    }
224
+
225
+    public function setPayeeOperator($payeeOperator)
226
+    {
227
+        $this->payeeOperator = $payeeOperator;
228
+    }
229
+
230
+    public function setPayerAccount($payerAccount)
231
+    {
232
+        $this->payerAccount = $payerAccount;
233
+    }
234
+
235
+    public function setPayerAddress($payerAddress)
236
+    {
237
+        $this->payerAddress = $payerAddress;
238
+    }
239
+
240
+    public function setPayerBank($payerBank)
241
+    {
242
+        $this->payerBank = $payerBank;
243
+    }
244
+
245
+    public function setPayerName($payerName)
246
+    {
247
+        $this->payerName = $payerName;
248
+    }
249
+
250
+    public function setPayerPhone($payerPhone)
251
+    {
252
+        $this->payerPhone = $payerPhone;
253
+    }
254
+
255
+    public function setPayerRegisterNo($payerRegisterNo)
256
+    {
257
+        $this->payerRegisterNo = $payerRegisterNo;
258
+    }
259
+
260
+    public function setSumPrice($sumPrice)
261
+    {
262
+        $this->sumPrice = $sumPrice;
263
+    }
264
+
265
+    public function setSumTax($sumTax)
266
+    {
267
+        $this->sumTax = $sumTax;
268
+    }
269
+
270
+    public function setTaxRate($taxRate)
271
+    {
272
+        $this->taxRate = $taxRate;
273
+    }
274 274
 
275 275
 }
Please login to merge, or discard this patch.