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/GotoappointCreateRequest.php

132 lines
2.6 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-7-30
*/
class GotoappointCreateRequest extends SuningRequest{
/**
*
*/
private $actionId;
/**
*
*/
private $partNumber;
/**
*
*/
private $purchaseType;
/**
*
*/
private $snUnionId;
/**
*
*/
private $storeCode;
/**
*
*/
private $terminalFlag;
/**
*
*/
private $vendorCode;
public function getActionId() {
return $this->actionId;
}
public function setActionId($actionId) {
$this->actionId = $actionId;
$this->apiParams["actionId"] = $actionId;
}
public function getPartNumber() {
return $this->partNumber;
}
public function setPartNumber($partNumber) {
$this->partNumber = $partNumber;
$this->apiParams["partNumber"] = $partNumber;
}
public function getPurchaseType() {
return $this->purchaseType;
}
public function setPurchaseType($purchaseType) {
$this->purchaseType = $purchaseType;
$this->apiParams["purchaseType"] = $purchaseType;
}
public function getSnUnionId() {
return $this->snUnionId;
}
public function setSnUnionId($snUnionId) {
$this->snUnionId = $snUnionId;
$this->apiParams["snUnionId"] = $snUnionId;
}
public function getStoreCode() {
return $this->storeCode;
}
public function setStoreCode($storeCode) {
$this->storeCode = $storeCode;
$this->apiParams["storeCode"] = $storeCode;
}
public function getTerminalFlag() {
return $this->terminalFlag;
}
public function setTerminalFlag($terminalFlag) {
$this->terminalFlag = $terminalFlag;
$this->apiParams["terminalFlag"] = $terminalFlag;
}
public function getVendorCode() {
return $this->vendorCode;
}
public function setVendorCode($vendorCode) {
$this->vendorCode = $vendorCode;
$this->apiParams["vendorCode"] = $vendorCode;
}
public function getApiMethodName(){
return 'suning.custom.gotoappoint.create';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->actionId, 'actionId');
RequestCheckUtil::checkNotNull($this->partNumber, 'partNumber');
RequestCheckUtil::checkNotNull($this->purchaseType, 'purchaseType');
RequestCheckUtil::checkNotNull($this->snUnionId, 'snUnionId');
RequestCheckUtil::checkNotNull($this->terminalFlag, 'terminalFlag');
RequestCheckUtil::checkNotNull($this->vendorCode, 'vendorCode');
}
public function getBizName(){
return "createGotoappoint";
}
}
?>