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/govbus/DeliveryinfoCreateRequest.php

108 lines
1.8 KiB

8 months ago
<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2023-11-13
*/
class DeliveryinfoCreateRequest extends SuningRequest{
/**
*
*/
private $orderId;
/**
*
*/
private $orderInfo;
/**
*
*/
private $skus;
public function getOrderId() {
return $this->orderId;
}
public function setOrderId($orderId) {
$this->orderId = $orderId;
$this->apiParams["orderId"] = $orderId;
}
public function getOrderInfo() {
return $this->orderInfo;
}
public function setOrderInfo($orderInfo) {
$this->orderInfo = $orderInfo;
$this->apiParams["orderInfo"] = $orderInfo;
}
public function getSkus() {
return $this->skus;
}
public function setSkus($skus) {
$this->skus = $skus;
$arr = array();
foreach ($skus as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["skus"] = $arr;
}
public function getApiMethodName(){
return 'suning.govbus.deliveryinfo.create';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->orderId, 'orderId');
RequestCheckUtil::checkNotNull($this->orderInfo, 'orderInfo');
}
public function getBizName(){
return "createDeliveryinfo";
}
}
class Skus {
private $apiParams = array();
private $skuId;
private $skuInfo;
public function getSkuId() {
return $this->skuId;
}
public function setSkuId($skuId) {
$this->skuId = $skuId;
$this->apiParams["skuId"] = $skuId;
}
public function getSkuInfo() {
return $this->skuInfo;
}
public function setSkuInfo($skuInfo) {
$this->skuInfo = $skuInfo;
$this->apiParams["skuInfo"] = $skuInfo;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>