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.
107 lines
1.9 KiB
107 lines
1.9 KiB
8 months ago
|
<?php
|
||
|
/**
|
||
|
* 苏宁开放平台接口 -
|
||
|
*
|
||
|
* @author suning
|
||
|
* @date 2020-9-10
|
||
|
*/
|
||
|
class MixconfirmorderAddRequest extends SuningRequest{
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $orderId;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $remark;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $subPaymentModes;
|
||
|
|
||
|
public function getOrderId() {
|
||
|
return $this->orderId;
|
||
|
}
|
||
|
|
||
|
public function setOrderId($orderId) {
|
||
|
$this->orderId = $orderId;
|
||
|
$this->apiParams["orderId"] = $orderId;
|
||
|
}
|
||
|
|
||
|
public function getRemark() {
|
||
|
return $this->remark;
|
||
|
}
|
||
|
|
||
|
public function setRemark($remark) {
|
||
|
$this->remark = $remark;
|
||
|
$this->apiParams["remark"] = $remark;
|
||
|
}
|
||
|
|
||
|
public function getSubPaymentModes() {
|
||
|
return $this->subPaymentModes;
|
||
|
}
|
||
|
|
||
|
public function setSubPaymentModes($subPaymentModes) {
|
||
|
$this->subPaymentModes = $subPaymentModes;
|
||
|
$arr = array();
|
||
|
foreach ($subPaymentModes as $temp){
|
||
|
array_push($arr,$temp->getApiParams());
|
||
|
}
|
||
|
$this->apiParams["subPaymentModes"] = $arr;
|
||
|
}
|
||
|
|
||
|
public function getApiMethodName(){
|
||
|
return 'suning.govbus.mixconfirmorder.add';
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
public function check(){
|
||
|
//非空校验
|
||
|
RequestCheckUtil::checkNotNull($this->orderId, 'orderId');
|
||
|
}
|
||
|
|
||
|
public function getBizName(){
|
||
|
return "addMixconfirmorder";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class SubPaymentModes {
|
||
|
|
||
|
private $apiParams = array();
|
||
|
|
||
|
private $payAmount;
|
||
|
|
||
|
private $payCode;
|
||
|
|
||
|
public function getPayAmount() {
|
||
|
return $this->payAmount;
|
||
|
}
|
||
|
|
||
|
public function setPayAmount($payAmount) {
|
||
|
$this->payAmount = $payAmount;
|
||
|
$this->apiParams["payAmount"] = $payAmount;
|
||
|
}
|
||
|
|
||
|
public function getPayCode() {
|
||
|
return $this->payCode;
|
||
|
}
|
||
|
|
||
|
public function setPayCode($payCode) {
|
||
|
$this->payCode = $payCode;
|
||
|
$this->apiParams["payCode"] = $payCode;
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|