TripJipiaoAgentOrderSpecialConfirmRequest.php
2.15 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
<?php
/**
* TOP API: taobao.trip.jipiao.agent.order.special.confirm request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class TripJipiaoAgentOrderSpecialConfirmRequest
{
/**
* 能否支付
**/
private $canPay;
/**
* can_pay=false,fail_type=0时,必需提供失败原因
**/
private $failMemo;
/**
* can_pay=false时,必需提供失败原因;失败原因:11,座位已售完;12,座位申请不成功;13,航班价格变动;14,买家要求失败订单;0,其它(必须在备注中说明原因)
**/
private $failType;
/**
* 国内机票订单id
**/
private $orderId;
/**
* can_pay=true,必需提供最迟支付时间
**/
private $payLatestTime;
private $apiParas = array();
public function setCanPay($canPay)
{
$this->canPay = $canPay;
$this->apiParas["can_pay"] = $canPay;
}
public function getCanPay()
{
return $this->canPay;
}
public function setFailMemo($failMemo)
{
$this->failMemo = $failMemo;
$this->apiParas["fail_memo"] = $failMemo;
}
public function getFailMemo()
{
return $this->failMemo;
}
public function setFailType($failType)
{
$this->failType = $failType;
$this->apiParas["fail_type"] = $failType;
}
public function getFailType()
{
return $this->failType;
}
public function setOrderId($orderId)
{
$this->orderId = $orderId;
$this->apiParas["order_id"] = $orderId;
}
public function getOrderId()
{
return $this->orderId;
}
public function setPayLatestTime($payLatestTime)
{
$this->payLatestTime = $payLatestTime;
$this->apiParas["pay_latest_time"] = $payLatestTime;
}
public function getPayLatestTime()
{
return $this->payLatestTime;
}
public function getApiMethodName()
{
return "taobao.trip.jipiao.agent.order.special.confirm";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->canPay,"canPay");
RequestCheckUtil::checkMaxLength($this->failMemo,200,"failMemo");
RequestCheckUtil::checkNotNull($this->orderId,"orderId");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}