You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/extend/suning-sdk-php/request/custom/OrdertaskCreateRequest.php

158 lines
3.4 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-5-25
*/
class OrdertaskCreateRequest extends SuningRequest{
/**
*
*/
private $cmmdtyCode;
/**
*
*/
private $endTime;
/**
*
*/
private $orderAmountCondition;
/**
*
*/
private $orderCountCondition;
/**
*
*/
private $orderPriceType;
/**
*
*/
private $orderStatusCondition;
/**
*
*/
private $partCountCondition;
/**
*
*/
private $singleAmountCondition;
/**
*
*/
private $startTime;
public function getCmmdtyCode() {
return $this->cmmdtyCode;
}
public function setCmmdtyCode($cmmdtyCode) {
$this->cmmdtyCode = $cmmdtyCode;
$this->apiParams["cmmdtyCode"] = $cmmdtyCode;
}
public function getEndTime() {
return $this->endTime;
}
public function setEndTime($endTime) {
$this->endTime = $endTime;
$this->apiParams["endTime"] = $endTime;
}
public function getOrderAmountCondition() {
return $this->orderAmountCondition;
}
public function setOrderAmountCondition($orderAmountCondition) {
$this->orderAmountCondition = $orderAmountCondition;
$this->apiParams["orderAmountCondition"] = $orderAmountCondition;
}
public function getOrderCountCondition() {
return $this->orderCountCondition;
}
public function setOrderCountCondition($orderCountCondition) {
$this->orderCountCondition = $orderCountCondition;
$this->apiParams["orderCountCondition"] = $orderCountCondition;
}
public function getOrderPriceType() {
return $this->orderPriceType;
}
public function setOrderPriceType($orderPriceType) {
$this->orderPriceType = $orderPriceType;
$this->apiParams["orderPriceType"] = $orderPriceType;
}
public function getOrderStatusCondition() {
return $this->orderStatusCondition;
}
public function setOrderStatusCondition($orderStatusCondition) {
$this->orderStatusCondition = $orderStatusCondition;
$this->apiParams["orderStatusCondition"] = $orderStatusCondition;
}
public function getPartCountCondition() {
return $this->partCountCondition;
}
public function setPartCountCondition($partCountCondition) {
$this->partCountCondition = $partCountCondition;
$this->apiParams["partCountCondition"] = $partCountCondition;
}
public function getSingleAmountCondition() {
return $this->singleAmountCondition;
}
public function setSingleAmountCondition($singleAmountCondition) {
$this->singleAmountCondition = $singleAmountCondition;
$this->apiParams["singleAmountCondition"] = $singleAmountCondition;
}
public function getStartTime() {
return $this->startTime;
}
public function setStartTime($startTime) {
$this->startTime = $startTime;
$this->apiParams["startTime"] = $startTime;
}
public function getApiMethodName(){
return 'suning.custom.ordertask.create';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->endTime, 'endTime');
RequestCheckUtil::checkNotNull($this->orderPriceType, 'orderPriceType');
RequestCheckUtil::checkNotNull($this->orderStatusCondition, 'orderStatusCondition');
RequestCheckUtil::checkNotNull($this->startTime, 'startTime');
}
public function getBizName(){
return "createOrdertask";
}
}
?>