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

114 lines
2.0 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2020-12-25
*/
class OrderconfirmAddRequest extends SuningRequest{
/**
*
*/
private $orderList;
public function getOrderList() {
return $this->orderList;
}
public function setOrderList($orderList) {
$this->orderList = $orderList;
$arr = array();
foreach ($orderList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["orderList"] = $arr;
}
public function getApiMethodName(){
return 'suning.govbus.orderconfirm.add';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
}
public function getBizName(){
return "addOrderconfirm";
}
}
class OrderItemList {
private $apiParams = array();
private $orderItemId;
public function getOrderItemId() {
return $this->orderItemId;
}
public function setOrderItemId($orderItemId) {
$this->orderItemId = $orderItemId;
$this->apiParams["orderItemId"] = $orderItemId;
}
public function getApiParams(){
return $this->apiParams;
}
}
class OrderList {
private $apiParams = array();
private $orderId;
private $orderItemList;
private $extra;
public function getOrderId() {
return $this->orderId;
}
public function setOrderId($orderId) {
$this->orderId = $orderId;
$this->apiParams["orderId"] = $orderId;
}
public function getOrderItemList() {
return $this->orderItemList;
}
public function setOrderItemList($orderItemList) {
$this->orderItemList = $orderItemList;
$arr = array();
foreach ($orderItemList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["orderItemList"] = $arr;
}
public function getExtra() {
return $this->extra;
}
public function setExtra($extra) {
$this->extra = $extra;
$this->apiParams["extra"] = $extra;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>