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

82 lines
1.4 KiB
PHP
Raw Permalink 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: alibaba.item.edit.schema.get request
*
* @author auto create
* @since 1.0, 2022.09.19
*/
class AlibabaItemEditSchemaGetRequest
{
/**
* 业务扩展参数,需与平台约定好
**/
private $bizType;
/**
* 制定返回schema中field字段列表可用于裁剪返回的schema信息。不填则为全部field
**/
private $fields;
/**
* 商品ID
**/
private $itemId;
private $apiParas = array();
public function setBizType($bizType)
{
$this->bizType = $bizType;
$this->apiParas["biz_type"] = $bizType;
}
public function getBizType()
{
return $this->bizType;
}
public function setFields($fields)
{
$this->fields = $fields;
$this->apiParas["fields"] = $fields;
}
public function getFields()
{
return $this->fields;
}
public function setItemId($itemId)
{
$this->itemId = $itemId;
$this->apiParas["item_id"] = $itemId;
}
public function getItemId()
{
return $this->itemId;
}
public function getApiMethodName()
{
return "alibaba.item.edit.schema.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkMaxListSize($this->fields,999,"fields");
RequestCheckUtil::checkNotNull($this->itemId,"itemId");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}