REAPI/extend/sdk/taobao/top/request/TradeOrderskuUpdateRequest.php
2024-09-29 15:43:18 +08:00

81 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* TOP API: taobao.trade.ordersku.update request
*
* @author auto create
* @since 1.0, 2022.07.19
*/
class TradeOrderskuUpdateRequest
{
/**
* 子订单编号(对于单笔订单的交易可以传交易编号)。
**/
private $oid;
/**
* 销售属性编号可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。
**/
private $skuId;
/**
* 销售属性组合串格式p1:v1;p2:v21627207:28329;20509:28314。可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。
**/
private $skuProps;
private $apiParas = array();
public function setOid($oid)
{
$this->oid = $oid;
$this->apiParas["oid"] = $oid;
}
public function getOid()
{
return $this->oid;
}
public function setSkuId($skuId)
{
$this->skuId = $skuId;
$this->apiParas["sku_id"] = $skuId;
}
public function getSkuId()
{
return $this->skuId;
}
public function setSkuProps($skuProps)
{
$this->skuProps = $skuProps;
$this->apiParas["sku_props"] = $skuProps;
}
public function getSkuProps()
{
return $this->skuProps;
}
public function getApiMethodName()
{
return "taobao.trade.ordersku.update";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->oid,"oid");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}