You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
3.9 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/**
* ALIPAY API: alipay.pass.sync.update request
*
* @author auto create
* @since 1.0, 2017-12-07 20:19:03
*/
class AlipayPassSyncUpdateRequest
{
/**
* 代理商代替商户发放卡券后再代替商户更新卡券时此值为商户的pid/appid商户自己发券时此值为空或者商户appId
**/
private $channelId;
/**
* 用来传递外部交易号等扩展参数信息格式为json
**/
private $extInfo;
/**
* 需要修改的pass信息可以更新全部pass信息也可以斤更新某一节点。pass信息中的pass.json中的数据格式如果不需要更新该属性值设置为null即可。
**/
private $pass;
/**
* Alipass唯一标识
**/
private $serialNumber;
/**
* Alipass状态目前仅支持CLOSED及USED两种数据。status为USED时verify_type即为核销时的核销方式。
**/
private $status;
/**
* 核销码串值【当状态变更为USED时建议传入】
**/
private $verifyCode;
/**
* 核销方式目前支持wave声波方式、qrcode二维码方式、barcode条码方式、input文本方式即手工输入方式。pass和verify_type不能同时为空
**/
private $verifyType;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setChannelId($channelId)
{
$this->channelId = $channelId;
$this->apiParas["channel_id"] = $channelId;
}
public function getChannelId()
{
return $this->channelId;
}
public function setExtInfo($extInfo)
{
$this->extInfo = $extInfo;
$this->apiParas["ext_info"] = $extInfo;
}
public function getExtInfo()
{
return $this->extInfo;
}
public function setPass($pass)
{
$this->pass = $pass;
$this->apiParas["pass"] = $pass;
}
public function getPass()
{
return $this->pass;
}
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
$this->apiParas["serial_number"] = $serialNumber;
}
public function getSerialNumber()
{
return $this->serialNumber;
}
public function setStatus($status)
{
$this->status = $status;
$this->apiParas["status"] = $status;
}
public function getStatus()
{
return $this->status;
}
public function setVerifyCode($verifyCode)
{
$this->verifyCode = $verifyCode;
$this->apiParas["verify_code"] = $verifyCode;
}
public function getVerifyCode()
{
return $this->verifyCode;
}
public function setVerifyType($verifyType)
{
$this->verifyType = $verifyType;
$this->apiParas["verify_type"] = $verifyType;
}
public function getVerifyType()
{
return $this->verifyType;
}
public function getApiMethodName()
{
return "alipay.pass.sync.update";
}
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;
}
}