104 lines
1.9 KiB
PHP
104 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* API: qianmi.elife.directRecharge.alipay.createBill request
|
|
*
|
|
* @author auto create
|
|
* @since 1.0
|
|
*/
|
|
class DirectRechargeAlipayCreateBillRequest
|
|
{
|
|
private $apiParas = array();
|
|
|
|
/**
|
|
* 回调地址
|
|
*/
|
|
private $callback;
|
|
|
|
/**
|
|
* 标准商品编号
|
|
*/
|
|
private $itemId;
|
|
|
|
/**
|
|
* 购买数量
|
|
*/
|
|
private $itemNum;
|
|
|
|
/**
|
|
* 外部订单号
|
|
*/
|
|
private $outerTid;
|
|
|
|
/**
|
|
* 充值帐号
|
|
*/
|
|
private $rechargeAccount;
|
|
|
|
public function setCallback($callback)
|
|
{
|
|
$this->callback = $callback;
|
|
$this->apiParas["callback"] = $callback;
|
|
}
|
|
public function getCallback() {
|
|
return $this->callback;
|
|
}
|
|
|
|
public function setItemId($itemId)
|
|
{
|
|
$this->itemId = $itemId;
|
|
$this->apiParas["itemId"] = $itemId;
|
|
}
|
|
public function getItemId() {
|
|
return $this->itemId;
|
|
}
|
|
|
|
public function setItemNum($itemNum)
|
|
{
|
|
$this->itemNum = $itemNum;
|
|
$this->apiParas["itemNum"] = $itemNum;
|
|
}
|
|
public function getItemNum() {
|
|
return $this->itemNum;
|
|
}
|
|
|
|
public function setOuterTid($outerTid)
|
|
{
|
|
$this->outerTid = $outerTid;
|
|
$this->apiParas["outerTid"] = $outerTid;
|
|
}
|
|
public function getOuterTid() {
|
|
return $this->outerTid;
|
|
}
|
|
|
|
public function setRechargeAccount($rechargeAccount)
|
|
{
|
|
$this->rechargeAccount = $rechargeAccount;
|
|
$this->apiParas["rechargeAccount"] = $rechargeAccount;
|
|
}
|
|
public function getRechargeAccount() {
|
|
return $this->rechargeAccount;
|
|
}
|
|
|
|
public function getApiMethodName()
|
|
{
|
|
return "qianmi.elife.directRecharge.alipay.createBill";
|
|
}
|
|
|
|
public function getApiParas()
|
|
{
|
|
return $this->apiParas;
|
|
}
|
|
|
|
public function check()
|
|
{
|
|
RequestCheckUtil::checkNotNull($this->itemId, "itemId");
|
|
RequestCheckUtil::checkNotNull($this->itemNum, "itemNum");
|
|
RequestCheckUtil::checkNotNull($this->rechargeAccount, "rechargeAccount");
|
|
}
|
|
|
|
public function putOtherTextParam($key, $value) {
|
|
$this->apiParas[$key] = $value;
|
|
$this->$key = $value;
|
|
}
|
|
}
|