first commit
This commit is contained in:
509
lib/Service/Aggpay/Model/PayPassiveOrderResponseDTOResult.php
Normal file
509
lib/Service/Aggpay/Model/PayPassiveOrderResponseDTOResult.php
Normal file
@@ -0,0 +1,509 @@
|
||||
<?php
|
||||
/**
|
||||
* PayPassiveOrderResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* PayPassiveOrderResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class PayPassiveOrderResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'PayPassiveOrderResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'orderId' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'bankOrderId' => 'string',
|
||||
'status' => 'string',
|
||||
'terminalPayType' => 'string',
|
||||
'paySuccessDate' => 'string',
|
||||
'userId' => 'string',
|
||||
'bankId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'orderId' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'bankOrderId' => null,
|
||||
'status' => null,
|
||||
'terminalPayType' => null,
|
||||
'paySuccessDate' => 'date-time',
|
||||
'userId' => null,
|
||||
'bankId' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'orderId' => 'orderId',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'bankOrderId' => 'bankOrderId',
|
||||
'status' => 'status',
|
||||
'terminalPayType' => 'terminalPayType',
|
||||
'paySuccessDate' => 'paySuccessDate',
|
||||
'userId' => 'userId',
|
||||
'bankId' => 'bankId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'orderId' => 'setOrderId',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'bankOrderId' => 'setBankOrderId',
|
||||
'status' => 'setStatus',
|
||||
'terminalPayType' => 'setTerminalPayType',
|
||||
'paySuccessDate' => 'setPaySuccessDate',
|
||||
'userId' => 'setUserId',
|
||||
'bankId' => 'setBankId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'orderId' => 'getOrderId',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'bankOrderId' => 'getBankOrderId',
|
||||
'status' => 'getStatus',
|
||||
'terminalPayType' => 'getTerminalPayType',
|
||||
'paySuccessDate' => 'getPaySuccessDate',
|
||||
'userId' => 'getUserId',
|
||||
'bankId' => 'getBankId',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['bankOrderId'] = isset($data['bankOrderId']) ? $data['bankOrderId'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['terminalPayType'] = isset($data['terminalPayType']) ? $data['terminalPayType'] : null;
|
||||
$this->container['paySuccessDate'] = isset($data['paySuccessDate']) ? $data['paySuccessDate'] : null;
|
||||
$this->container['userId'] = isset($data['userId']) ? $data['userId'] : null;
|
||||
$this->container['bankId'] = isset($data['bankId']) ? $data['bankId'] : 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 code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
* @param string $orderId 商户收款请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
* @param string $uniqueOrderNo 易宝收款订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankOrderId
|
||||
* @return string
|
||||
*/
|
||||
public function getBankOrderId()
|
||||
{
|
||||
return $this->container['bankOrderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankOrderId
|
||||
* @param string $bankOrderId 渠道侧商户请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankOrderId($bankOrderId)
|
||||
{
|
||||
$this->container['bankOrderId'] = $bankOrderId;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets terminalPayType
|
||||
* @return string
|
||||
*/
|
||||
public function getTerminalPayType()
|
||||
{
|
||||
return $this->container['terminalPayType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets terminalPayType
|
||||
* @param string $terminalPayType 终端授权方式
|
||||
* @return $this
|
||||
*/
|
||||
public function setTerminalPayType($terminalPayType)
|
||||
{
|
||||
$this->container['terminalPayType'] = $terminalPayType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paySuccessDate
|
||||
* @return string
|
||||
*/
|
||||
public function getPaySuccessDate()
|
||||
{
|
||||
return $this->container['paySuccessDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paySuccessDate
|
||||
* @param string $paySuccessDate 支付完成时间
|
||||
* @return $this
|
||||
*/
|
||||
public function setPaySuccessDate($paySuccessDate)
|
||||
{
|
||||
$this->container['paySuccessDate'] = $paySuccessDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userId
|
||||
* @return string
|
||||
*/
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->container['userId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userId
|
||||
* @param string $userId 用户ID
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->container['userId'] = $userId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankId
|
||||
* @return string
|
||||
*/
|
||||
public function getBankId()
|
||||
{
|
||||
return $this->container['bankId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankId
|
||||
* @param string $bankId 付款银行
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankId($bankId)
|
||||
{
|
||||
$this->container['bankId'] = $bankId;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
717
lib/Service/Aggpay/Model/PayRequest.php
Normal file
717
lib/Service/Aggpay/Model/PayRequest.php
Normal file
@@ -0,0 +1,717 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class PayRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $expiredTime;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fundProcessType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payWay;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channel;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $scene;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $authCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userIp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $terminalId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $terminalSceneInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelSpecifiedInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelPromotionInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $identityInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $limitCredit;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueOrderNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $csUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $encryptedPINData;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payerAccountNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountLinkInfo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
* @param string $orderId
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
* @param float $orderAmount
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets expiredTime
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->expiredTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
* @param string $expiredTime
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->expiredTime = $expiredTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
* @param string $notifyUrl
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
* @param string $memo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets goodsName
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
* @param string $goodsName
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->fundProcessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
* @param string $fundProcessType
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->fundProcessType = $fundProcessType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payWay
|
||||
* @return string
|
||||
*/
|
||||
public function getPayWay()
|
||||
{
|
||||
return $this->payWay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payWay
|
||||
* @param string $payWay
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setPayWay($payWay)
|
||||
{
|
||||
$this->payWay = $payWay;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channel
|
||||
* @return string
|
||||
*/
|
||||
public function getChannel()
|
||||
{
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channel
|
||||
* @param string $channel
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setChannel($channel)
|
||||
{
|
||||
$this->channel = $channel;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets scene
|
||||
* @return string
|
||||
*/
|
||||
public function getScene()
|
||||
{
|
||||
return $this->scene;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets scene
|
||||
* @param string $scene
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setScene($scene)
|
||||
{
|
||||
$this->scene = $scene;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets authCode
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthCode()
|
||||
{
|
||||
return $this->authCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authCode
|
||||
* @param string $authCode
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setAuthCode($authCode)
|
||||
{
|
||||
$this->authCode = $authCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appId
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
* @param string $appId
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->appId = $appId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userIp
|
||||
* @return string
|
||||
*/
|
||||
public function getUserIp()
|
||||
{
|
||||
return $this->userIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userIp
|
||||
* @param string $userIp
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setUserIp($userIp)
|
||||
{
|
||||
$this->userIp = $userIp;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets terminalId
|
||||
* @return string
|
||||
*/
|
||||
public function getTerminalId()
|
||||
{
|
||||
return $this->terminalId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets terminalId
|
||||
* @param string $terminalId
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setTerminalId($terminalId)
|
||||
{
|
||||
$this->terminalId = $terminalId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets terminalSceneInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getTerminalSceneInfo()
|
||||
{
|
||||
return $this->terminalSceneInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets terminalSceneInfo
|
||||
* @param string $terminalSceneInfo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setTerminalSceneInfo($terminalSceneInfo)
|
||||
{
|
||||
$this->terminalSceneInfo = $terminalSceneInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelSpecifiedInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelSpecifiedInfo()
|
||||
{
|
||||
return $this->channelSpecifiedInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelSpecifiedInfo
|
||||
* @param string $channelSpecifiedInfo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setChannelSpecifiedInfo($channelSpecifiedInfo)
|
||||
{
|
||||
$this->channelSpecifiedInfo = $channelSpecifiedInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelPromotionInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelPromotionInfo()
|
||||
{
|
||||
return $this->channelPromotionInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelPromotionInfo
|
||||
* @param string $channelPromotionInfo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setChannelPromotionInfo($channelPromotionInfo)
|
||||
{
|
||||
$this->channelPromotionInfo = $channelPromotionInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets identityInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdentityInfo()
|
||||
{
|
||||
return $this->identityInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets identityInfo
|
||||
* @param string $identityInfo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setIdentityInfo($identityInfo)
|
||||
{
|
||||
$this->identityInfo = $identityInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets limitCredit
|
||||
* @return string
|
||||
*/
|
||||
public function getLimitCredit()
|
||||
{
|
||||
return $this->limitCredit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets limitCredit
|
||||
* @param string $limitCredit
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setLimitCredit($limitCredit)
|
||||
{
|
||||
$this->limitCredit = $limitCredit;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->uniqueOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
* @param string $uniqueOrderNo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->uniqueOrderNo = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets csUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->csUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
* @param string $csUrl
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->csUrl = $csUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets encryptedPINData
|
||||
* @return string
|
||||
*/
|
||||
public function getEncryptedPINData()
|
||||
{
|
||||
return $this->encryptedPINData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets encryptedPINData
|
||||
* @param string $encryptedPINData
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setEncryptedPINData($encryptedPINData)
|
||||
{
|
||||
$this->encryptedPINData = $encryptedPINData;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payerAccountNo
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerAccountNo()
|
||||
{
|
||||
return $this->payerAccountNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerAccountNo
|
||||
* @param string $payerAccountNo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setPayerAccountNo($payerAccountNo)
|
||||
{
|
||||
$this->payerAccountNo = $payerAccountNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountLinkInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountLinkInfo()
|
||||
{
|
||||
return $this->accountLinkInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountLinkInfo
|
||||
* @param string $accountLinkInfo
|
||||
* @return PayRequest
|
||||
*/
|
||||
public function setAccountLinkInfo($accountLinkInfo)
|
||||
{
|
||||
$this->accountLinkInfo = $accountLinkInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'pay';
|
||||
}
|
||||
|
||||
}
|
||||
185
lib/Service/Aggpay/Model/PayRequestMarshaller.php
Normal file
185
lib/Service/Aggpay/Model/PayRequestMarshaller.php
Normal file
@@ -0,0 +1,185 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 PayRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var PayRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new PayRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/pay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param PayRequest $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->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getOrderId() != null) {
|
||||
$internalRequest->addParameter('orderId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if ($request->getOrderAmount() != null) {
|
||||
$internalRequest->addParameter('orderAmount',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if ($request->getExpiredTime() != null) {
|
||||
$internalRequest->addParameter('expiredTime',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time'));
|
||||
}
|
||||
if ($request->getNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('notifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if ($request->getMemo() != null) {
|
||||
$internalRequest->addParameter('memo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if ($request->getGoodsName() != null) {
|
||||
$internalRequest->addParameter('goodsName',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
if ($request->getFundProcessType() != null) {
|
||||
$internalRequest->addParameter('fundProcessType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
|
||||
}
|
||||
if ($request->getPayWay() != null) {
|
||||
$internalRequest->addParameter('payWay',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string'));
|
||||
}
|
||||
if ($request->getChannel() != null) {
|
||||
$internalRequest->addParameter('channel',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getChannel(), 'string'));
|
||||
}
|
||||
if ($request->getScene() != null) {
|
||||
$internalRequest->addParameter('scene',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getScene(), 'string'));
|
||||
}
|
||||
if ($request->getAuthCode() != null) {
|
||||
$internalRequest->addParameter('authCode',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAuthCode(), 'string'));
|
||||
}
|
||||
if ($request->getAppId() != null) {
|
||||
$internalRequest->addParameter('appId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAppId(), 'string'));
|
||||
}
|
||||
if ($request->getUserIp() != null) {
|
||||
$internalRequest->addParameter('userIp',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserIp(), 'string'));
|
||||
}
|
||||
if ($request->getTerminalId() != null) {
|
||||
$internalRequest->addParameter('terminalId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getTerminalId(), 'string'));
|
||||
}
|
||||
if ($request->getTerminalSceneInfo() != null) {
|
||||
$internalRequest->addParameter('terminalSceneInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getTerminalSceneInfo(), 'string'));
|
||||
}
|
||||
if ($request->getChannelSpecifiedInfo() != null) {
|
||||
$internalRequest->addParameter('channelSpecifiedInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getChannelSpecifiedInfo(), 'string'));
|
||||
}
|
||||
if ($request->getChannelPromotionInfo() != null) {
|
||||
$internalRequest->addParameter('channelPromotionInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getChannelPromotionInfo(), 'string'));
|
||||
}
|
||||
if ($request->getIdentityInfo() != null) {
|
||||
$internalRequest->addParameter('identityInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdentityInfo(), 'string'));
|
||||
}
|
||||
if ($request->getLimitCredit() != null) {
|
||||
$internalRequest->addParameter('limitCredit',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string'));
|
||||
}
|
||||
if ($request->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getUniqueOrderNo() != null) {
|
||||
$internalRequest->addParameter('uniqueOrderNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string'));
|
||||
}
|
||||
if ($request->getCsUrl() != null) {
|
||||
$internalRequest->addParameter('csUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string', 'url'));
|
||||
}
|
||||
if ($request->getEncryptedPINData() != null) {
|
||||
$internalRequest->addParameter('encryptedPINData',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getEncryptedPINData(), 'string'));
|
||||
}
|
||||
if ($request->getPayerAccountNo() != null) {
|
||||
$internalRequest->addParameter('payerAccountNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPayerAccountNo(), 'string'));
|
||||
}
|
||||
if ($request->getAccountLinkInfo() != null) {
|
||||
$internalRequest->addParameter('accountLinkInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAccountLinkInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PayRequestMarshaller::__init();
|
||||
36
lib/Service/Aggpay/Model/PayResponse.php
Normal file
36
lib/Service/Aggpay/Model/PayResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class PayResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var PayPassiveOrderResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\PayPassiveOrderResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PayPassiveOrderResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayPassiveOrderResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
38
lib/Service/Aggpay/Model/PayResponseUnMarshaller.php
Normal file
38
lib/Service/Aggpay/Model/PayResponseUnMarshaller.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class PayResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var PayResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new PayResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PayResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new PayResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PayResponseUnMarshaller::__init();
|
||||
401
lib/Service/Aggpay/Model/PrePayOrderResponseDTOResult.php
Normal file
401
lib/Service/Aggpay/Model/PrePayOrderResponseDTOResult.php
Normal file
@@ -0,0 +1,401 @@
|
||||
<?php
|
||||
/**
|
||||
* PrePayOrderResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* PrePayOrderResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class PrePayOrderResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'PrePayOrderResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'orderId' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'bankOrderId' => 'string',
|
||||
'prePayTn' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'orderId' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'bankOrderId' => null,
|
||||
'prePayTn' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'orderId' => 'orderId',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'bankOrderId' => 'bankOrderId',
|
||||
'prePayTn' => 'prePayTn',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'orderId' => 'setOrderId',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'bankOrderId' => 'setBankOrderId',
|
||||
'prePayTn' => 'setPrePayTn',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'orderId' => 'getOrderId',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'bankOrderId' => 'getBankOrderId',
|
||||
'prePayTn' => 'getPrePayTn',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['bankOrderId'] = isset($data['bankOrderId']) ? $data['bankOrderId'] : null;
|
||||
$this->container['prePayTn'] = isset($data['prePayTn']) ? $data['prePayTn'] : 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 code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
* @param string $orderId 商户收款请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
* @param string $uniqueOrderNo 易宝收款订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankOrderId
|
||||
* @return string
|
||||
*/
|
||||
public function getBankOrderId()
|
||||
{
|
||||
return $this->container['bankOrderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankOrderId
|
||||
* @param string $bankOrderId 渠道侧商户请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankOrderId($bankOrderId)
|
||||
{
|
||||
$this->container['bankOrderId'] = $bankOrderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets prePayTn
|
||||
* @return string
|
||||
*/
|
||||
public function getPrePayTn()
|
||||
{
|
||||
return $this->container['prePayTn'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets prePayTn
|
||||
* @param string $prePayTn 预支付标识信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setPrePayTn($prePayTn)
|
||||
{
|
||||
$this->container['prePayTn'] = $prePayTn;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
665
lib/Service/Aggpay/Model/PrePayRequest.php
Normal file
665
lib/Service/Aggpay/Model/PrePayRequest.php
Normal file
@@ -0,0 +1,665 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class PrePayRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $expiredTime;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $redirectUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fundProcessType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payWay;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channel;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $scene;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userIp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelSpecifiedInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelPromotionInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $identityInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $limitCredit;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $uniqueOrderNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $csUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountLinkInfo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypPromotionInfo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
* @param string $orderId
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
* @param float $orderAmount
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets expiredTime
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->expiredTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
* @param string $expiredTime
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->expiredTime = $expiredTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
* @param string $notifyUrl
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets redirectUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getRedirectUrl()
|
||||
{
|
||||
return $this->redirectUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets redirectUrl
|
||||
* @param string $redirectUrl
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setRedirectUrl($redirectUrl)
|
||||
{
|
||||
$this->redirectUrl = $redirectUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
* @param string $memo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets goodsName
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
* @param string $goodsName
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->fundProcessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
* @param string $fundProcessType
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->fundProcessType = $fundProcessType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payWay
|
||||
* @return string
|
||||
*/
|
||||
public function getPayWay()
|
||||
{
|
||||
return $this->payWay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payWay
|
||||
* @param string $payWay
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setPayWay($payWay)
|
||||
{
|
||||
$this->payWay = $payWay;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channel
|
||||
* @return string
|
||||
*/
|
||||
public function getChannel()
|
||||
{
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channel
|
||||
* @param string $channel
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setChannel($channel)
|
||||
{
|
||||
$this->channel = $channel;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets scene
|
||||
* @return string
|
||||
*/
|
||||
public function getScene()
|
||||
{
|
||||
return $this->scene;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets scene
|
||||
* @param string $scene
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setScene($scene)
|
||||
{
|
||||
$this->scene = $scene;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appId
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
* @param string $appId
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->appId = $appId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userId
|
||||
* @return string
|
||||
*/
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userId
|
||||
* @param string $userId
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userIp
|
||||
* @return string
|
||||
*/
|
||||
public function getUserIp()
|
||||
{
|
||||
return $this->userIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userIp
|
||||
* @param string $userIp
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setUserIp($userIp)
|
||||
{
|
||||
$this->userIp = $userIp;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelSpecifiedInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelSpecifiedInfo()
|
||||
{
|
||||
return $this->channelSpecifiedInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelSpecifiedInfo
|
||||
* @param string $channelSpecifiedInfo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setChannelSpecifiedInfo($channelSpecifiedInfo)
|
||||
{
|
||||
$this->channelSpecifiedInfo = $channelSpecifiedInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets channelPromotionInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelPromotionInfo()
|
||||
{
|
||||
return $this->channelPromotionInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelPromotionInfo
|
||||
* @param string $channelPromotionInfo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setChannelPromotionInfo($channelPromotionInfo)
|
||||
{
|
||||
$this->channelPromotionInfo = $channelPromotionInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets identityInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdentityInfo()
|
||||
{
|
||||
return $this->identityInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets identityInfo
|
||||
* @param string $identityInfo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setIdentityInfo($identityInfo)
|
||||
{
|
||||
$this->identityInfo = $identityInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets limitCredit
|
||||
* @return string
|
||||
*/
|
||||
public function getLimitCredit()
|
||||
{
|
||||
return $this->limitCredit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets limitCredit
|
||||
* @param string $limitCredit
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setLimitCredit($limitCredit)
|
||||
{
|
||||
$this->limitCredit = $limitCredit;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->uniqueOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
* @param string $uniqueOrderNo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->uniqueOrderNo = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets csUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->csUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
* @param string $csUrl
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->csUrl = $csUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountLinkInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountLinkInfo()
|
||||
{
|
||||
return $this->accountLinkInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountLinkInfo
|
||||
* @param string $accountLinkInfo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setAccountLinkInfo($accountLinkInfo)
|
||||
{
|
||||
$this->accountLinkInfo = $accountLinkInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets ypPromotionInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getYpPromotionInfo()
|
||||
{
|
||||
return $this->ypPromotionInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypPromotionInfo
|
||||
* @param string $ypPromotionInfo
|
||||
* @return PrePayRequest
|
||||
*/
|
||||
public function setYpPromotionInfo($ypPromotionInfo)
|
||||
{
|
||||
$this->ypPromotionInfo = $ypPromotionInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'prePay';
|
||||
}
|
||||
|
||||
}
|
||||
177
lib/Service/Aggpay/Model/PrePayRequestMarshaller.php
Normal file
177
lib/Service/Aggpay/Model/PrePayRequestMarshaller.php
Normal file
@@ -0,0 +1,177 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 PrePayRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var PrePayRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new PrePayRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PrePayRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/pre-pay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param PrePayRequest $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->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getOrderId() != null) {
|
||||
$internalRequest->addParameter('orderId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if ($request->getOrderAmount() != null) {
|
||||
$internalRequest->addParameter('orderAmount',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if ($request->getExpiredTime() != null) {
|
||||
$internalRequest->addParameter('expiredTime',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time'));
|
||||
}
|
||||
if ($request->getNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('notifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if ($request->getRedirectUrl() != null) {
|
||||
$internalRequest->addParameter('redirectUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRedirectUrl(), 'string', 'url'));
|
||||
}
|
||||
if ($request->getMemo() != null) {
|
||||
$internalRequest->addParameter('memo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if ($request->getGoodsName() != null) {
|
||||
$internalRequest->addParameter('goodsName',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
if ($request->getFundProcessType() != null) {
|
||||
$internalRequest->addParameter('fundProcessType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
|
||||
}
|
||||
if ($request->getPayWay() != null) {
|
||||
$internalRequest->addParameter('payWay',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string'));
|
||||
}
|
||||
if ($request->getChannel() != null) {
|
||||
$internalRequest->addParameter('channel',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getChannel(), 'string'));
|
||||
}
|
||||
if ($request->getScene() != null) {
|
||||
$internalRequest->addParameter('scene',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getScene(), 'string'));
|
||||
}
|
||||
if ($request->getAppId() != null) {
|
||||
$internalRequest->addParameter('appId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAppId(), 'string'));
|
||||
}
|
||||
if ($request->getUserId() != null) {
|
||||
$internalRequest->addParameter('userId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserId(), 'string'));
|
||||
}
|
||||
if ($request->getUserIp() != null) {
|
||||
$internalRequest->addParameter('userIp',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserIp(), 'string'));
|
||||
}
|
||||
if ($request->getChannelSpecifiedInfo() != null) {
|
||||
$internalRequest->addParameter('channelSpecifiedInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getChannelSpecifiedInfo(), 'string'));
|
||||
}
|
||||
if ($request->getChannelPromotionInfo() != null) {
|
||||
$internalRequest->addParameter('channelPromotionInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getChannelPromotionInfo(), 'string'));
|
||||
}
|
||||
if ($request->getIdentityInfo() != null) {
|
||||
$internalRequest->addParameter('identityInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdentityInfo(), 'string'));
|
||||
}
|
||||
if ($request->getLimitCredit() != null) {
|
||||
$internalRequest->addParameter('limitCredit',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string'));
|
||||
}
|
||||
if ($request->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getUniqueOrderNo() != null) {
|
||||
$internalRequest->addParameter('uniqueOrderNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string'));
|
||||
}
|
||||
if ($request->getCsUrl() != null) {
|
||||
$internalRequest->addParameter('csUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string', 'url'));
|
||||
}
|
||||
if ($request->getAccountLinkInfo() != null) {
|
||||
$internalRequest->addParameter('accountLinkInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAccountLinkInfo(), 'string'));
|
||||
}
|
||||
if ($request->getYpPromotionInfo() != null) {
|
||||
$internalRequest->addParameter('ypPromotionInfo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getYpPromotionInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PrePayRequestMarshaller::__init();
|
||||
36
lib/Service/Aggpay/Model/PrePayResponse.php
Normal file
36
lib/Service/Aggpay/Model/PrePayResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class PrePayResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var PrePayOrderResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\PrePayOrderResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PrePayOrderResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PrePayOrderResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
38
lib/Service/Aggpay/Model/PrePayResponseUnMarshaller.php
Normal file
38
lib/Service/Aggpay/Model/PrePayResponseUnMarshaller.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class PrePayResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var PrePayResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new PrePayResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PrePayResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PrePayResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new PrePayResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PrePayResponseUnMarshaller::__init();
|
||||
93
lib/Service/Aggpay/Model/ViolationWechatChannelRequest.php
Normal file
93
lib/Service/Aggpay/Model/ViolationWechatChannelRequest.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class ViolationWechatChannelRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $beginTime;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $endTime;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return ViolationWechatChannelRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets beginTime
|
||||
* @return string
|
||||
*/
|
||||
public function getBeginTime()
|
||||
{
|
||||
return $this->beginTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets beginTime
|
||||
* @param string $beginTime
|
||||
* @return ViolationWechatChannelRequest
|
||||
*/
|
||||
public function setBeginTime($beginTime)
|
||||
{
|
||||
$this->beginTime = $beginTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets endTime
|
||||
* @return string
|
||||
*/
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets endTime
|
||||
* @param string $endTime
|
||||
* @return ViolationWechatChannelRequest
|
||||
*/
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'violationWechatChannel';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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\UUIDUtils;
|
||||
|
||||
class ViolationWechatChannelRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ViolationWechatChannelRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ViolationWechatChannelRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ViolationWechatChannelRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/violation/wechat/channel';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param ViolationWechatChannelRequest $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());
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ViolationWechatChannelRequestMarshaller::__init();
|
||||
36
lib/Service/Aggpay/Model/ViolationWechatChannelResponse.php
Normal file
36
lib/Service/Aggpay/Model/ViolationWechatChannelResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class ViolationWechatChannelResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ViolationWechatChannelWechatRiskQueryResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ViolationWechatChannelWechatRiskQueryResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ViolationWechatChannelWechatRiskQueryResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ViolationWechatChannelWechatRiskQueryResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ViolationWechatChannelResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ViolationWechatChannelResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ViolationWechatChannelResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ViolationWechatChannelResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ViolationWechatChannelResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ViolationWechatChannelResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ViolationWechatChannelResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,320 @@
|
||||
<?php
|
||||
/**
|
||||
* ViolationWechatChannelWechatRiskQueryResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ViolationWechatChannelWechatRiskQueryResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ViolationWechatChannelWechatRiskQueryResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ViolationWechatChannelWechatRiskQueryResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'violationRecordDTOList' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\ViolationWechatChannelWechatViolationRecordDTOResult[]',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'violationRecordDTOList' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'violationRecordDTOList' => 'violationRecordDTOList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'violationRecordDTOList' => 'setViolationRecordDTOList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'violationRecordDTOList' => 'getViolationRecordDTOList',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['violationRecordDTOList'] = isset($data['violationRecordDTOList']) ? $data['violationRecordDTOList'] : 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 code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets violationRecordDTOList
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\ViolationWechatChannelWechatViolationRecordDTOResult[]
|
||||
*/
|
||||
public function getViolationRecordDTOList()
|
||||
{
|
||||
return $this->container['violationRecordDTOList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets violationRecordDTOList
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\ViolationWechatChannelWechatViolationRecordDTOResult[] $violationRecordDTOList 违规信息列表
|
||||
* @return $this
|
||||
*/
|
||||
public function setViolationRecordDTOList($violationRecordDTOList)
|
||||
{
|
||||
$this->container['violationRecordDTOList'] = $violationRecordDTOList;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,428 @@
|
||||
<?php
|
||||
/**
|
||||
* ViolationWechatChannelWechatViolationRecordDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ViolationWechatChannelWechatViolationRecordDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ViolationWechatChannelWechatViolationRecordDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ViolationWechatChannelWechatViolationRecordDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'companyName' => 'string',
|
||||
'handleMethod' => 'string',
|
||||
'handleState' => 'string',
|
||||
'illegalType' => 'string',
|
||||
'punishTime' => 'string',
|
||||
'deadline' => 'string',
|
||||
'reportMerchantNo' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'companyName' => null,
|
||||
'handleMethod' => null,
|
||||
'handleState' => null,
|
||||
'illegalType' => null,
|
||||
'punishTime' => null,
|
||||
'deadline' => null,
|
||||
'reportMerchantNo' => 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 = [
|
||||
'companyName' => 'companyName',
|
||||
'handleMethod' => 'handleMethod',
|
||||
'handleState' => 'handleState',
|
||||
'illegalType' => 'illegalType',
|
||||
'punishTime' => 'punishTime',
|
||||
'deadline' => 'deadline',
|
||||
'reportMerchantNo' => 'reportMerchantNo',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'companyName' => 'setCompanyName',
|
||||
'handleMethod' => 'setHandleMethod',
|
||||
'handleState' => 'setHandleState',
|
||||
'illegalType' => 'setIllegalType',
|
||||
'punishTime' => 'setPunishTime',
|
||||
'deadline' => 'setDeadline',
|
||||
'reportMerchantNo' => 'setReportMerchantNo',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'companyName' => 'getCompanyName',
|
||||
'handleMethod' => 'getHandleMethod',
|
||||
'handleState' => 'getHandleState',
|
||||
'illegalType' => 'getIllegalType',
|
||||
'punishTime' => 'getPunishTime',
|
||||
'deadline' => 'getDeadline',
|
||||
'reportMerchantNo' => 'getReportMerchantNo',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['companyName'] = isset($data['companyName']) ? $data['companyName'] : null;
|
||||
$this->container['handleMethod'] = isset($data['handleMethod']) ? $data['handleMethod'] : null;
|
||||
$this->container['handleState'] = isset($data['handleState']) ? $data['handleState'] : null;
|
||||
$this->container['illegalType'] = isset($data['illegalType']) ? $data['illegalType'] : null;
|
||||
$this->container['punishTime'] = isset($data['punishTime']) ? $data['punishTime'] : null;
|
||||
$this->container['deadline'] = isset($data['deadline']) ? $data['deadline'] : null;
|
||||
$this->container['reportMerchantNo'] = isset($data['reportMerchantNo']) ? $data['reportMerchantNo'] : 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 companyName
|
||||
* @return string
|
||||
*/
|
||||
public function getCompanyName()
|
||||
{
|
||||
return $this->container['companyName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets companyName
|
||||
* @param string $companyName 公司名称
|
||||
* @return $this
|
||||
*/
|
||||
public function setCompanyName($companyName)
|
||||
{
|
||||
$this->container['companyName'] = $companyName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets handleMethod
|
||||
* @return string
|
||||
*/
|
||||
public function getHandleMethod()
|
||||
{
|
||||
return $this->container['handleMethod'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets handleMethod
|
||||
* @param string $handleMethod 处理方式
|
||||
* @return $this
|
||||
*/
|
||||
public function setHandleMethod($handleMethod)
|
||||
{
|
||||
$this->container['handleMethod'] = $handleMethod;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets handleState
|
||||
* @return string
|
||||
*/
|
||||
public function getHandleState()
|
||||
{
|
||||
return $this->container['handleState'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets handleState
|
||||
* @param string $handleState 处理状态
|
||||
* @return $this
|
||||
*/
|
||||
public function setHandleState($handleState)
|
||||
{
|
||||
$this->container['handleState'] = $handleState;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets illegalType
|
||||
* @return string
|
||||
*/
|
||||
public function getIllegalType()
|
||||
{
|
||||
return $this->container['illegalType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets illegalType
|
||||
* @param string $illegalType 违规类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setIllegalType($illegalType)
|
||||
{
|
||||
$this->container['illegalType'] = $illegalType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets punishTime
|
||||
* @return string
|
||||
*/
|
||||
public function getPunishTime()
|
||||
{
|
||||
return $this->container['punishTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets punishTime
|
||||
* @param string $punishTime 处罚时间
|
||||
* @return $this
|
||||
*/
|
||||
public function setPunishTime($punishTime)
|
||||
{
|
||||
$this->container['punishTime'] = $punishTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets deadline
|
||||
* @return string
|
||||
*/
|
||||
public function getDeadline()
|
||||
{
|
||||
return $this->container['deadline'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets deadline
|
||||
* @param string $deadline 最后处理时间
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeadline($deadline)
|
||||
{
|
||||
$this->container['deadline'] = $deadline;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets reportMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getReportMerchantNo()
|
||||
{
|
||||
return $this->container['reportMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reportMerchantNo
|
||||
* @param string $reportMerchantNo 违规子商户号-报备商户号
|
||||
* @return $this
|
||||
*/
|
||||
public function setReportMerchantNo($reportMerchantNo)
|
||||
{
|
||||
$this->container['reportMerchantNo'] = $reportMerchantNo;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
119
lib/Service/Aggpay/Model/WechatConfigAdd0Request.php
Normal file
119
lib/Service/Aggpay/Model/WechatConfigAdd0Request.php
Normal file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class WechatConfigAdd0Request extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $tradeAuthDirList;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appIdList;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return WechatConfigAdd0Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return WechatConfigAdd0Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeAuthDirList
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeAuthDirList()
|
||||
{
|
||||
return $this->tradeAuthDirList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAuthDirList
|
||||
* @param string $tradeAuthDirList
|
||||
* @return WechatConfigAdd0Request
|
||||
*/
|
||||
public function setTradeAuthDirList($tradeAuthDirList)
|
||||
{
|
||||
$this->tradeAuthDirList = $tradeAuthDirList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdList
|
||||
* @return string
|
||||
*/
|
||||
public function getAppIdList()
|
||||
{
|
||||
return $this->appIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdList
|
||||
* @param string $appIdList
|
||||
* @return WechatConfigAdd0Request
|
||||
*/
|
||||
public function setAppIdList($appIdList)
|
||||
{
|
||||
$this->appIdList = $appIdList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'wechatConfigAdd_0';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 WechatConfigAdd0RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigAdd0RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigAdd0RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAdd0RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/aggpay/wechat-config/add';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param WechatConfigAdd0Request $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->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getTradeAuthDirList() != null) {
|
||||
$internalRequest->addParameter('tradeAuthDirList',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getTradeAuthDirList(), 'string'));
|
||||
}
|
||||
if ($request->getAppIdList() != null) {
|
||||
$internalRequest->addParameter('appIdList',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAppIdList(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigAdd0RequestMarshaller::__init();
|
||||
36
lib/Service/Aggpay/Model/WechatConfigAdd0Response.php
Normal file
36
lib/Service/Aggpay/Model/WechatConfigAdd0Response.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class WechatConfigAdd0Response extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigAddWechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddWechatConfigFlatResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WechatConfigAddWechatConfigFlatResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddWechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class WechatConfigAdd0ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigAdd0ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigAdd0ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAdd0ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAdd0Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new WechatConfigAdd0Response();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigAdd0ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,401 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigAddAppIdConfigDetailResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigAddAppIdConfigDetailResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigAddAppIdConfigDetailResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigAddAppIdConfigDetailResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'appId' => 'string',
|
||||
'appSecret' => 'string',
|
||||
'appIdType' => 'string',
|
||||
'subscribeAppId' => 'string',
|
||||
'status' => 'string',
|
||||
'failReason' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'appId' => null,
|
||||
'appSecret' => null,
|
||||
'appIdType' => null,
|
||||
'subscribeAppId' => null,
|
||||
'status' => null,
|
||||
'failReason' => 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 = [
|
||||
'appId' => 'appId',
|
||||
'appSecret' => 'appSecret',
|
||||
'appIdType' => 'appIdType',
|
||||
'subscribeAppId' => 'subscribeAppId',
|
||||
'status' => 'status',
|
||||
'failReason' => 'failReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'appId' => 'setAppId',
|
||||
'appSecret' => 'setAppSecret',
|
||||
'appIdType' => 'setAppIdType',
|
||||
'subscribeAppId' => 'setSubscribeAppId',
|
||||
'status' => 'setStatus',
|
||||
'failReason' => 'setFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'appId' => 'getAppId',
|
||||
'appSecret' => 'getAppSecret',
|
||||
'appIdType' => 'getAppIdType',
|
||||
'subscribeAppId' => 'getSubscribeAppId',
|
||||
'status' => 'getStatus',
|
||||
'failReason' => 'getFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['appId'] = isset($data['appId']) ? $data['appId'] : null;
|
||||
$this->container['appSecret'] = isset($data['appSecret']) ? $data['appSecret'] : null;
|
||||
$this->container['appIdType'] = isset($data['appIdType']) ? $data['appIdType'] : null;
|
||||
$this->container['subscribeAppId'] = isset($data['subscribeAppId']) ? $data['subscribeAppId'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : 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 appId
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->container['appId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
* @param string $appId appId
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->container['appId'] = $appId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appSecret
|
||||
* @return string
|
||||
*/
|
||||
public function getAppSecret()
|
||||
{
|
||||
return $this->container['appSecret'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appSecret
|
||||
* @param string $appSecret appSecret
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppSecret($appSecret)
|
||||
{
|
||||
$this->container['appSecret'] = $appSecret;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdType
|
||||
* @return string
|
||||
*/
|
||||
public function getAppIdType()
|
||||
{
|
||||
return $this->container['appIdType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdType
|
||||
* @param string $appIdType appIdType
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppIdType($appIdType)
|
||||
{
|
||||
$this->container['appIdType'] = $appIdType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets subscribeAppId
|
||||
* @return string
|
||||
*/
|
||||
public function getSubscribeAppId()
|
||||
{
|
||||
return $this->container['subscribeAppId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets subscribeAppId
|
||||
* @param string $subscribeAppId subscribeAppId
|
||||
* @return $this
|
||||
*/
|
||||
public function setSubscribeAppId($subscribeAppId)
|
||||
{
|
||||
$this->container['subscribeAppId'] = $subscribeAppId;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets failReason
|
||||
* @return string
|
||||
*/
|
||||
public function getFailReason()
|
||||
{
|
||||
return $this->container['failReason'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets failReason
|
||||
* @param string $failReason 失败原因
|
||||
* @return $this
|
||||
*/
|
||||
public function setFailReason($failReason)
|
||||
{
|
||||
$this->container['failReason'] = $failReason;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,320 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigAddConfigMerchantDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigAddConfigMerchantDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigAddConfigMerchantDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigAddConfigMerchantDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'reportMerchantNo' => 'string',
|
||||
'tradeAuthDirList' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddTradeAuthDirDTOResult[]',
|
||||
'appIdList' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddAppIdConfigDetailResult[]',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'reportMerchantNo' => null,
|
||||
'tradeAuthDirList' => null,
|
||||
'appIdList' => 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 = [
|
||||
'reportMerchantNo' => 'reportMerchantNo',
|
||||
'tradeAuthDirList' => 'tradeAuthDirList',
|
||||
'appIdList' => 'appIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'reportMerchantNo' => 'setReportMerchantNo',
|
||||
'tradeAuthDirList' => 'setTradeAuthDirList',
|
||||
'appIdList' => 'setAppIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'reportMerchantNo' => 'getReportMerchantNo',
|
||||
'tradeAuthDirList' => 'getTradeAuthDirList',
|
||||
'appIdList' => 'getAppIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['reportMerchantNo'] = isset($data['reportMerchantNo']) ? $data['reportMerchantNo'] : null;
|
||||
$this->container['tradeAuthDirList'] = isset($data['tradeAuthDirList']) ? $data['tradeAuthDirList'] : null;
|
||||
$this->container['appIdList'] = isset($data['appIdList']) ? $data['appIdList'] : 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 reportMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getReportMerchantNo()
|
||||
{
|
||||
return $this->container['reportMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reportMerchantNo
|
||||
* @param string $reportMerchantNo 报备商户号
|
||||
* @return $this
|
||||
*/
|
||||
public function setReportMerchantNo($reportMerchantNo)
|
||||
{
|
||||
$this->container['reportMerchantNo'] = $reportMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeAuthDirList
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddTradeAuthDirDTOResult[]
|
||||
*/
|
||||
public function getTradeAuthDirList()
|
||||
{
|
||||
return $this->container['tradeAuthDirList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAuthDirList
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddTradeAuthDirDTOResult[] $tradeAuthDirList 支付授权目录列表
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeAuthDirList($tradeAuthDirList)
|
||||
{
|
||||
$this->container['tradeAuthDirList'] = $tradeAuthDirList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdList
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddAppIdConfigDetailResult[]
|
||||
*/
|
||||
public function getAppIdList()
|
||||
{
|
||||
return $this->container['appIdList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdList
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddAppIdConfigDetailResult[] $appIdList 支付appId配置列表
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppIdList($appIdList)
|
||||
{
|
||||
$this->container['appIdList'] = $appIdList;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
41
lib/Service/Aggpay/Model/WechatConfigAddRequest.php
Normal file
41
lib/Service/Aggpay/Model/WechatConfigAddRequest.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class WechatConfigAddRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
* @param $body
|
||||
* @return WechatConfigAddRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'wechatConfigAdd';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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\UUIDUtils;
|
||||
|
||||
class WechatConfigAddRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigAddRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigAddRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/wechat-config/add';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
/**
|
||||
* @param WechatConfigAddRequest $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());
|
||||
}
|
||||
$content = \GuzzleHttp\json_encode($request->getBody());
|
||||
$internalRequest->setContent(\GuzzleHttp\Psr7\stream_for($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigAddRequestMarshaller::__init();
|
||||
36
lib/Service/Aggpay/Model/WechatConfigAddResponse.php
Normal file
36
lib/Service/Aggpay/Model/WechatConfigAddResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class WechatConfigAddResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigAddWechatConfigResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddWechatConfigResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WechatConfigAddWechatConfigResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddWechatConfigResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class WechatConfigAddResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigAddResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigAddResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigAddResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new WechatConfigAddResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigAddResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,320 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigAddTradeAuthDirDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigAddTradeAuthDirDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigAddTradeAuthDirDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigAddTradeAuthDirDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'tradeAuthDir' => 'string',
|
||||
'status' => 'string',
|
||||
'failReason' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'tradeAuthDir' => null,
|
||||
'status' => null,
|
||||
'failReason' => 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 = [
|
||||
'tradeAuthDir' => 'tradeAuthDir',
|
||||
'status' => 'status',
|
||||
'failReason' => 'failReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'tradeAuthDir' => 'setTradeAuthDir',
|
||||
'status' => 'setStatus',
|
||||
'failReason' => 'setFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'tradeAuthDir' => 'getTradeAuthDir',
|
||||
'status' => 'getStatus',
|
||||
'failReason' => 'getFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['tradeAuthDir'] = isset($data['tradeAuthDir']) ? $data['tradeAuthDir'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : 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 tradeAuthDir
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeAuthDir()
|
||||
{
|
||||
return $this->container['tradeAuthDir'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAuthDir
|
||||
* @param string $tradeAuthDir 支付授权目录
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeAuthDir($tradeAuthDir)
|
||||
{
|
||||
$this->container['tradeAuthDir'] = $tradeAuthDir;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets failReason
|
||||
* @return string
|
||||
*/
|
||||
public function getFailReason()
|
||||
{
|
||||
return $this->container['failReason'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets failReason
|
||||
* @param string $failReason 失败原因
|
||||
* @return $this
|
||||
*/
|
||||
public function setFailReason($failReason)
|
||||
{
|
||||
$this->container['failReason'] = $failReason;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigAddWechatConfigFlatResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigAddWechatConfigFlatResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigAddWechatConfigFlatResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigAddWechatConfigFlatResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'string',
|
||||
'configResult' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'status' => null,
|
||||
'configResult' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'status' => 'status',
|
||||
'configResult' => 'configResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'status' => 'setStatus',
|
||||
'configResult' => 'setConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'status' => 'getStatus',
|
||||
'configResult' => 'getConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : 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 code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets configResult
|
||||
* @return string
|
||||
*/
|
||||
public function getConfigResult()
|
||||
{
|
||||
return $this->container['configResult'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets configResult
|
||||
* @param string $configResult 配置结果
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfigResult($configResult)
|
||||
{
|
||||
$this->container['configResult'] = $configResult;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,375 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigAddWechatConfigRequestDTOParam
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigAddWechatConfigRequestDTOParam Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @description 方法签名第0个参数,请自行修改arg0等参数的名字
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigAddWechatConfigRequestDTOParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigAddWechatConfigRequestDTOParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'appKey' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'tradeAuthDirList' => 'string[]',
|
||||
'appIdList' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddAppIdConfigDetailResult[]',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'appKey' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'tradeAuthDirList' => null,
|
||||
'appIdList' => 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 = [
|
||||
'appKey' => 'appKey',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'tradeAuthDirList' => 'tradeAuthDirList',
|
||||
'appIdList' => 'appIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'appKey' => 'setAppKey',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'tradeAuthDirList' => 'setTradeAuthDirList',
|
||||
'appIdList' => 'setAppIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'appKey' => 'getAppKey',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'tradeAuthDirList' => 'getTradeAuthDirList',
|
||||
'appIdList' => 'getAppIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['appKey'] = isset($data['appKey']) ? $data['appKey'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['tradeAuthDirList'] = isset($data['tradeAuthDirList']) ? $data['tradeAuthDirList'] : null;
|
||||
$this->container['appIdList'] = isset($data['appIdList']) ? $data['appIdList'] : 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 appKey
|
||||
* @return string
|
||||
*/
|
||||
public function getAppKey()
|
||||
{
|
||||
return $this->container['appKey'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appKey
|
||||
* @param string $appKey appKey
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppKey($appKey)
|
||||
{
|
||||
$this->container['appKey'] = $appKey;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo parentMerchantNo
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->container['parentMerchantNo'] = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->container['merchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo merchantNo
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeAuthDirList
|
||||
* @return string[]
|
||||
*/
|
||||
public function getTradeAuthDirList()
|
||||
{
|
||||
return $this->container['tradeAuthDirList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAuthDirList
|
||||
* @param string[] $tradeAuthDirList tradeAuthDirList
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeAuthDirList($tradeAuthDirList)
|
||||
{
|
||||
$this->container['tradeAuthDirList'] = $tradeAuthDirList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdList
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddAppIdConfigDetailResult[]
|
||||
*/
|
||||
public function getAppIdList()
|
||||
{
|
||||
return $this->container['appIdList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdList
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddAppIdConfigDetailResult[] $appIdList appIdList
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppIdList($appIdList)
|
||||
{
|
||||
$this->container['appIdList'] = $appIdList;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigAddWechatConfigResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigAddWechatConfigResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigAddWechatConfigResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigAddWechatConfigResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'string',
|
||||
'configResult' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddConfigMerchantDTOResult[]',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'status' => null,
|
||||
'configResult' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'status' => 'status',
|
||||
'configResult' => 'configResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'status' => 'setStatus',
|
||||
'configResult' => 'setConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'status' => 'getStatus',
|
||||
'configResult' => 'getConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : 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 code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets configResult
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddConfigMerchantDTOResult[]
|
||||
*/
|
||||
public function getConfigResult()
|
||||
{
|
||||
return $this->container['configResult'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets configResult
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAddConfigMerchantDTOResult[] $configResult 配置结果
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfigResult($configResult)
|
||||
{
|
||||
$this->container['configResult'] = $configResult;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
93
lib/Service/Aggpay/Model/WechatConfigQuery0Request.php
Normal file
93
lib/Service/Aggpay/Model/WechatConfigQuery0Request.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class WechatConfigQuery0Request extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appIdType;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return WechatConfigQuery0Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return WechatConfigQuery0Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdType
|
||||
* @return string
|
||||
*/
|
||||
public function getAppIdType()
|
||||
{
|
||||
return $this->appIdType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdType
|
||||
* @param string $appIdType
|
||||
* @return WechatConfigQuery0Request
|
||||
*/
|
||||
public function setAppIdType($appIdType)
|
||||
{
|
||||
$this->appIdType = $appIdType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'wechatConfigQuery_0';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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 WechatConfigQuery0RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigQuery0RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigQuery0RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQuery0RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/aggpay/wechat-config/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param WechatConfigQuery0Request $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->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigQuery0RequestMarshaller::__init();
|
||||
36
lib/Service/Aggpay/Model/WechatConfigQuery0Response.php
Normal file
36
lib/Service/Aggpay/Model/WechatConfigQuery0Response.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class WechatConfigQuery0Response extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigQueryWechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryWechatConfigFlatResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WechatConfigQueryWechatConfigFlatResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryWechatConfigFlatResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class WechatConfigQuery0ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigQuery0ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigQuery0ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQuery0ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQuery0Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new WechatConfigQuery0Response();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigQuery0ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,401 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigQueryAppIdConfigDetailResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigQueryAppIdConfigDetailResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigQueryAppIdConfigDetailResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigQueryAppIdConfigDetailResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'appId' => 'string',
|
||||
'appSecret' => 'string',
|
||||
'appIdType' => 'string',
|
||||
'subscribeAppId' => 'string',
|
||||
'status' => 'string',
|
||||
'failReason' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'appId' => null,
|
||||
'appSecret' => null,
|
||||
'appIdType' => null,
|
||||
'subscribeAppId' => null,
|
||||
'status' => null,
|
||||
'failReason' => 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 = [
|
||||
'appId' => 'appId',
|
||||
'appSecret' => 'appSecret',
|
||||
'appIdType' => 'appIdType',
|
||||
'subscribeAppId' => 'subscribeAppId',
|
||||
'status' => 'status',
|
||||
'failReason' => 'failReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'appId' => 'setAppId',
|
||||
'appSecret' => 'setAppSecret',
|
||||
'appIdType' => 'setAppIdType',
|
||||
'subscribeAppId' => 'setSubscribeAppId',
|
||||
'status' => 'setStatus',
|
||||
'failReason' => 'setFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'appId' => 'getAppId',
|
||||
'appSecret' => 'getAppSecret',
|
||||
'appIdType' => 'getAppIdType',
|
||||
'subscribeAppId' => 'getSubscribeAppId',
|
||||
'status' => 'getStatus',
|
||||
'failReason' => 'getFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['appId'] = isset($data['appId']) ? $data['appId'] : null;
|
||||
$this->container['appSecret'] = isset($data['appSecret']) ? $data['appSecret'] : null;
|
||||
$this->container['appIdType'] = isset($data['appIdType']) ? $data['appIdType'] : null;
|
||||
$this->container['subscribeAppId'] = isset($data['subscribeAppId']) ? $data['subscribeAppId'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : 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 appId
|
||||
* @return string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->container['appId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appId
|
||||
* @param string $appId 支付appId
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppId($appId)
|
||||
{
|
||||
$this->container['appId'] = $appId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appSecret
|
||||
* @return string
|
||||
*/
|
||||
public function getAppSecret()
|
||||
{
|
||||
return $this->container['appSecret'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appSecret
|
||||
* @param string $appSecret 支付appSecret
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppSecret($appSecret)
|
||||
{
|
||||
$this->container['appSecret'] = $appSecret;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdType
|
||||
* @return string
|
||||
*/
|
||||
public function getAppIdType()
|
||||
{
|
||||
return $this->container['appIdType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdType
|
||||
* @param string $appIdType appId类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppIdType($appIdType)
|
||||
{
|
||||
$this->container['appIdType'] = $appIdType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets subscribeAppId
|
||||
* @return string
|
||||
*/
|
||||
public function getSubscribeAppId()
|
||||
{
|
||||
return $this->container['subscribeAppId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets subscribeAppId
|
||||
* @param string $subscribeAppId 关注appId
|
||||
* @return $this
|
||||
*/
|
||||
public function setSubscribeAppId($subscribeAppId)
|
||||
{
|
||||
$this->container['subscribeAppId'] = $subscribeAppId;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets failReason
|
||||
* @return string
|
||||
*/
|
||||
public function getFailReason()
|
||||
{
|
||||
return $this->container['failReason'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets failReason
|
||||
* @param string $failReason 失败原因
|
||||
* @return $this
|
||||
*/
|
||||
public function setFailReason($failReason)
|
||||
{
|
||||
$this->container['failReason'] = $failReason;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,320 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigQueryConfigMerchantDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigQueryConfigMerchantDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigQueryConfigMerchantDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigQueryConfigMerchantDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'reportMerchantNo' => 'string',
|
||||
'tradeAuthDirList' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryTradeAuthDirDTOResult[]',
|
||||
'appIdList' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryAppIdConfigDetailResult[]',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'reportMerchantNo' => null,
|
||||
'tradeAuthDirList' => null,
|
||||
'appIdList' => 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 = [
|
||||
'reportMerchantNo' => 'reportMerchantNo',
|
||||
'tradeAuthDirList' => 'tradeAuthDirList',
|
||||
'appIdList' => 'appIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'reportMerchantNo' => 'setReportMerchantNo',
|
||||
'tradeAuthDirList' => 'setTradeAuthDirList',
|
||||
'appIdList' => 'setAppIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'reportMerchantNo' => 'getReportMerchantNo',
|
||||
'tradeAuthDirList' => 'getTradeAuthDirList',
|
||||
'appIdList' => 'getAppIdList',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['reportMerchantNo'] = isset($data['reportMerchantNo']) ? $data['reportMerchantNo'] : null;
|
||||
$this->container['tradeAuthDirList'] = isset($data['tradeAuthDirList']) ? $data['tradeAuthDirList'] : null;
|
||||
$this->container['appIdList'] = isset($data['appIdList']) ? $data['appIdList'] : 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 reportMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getReportMerchantNo()
|
||||
{
|
||||
return $this->container['reportMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets reportMerchantNo
|
||||
* @param string $reportMerchantNo 报备商户号
|
||||
* @return $this
|
||||
*/
|
||||
public function setReportMerchantNo($reportMerchantNo)
|
||||
{
|
||||
$this->container['reportMerchantNo'] = $reportMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeAuthDirList
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryTradeAuthDirDTOResult[]
|
||||
*/
|
||||
public function getTradeAuthDirList()
|
||||
{
|
||||
return $this->container['tradeAuthDirList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAuthDirList
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryTradeAuthDirDTOResult[] $tradeAuthDirList 支付授权目录列表
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeAuthDirList($tradeAuthDirList)
|
||||
{
|
||||
$this->container['tradeAuthDirList'] = $tradeAuthDirList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdList
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryAppIdConfigDetailResult[]
|
||||
*/
|
||||
public function getAppIdList()
|
||||
{
|
||||
return $this->container['appIdList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdList
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryAppIdConfigDetailResult[] $appIdList 支付appId配置列表
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppIdList($appIdList)
|
||||
{
|
||||
$this->container['appIdList'] = $appIdList;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
93
lib/Service/Aggpay/Model/WechatConfigQueryRequest.php
Normal file
93
lib/Service/Aggpay/Model/WechatConfigQueryRequest.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class WechatConfigQueryRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appIdType;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return WechatConfigQueryRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return WechatConfigQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appIdType
|
||||
* @return string
|
||||
*/
|
||||
public function getAppIdType()
|
||||
{
|
||||
return $this->appIdType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appIdType
|
||||
* @param string $appIdType
|
||||
* @return WechatConfigQueryRequest
|
||||
*/
|
||||
public function setAppIdType($appIdType)
|
||||
{
|
||||
$this->appIdType = $appIdType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'wechatConfigQuery';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\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\UUIDUtils;
|
||||
|
||||
class WechatConfigQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Aggpay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/aggpay/wechat-config/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param WechatConfigQueryRequest $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());
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigQueryRequestMarshaller::__init();
|
||||
36
lib/Service/Aggpay/Model/WechatConfigQueryResponse.php
Normal file
36
lib/Service/Aggpay/Model/WechatConfigQueryResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class WechatConfigQueryResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigQueryWechatConfigResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryWechatConfigResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WechatConfigQueryWechatConfigResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryWechatConfigResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Aggpay\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class WechatConfigQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var WechatConfigQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new WechatConfigQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WechatConfigQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new WechatConfigQueryResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WechatConfigQueryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,320 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigQueryTradeAuthDirDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigQueryTradeAuthDirDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigQueryTradeAuthDirDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigQueryTradeAuthDirDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'tradeAuthDir' => 'string',
|
||||
'status' => 'string',
|
||||
'failReason' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'tradeAuthDir' => null,
|
||||
'status' => null,
|
||||
'failReason' => 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 = [
|
||||
'tradeAuthDir' => 'tradeAuthDir',
|
||||
'status' => 'status',
|
||||
'failReason' => 'failReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'tradeAuthDir' => 'setTradeAuthDir',
|
||||
'status' => 'setStatus',
|
||||
'failReason' => 'setFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'tradeAuthDir' => 'getTradeAuthDir',
|
||||
'status' => 'getStatus',
|
||||
'failReason' => 'getFailReason',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['tradeAuthDir'] = isset($data['tradeAuthDir']) ? $data['tradeAuthDir'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : 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 tradeAuthDir
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeAuthDir()
|
||||
{
|
||||
return $this->container['tradeAuthDir'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAuthDir
|
||||
* @param string $tradeAuthDir 支付授权目录
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeAuthDir($tradeAuthDir)
|
||||
{
|
||||
$this->container['tradeAuthDir'] = $tradeAuthDir;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets failReason
|
||||
* @return string
|
||||
*/
|
||||
public function getFailReason()
|
||||
{
|
||||
return $this->container['failReason'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets failReason
|
||||
* @param string $failReason 失败原因
|
||||
* @return $this
|
||||
*/
|
||||
public function setFailReason($failReason)
|
||||
{
|
||||
$this->container['failReason'] = $failReason;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigQueryWechatConfigFlatResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigQueryWechatConfigFlatResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigQueryWechatConfigFlatResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigQueryWechatConfigFlatResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'string',
|
||||
'configResult' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'status' => null,
|
||||
'configResult' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'status' => 'status',
|
||||
'configResult' => 'configResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'status' => 'setStatus',
|
||||
'configResult' => 'setConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'status' => 'getStatus',
|
||||
'configResult' => 'getConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : 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 code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets configResult
|
||||
* @return string
|
||||
*/
|
||||
public function getConfigResult()
|
||||
{
|
||||
return $this->container['configResult'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets configResult
|
||||
* @param string $configResult 配置结果
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfigResult($configResult)
|
||||
{
|
||||
$this->container['configResult'] = $configResult;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* WechatConfigQueryWechatConfigResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 聚合支付
|
||||
* <p>提供聚合支付相关服务(支付下单、公众号配置等功能</p>
|
||||
* OpenAPI spec version: 1.0.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\Aggpay\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* WechatConfigQueryWechatConfigResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class WechatConfigQueryWechatConfigResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'WechatConfigQueryWechatConfigResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'string',
|
||||
'configResult' => '\Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryConfigMerchantDTOResult[]',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'status' => null,
|
||||
'configResult' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'status' => 'status',
|
||||
'configResult' => 'configResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'status' => 'setStatus',
|
||||
'configResult' => 'setConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'status' => 'getStatus',
|
||||
'configResult' => 'getConfigResult',
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : 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 code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets configResult
|
||||
* @return \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryConfigMerchantDTOResult[]
|
||||
*/
|
||||
public function getConfigResult()
|
||||
{
|
||||
return $this->container['configResult'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets configResult
|
||||
* @param \Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQueryConfigMerchantDTOResult[] $configResult 配置结果
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfigResult($configResult)
|
||||
{
|
||||
$this->container['configResult'] = $configResult;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user