InventoryAdjustTradeRequest.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
<?php
/**
* TOP API: taobao.inventory.adjust.trade request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class InventoryAdjustTradeRequest
{
/**
* 商家外部定单号
**/
private $bizUniqueCode;
/**
* 商品初始库存信息: [{ "TBOrderCode”:”淘宝交易号”,"TBSubOrderCode ":"淘宝子交易单号,赠品可以不填","”isGift”:”TRUE或者FALSE,是否赠品”,storeCode":"商家仓库编码"," scItemId ":"商品后端ID","scItemCode":"商品商家编码"," originScItemId ":"原商品ID","inventoryType":"","quantity":"111","isComplete":"TRUE或者FALSE,是否全部确认出库"}]
**/
private $items;
/**
* 业务操作时间
**/
private $operateTime;
/**
* 订单类型:B2C、B2B
**/
private $tbOrderType;
private $apiParas = array();
public function setBizUniqueCode($bizUniqueCode)
{
$this->bizUniqueCode = $bizUniqueCode;
$this->apiParas["biz_unique_code"] = $bizUniqueCode;
}
public function getBizUniqueCode()
{
return $this->bizUniqueCode;
}
public function setItems($items)
{
$this->items = $items;
$this->apiParas["items"] = $items;
}
public function getItems()
{
return $this->items;
}
public function setOperateTime($operateTime)
{
$this->operateTime = $operateTime;
$this->apiParas["operate_time"] = $operateTime;
}
public function getOperateTime()
{
return $this->operateTime;
}
public function setTbOrderType($tbOrderType)
{
$this->tbOrderType = $tbOrderType;
$this->apiParas["tb_order_type"] = $tbOrderType;
}
public function getTbOrderType()
{
return $this->tbOrderType;
}
public function getApiMethodName()
{
return "taobao.inventory.adjust.trade";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->bizUniqueCode,"bizUniqueCode");
RequestCheckUtil::checkNotNull($this->items,"items");
RequestCheckUtil::checkNotNull($this->operateTime,"operateTime");
RequestCheckUtil::checkNotNull($this->tbOrderType,"tbOrderType");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}