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

218 lines
4.4 KiB

8 months ago
<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2021-7-8
*/
class orderDeliveryAddRequest extends SuningRequest{
/**
*
*/
private $deliveryTime;
/**
*
*/
private $expressCompanyCode;
/**
*
*/
private $expressNo;
/**
*
*/
private $orderCode;
/**
*
*/
private $orderLineNumbers;
/**
*
*/
private $phoneIdentifyCodes;
/**
*
*/
private $sendDetail;
public function getDeliveryTime() {
return $this->deliveryTime;
}
public function setDeliveryTime($deliveryTime) {
$this->deliveryTime = $deliveryTime;
$this->apiParams["deliveryTime"] = $deliveryTime;
}
public function getExpressCompanyCode() {
return $this->expressCompanyCode;
}
public function setExpressCompanyCode($expressCompanyCode) {
$this->expressCompanyCode = $expressCompanyCode;
$this->apiParams["expressCompanyCode"] = $expressCompanyCode;
}
public function getExpressNo() {
return $this->expressNo;
}
public function setExpressNo($expressNo) {
$this->expressNo = $expressNo;
$this->apiParams["expressNo"] = $expressNo;
}
public function getOrderCode() {
return $this->orderCode;
}
public function setOrderCode($orderCode) {
$this->orderCode = $orderCode;
$this->apiParams["orderCode"] = $orderCode;
}
public function getOrderLineNumbers() {
return $this->orderLineNumbers;
}
public function setOrderLineNumbers($orderLineNumbers) {
$this->orderLineNumbers = $orderLineNumbers;
$this->apiParams["orderLineNumbers"] = $orderLineNumbers->getApiParams();
}
public function getPhoneIdentifyCodes() {
return $this->phoneIdentifyCodes;
}
public function setPhoneIdentifyCodes($phoneIdentifyCodes) {
$this->phoneIdentifyCodes = $phoneIdentifyCodes;
$arr = array();
foreach ($phoneIdentifyCodes as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["phoneIdentifyCodes"] = $arr;
}
public function getSendDetail() {
return $this->sendDetail;
}
public function setSendDetail($sendDetail) {
$this->sendDetail = $sendDetail;
$this->apiParams["sendDetail"] = $sendDetail->getApiParams();
}
public function getApiMethodName(){
return 'suning.custom.orderdelivery.add';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->expressCompanyCode, 'expressCompanyCode');
RequestCheckUtil::checkNotNull($this->expressNo, 'expressNo');
RequestCheckUtil::checkNotNull($this->orderCode, 'orderCode');
}
public function getBizName(){
return "orderDelivery";
}
}
class PhoneIdentifyCodes {
private $apiParams = array();
private $orderLineNumber;
private $phoneIdentifyCode;
private $productCode;
public function getOrderLineNumber() {
return $this->orderLineNumber;
}
public function setOrderLineNumber($orderLineNumber) {
$this->orderLineNumber = $orderLineNumber;
$this->apiParams["orderLineNumber"] = $orderLineNumber;
}
public function getPhoneIdentifyCode() {
return $this->phoneIdentifyCode;
}
public function setPhoneIdentifyCode($phoneIdentifyCode) {
$this->phoneIdentifyCode = $phoneIdentifyCode;
$this->apiParams["phoneIdentifyCode"] = $phoneIdentifyCode;
}
public function getProductCode() {
return $this->productCode;
}
public function setProductCode($productCode) {
$this->productCode = $productCode;
$this->apiParams["productCode"] = $productCode;
}
public function getApiParams(){
return $this->apiParams;
}
}
class SendDetail {
private $apiParams = array();
private $productCode;
public function getProductCode() {
return $this->productCode;
}
public function setProductCode($productCode) {
$this->productCode = $productCode;
$this->apiParams["productCode"] = $productCode;
}
public function getApiParams(){
return $this->apiParams;
}
}
class OrderLineNumbers {
private $apiParams = array();
private $orderLineNumber;
public function getOrderLineNumber() {
return $this->orderLineNumber;
}
public function setOrderLineNumber($orderLineNumber) {
$this->orderLineNumber = $orderLineNumber;
$this->apiParams["orderLineNumber"] = $orderLineNumber;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>