DeliveryTemplatesGetRequest.php
1.66 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
<?php
/**
* TOP API: taobao.delivery.templates.get request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class DeliveryTemplatesGetRequest
{
/**
* 需返回的字段列表。 <br/>
<B>
可选值:示例中的值;各字段之间用","隔开
</B>
<br/><br/>
<font color=blue>
template_id:查询模板ID <br/>
template_name:查询模板名称 <br/>
assumer:查询服务承担放 <br/>
valuation:查询计价规则 <br/>
supports:查询增值服务列表 <br/>
created:查询模板创建时间 <br/>
modified:查询修改时间<br/>
consign_area_id:运费模板上设置的卖家发货地址最小级别ID<br/>
address:卖家地址信息
</font>
<br/><br/>
<font color=bule>
query_cod:查询货到付款运费信息<br/>
query_post:查询平邮运费信息 <br/>
query_express:查询快递公司运费信息 <br/>
query_ems:查询EMS运费信息<br/>
query_bzsd:查询普通保障速递运费信息<br/>
query_wlb:查询物流宝保障速递运费信息<br/>
query_furniture:查询家装物流运费信息
<font color=blue>
<br/><br/>
<font color=red>不能有空格</font>
**/
private $fields;
private $apiParas = array();
public function setFields($fields)
{
$this->fields = $fields;
$this->apiParas["fields"] = $fields;
}
public function getFields()
{
return $this->fields;
}
public function getApiMethodName()
{
return "taobao.delivery.templates.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->fields,"fields");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}