HotelOrderRefundFeedbackRequest.php
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
/**
* TOP API: taobao.hotel.order.refund.feedback request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class HotelOrderRefundFeedbackRequest
{
/**
* 失败原因,当result为F时,此项为必填,最长200个字符
**/
private $failedReason;
/**
* 指令消息中的messageid,最长128字符
**/
private $messageId;
/**
* 合作方订单号,最长250个字符
**/
private $oid;
/**
* 合作方订单号,最长250个字符
**/
private $outOid;
/**
* 预订结果
S:成功
F:失败
**/
private $result;
/**
* 指令消息中的session_id
**/
private $sessionId;
private $apiParas = array();
public function setFailedReason($failedReason)
{
$this->failedReason = $failedReason;
$this->apiParas["failed_reason"] = $failedReason;
}
public function getFailedReason()
{
return $this->failedReason;
}
public function setMessageId($messageId)
{
$this->messageId = $messageId;
$this->apiParas["message_id"] = $messageId;
}
public function getMessageId()
{
return $this->messageId;
}
public function setOid($oid)
{
$this->oid = $oid;
$this->apiParas["oid"] = $oid;
}
public function getOid()
{
return $this->oid;
}
public function setOutOid($outOid)
{
$this->outOid = $outOid;
$this->apiParas["out_oid"] = $outOid;
}
public function getOutOid()
{
return $this->outOid;
}
public function setResult($result)
{
$this->result = $result;
$this->apiParas["result"] = $result;
}
public function getResult()
{
return $this->result;
}
public function setSessionId($sessionId)
{
$this->sessionId = $sessionId;
$this->apiParas["session_id"] = $sessionId;
}
public function getSessionId()
{
return $this->sessionId;
}
public function getApiMethodName()
{
return "taobao.hotel.order.refund.feedback";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->messageId,"messageId");
RequestCheckUtil::checkMinValue($this->oid,0,"oid");
RequestCheckUtil::checkNotNull($this->outOid,"outOid");
RequestCheckUtil::checkNotNull($this->result,"result");
RequestCheckUtil::checkNotNull($this->sessionId,"sessionId");
RequestCheckUtil::checkMinValue($this->sessionId,0,"sessionId");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}