2020.02新版

This commit is contained in:
Blokura
2020-02-21 16:20:55 +08:00
parent 45e2415d71
commit a2f29a310b
755 changed files with 95144 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
<?php
/* *
* 功能支付宝电脑网站alipay.trade.close (统一收单交易关闭接口)业务参数封装
* 版本2.0
* 修改日期2017-05-01
* 说明:
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*/
class AlipayTradeCloseContentBuilder
{
// 商户订单号.
private $outTradeNo;
// 支付宝交易号
private $tradeNo;
//卖家端自定义的的操作员 ID
private $operatorId;
private $bizContentarr = array();
private $bizContent = NULL;
public function getBizContent()
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
public function getTradeNo()
{
return $this->tradeNo;
}
public function setTradeNo($tradeNo)
{
$this->tradeNo = $tradeNo;
$this->bizContentarr['trade_no'] = $tradeNo;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizContentarr['out_trade_no'] = $outTradeNo;
}
public function getOperatorId()
{
return $this->operatorId;
}
public function setOperatorId($operatorId)
{
$this->operatorId = $operatorId;
$this->bizContentarr['operator_id'] = $operatorId;
}
}
?>

View File

@@ -0,0 +1,218 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
require_once 'GoodsDetail.php';
require_once 'ExtendParams.php';
require_once 'RoyaltyDetailInfo.php';
require_once 'ContentBuilder.php';
class AlipayTradeCreateContentBuilder extends ContentBuilder
{
// 商户网站订单系统中唯一订单号64个字符以内只能包含字母、数字、下划线
// 需保证商户系统端不能重复建议通过数据库sequence生成
private $outTradeNo;
// 卖家支付宝账号ID用于支持一个签约账号下支持打款到不同的收款账号(打款到sellerId对应的支付宝账号)
// 如果该字段为空则默认为与支付宝签约的商户的PID也就是appid对应的PID
private $sellerId;
// 订单总金额整形此处单位为元精确到小数点后2位不能超过1亿元
// 如果同时传入了【打折金额】,【不可打折金额】,【订单总金额】三者,则必须满足如下条件:【订单总金额】=【打折金额】+【不可打折金额】
private $totalAmount;
// 订单可打折金额此处单位为元精确到小数点后2位
// 可以配合商家平台配置折扣活动,如果订单部分商品参与打折,可以将部分商品总价填写至此字段,默认全部商品可打折
// 如果该值未传入,但传入了【订单总金额】,【不可打折金额】 则该值默认为【订单总金额】- 【不可打折金额】
private $discountableAmount;
//买家支付宝账号
private $buyerId;
// 订单标题,粗略描述用户的支付目的。如“喜士多(浦东店)消费”
private $subject;
// 订单描述,可以对交易或商品进行一个详细地描述,比如填写"购买商品2件共15.00元"
private $body;
// 商品明细列表,需填写购买商品详细信息,
private $goodsDetailList = array();
// 商户操作员编号,添加此参数可以为商户操作员做销售统
private $operatorId;
// 商户门店编号,通过门店号和商家后台可以配置精准到门店的折扣信息,详询支付宝技术支持
private $storeId;
// 商户机具终端编号,当以机具方式接入支付宝时必传,详询支付宝技术支持
private $terminalId;
// 业务扩展参数,目前可添加由支付宝分配的系统商编号(通过setSysServiceProviderId方法),详情请咨询支付宝技术支持
private $extendParams = array();
// (推荐使用,相对时间) 支付超时时间5m 5分钟
private $timeExpress;
private $bizContent = NULL;
private $bizParas = array();
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizParas['out_trade_no'] = $outTradeNo;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setSellerId($sellerId)
{
$this->sellerId = $sellerId;
$this->bizParas['seller_id'] = $sellerId;
}
public function getSellerId()
{
return $this->sellerId;
}
public function setTotalAmount($totalAmount)
{
$this->totalAmount = $totalAmount;
$this->bizParas['total_amount'] = $totalAmount;
}
public function getTotalAmount()
{
return $this->totalAmount;
}
public function setDiscountableAmount($discountableAmount)
{
$this->discountableAmount = $discountableAmount;
$this->bizParas['discountable_amount'] = $discountableAmount;
}
public function getDiscountableAmount()
{
return $this->discountableAmount;
}
public function setBuyerId($buyerId)
{
$this->buyerId = $buyerId;
$this->bizParas['buyer_id'] = $buyerId;
}
public function getBuyerLogonId()
{
return $this->buyerLogonId;
}
public function setSubject($subject)
{
$this->subject = $subject;
$this->bizParas['subject'] = $subject;
}
public function getSubject()
{
return $this->subject;
}
public function setBody($body)
{
$this->body = $body;
$this->bizParas['body'] = $body;
}
public function getBody()
{
return $this->body;
}
public function setOperatorId($operatorId)
{
$this->operatorId = $operatorId;
$this->bizParas['operator_id'] = $operatorId;
}
public function getOperatorId()
{
return $this->operatorId;
}
public function setStoreId($storeId)
{
$this->storeId = $storeId;
$this->bizParas['store_id'] = $storeId;
}
public function getStoreId()
{
return $this->storeId;
}
public function setTerminalId($terminalId)
{
$this->terminalId = $terminalId;
$this->bizParas['terminal_id'] = $terminalId;
}
public function getTerminalId()
{
return $this->terminalId;
}
public function setTimeExpress($timeExpress)
{
$this->timeExpress = $timeExpress;
$this->bizParas['timeout_express'] = $timeExpress;
}
public function getTimeExpress()
{
return $this->timeExpress;
}
public function getExtendParams()
{
return $this->extendParams;
}
public function setExtendParams($extendParams)
{
$this->extendParams = $extendParams;
$this->bizParas['extend_params'] = $extendParams;
}
public function getGoodsDetailList()
{
return $this->goodsDetailList;
}
public function setGoodsDetailList($goodsDetailList)
{
$this->goodsDetailList = $goodsDetailList;
$this->bizParas['goods_detail'] = $goodsDetailList;
}
public function getBizContent()
{
if(!empty($this->bizParas)){
$this->bizContent = json_encode($this->bizParas,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
}
?>

View File

@@ -0,0 +1,65 @@
<?php
/* *
* 功能支付宝电脑网站支付alipay.trade.fastpay.refund.query (统一收单交易退款查询)业务参数封装
* 版本2.0
* 修改日期2017-05-01
* 说明:
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*/
class AlipayTradeFastpayRefundQueryContentBuilder
{
// 商户订单号.
private $outTradeNo;
// 支付宝交易号
private $tradeNo;
// 请求退款接口时,传入的退款请求号,如果在退款请求时未传入,则该值为创建交易时的外部交易号
private $outRequestNo;
private $bizContentarr = array();
private $bizContent = NULL;
public function getBizContent()
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
public function getTradeNo()
{
return $this->tradeNo;
}
public function setTradeNo($tradeNo)
{
$this->tradeNo = $tradeNo;
$this->bizContentarr['trade_no'] = $tradeNo;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizContentarr['out_trade_no'] = $outTradeNo;
}
public function getOutRequestNo()
{
return $this->outRequestNo;
}
public function setOutRequestNo($outRequestNo)
{
$this->outRequestNo = $outRequestNo;
$this->bizContentarr['out_request_no'] = $outRequestNo;
}
}
?>

View File

@@ -0,0 +1,111 @@
<?php
/* *
* 功能:支付宝电脑网站支付(alipay.trade.page.pay)接口业务参数封装
* 版本2.0
* 修改日期2017-05-01
* 说明:
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*/
class AlipayTradePagePayContentBuilder
{
// 订单描述,可以对交易或商品进行一个详细地描述,比如填写"购买商品2件共15.00元"
private $body;
// 订单标题,粗略描述用户的支付目的。
private $subject;
// 商户订单号.
private $outTradeNo;
// (推荐使用,相对时间) 该笔订单允许的最晚付款时间逾期将关闭交易。取值范围1m15d。m-分钟h-小时d-天1c-当天1c-当天的情况下无论交易何时创建都在0点关闭。 该参数数值不接受小数点, 如 1.5h,可转换为 90m
private $timeExpress;
// 订单总金额整形此处单位为元精确到小数点后2位不能超过1亿元
private $totalAmount;
// 产品标示码固定值QUICK_WAP_PAY
private $productCode;
private $bizContentarr = array();
private $bizContent = NULL;
public function getBizContent()
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
public function __construct()
{
$this->bizContentarr['product_code'] = "FAST_INSTANT_TRADE_PAY";
}
public function AlipayTradeWapPayContentBuilder()
{
$this->__construct();
}
public function getBody()
{
return $this->body;
}
public function setBody($body)
{
$this->body = $body;
$this->bizContentarr['body'] = $body;
}
public function setSubject($subject)
{
$this->subject = $subject;
$this->bizContentarr['subject'] = $subject;
}
public function getSubject()
{
return $this->subject;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizContentarr['out_trade_no'] = $outTradeNo;
}
public function setTimeExpress($timeExpress)
{
$this->timeExpress = $timeExpress;
$this->bizContentarr['timeout_express'] = $timeExpress;
}
public function getTimeExpress()
{
return $this->timeExpress;
}
public function setTotalAmount($totalAmount)
{
$this->totalAmount = $totalAmount;
$this->bizContentarr['total_amount'] = $totalAmount;
}
public function getTotalAmount()
{
return $this->totalAmount;
}
}
?>

View File

@@ -0,0 +1,254 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
require_once 'GoodsDetail.php';
require_once 'ExtendParams.php';
require_once 'RoyaltyDetailInfo.php';
require_once 'ContentBuilder.php';
class AlipayTradePrecreateContentBuilder extends ContentBuilder
{
// 商户网站订单系统中唯一订单号64个字符以内只能包含字母、数字、下划线
// 需保证商户系统端不能重复建议通过数据库sequence生成
private $outTradeNo;
// 卖家支付宝账号ID用于支持一个签约账号下支持打款到不同的收款账号(打款到sellerId对应的支付宝账号)
// 如果该字段为空则默认为与支付宝签约的商户的PID也就是appid对应的PID
private $sellerId;
// 订单总金额整形此处单位为元精确到小数点后2位不能超过1亿元
// 如果同时传入了【打折金额】,【不可打折金额】,【订单总金额】三者,则必须满足如下条件:【订单总金额】=【打折金额】+【不可打折金额】
private $totalAmount;
// 订单可打折金额此处单位为元精确到小数点后2位
// 可以配合商家平台配置折扣活动,如果订单部分商品参与打折,可以将部分商品总价填写至此字段,默认全部商品可打折
// 如果该值未传入,但传入了【订单总金额】,【不可打折金额】 则该值默认为【订单总金额】- 【不可打折金额】
private $discountableAmount;
// 订单不可打折金额此处单位为元精确到小数点后2位可以配合商家平台配置折扣活动如果酒水不参与打折则将对应金额填写至此字段
// 如果该值未传入,但传入了【订单总金额】,【打折金额】,则该值默认为【订单总金额】-【打折金额】
private $undiscountableAmount;
//买家支付宝账号
private $buyerLogonId;
// 订单标题,粗略描述用户的支付目的。如“喜士多(浦东店)消费”
private $subject;
// 订单描述,可以对交易或商品进行一个详细地描述,比如填写"购买商品2件共15.00元"
private $body;
// 商品明细列表,需填写购买商品详细信息,
private $goodsDetailList = array();
// 商户操作员编号,添加此参数可以为商户操作员做销售统
private $operatorId;
// 商户门店编号,通过门店号和商家后台可以配置精准到门店的折扣信息,详询支付宝技术支持
private $storeId;
// 支付宝商家平台中配置的商户门店号,详询支付宝技术支持
private $alipayStoreId;
// 商户机具终端编号,当以机具方式接入支付宝时必传,详询支付宝技术支持
private $terminalId;
// 业务扩展参数,目前可添加由支付宝分配的系统商编号(通过setSysServiceProviderId方法),详情请咨询支付宝技术支持
private $extendParams = array();
// (推荐使用,相对时间) 支付超时时间5m 5分钟
private $timeExpress;
private $bizContent = NULL;
private $bizParas = array();
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizParas['out_trade_no'] = $outTradeNo;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setSellerId($sellerId)
{
$this->sellerId = $sellerId;
$this->bizParas['seller_id'] = $sellerId;
}
public function getSellerId()
{
return $this->sellerId;
}
public function setTotalAmount($totalAmount)
{
$this->totalAmount = $totalAmount;
$this->bizParas['total_amount'] = $totalAmount;
}
public function getTotalAmount()
{
return $this->totalAmount;
}
public function setDiscountableAmount($discountableAmount)
{
$this->discountableAmount = $discountableAmount;
$this->bizParas['discountable_amount'] = $discountableAmount;
}
public function getDiscountableAmount()
{
return $this->discountableAmount;
}
public function setUndiscountableAmount($undiscountableAmount)
{
$this->undiscountableAmount = $undiscountableAmount;
$this->bizParas['undiscountable_amount'] = $undiscountableAmount;
}
public function getUndiscountableAmount()
{
return $this->undiscountableAmount;
}
public function setBuyerLogonId($buyerLogonId)
{
$this->buyerLogonId = $buyerLogonId;
$this->bizParas['buyer_logon_id'] = $buyerLogonId;
}
public function getBuyerLogonId()
{
return $this->buyerLogonId;
}
public function setSubject($subject)
{
$this->subject = $subject;
$this->bizParas['subject'] = $subject;
}
public function getSubject()
{
return $this->subject;
}
public function setBody($body)
{
$this->body = $body;
$this->bizParas['body'] = $body;
}
public function getBody()
{
return $this->body;
}
public function setOperatorId($operatorId)
{
$this->operatorId = $operatorId;
$this->bizParas['operator_id'] = $operatorId;
}
public function getOperatorId()
{
return $this->operatorId;
}
public function setStoreId($storeId)
{
$this->storeId = $storeId;
$this->bizParas['store_id'] = $storeId;
}
public function getStoreId()
{
return $this->storeId;
}
public function setTerminalId($terminalId)
{
$this->terminalId = $terminalId;
$this->bizParas['terminal_id'] = $terminalId;
}
public function getTerminalId()
{
return $this->terminalId;
}
public function setTimeExpress($timeExpress)
{
$this->timeExpress = $timeExpress;
$this->bizParas['timeout_express'] = $timeExpress;
}
public function getTimeExpress()
{
return $this->timeExpress;
}
public function getAlipayStoreId()
{
return $this->alipayStoreId;
}
public function setAlipayStoreId($alipayStoreId)
{
$this->alipayStoreId = $alipayStoreId;
$this->bizParas['alipay_store_id'] = $alipayStoreId;
}
public function getExtendParams()
{
return $this->extendParams;
}
public function setExtendParams($extendParams)
{
$this->extendParams = $extendParams;
$this->bizParas['extend_params'] = $extendParams;
}
public function getGoodsDetailList()
{
return $this->goodsDetailList;
}
public function setGoodsDetailList($goodsDetailList)
{
$this->goodsDetailList = $goodsDetailList;
$this->bizParas['goods_detail'] = $goodsDetailList;
}
public function getBizContent()
{
/*$this->bizContent = "{";
foreach ($this->bizParas as $k=>$v){
$this->bizContent.= "\"".$k."\":\"".$v."\",";
}
$this->bizContent = substr($this->bizContent,0,-1);
$this->bizContent.= "}";*/
if(!empty($this->bizParas)){
$this->bizContent = json_encode($this->bizParas,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
}
?>

View File

@@ -0,0 +1,55 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
require_once 'ContentBuilder.php';
class AlipayTradeQueryContentBuilder extends ContentBuilder
{
// 支付宝交易号,和商户订单号不能同时为空, 如果同时存在则通过tradeNo查询支付宝交易
private $tradeNo;
// 商户订单号,通过此商户订单号查询当面付的交易状态
private $outTradeNo;
private $bizContentarr = array();
private $bizContent = NULL;
public function getBizContent()
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizContentarr['out_trade_no'] = $outTradeNo;
}
public function getTradeNo()
{
return $this->tradeNo;
}
public function setTradeNo($tradeNo)
{
$this->tradeNo = $tradeNo;
$this->bizContentarr['trade_no'] = $tradeNo;
}
}
?>

View File

@@ -0,0 +1,149 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
require_once 'ContentBuilder.php';
class AlipayTradeRefundContentBuilder extends ContentBuilder
{
// 支付宝交易号,当面付支付成功后支付宝会返回给商户系统。通过此支付宝交易号进行交易退款
private $tradeNo;
// (推荐) 外部订单号,可通过外部订单号申请退款,推荐使用
private $outTradeNo;
// 退款金额该金额必须小于等于订单的支付金额此处单位为元精确到小数点后2位
private $refundAmount;
// (可选,需要支持重复退货时必填) 商户退款请求号,相同支付宝交易号下的不同退款请求号对应同一笔交易的不同退款申请,
// 对于相同支付宝交易号下多笔相同商户退款请求号的退款交易,支付宝只会进行一次退款
private $outRequestNo;
// (必填) 退款原因,可以说明用户退款原因,方便为商家后台提供统计
private $refundReason;
// (必填) 商户门店编号,退款情况下可以为商家后台提供退款权限判定和统计等作用,详询支付宝技术支持
private $storeId;
// 商户操作员编号,添加此参数可以为商户操作员做销售统
private $operatorId;
// 商户机具终端编号,当以机具方式接入支付宝时必传,详询支付宝技术支持
private $terminalId;
private $bizContentarr = array();
private $bizContent = NULL;
/* public function __construct()
{
$this->response = $response;
}
public function AlipayTradeRefundContentBuilder()
{
$this->__construct();
}*/
public function getBizContent()
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
public function setTradeNo($tradeNo)
{
$this->tradeNo = $tradeNo;
$this->bizContentarr['trade_no'] = $tradeNo;
}
public function getTradeNo()
{
return $this->tradeNo;
}
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizContentarr['out_trade_no'] = $outTradeNo;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setOperatorId($operatorId)
{
$this->operatorId = $operatorId;
$this->bizContentarr['operator_id'] = $operatorId;
}
public function getOperatorId()
{
return $this->operatorId;
}
public function setOutRequestNo($outRequestNo)
{
$this->outRequestNo = $outRequestNo;
$this->bizContentarr['out_request_no'] = $outRequestNo;
}
public function getOutRequestNo()
{
return $this->outRequestNo;
}
public function setRefundAmount($refundAmount)
{
$this->refundAmount = $refundAmount;
$this->bizContentarr['refund_amount'] = $refundAmount;
}
public function getRefundAmount()
{
return $this->refundAmount;
}
public function setRefundReason($refundReason)
{
$this->refundReason = $refundReason;
$this->bizContentarr['refund_reason'] = $refundReason;
}
public function getRefundReason()
{
return $this->refundReason;
}
public function setStoreId($storeId)
{
$this->storeId = $storeId;
$this->bizContentarr['store_id'] = $storeId;
}
public function getStoreId()
{
return $this->storeId;
}
public function setTerminalId($terminalId)
{
$this->terminalId = $terminalId;
$this->bizContentarr['terminal_id'] =$terminalId;
}
public function getTerminalId()
{
return $this->terminalId;
}
}
?>

View File

@@ -0,0 +1,124 @@
<?php
/* *
* 功能:支付宝手机网站支付接口(alipay.trade.wap.pay)接口业务参数封装
* 版本2.0
* 修改日期2016-11-01
* 说明:
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
*/
class AlipayTradeWapPayContentBuilder
{
// 订单描述,可以对交易或商品进行一个详细地描述,比如填写"购买商品2件共15.00元"
private $body;
// 订单标题,粗略描述用户的支付目的。
private $subject;
// 商户订单号.
private $outTradeNo;
// (推荐使用,相对时间) 支付超时时间5m 5分钟
private $timeExpress;
// 订单总金额整形此处单位为元精确到小数点后2位不能超过1亿元
private $totalAmount;
// 如果该字段为空则默认为与支付宝签约的商户的PID也就是appid对应的PID
private $sellerId;
// 产品标示码固定值QUICK_WAP_PAY
private $productCode;
private $bizContentarr = array();
private $bizContent = NULL;
public function getBizContent()
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
}
return $this->bizContent;
}
public function __construct()
{
$this->bizContentarr['productCode'] = "QUICK_WAP_PAY";
}
public function AlipayTradeWapPayContentBuilder()
{
$this->__construct();
}
public function getBody()
{
return $this->body;
}
public function setBody($body)
{
$this->body = $body;
$this->bizContentarr['body'] = $body;
}
public function setSubject($subject)
{
$this->subject = $subject;
$this->bizContentarr['subject'] = $subject;
}
public function getSubject()
{
return $this->subject;
}
public function getOutTradeNo()
{
return $this->outTradeNo;
}
public function setOutTradeNo($outTradeNo)
{
$this->outTradeNo = $outTradeNo;
$this->bizContentarr['out_trade_no'] = $outTradeNo;
}
public function setTimeExpress($timeExpress)
{
$this->timeExpress = $timeExpress;
$this->bizContentarr['timeout_express'] = $timeExpress;
}
public function getTimeExpress()
{
return $this->timeExpress;
}
public function setTotalAmount($totalAmount)
{
$this->totalAmount = $totalAmount;
$this->bizContentarr['total_amount'] = $totalAmount;
}
public function getTotalAmount()
{
return $this->totalAmount;
}
public function setSellerId($sellerId)
{
$this->sellerId = $sellerId;
$this->bizContentarr['seller_id'] = $sellerId;
}
public function getSellerId()
{
return $this->sellerId;
}
}
?>

View File

@@ -0,0 +1,36 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/6/27
* Time: 下午3:31
*/
class ContentBuilder
{
//第三方应用授权令牌
private $appAuthToken;
//异步通知地址(仅扫码支付使用)
private $notifyUrl;
public function setAppAuthToken($appAuthToken)
{
$this->appAuthToken = $appAuthToken;
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
}
public function getAppAuthToken()
{
return $this->appAuthToken;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
}

View File

@@ -0,0 +1,61 @@
<?php
/**
* Created by PhpStorm.
* User: airwalk
* Date: 16/5/19
* Time: 下午3:56
*/
class ExtendParams
{
// 系统商编号
private $sysServiceProviderId;
//使用花呗分期要进行的分期数,非必填项
private $hbFqNum;
//使用花呗分期需要卖家承担的手续费比例的百分值
private $hbFqSellerPercent;
private $extendParamsArr = array();
public function getExtendParams()
{
if(!empty($this->extendParamsArr)) {
return $this->extendParamsArr;
}
}
public function getSysServiceProviderId()
{
return $this->sysServiceProviderId;
}
public function setSysServiceProviderId($sysServiceProviderId)
{
$this->sysServiceProviderId = $sysServiceProviderId;
$this->extendParamsArr['sys_service_provider_id'] = $sysServiceProviderId;
}
public function getHbFqNum()
{
return $this->hbFqNum;
}
public function setHbFqNum($hbFqNum)
{
$this->hbFqNum = $hbFqNum;
$this->extendParamsArr['hb_fq_num'] = $hbFqNum;
}
public function getHbFqSellerPercent()
{
return $this->hbFqSellerPercent;
}
public function setHbFqSellerPercent($hbFqSellerPercent)
{
$this->hbFqSellerPercent = $hbFqSellerPercent;
$this->extendParamsArr['hb_fq_seller_percent'] = $hbFqSellerPercent;
}
}

View File

@@ -0,0 +1,129 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
class GoodsDetail
{
// 商品编号(国标)
private $goodsId;
//支付宝定义的统一商品编号
private $alipayGoodsId;
// 商品名称
private $goodsName;
// 商品数量
private $quantity;
// 商品价格此处单位为元精确到小数点后2位
private $price;
// 商品类别
private $goodsCategory;
// 商品详情
private $body;
private $goodsDetail = array();
//单个商品json字符串
//private $goodsDetailStr = NULL;
//获取单个商品的json字符串
public function getGoodsDetail()
{
return $this->goodsDetail;
/*$this->goodsDetailStr = "{";
foreach ($this->goodsDetail as $k => $v){
$this->goodsDetailStr.= "\"".$k."\":\"".$v."\",";
}
$this->goodsDetailStr = substr($this->goodsDetailStr,0,-1);
$this->goodsDetailStr.= "}";
return $this->goodsDetailStr;*/
}
public function setGoodsId($goodsId)
{
$this->goodsId = $goodsId;
$this->goodsDetail['goods_id'] = $goodsId;
}
public function getGoodsId()
{
return $this->goodsId;
}
public function setAlipayGoodsId($alipayGoodsId)
{
$this->alipayGoodsId = $alipayGoodsId;
$this->goodsDetail['alipay_goods_id'] = $alipayGoodsId;
}
public function getAlipayGoodsId()
{
return $this->alipayGoodsId;
}
public function setGoodsName($goodsName)
{
$this->goodsName = $goodsName;
$this->goodsDetail['goods_name'] = $goodsName;
}
public function getGoodsName()
{
return $this->goodsName;
}
public function setQuantity($quantity)
{
$this->quantity = $quantity;
$this->goodsDetail['quantity'] = $quantity;
}
public function getQuantity()
{
return $this->quantity;
}
public function setPrice($price)
{
$this->price = $price;
$this->goodsDetail['price'] = $price;
}
public function getPrice()
{
return $this->price;
}
public function setGoodsCategory($goodsCategory)
{
$this->goodsCategory = $goodsCategory;
$this->goodsDetail['goods_category'] = $goodsCategory;
}
public function getGoodsCategory()
{
return $this->goodsCategory;
}
public function setBody($body)
{
$this->body = $body;
$this->goodsDetail['body'] = $body;
}
public function getBody()
{
return $this->body;
}
}
?>

View File

@@ -0,0 +1,161 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/20
* Time: 上午11:33
*/
class RoyaltyDetailInfo
{
//分账序列号,表示分账执行的顺序,必须为正整数
private $serialNo;
//接受分账金额的账户类型默认值为userId。
//userId支付宝账号对应的支付宝唯一用户号。
//bankIndex分账到银行账户的银行编号。目前暂时只支持分账到一个银行编号。
//storeId分账到门店对应的银行卡编号。
private $transInType;
//(必填)分账批次号 分账批次号。 目前需要和转入账号类型为bankIndex配合使用
private $batchNo;
//商户分账的外部关联号,用于关联到每一笔分账信息,商户需保证其唯一性。
//如果为空,该值则默认为“商户网站唯一订单号+分账序列号”
private $outRelationId;
//(必填)要分账的账户类型,默认值为userId
//目前只支持userId支付宝账号对应的支付宝唯一用户号
private $transOutType;
//(必填)如果转出账号类型为userId本参数为要分账的支付宝账号对应的支付宝唯一用户号。
//以2088开头的纯16位数字。
private $transOut;
//(必填)如果转入账号类型为userId本参数为接受分账金额的支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字。
//如果转入账号类型为bankIndex本参数为28位的银行编号商户和支付宝签约时确定
//如果转入账号类型为storeId本参数为商户的门店ID。
private $transIn;
//(必填)分账的金额,单位为元
private $amount;
//分账描述信息
private $desc;
private $royaltyDetailInfo = array();
public function __construct()
{
$this->setTransInType("userId");
$this->setTransOutType("userId");
}
public function RoyaltyDetailInfo(){
$this->__construct();
}
public function getRoyaltyDetailInfo()
{
return $this->royaltyDetailInfo;
}
public function getAmount()
{
return $this->amount;
}
public function getBatchNo()
{
return $this->batchNo;
}
public function getDesc()
{
return $this->desc;
}
public function getOutRelationId()
{
return $this->outRelationId;
}
public function getSerialNo()
{
return $this->serialNo;
}
public function getTransIn()
{
return $this->transIn;
}
public function getTransInType()
{
return $this->transInType;
}
public function getTransOut()
{
return $this->transOut;
}
public function getTransOutType()
{
return $this->transOutType;
}
public function setAmount($amount)
{
$this->amount = $amount;
$this->royaltyDetailInfo['amount'] = $amount;
}
public function setBatchNo($batchNo)
{
$this->batchNo = $batchNo;
$this->royaltyDetailInfo['batch_no'] = $batchNo;
}
public function setDesc($desc)
{
$this->desc = $desc;
$this->royaltyDetailInfo['desc'] = $desc;
}
public function setOutRelationId($outRelationId)
{
$this->outRelationId = $outRelationId;
$this->royaltyDetailInfo['out_relation_id'] = $outRelationId;
}
public function setSerialNo($serialNo)
{
$this->serialNo = $serialNo;
$this->royaltyDetailInfo['serial_no'] = $serialNo;
}
public function setTransIn($transIn)
{
$this->transIn = $transIn;
$this->royaltyDetailInfo['trans_in'] = $transIn;
}
public function setTransInType($transInType)
{
$this->transInType = $transInType;
$this->royaltyDetailInfo['trans_in_type'] = $transInType;
}
public function setTransOut($transOut)
{
$this->transOut = $transOut;
$this->royaltyDetailInfo['trans_out'] = $transOut;
}
public function setTransOutType($transOutType)
{
$this->transOutType = $transOutType;
$this->royaltyDetailInfo['trans_out_type'] = $transOutType;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.fund.account.query request
*
* @author auto create
* @since 1.0, 2019-11-08 12:17:16
*/
class AlipayFundAccountQueryRequest
{
/**
* 支付宝资金账户资产查询接口
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.fund.account.query";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.fund.trans.common.query request
*
* @author auto create
* @since 1.0, 2019-10-19 09:32:00
*/
class AlipayFundTransCommonQueryRequest
{
/**
* 转账业务单据查询接口
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.fund.trans.common.query";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.fund.trans.toaccount.transfer request
*
* @author auto create
* @since 1.0, 2019-06-17 11:15:01
*/
class AlipayFundTransToaccountTransferRequest
{
/**
* 单笔转账到支付宝账户接口
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.fund.trans.toaccount.transfer";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.fund.trans.uni.transfer request
*
* @author auto create
* @since 1.0, 2019-10-23 15:09:00
*/
class AlipayFundTransUniTransferRequest
{
/**
* 支付宝转账支付接口
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.fund.trans.uni.transfer";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,150 @@
<?php
/**
* ALIPAY API: alipay.system.oauth.token request
*
* @author auto create
* @since 1.0, 2018-07-13 17:18:06
*/
class AlipaySystemOauthTokenRequest
{
/**
* 授权码,用户对应用授权后得到。
**/
private $code;
/**
* 值为authorization_code时代表用code换取值为refresh_token时代表用refresh_token换取
**/
private $grantType;
/**
* 刷新令牌上次换取访问令牌时得到。见出参的refresh_token字段
**/
private $refreshToken;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setCode($code)
{
$this->code = $code;
$this->apiParas["code"] = $code;
}
public function getCode()
{
return $this->code;
}
public function setGrantType($grantType)
{
$this->grantType = $grantType;
$this->apiParas["grant_type"] = $grantType;
}
public function getGrantType()
{
return $this->grantType;
}
public function setRefreshToken($refreshToken)
{
$this->refreshToken = $refreshToken;
$this->apiParas["refresh_token"] = $refreshToken;
}
public function getRefreshToken()
{
return $this->refreshToken;
}
public function getApiMethodName()
{
return "alipay.system.oauth.token";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.trade.close request
*
* @author auto create
* @since 1.0, 2016-11-09 22:08:22
*/
class AlipayTradeCloseRequest
{
/**
* 统一收单交易关闭接口
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.close";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.trade.create request
*
* @author auto create
* @since 1.0, 2019-07-15 17:17:13
*/
class AlipayTradeCreateRequest
{
/**
* 商户通过该接口进行交易的创建下单
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.create";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.trade.fastpay.refund.query request
*
* @author auto create
* @since 1.0, 2017-03-23 19:11:54
*/
class AlipayTradeFastpayRefundQueryRequest
{
/**
* 商户可使用该接口查询自已通过alipay.trade.refund提交的退款请求是否执行成功。
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.fastpay.refund.query";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.trade.page.pay request
*
* @author auto create
* @since 1.0, 2017-04-06 15:55:36
*/
class AlipayTradePagePayRequest
{
/**
* 统一收单下单并支付页面接口
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.page.pay";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,119 @@
<?php
/**
* ALIPAY API: alipay.trade.precreate request
*
* @author auto create
* @since 1.0, 2017-01-09 15:29:09
*/
class AlipayTradePrecreateRequest
{
/**
* 收银员通过收银台或商户后台调用支付宝接口,生成二维码后,展示给伤脑筋户,由用户扫描二维码完成订单支付。
修改路由策略到R
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.precreate";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,119 @@
<?php
/**
* ALIPAY API: alipay.trade.query request
*
* @author auto create
* @since 1.0, 2017-01-09 15:37:43
*/
class AlipayTradeQueryRequest
{
/**
* 统一收单线下交易查询
修改路由策略到R
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.query";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.trade.refund request
*
* @author auto create
* @since 1.0, 2017-01-13 19:12:23
*/
class AlipayTradeRefundRequest
{
/**
* 统一收单交易退款接口
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.refund";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.trade.wap.pay request
*
* @author auto create
* @since 1.0, 2016-11-17 11:46:00
*/
class AlipayTradeWapPayRequest
{
/**
* 手机网站支付接口2.0
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.trade.wap.pay";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.user.certify.open.certify request
*
* @author auto create
* @since 1.0, 2019-07-11 19:50:01
*/
class AlipayUserCertifyOpenCertifyRequest
{
/**
* 开放认证开始认证
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.user.certify.open.certify";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.user.certify.open.initialize request
*
* @author auto create
* @since 1.0, 2019-06-05 18:35:01
*/
class AlipayUserCertifyOpenInitializeRequest
{
/**
* 支付宝开放认证初始化服务
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.user.certify.open.initialize";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,118 @@
<?php
/**
* ALIPAY API: alipay.user.certify.open.query request
*
* @author auto create
* @since 1.0, 2019-01-07 20:51:15
*/
class AlipayUserCertifyOpenQueryRequest
{
/**
* 支付宝开放认证查询
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "alipay.user.certify.open.query";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,103 @@
<?php
/**
* ALIPAY API: alipay.user.info.share request
*
* @author auto create
* @since 1.0, 2018-07-13 17:18:06
*/
class AlipayUserInfoShareRequest
{
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function getApiMethodName()
{
return "alipay.user.info.share";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
class AlipayF2FPrecreateResult
{
private $tradeStatus;
private $response;
public function __construct($response)
{
$this->response = $response;
}
public function AlipayF2FPrecreateResult($response)
{
$this->__construct($response);
}
public function setTradeStatus($tradeStatus)
{
$this->tradeStatus = $tradeStatus;
}
public function getTradeStatus()
{
return $this->tradeStatus;
}
public function setResponse($response)
{
$this->response = $response;
}
public function getResponse()
{
return $this->response;
}
}
?>

View File

@@ -0,0 +1,44 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
class AlipayF2FQueryResult
{
private $tradeStatus;
private $response;
public function __construct($response)
{
$this->response = $response;
}
public function AlipayF2FPayResult($response)
{
$this->__construct($response);
}
public function setTradeStatus($tradeStatus)
{
$this->tradeStatus = $tradeStatus;
}
public function getTradeStatus()
{
return $this->tradeStatus;
}
public function setResponse($response)
{
$this->response = $response;
}
public function getResponse()
{
return $this->response;
}
}
?>

View File

@@ -0,0 +1,44 @@
<?php
/**
* Created by PhpStorm.
* User: xudong.ding
* Date: 16/5/19
* Time: 下午2:09
*/
class AlipayF2FRefundResult
{
private $tradeStatus;
private $response;
public function __construct($response)
{
$this->response = $response;
}
public function AlipayF2FPayResult($response)
{
$this->__construct($response);
}
public function setTradeStatus($tradeStatus)
{
$this->tradeStatus = $tradeStatus;
}
public function getTradeStatus()
{
return $this->tradeStatus;
}
public function setResponse($response)
{
$this->response = $response;
}
public function getResponse()
{
return $this->response;
}
}
?>