|
1
|
|
|
<?php |
|
2
|
|
|
namespace Com\Pdd\Pop\Sdk\Api\Request; |
|
3
|
|
|
|
|
4
|
|
|
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest; |
|
5
|
|
|
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity; |
|
6
|
|
|
|
|
7
|
|
|
class PddTrainCallbackRefundConfirmRequest extends PopBaseHttpRequest |
|
8
|
|
|
{ |
|
9
|
|
|
public function __construct() |
|
10
|
|
|
{ |
|
11
|
|
|
|
|
12
|
|
|
} |
|
13
|
|
|
/** |
|
14
|
|
|
* @JsonProperty(String, "card_no") |
|
15
|
|
|
*/ |
|
16
|
|
|
private $cardNo; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* @JsonProperty(Integer, "code") |
|
20
|
|
|
*/ |
|
21
|
|
|
private $code; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* @JsonProperty(String, "msg") |
|
25
|
|
|
*/ |
|
26
|
|
|
private $msg; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* @JsonProperty(String, "name") |
|
30
|
|
|
*/ |
|
31
|
|
|
private $name; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* @JsonProperty(String, "pdd_order_id") |
|
35
|
|
|
*/ |
|
36
|
|
|
private $pddOrderId; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @JsonProperty(Long, "refund_money") |
|
40
|
|
|
*/ |
|
41
|
|
|
private $refundMoney; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @JsonProperty(Integer, "refund_type") |
|
45
|
|
|
*/ |
|
46
|
|
|
private $refundType; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @JsonProperty(String, "request_id") |
|
50
|
|
|
*/ |
|
51
|
|
|
private $requestId; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @JsonProperty(String, "sub_order_id") |
|
55
|
|
|
*/ |
|
56
|
|
|
private $subOrderId; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @JsonProperty(String, "sub_pdd_order_id") |
|
60
|
|
|
*/ |
|
61
|
|
|
private $subPddOrderId; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @JsonProperty(String, "vendor_time") |
|
65
|
|
|
*/ |
|
66
|
|
|
private $vendorTime; |
|
67
|
|
|
|
|
68
|
|
|
protected function setUserParams(&$params) |
|
69
|
|
|
{ |
|
70
|
|
|
$this->setUserParam($params, "card_no", $this->cardNo); |
|
71
|
|
|
$this->setUserParam($params, "code", $this->code); |
|
72
|
|
|
$this->setUserParam($params, "msg", $this->msg); |
|
73
|
|
|
$this->setUserParam($params, "name", $this->name); |
|
74
|
|
|
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId); |
|
75
|
|
|
$this->setUserParam($params, "refund_money", $this->refundMoney); |
|
76
|
|
|
$this->setUserParam($params, "refund_type", $this->refundType); |
|
77
|
|
|
$this->setUserParam($params, "request_id", $this->requestId); |
|
78
|
|
|
$this->setUserParam($params, "sub_order_id", $this->subOrderId); |
|
79
|
|
|
$this->setUserParam($params, "sub_pdd_order_id", $this->subPddOrderId); |
|
80
|
|
|
$this->setUserParam($params, "vendor_time", $this->vendorTime); |
|
81
|
|
|
|
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
public function getVersion() |
|
85
|
|
|
{ |
|
86
|
|
|
return "V1"; |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
public function getDataType() |
|
90
|
|
|
{ |
|
91
|
|
|
return "JSON"; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
public function getType() |
|
95
|
|
|
{ |
|
96
|
|
|
return "pdd.train.callback.refund.confirm"; |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
|
|
public function setCardNo($cardNo) |
|
100
|
|
|
{ |
|
101
|
|
|
$this->cardNo = $cardNo; |
|
102
|
|
|
} |
|
103
|
|
|
|
|
104
|
|
|
public function setCode($code) |
|
105
|
|
|
{ |
|
106
|
|
|
$this->code = $code; |
|
107
|
|
|
} |
|
108
|
|
|
|
|
109
|
|
|
public function setMsg($msg) |
|
110
|
|
|
{ |
|
111
|
|
|
$this->msg = $msg; |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
public function setName($name) |
|
115
|
|
|
{ |
|
116
|
|
|
$this->name = $name; |
|
117
|
|
|
} |
|
118
|
|
|
|
|
119
|
|
|
public function setPddOrderId($pddOrderId) |
|
120
|
|
|
{ |
|
121
|
|
|
$this->pddOrderId = $pddOrderId; |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
public function setRefundMoney($refundMoney) |
|
125
|
|
|
{ |
|
126
|
|
|
$this->refundMoney = $refundMoney; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
public function setRefundType($refundType) |
|
130
|
|
|
{ |
|
131
|
|
|
$this->refundType = $refundType; |
|
132
|
|
|
} |
|
133
|
|
|
|
|
134
|
|
|
public function setRequestId($requestId) |
|
135
|
|
|
{ |
|
136
|
|
|
$this->requestId = $requestId; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
public function setSubOrderId($subOrderId) |
|
140
|
|
|
{ |
|
141
|
|
|
$this->subOrderId = $subOrderId; |
|
142
|
|
|
} |
|
143
|
|
|
|
|
144
|
|
|
public function setSubPddOrderId($subPddOrderId) |
|
145
|
|
|
{ |
|
146
|
|
|
$this->subPddOrderId = $subPddOrderId; |
|
147
|
|
|
} |
|
148
|
|
|
|
|
149
|
|
|
public function setVendorTime($vendorTime) |
|
150
|
|
|
{ |
|
151
|
|
|
$this->vendorTime = $vendorTime; |
|
152
|
|
|
} |
|
153
|
|
|
|
|
154
|
|
|
} |
|
155
|
|
|
|