1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Kaylyu\Alipay\F2fpay\Base\Aop\Request; |
4
|
|
|
|
5
|
|
View Code Duplication |
class AlipayTradeRefundQueryRequest |
|
|
|
|
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* 统一收单交易退款查询 |
9
|
|
|
**/ |
10
|
|
|
private $bizContent; |
11
|
|
|
|
12
|
|
|
private $apiParas = array(); |
13
|
|
|
private $terminalType; |
14
|
|
|
private $terminalInfo; |
15
|
|
|
private $prodCode; |
16
|
|
|
private $apiVersion="1.0"; |
17
|
|
|
private $notifyUrl; |
18
|
|
|
private $returnUrl; |
19
|
|
|
private $needEncrypt=false; |
20
|
|
|
|
21
|
|
|
|
22
|
|
|
public function setBizContent($bizContent) |
23
|
|
|
{ |
24
|
|
|
$this->bizContent = $bizContent; |
25
|
|
|
$this->apiParas["biz_content"] = $bizContent; |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
public function getBizContent() |
29
|
|
|
{ |
30
|
|
|
return $this->bizContent; |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
public function getApiMethodName() |
34
|
|
|
{ |
35
|
|
|
return "alipay.trade.fastpay.refund.query"; |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
public function setNotifyUrl($notifyUrl) |
39
|
|
|
{ |
40
|
|
|
$this->notifyUrl=$notifyUrl; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
public function getNotifyUrl() |
44
|
|
|
{ |
45
|
|
|
return $this->notifyUrl; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
public function setReturnUrl($returnUrl) |
49
|
|
|
{ |
50
|
|
|
$this->returnUrl=$returnUrl; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function getReturnUrl() |
54
|
|
|
{ |
55
|
|
|
return $this->returnUrl; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
public function getApiParas() |
59
|
|
|
{ |
60
|
|
|
return $this->apiParas; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
public function getTerminalType() |
64
|
|
|
{ |
65
|
|
|
return $this->terminalType; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
public function setTerminalType($terminalType) |
69
|
|
|
{ |
70
|
|
|
$this->terminalType = $terminalType; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
public function getTerminalInfo() |
74
|
|
|
{ |
75
|
|
|
return $this->terminalInfo; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
public function setTerminalInfo($terminalInfo) |
79
|
|
|
{ |
80
|
|
|
$this->terminalInfo = $terminalInfo; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
public function getProdCode() |
84
|
|
|
{ |
85
|
|
|
return $this->prodCode; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
public function setProdCode($prodCode) |
89
|
|
|
{ |
90
|
|
|
$this->prodCode = $prodCode; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function setApiVersion($apiVersion) |
94
|
|
|
{ |
95
|
|
|
$this->apiVersion=$apiVersion; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function getApiVersion() |
99
|
|
|
{ |
100
|
|
|
return $this->apiVersion; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function setNeedEncrypt($needEncrypt) |
104
|
|
|
{ |
105
|
|
|
|
106
|
|
|
$this->needEncrypt=$needEncrypt; |
107
|
|
|
|
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function getNeedEncrypt() |
111
|
|
|
{ |
112
|
|
|
return $this->needEncrypt; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
} |
116
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.