123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <?php
- /**
- * ALIPAY API: alipay.ebpp.pdeduct.pay request
- *
- * @author auto create
- * @since 1.0, 2019-03-08 15:29:11
- */
- class AlipayEbppPdeductPayRequest
- {
- /**
- * 渠道码,如用户通过机构通过服务窗进来签约则是PUBLICFORM,此值可随意传,只要不空就行
- **/
- private $agentChannel;
-
- /**
- * 二级渠道码,预留字段
- **/
- private $agentCode;
-
- /**
- * 支付宝代扣协议Id
- **/
- private $agreementId;
-
- /**
- * 账期
- **/
- private $billDate;
-
- /**
- * 户号,缴费单位用于标识每一户的唯一性的
- **/
- private $billKey;
-
- /**
- * 扩展参数。必须以key value形式定义,
- 转为json为格式:{"key1":"value1","key2":"value2",
- "key3":"value3","key4":"value4"}
- 后端会直接转换为MAP对象,转换异常会报参数格式错误
- **/
- private $extendField;
-
- /**
- * 滞纳金
- **/
- private $fineAmount;
-
- /**
- * 备注信息
- **/
- private $memo;
-
- /**
- * 商户外部业务流水号
- **/
- private $outOrderNo;
-
- /**
- * 扣款金额,支付总金额,包含滞纳金
- **/
- private $payAmount;
-
- /**
- * 商户PartnerId
- **/
- private $pid;
-
- /**
- * 用户ID
- **/
- private $userId;
- private $apiParas = array();
- private $terminalType;
- private $terminalInfo;
- private $prodCode;
- private $apiVersion="1.0";
- private $notifyUrl;
- private $returnUrl;
- private $needEncrypt=false;
-
- public function setAgentChannel($agentChannel)
- {
- $this->agentChannel = $agentChannel;
- $this->apiParas["agent_channel"] = $agentChannel;
- }
- public function getAgentChannel()
- {
- return $this->agentChannel;
- }
- public function setAgentCode($agentCode)
- {
- $this->agentCode = $agentCode;
- $this->apiParas["agent_code"] = $agentCode;
- }
- public function getAgentCode()
- {
- return $this->agentCode;
- }
- public function setAgreementId($agreementId)
- {
- $this->agreementId = $agreementId;
- $this->apiParas["agreement_id"] = $agreementId;
- }
- public function getAgreementId()
- {
- return $this->agreementId;
- }
- public function setBillDate($billDate)
- {
- $this->billDate = $billDate;
- $this->apiParas["bill_date"] = $billDate;
- }
- public function getBillDate()
- {
- return $this->billDate;
- }
- public function setBillKey($billKey)
- {
- $this->billKey = $billKey;
- $this->apiParas["bill_key"] = $billKey;
- }
- public function getBillKey()
- {
- return $this->billKey;
- }
- public function setExtendField($extendField)
- {
- $this->extendField = $extendField;
- $this->apiParas["extend_field"] = $extendField;
- }
- public function getExtendField()
- {
- return $this->extendField;
- }
- public function setFineAmount($fineAmount)
- {
- $this->fineAmount = $fineAmount;
- $this->apiParas["fine_amount"] = $fineAmount;
- }
- public function getFineAmount()
- {
- return $this->fineAmount;
- }
- public function setMemo($memo)
- {
- $this->memo = $memo;
- $this->apiParas["memo"] = $memo;
- }
- public function getMemo()
- {
- return $this->memo;
- }
- public function setOutOrderNo($outOrderNo)
- {
- $this->outOrderNo = $outOrderNo;
- $this->apiParas["out_order_no"] = $outOrderNo;
- }
- public function getOutOrderNo()
- {
- return $this->outOrderNo;
- }
- public function setPayAmount($payAmount)
- {
- $this->payAmount = $payAmount;
- $this->apiParas["pay_amount"] = $payAmount;
- }
- public function getPayAmount()
- {
- return $this->payAmount;
- }
- public function setPid($pid)
- {
- $this->pid = $pid;
- $this->apiParas["pid"] = $pid;
- }
- public function getPid()
- {
- return $this->pid;
- }
- public function setUserId($userId)
- {
- $this->userId = $userId;
- $this->apiParas["user_id"] = $userId;
- }
- public function getUserId()
- {
- return $this->userId;
- }
- public function getApiMethodName()
- {
- return "alipay.ebpp.pdeduct.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;
- }
- }
|