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

73 lines
1.3 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2019-4-28
*/
class OnlinepayCreateRequest extends SuningRequest{
/**
*
*/
private $backUrl;
/**
*
*/
private $channelType;
/**
*
*/
private $orderId;
public function getBackUrl() {
return $this->backUrl;
}
public function setBackUrl($backUrl) {
$this->backUrl = $backUrl;
$this->apiParams["backUrl"] = $backUrl;
}
public function getChannelType() {
return $this->channelType;
}
public function setChannelType($channelType) {
$this->channelType = $channelType;
$this->apiParams["channelType"] = $channelType;
}
public function getOrderId() {
return $this->orderId;
}
public function setOrderId($orderId) {
$this->orderId = $orderId;
$this->apiParams["orderId"] = $orderId;
}
public function getApiMethodName(){
return 'suning.govbus.onlinepay.create';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->backUrl, 'backUrl');
RequestCheckUtil::checkNotNull($this->channelType, 'channelType');
RequestCheckUtil::checkNotNull($this->orderId, 'orderId');
}
public function getBizName(){
return "createOnlinepay";
}
}
?>