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

68 lines
1.7 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: tmall.item.sizemapping.template.create request
*
* @author auto create
* @since 1.0, 2021.11.25
*/
class TmallItemSizemappingTemplateCreateRequest
{
/**
* 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中数值的单位长度单位为厘米cm体重单位为公斤kg。尺码值维度数据不能包含数字特殊字符。数值为0-999.9的数字,且最多一位小数。
**/
private $templateContent;
/**
* 尺码表模板名称
**/
private $templateName;
private $apiParas = array();
public function setTemplateContent($templateContent)
{
$this->templateContent = $templateContent;
$this->apiParas["template_content"] = $templateContent;
}
public function getTemplateContent()
{
return $this->templateContent;
}
public function setTemplateName($templateName)
{
$this->templateName = $templateName;
$this->apiParas["template_name"] = $templateName;
}
public function getTemplateName()
{
return $this->templateName;
}
public function getApiMethodName()
{
return "tmall.item.sizemapping.template.create";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->templateContent,"templateContent");
RequestCheckUtil::checkMaxLength($this->templateContent,8000,"templateContent");
RequestCheckUtil::checkNotNull($this->templateName,"templateName");
RequestCheckUtil::checkMaxLength($this->templateName,20,"templateName");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}