@@ -6,7 +6,7 @@ |
||
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 |
@@ -7,98 +7,98 @@ |
||
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 | } |
@@ -7,27 +7,27 @@ |
||
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 | } |
@@ -7,60 +7,60 @@ |
||
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 | } |
@@ -7,49 +7,49 @@ |
||
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 | } |
@@ -7,38 +7,38 @@ |
||
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 | } |
@@ -7,269 +7,269 @@ |
||
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 | } |
@@ -7,115 +7,115 @@ |
||
7 | 7 | class PddGoodsCpsUnitChangeRequest extends PopBaseHttpRequest |
8 | 8 | { |
9 | 9 | public function __construct() |
10 | - { |
|
11 | - |
|
12 | - } |
|
13 | - /** |
|
14 | - * @JsonProperty(Long, "goods_id") |
|
15 | - */ |
|
16 | - private $goodsId; |
|
17 | - |
|
18 | - /** |
|
19 | - * @JsonProperty(Long, "rate") |
|
20 | - */ |
|
21 | - private $rate; |
|
22 | - |
|
23 | - /** |
|
24 | - * @JsonProperty(Long, "coupon_id") |
|
25 | - */ |
|
26 | - private $couponId; |
|
27 | - |
|
28 | - /** |
|
29 | - * @JsonProperty(String, "coupon_start_time") |
|
30 | - */ |
|
31 | - private $couponStartTime; |
|
32 | - |
|
33 | - /** |
|
34 | - * @JsonProperty(String, "coupon_end_time") |
|
35 | - */ |
|
36 | - private $couponEndTime; |
|
37 | - |
|
38 | - /** |
|
39 | - * @JsonProperty(Long, "discount") |
|
40 | - */ |
|
41 | - private $discount; |
|
42 | - |
|
43 | - /** |
|
44 | - * @JsonProperty(Long, "init_quantity") |
|
45 | - */ |
|
46 | - private $initQuantity; |
|
47 | - |
|
48 | - /** |
|
49 | - * @JsonProperty(Long, "remain_quantity") |
|
50 | - */ |
|
51 | - private $remainQuantity; |
|
52 | - |
|
53 | - protected function setUserParams(&$params) |
|
54 | - { |
|
55 | - $this->setUserParam($params, "goods_id", $this->goodsId); |
|
56 | - $this->setUserParam($params, "rate", $this->rate); |
|
57 | - $this->setUserParam($params, "coupon_id", $this->couponId); |
|
58 | - $this->setUserParam($params, "coupon_start_time", $this->couponStartTime); |
|
59 | - $this->setUserParam($params, "coupon_end_time", $this->couponEndTime); |
|
60 | - $this->setUserParam($params, "discount", $this->discount); |
|
61 | - $this->setUserParam($params, "init_quantity", $this->initQuantity); |
|
62 | - $this->setUserParam($params, "remain_quantity", $this->remainQuantity); |
|
63 | - |
|
64 | - } |
|
65 | - |
|
66 | - public function getVersion() |
|
67 | - { |
|
68 | - return "V1"; |
|
69 | - } |
|
70 | - |
|
71 | - public function getDataType() |
|
72 | - { |
|
73 | - return "JSON"; |
|
74 | - } |
|
75 | - |
|
76 | - public function getType() |
|
77 | - { |
|
78 | - return "pdd.goods.cps.unit.change"; |
|
79 | - } |
|
80 | - |
|
81 | - public function setGoodsId($goodsId) |
|
82 | - { |
|
83 | - $this->goodsId = $goodsId; |
|
84 | - } |
|
85 | - |
|
86 | - public function setRate($rate) |
|
87 | - { |
|
88 | - $this->rate = $rate; |
|
89 | - } |
|
90 | - |
|
91 | - public function setCouponId($couponId) |
|
92 | - { |
|
93 | - $this->couponId = $couponId; |
|
94 | - } |
|
95 | - |
|
96 | - public function setCouponStartTime($couponStartTime) |
|
97 | - { |
|
98 | - $this->couponStartTime = $couponStartTime; |
|
99 | - } |
|
100 | - |
|
101 | - public function setCouponEndTime($couponEndTime) |
|
102 | - { |
|
103 | - $this->couponEndTime = $couponEndTime; |
|
104 | - } |
|
105 | - |
|
106 | - public function setDiscount($discount) |
|
107 | - { |
|
108 | - $this->discount = $discount; |
|
109 | - } |
|
110 | - |
|
111 | - public function setInitQuantity($initQuantity) |
|
112 | - { |
|
113 | - $this->initQuantity = $initQuantity; |
|
114 | - } |
|
115 | - |
|
116 | - public function setRemainQuantity($remainQuantity) |
|
117 | - { |
|
118 | - $this->remainQuantity = $remainQuantity; |
|
119 | - } |
|
10 | + { |
|
11 | + |
|
12 | + } |
|
13 | + /** |
|
14 | + * @JsonProperty(Long, "goods_id") |
|
15 | + */ |
|
16 | + private $goodsId; |
|
17 | + |
|
18 | + /** |
|
19 | + * @JsonProperty(Long, "rate") |
|
20 | + */ |
|
21 | + private $rate; |
|
22 | + |
|
23 | + /** |
|
24 | + * @JsonProperty(Long, "coupon_id") |
|
25 | + */ |
|
26 | + private $couponId; |
|
27 | + |
|
28 | + /** |
|
29 | + * @JsonProperty(String, "coupon_start_time") |
|
30 | + */ |
|
31 | + private $couponStartTime; |
|
32 | + |
|
33 | + /** |
|
34 | + * @JsonProperty(String, "coupon_end_time") |
|
35 | + */ |
|
36 | + private $couponEndTime; |
|
37 | + |
|
38 | + /** |
|
39 | + * @JsonProperty(Long, "discount") |
|
40 | + */ |
|
41 | + private $discount; |
|
42 | + |
|
43 | + /** |
|
44 | + * @JsonProperty(Long, "init_quantity") |
|
45 | + */ |
|
46 | + private $initQuantity; |
|
47 | + |
|
48 | + /** |
|
49 | + * @JsonProperty(Long, "remain_quantity") |
|
50 | + */ |
|
51 | + private $remainQuantity; |
|
52 | + |
|
53 | + protected function setUserParams(&$params) |
|
54 | + { |
|
55 | + $this->setUserParam($params, "goods_id", $this->goodsId); |
|
56 | + $this->setUserParam($params, "rate", $this->rate); |
|
57 | + $this->setUserParam($params, "coupon_id", $this->couponId); |
|
58 | + $this->setUserParam($params, "coupon_start_time", $this->couponStartTime); |
|
59 | + $this->setUserParam($params, "coupon_end_time", $this->couponEndTime); |
|
60 | + $this->setUserParam($params, "discount", $this->discount); |
|
61 | + $this->setUserParam($params, "init_quantity", $this->initQuantity); |
|
62 | + $this->setUserParam($params, "remain_quantity", $this->remainQuantity); |
|
63 | + |
|
64 | + } |
|
65 | + |
|
66 | + public function getVersion() |
|
67 | + { |
|
68 | + return "V1"; |
|
69 | + } |
|
70 | + |
|
71 | + public function getDataType() |
|
72 | + { |
|
73 | + return "JSON"; |
|
74 | + } |
|
75 | + |
|
76 | + public function getType() |
|
77 | + { |
|
78 | + return "pdd.goods.cps.unit.change"; |
|
79 | + } |
|
80 | + |
|
81 | + public function setGoodsId($goodsId) |
|
82 | + { |
|
83 | + $this->goodsId = $goodsId; |
|
84 | + } |
|
85 | + |
|
86 | + public function setRate($rate) |
|
87 | + { |
|
88 | + $this->rate = $rate; |
|
89 | + } |
|
90 | + |
|
91 | + public function setCouponId($couponId) |
|
92 | + { |
|
93 | + $this->couponId = $couponId; |
|
94 | + } |
|
95 | + |
|
96 | + public function setCouponStartTime($couponStartTime) |
|
97 | + { |
|
98 | + $this->couponStartTime = $couponStartTime; |
|
99 | + } |
|
100 | + |
|
101 | + public function setCouponEndTime($couponEndTime) |
|
102 | + { |
|
103 | + $this->couponEndTime = $couponEndTime; |
|
104 | + } |
|
105 | + |
|
106 | + public function setDiscount($discount) |
|
107 | + { |
|
108 | + $this->discount = $discount; |
|
109 | + } |
|
110 | + |
|
111 | + public function setInitQuantity($initQuantity) |
|
112 | + { |
|
113 | + $this->initQuantity = $initQuantity; |
|
114 | + } |
|
115 | + |
|
116 | + public function setRemainQuantity($remainQuantity) |
|
117 | + { |
|
118 | + $this->remainQuantity = $remainQuantity; |
|
119 | + } |
|
120 | 120 | |
121 | 121 | } |
@@ -7,49 +7,49 @@ |
||
7 | 7 | class PddMedicineConsultCloseRequest extends PopBaseHttpRequest |
8 | 8 | { |
9 | 9 | public function __construct() |
10 | - { |
|
11 | - |
|
12 | - } |
|
13 | - /** |
|
14 | - * @JsonProperty(String, "consult_no") |
|
15 | - */ |
|
16 | - private $consultNo; |
|
17 | - |
|
18 | - /** |
|
19 | - * @JsonProperty(String, "reason") |
|
20 | - */ |
|
21 | - private $reason; |
|
22 | - |
|
23 | - protected function setUserParams(&$params) |
|
24 | - { |
|
25 | - $this->setUserParam($params, "consult_no", $this->consultNo); |
|
26 | - $this->setUserParam($params, "reason", $this->reason); |
|
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.medicine.consult.close"; |
|
43 | - } |
|
44 | - |
|
45 | - public function setConsultNo($consultNo) |
|
46 | - { |
|
47 | - $this->consultNo = $consultNo; |
|
48 | - } |
|
49 | - |
|
50 | - public function setReason($reason) |
|
51 | - { |
|
52 | - $this->reason = $reason; |
|
53 | - } |
|
10 | + { |
|
11 | + |
|
12 | + } |
|
13 | + /** |
|
14 | + * @JsonProperty(String, "consult_no") |
|
15 | + */ |
|
16 | + private $consultNo; |
|
17 | + |
|
18 | + /** |
|
19 | + * @JsonProperty(String, "reason") |
|
20 | + */ |
|
21 | + private $reason; |
|
22 | + |
|
23 | + protected function setUserParams(&$params) |
|
24 | + { |
|
25 | + $this->setUserParam($params, "consult_no", $this->consultNo); |
|
26 | + $this->setUserParam($params, "reason", $this->reason); |
|
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.medicine.consult.close"; |
|
43 | + } |
|
44 | + |
|
45 | + public function setConsultNo($consultNo) |
|
46 | + { |
|
47 | + $this->consultNo = $consultNo; |
|
48 | + } |
|
49 | + |
|
50 | + public function setReason($reason) |
|
51 | + { |
|
52 | + $this->reason = $reason; |
|
53 | + } |
|
54 | 54 | |
55 | 55 | } |