增加聚合支付托管下单

This commit is contained in:
2024-04-01 17:07:53 +08:00
parent 899d816bc3
commit f8299b36aa
1291 changed files with 220566 additions and 169 deletions

View File

@@ -0,0 +1,49 @@
<?php
namespace Yeepay\Yop\Sdk\Service\AtVcc;
use Yeepay\Yop\Sdk\Client\ClientExecutionParams;
use Yeepay\Yop\Sdk\Client\ClientHandler;
use Yeepay\Yop\Sdk\Client\ClientParams;
use Yeepay\Yop\Sdk\Exception\YopClientException;
use Yeepay\Yop\Sdk\Service\AtVcc\Model as Model;
class AtVccClient
{
/**
* @var ClientHandler
*/
private $clientHandler;
/**
* AtVccClient constructor.
* @param ClientParams $clientParams
*/
function __construct(ClientParams $clientParams)
{
$this->clientHandler = new ClientHandler($clientParams);
}
/**
* @param Model\UnionPayOrderQueryRequest $request
* @return Model\UnionPayOrderQueryResponse
* @throws YopClientException
*/
public function unionPayOrderQuery(Model\UnionPayOrderQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getRequestNo() == null) {
throw new YopClientException("request.requestNo is required.");
}
if ($request->getCustomerNo() == null) {
throw new YopClientException("request.customerNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\UnionPayOrderQueryRequestMarshaller::getInstance(),
Model\UnionPayOrderQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
}

View File

@@ -0,0 +1,68 @@
<?php
namespace Yeepay\Yop\Sdk\Service\AtVcc;
use Yeepay\Yop\Sdk\Auth\AuthorityReqRegistryImpl;
use Yeepay\Yop\Sdk\Auth\AuthorizationReqRegistry;
use Yeepay\Yop\Sdk\Auth\AuthorizationReqSupport;
use Yeepay\Yop\Sdk\Client\ClientParams;
use Yeepay\Yop\Sdk\Client\Support\ClientParamsSupport;
use Yeepay\Yop\Sdk\Config\AppSdkConfig;
use Yeepay\Yop\Sdk\Config\AppSdkConfigProvider;
use Yeepay\Yop\Sdk\Config\DefaultAppSdkConfigProvider;
use Yeepay\Yop\Sdk\Exception\YopClientException;
class AtVccClientBuilder
{
/**
* @var AuthorizationReqRegistry
*/
private static $authorizationReqRegistry;
public static function __init()
{
self::$authorizationReqRegistry = new AuthorityReqRegistryImpl();
self::$authorizationReqRegistry->register('unionPayOrderQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
}
/**
* @var ClientParams
*/
private $clientParams;
/**
* AtVccClientBuilder constructor.
* @param ClientParams $clientParams
*/
public function __construct(ClientParams $clientParams)
{
$this->clientParams = $clientParams;
}
public function build()
{
return new AtVccClient($this->clientParams);
}
/**
* @param $config AppSdkConfig|array|AppSdkConfigProvider
* @return AtVccClientBuilder
* @throws YopClientException
*/
public static function builder($config)
{
$appSdkConfigProvider = null;
if ($config instanceof AppSdkConfigProvider) {
$appSdkConfigProvider = $config;
} else {
$appSdkConfigProvider = new DefaultAppSdkConfigProvider($config);
}
$clientParams = ClientParamsSupport::generateClientParams($appSdkConfigProvider);
$clientParams->setAuthorizationReqRegistry(self::$authorizationReqRegistry);
return new AtVccClientBuilder($clientParams);
}
}
AtVccClientBuilder::__init();

View File

@@ -0,0 +1,632 @@
<?php
/**
* UnionPayOrderQueryAuthReportDetailResponseDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 环球易汇
*
* <p>营销产品码VCC_GLOBAL &nbsp;</p> <p>产品名称:环球易汇&nbsp;</p>
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\AtVcc\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* UnionPayOrderQueryAuthReportDetailResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class UnionPayOrderQueryAuthReportDetailResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'UnionPayOrderQueryAuthReportDetailResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'tradeId' => 'string',
'transactionType' => 'string',
'transactionTime' => 'string',
'swipeCardAmount' => 'float',
'swipeCardCurrency' => 'string',
'transactionAmount' => 'float',
'transactionCurrency' => 'string',
'merchantName' => 'string',
'merchantCity' => 'string',
'merchantCountryName' => 'string',
'mcc' => 'string',
'status' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'tradeId' => null,
'transactionType' => null,
'transactionTime' => 'date-time',
'swipeCardAmount' => null,
'swipeCardCurrency' => null,
'transactionAmount' => null,
'transactionCurrency' => null,
'merchantName' => null,
'merchantCity' => null,
'merchantCountryName' => null,
'mcc' => null,
'status' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'tradeId' => 'tradeId',
'transactionType' => 'transactionType',
'transactionTime' => 'transactionTime',
'swipeCardAmount' => 'swipeCardAmount',
'swipeCardCurrency' => 'swipeCardCurrency',
'transactionAmount' => 'transactionAmount',
'transactionCurrency' => 'transactionCurrency',
'merchantName' => 'merchantName',
'merchantCity' => 'merchantCity',
'merchantCountryName' => 'merchantCountryName',
'mcc' => 'mcc',
'status' => 'status'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'tradeId' => 'setTradeId',
'transactionType' => 'setTransactionType',
'transactionTime' => 'setTransactionTime',
'swipeCardAmount' => 'setSwipeCardAmount',
'swipeCardCurrency' => 'setSwipeCardCurrency',
'transactionAmount' => 'setTransactionAmount',
'transactionCurrency' => 'setTransactionCurrency',
'merchantName' => 'setMerchantName',
'merchantCity' => 'setMerchantCity',
'merchantCountryName' => 'setMerchantCountryName',
'mcc' => 'setMcc',
'status' => 'setStatus'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'tradeId' => 'getTradeId',
'transactionType' => 'getTransactionType',
'transactionTime' => 'getTransactionTime',
'swipeCardAmount' => 'getSwipeCardAmount',
'swipeCardCurrency' => 'getSwipeCardCurrency',
'transactionAmount' => 'getTransactionAmount',
'transactionCurrency' => 'getTransactionCurrency',
'merchantName' => 'getMerchantName',
'merchantCity' => 'getMerchantCity',
'merchantCountryName' => 'getMerchantCountryName',
'mcc' => 'getMcc',
'status' => 'getStatus'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['tradeId'] = isset($data['tradeId']) ? $data['tradeId'] : null;
$this->container['transactionType'] = isset($data['transactionType']) ? $data['transactionType'] : null;
$this->container['transactionTime'] = isset($data['transactionTime']) ? $data['transactionTime'] : null;
$this->container['swipeCardAmount'] = isset($data['swipeCardAmount']) ? $data['swipeCardAmount'] : null;
$this->container['swipeCardCurrency'] = isset($data['swipeCardCurrency']) ? $data['swipeCardCurrency'] : null;
$this->container['transactionAmount'] = isset($data['transactionAmount']) ? $data['transactionAmount'] : null;
$this->container['transactionCurrency'] = isset($data['transactionCurrency']) ? $data['transactionCurrency'] : null;
$this->container['merchantName'] = isset($data['merchantName']) ? $data['merchantName'] : null;
$this->container['merchantCity'] = isset($data['merchantCity']) ? $data['merchantCity'] : null;
$this->container['merchantCountryName'] = isset($data['merchantCountryName']) ? $data['merchantCountryName'] : null;
$this->container['mcc'] = isset($data['mcc']) ? $data['mcc'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets tradeId
*
* @return string
*/
public function getTradeId()
{
return $this->container['tradeId'];
}
/**
* Sets tradeId
*
* @param string $tradeId 交易标识号
*
* @return $this
*/
public function setTradeId($tradeId)
{
$this->container['tradeId'] = $tradeId;
return $this;
}
/**
* Gets transactionType
*
* @return string
*/
public function getTransactionType()
{
return $this->container['transactionType'];
}
/**
* Sets transactionType
*
* @param string $transactionType 交易类型
*
* @return $this
*/
public function setTransactionType($transactionType)
{
$this->container['transactionType'] = $transactionType;
return $this;
}
/**
* Gets transactionTime
*
* @return string
*/
public function getTransactionTime()
{
return $this->container['transactionTime'];
}
/**
* Sets transactionTime
*
* @param string $transactionTime 交易时间
*
* @return $this
*/
public function setTransactionTime($transactionTime)
{
$this->container['transactionTime'] = $transactionTime;
return $this;
}
/**
* Gets swipeCardAmount
*
* @return float
*/
public function getSwipeCardAmount()
{
return $this->container['swipeCardAmount'];
}
/**
* Sets swipeCardAmount
*
* @param float $swipeCardAmount 刷卡金额
*
* @return $this
*/
public function setSwipeCardAmount($swipeCardAmount)
{
$this->container['swipeCardAmount'] = $swipeCardAmount;
return $this;
}
/**
* Gets swipeCardCurrency
*
* @return string
*/
public function getSwipeCardCurrency()
{
return $this->container['swipeCardCurrency'];
}
/**
* Sets swipeCardCurrency
*
* @param string $swipeCardCurrency 刷卡币种
*
* @return $this
*/
public function setSwipeCardCurrency($swipeCardCurrency)
{
$this->container['swipeCardCurrency'] = $swipeCardCurrency;
return $this;
}
/**
* Gets transactionAmount
*
* @return float
*/
public function getTransactionAmount()
{
return $this->container['transactionAmount'];
}
/**
* Sets transactionAmount
*
* @param float $transactionAmount 交易金额
*
* @return $this
*/
public function setTransactionAmount($transactionAmount)
{
$this->container['transactionAmount'] = $transactionAmount;
return $this;
}
/**
* Gets transactionCurrency
*
* @return string
*/
public function getTransactionCurrency()
{
return $this->container['transactionCurrency'];
}
/**
* Sets transactionCurrency
*
* @param string $transactionCurrency 交易币种
*
* @return $this
*/
public function setTransactionCurrency($transactionCurrency)
{
$this->container['transactionCurrency'] = $transactionCurrency;
return $this;
}
/**
* Gets merchantName
*
* @return string
*/
public function getMerchantName()
{
return $this->container['merchantName'];
}
/**
* Sets merchantName
*
* @param string $merchantName 收款商户名
*
* @return $this
*/
public function setMerchantName($merchantName)
{
$this->container['merchantName'] = $merchantName;
return $this;
}
/**
* Gets merchantCity
*
* @return string
*/
public function getMerchantCity()
{
return $this->container['merchantCity'];
}
/**
* Sets merchantCity
*
* @param string $merchantCity 收款方城市
*
* @return $this
*/
public function setMerchantCity($merchantCity)
{
$this->container['merchantCity'] = $merchantCity;
return $this;
}
/**
* Gets merchantCountryName
*
* @return string
*/
public function getMerchantCountryName()
{
return $this->container['merchantCountryName'];
}
/**
* Sets merchantCountryName
*
* @param string $merchantCountryName 收款方国家
*
* @return $this
*/
public function setMerchantCountryName($merchantCountryName)
{
$this->container['merchantCountryName'] = $merchantCountryName;
return $this;
}
/**
* Gets mcc
*
* @return string
*/
public function getMcc()
{
return $this->container['mcc'];
}
/**
* Sets mcc
*
* @param string $mcc mcc
*
* @return $this
*/
public function setMcc($mcc)
{
$this->container['mcc'] = $mcc;
return $this;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,602 @@
<?php
/**
* UnionPayOrderQueryAuthReportQueryResponseDTOResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 环球易汇
*
* <p>营销产品码VCC_GLOBAL &nbsp;</p> <p>产品名称:环球易汇&nbsp;</p>
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\AtVcc\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* UnionPayOrderQueryAuthReportQueryResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class UnionPayOrderQueryAuthReportQueryResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'UnionPayOrderQueryAuthReportQueryResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'retCode' => 'string',
'retMsg' => 'string',
'requestNo' => 'string',
'customerNo' => 'string',
'cardNo' => 'string',
'extInfo' => 'string',
'cardUseType' => 'string',
'openCardTime' => 'string',
'cardUseOutTime' => 'string',
'cardOrganization' => 'string',
'details' => '\Yeepay\Yop\Sdk\Service\AtVcc\Model\UnionPayOrderQueryAuthReportDetailResponseDTOResult[]'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'retCode' => null,
'retMsg' => null,
'requestNo' => null,
'customerNo' => null,
'cardNo' => null,
'extInfo' => null,
'cardUseType' => null,
'openCardTime' => 'date-time',
'cardUseOutTime' => 'date-time',
'cardOrganization' => null,
'details' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'retCode' => 'retCode',
'retMsg' => 'retMsg',
'requestNo' => 'requestNo',
'customerNo' => 'customerNo',
'cardNo' => 'cardNo',
'extInfo' => 'extInfo',
'cardUseType' => 'cardUseType',
'openCardTime' => 'openCardTime',
'cardUseOutTime' => 'cardUseOutTime',
'cardOrganization' => 'cardOrganization',
'details' => 'details'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'retCode' => 'setRetCode',
'retMsg' => 'setRetMsg',
'requestNo' => 'setRequestNo',
'customerNo' => 'setCustomerNo',
'cardNo' => 'setCardNo',
'extInfo' => 'setExtInfo',
'cardUseType' => 'setCardUseType',
'openCardTime' => 'setOpenCardTime',
'cardUseOutTime' => 'setCardUseOutTime',
'cardOrganization' => 'setCardOrganization',
'details' => 'setDetails'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'retCode' => 'getRetCode',
'retMsg' => 'getRetMsg',
'requestNo' => 'getRequestNo',
'customerNo' => 'getCustomerNo',
'cardNo' => 'getCardNo',
'extInfo' => 'getExtInfo',
'cardUseType' => 'getCardUseType',
'openCardTime' => 'getOpenCardTime',
'cardUseOutTime' => 'getCardUseOutTime',
'cardOrganization' => 'getCardOrganization',
'details' => 'getDetails'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['retCode'] = isset($data['retCode']) ? $data['retCode'] : null;
$this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null;
$this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null;
$this->container['extInfo'] = isset($data['extInfo']) ? $data['extInfo'] : null;
$this->container['cardUseType'] = isset($data['cardUseType']) ? $data['cardUseType'] : null;
$this->container['openCardTime'] = isset($data['openCardTime']) ? $data['openCardTime'] : null;
$this->container['cardUseOutTime'] = isset($data['cardUseOutTime']) ? $data['cardUseOutTime'] : null;
$this->container['cardOrganization'] = isset($data['cardOrganization']) ? $data['cardOrganization'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets retCode
*
* @return string
*/
public function getRetCode()
{
return $this->container['retCode'];
}
/**
* Sets retCode
*
* @param string $retCode 返回码
*
* @return $this
*/
public function setRetCode($retCode)
{
$this->container['retCode'] = $retCode;
return $this;
}
/**
* Gets retMsg
*
* @return string
*/
public function getRetMsg()
{
return $this->container['retMsg'];
}
/**
* Sets retMsg
*
* @param string $retMsg 返回信息
*
* @return $this
*/
public function setRetMsg($retMsg)
{
$this->container['retMsg'] = $retMsg;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户申卡请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets customerNo
*
* @return string
*/
public function getCustomerNo()
{
return $this->container['customerNo'];
}
/**
* Sets customerNo
*
* @param string $customerNo 商户编号
*
* @return $this
*/
public function setCustomerNo($customerNo)
{
$this->container['customerNo'] = $customerNo;
return $this;
}
/**
* Gets cardNo
*
* @return string
*/
public function getCardNo()
{
return $this->container['cardNo'];
}
/**
* Sets cardNo
*
* @param string $cardNo 卡号
*
* @return $this
*/
public function setCardNo($cardNo)
{
$this->container['cardNo'] = $cardNo;
return $this;
}
/**
* Gets extInfo
*
* @return string
*/
public function getExtInfo()
{
return $this->container['extInfo'];
}
/**
* Sets extInfo
*
* @param string $extInfo 关联信息
*
* @return $this
*/
public function setExtInfo($extInfo)
{
$this->container['extInfo'] = $extInfo;
return $this;
}
/**
* Gets cardUseType
*
* @return string
*/
public function getCardUseType()
{
return $this->container['cardUseType'];
}
/**
* Sets cardUseType
*
* @param string $cardUseType 卡类型
*
* @return $this
*/
public function setCardUseType($cardUseType)
{
$this->container['cardUseType'] = $cardUseType;
return $this;
}
/**
* Gets openCardTime
*
* @return string
*/
public function getOpenCardTime()
{
return $this->container['openCardTime'];
}
/**
* Sets openCardTime
*
* @param string $openCardTime 开卡时间
*
* @return $this
*/
public function setOpenCardTime($openCardTime)
{
$this->container['openCardTime'] = $openCardTime;
return $this;
}
/**
* Gets cardUseOutTime
*
* @return string
*/
public function getCardUseOutTime()
{
return $this->container['cardUseOutTime'];
}
/**
* Sets cardUseOutTime
*
* @param string $cardUseOutTime 关闭时间
*
* @return $this
*/
public function setCardUseOutTime($cardUseOutTime)
{
$this->container['cardUseOutTime'] = $cardUseOutTime;
return $this;
}
/**
* Gets cardOrganization
*
* @return string
*/
public function getCardOrganization()
{
return $this->container['cardOrganization'];
}
/**
* Sets cardOrganization
*
* @param string $cardOrganization 卡组织
*
* @return $this
*/
public function setCardOrganization($cardOrganization)
{
$this->container['cardOrganization'] = $cardOrganization;
return $this;
}
/**
* Gets details
*
* @return \Yeepay\Yop\Sdk\Service\AtVcc\Model\UnionPayOrderQueryAuthReportDetailResponseDTOResult[]
*/
public function getDetails()
{
return $this->container['details'];
}
/**
* Sets details
*
* @param \Yeepay\Yop\Sdk\Service\AtVcc\Model\UnionPayOrderQueryAuthReportDetailResponseDTOResult[] $details 明细
*
* @return $this
*/
public function setDetails($details)
{
$this->container['details'] = $details;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,117 @@
<?php
namespace Yeepay\Yop\Sdk\Service\AtVcc\Model;
class UnionPayOrderQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $customerNo;
/**
* @var array|string
*/
private $transactionTypeList;
/**
* @var string
*/
private $accessChannel;
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return UnionPayOrderQueryRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets customerNo
*
* @return string
*/
public function getCustomerNo()
{
return $this->customerNo;
}
/**
* Sets customerNo
*
* @param string $customerNo
* @return UnionPayOrderQueryRequest
*/
public function setCustomerNo($customerNo)
{
$this->customerNo = $customerNo;
return $this;
}
/**
* Gets transactionTypeList
*
* @return array|string
*/
public function getTransactionTypeList()
{
return $this->transactionTypeList;
}
/**
* Sets transactionTypeList
*
* @param array|string $transactionTypeList
* @return UnionPayOrderQueryRequest
*/
public function setTransactionTypeList($transactionTypeList)
{
$this->transactionTypeList = $transactionTypeList;
return $this;
}
/**
* Gets accessChannel
*
* @return string
*/
public function getAccessChannel()
{
return $this->accessChannel;
}
/**
* Sets accessChannel
*
* @param string $accessChannel
* @return UnionPayOrderQueryRequest
*/
public function setAccessChannel($accessChannel)
{
$this->accessChannel = $accessChannel;
return $this;
}
public static function getOperationId()
{
return 'unionPayOrderQuery';
}
}

View File

@@ -0,0 +1,91 @@
<?php
namespace Yeepay\Yop\Sdk\Service\AtVcc\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class UnionPayOrderQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var UnionPayOrderQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new UnionPayOrderQueryRequestMarshaller();
}
/**
* @return UnionPayOrderQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'AtVcc';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/at-vcc/union-pay/order/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param UnionPayOrderQueryRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if($request->getRequestNo() != null){
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
}
if($request->getCustomerNo() != null){
$internalRequest->addParameter('customerNo', ObjectSerializer::sanitizeForSerialization($request->getCustomerNo(), 'string'));
}
if(!empty($request->getTransactionTypeList())){
foreach ($request->getTransactionTypeList() as $value){
$internalRequest->addParameter('transactionTypeList', ObjectSerializer::sanitizeForSerialization($value, 'string'));
}
}
if($request->getAccessChannel() != null){
$internalRequest->addParameter('accessChannel', ObjectSerializer::sanitizeForSerialization($request->getAccessChannel(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
UnionPayOrderQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,34 @@
<?php
namespace Yeepay\Yop\Sdk\Service\AtVcc\Model;
class UnionPayOrderQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
{
/**
* @var UnionPayOrderQueryAuthReportQueryResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\AtVcc\Model\UnionPayOrderQueryAuthReportQueryResponseDTOResult';
}
/**
* @param UnionPayOrderQueryAuthReportQueryResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return UnionPayOrderQueryAuthReportQueryResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace Yeepay\Yop\Sdk\Service\AtVcc\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class UnionPayOrderQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var UnionPayOrderQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new UnionPayOrderQueryResponseUnMarshaller();
}
/**
* @return UnionPayOrderQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return UnionPayOrderQueryResponse
*/
protected function getResponseInstance()
{
return new UnionPayOrderQueryResponse();
}
}
UnionPayOrderQueryResponseUnMarshaller::__init();