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

124 lines
2.1 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2019-12-24
*/
class AlipayCreateRequest extends SuningRequest{
/**
*
*/
private $backUrl;
/**
*
*/
private $channelType;
/**
*
*/
private $mobileModel;
/**
*
*/
private $mobileOS;
/**
*
*/
private $orderIds;
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 getMobileModel() {
return $this->mobileModel;
}
public function setMobileModel($mobileModel) {
$this->mobileModel = $mobileModel;
$this->apiParams["mobileModel"] = $mobileModel;
}
public function getMobileOS() {
return $this->mobileOS;
}
public function setMobileOS($mobileOS) {
$this->mobileOS = $mobileOS;
$this->apiParams["mobileOS"] = $mobileOS;
}
public function getOrderIds() {
return $this->orderIds;
}
public function setOrderIds($orderIds) {
$this->orderIds = $orderIds;
$arr = array();
foreach ($orderIds as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["orderIds"] = $arr;
}
public function getApiMethodName(){
return 'suning.govbus.alipay.create';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->channelType, 'channelType');
}
public function getBizName(){
return "createAlipay";
}
}
class OrderIds {
private $apiParams = array();
private $orderId;
public function getOrderId() {
return $this->orderId;
}
public function setOrderId($orderId) {
$this->orderId = $orderId;
$this->apiParams["orderId"] = $orderId;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>