712 lines
18 KiB
PHP
712 lines
18 KiB
PHP
<?php
|
|
/**
|
|
* JsbcOpenAccountDTO
|
|
*
|
|
* PHP version 5
|
|
*
|
|
* @category Class
|
|
* @package Yeepay\Yop\Sdk\
|
|
* @author Swagger Codegen team
|
|
* @link https://github.com/swagger-api/swagger-codegen
|
|
*/
|
|
|
|
/**
|
|
* 账户
|
|
*
|
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
*
|
|
* OpenAPI spec version: 1.0
|
|
*
|
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
* Swagger Codegen version: 3.0.13
|
|
*/
|
|
|
|
/**
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
|
|
|
use \ArrayAccess;
|
|
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
|
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
|
|
|
/**
|
|
* JsbcOpenAccountDTO Class Doc Comment
|
|
*
|
|
* @category Class
|
|
* @description 江苏银行拓展参数
|
|
* @package Yeepay\Yop\Sdk\
|
|
* @author Swagger Codegen team
|
|
* @link https://github.com/swagger-api/swagger-codegen
|
|
*/
|
|
class JsbcOpenAccountDTO implements ModelInterface, ArrayAccess
|
|
{
|
|
const DISCRIMINATOR = null;
|
|
|
|
/**
|
|
* The original name of the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected static $swaggerModelName = 'JsbcOpenAccountDTO';
|
|
|
|
/**
|
|
* Array of property to type mappings. Used for (de)serialization
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $swaggerTypes = [
|
|
'accountType' => 'string',
|
|
'bindCardType' => 'string',
|
|
'bindCardNo' => 'string',
|
|
'bindBankCode' => 'string',
|
|
'bindAccountName' => 'string',
|
|
'businessLicenceEffectiveDate' => 'string',
|
|
'businessLicenceExpirationDate' => 'string',
|
|
'legalLicenceEffectiveDate' => 'string',
|
|
'legalLicenceExpirationDate' => 'string',
|
|
'registerAddress' => 'string',
|
|
'organizationNo' => 'string',
|
|
'organizationStart' => 'string',
|
|
'organizationNoEnd' => 'string',
|
|
'taxNo' => 'string'
|
|
];
|
|
|
|
/**
|
|
* Array of property to format mappings. Used for (de)serialization
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $swaggerFormats = [
|
|
'accountType' => null,
|
|
'bindCardType' => null,
|
|
'bindCardNo' => null,
|
|
'bindBankCode' => null,
|
|
'bindAccountName' => null,
|
|
'businessLicenceEffectiveDate' => null,
|
|
'businessLicenceExpirationDate' => null,
|
|
'legalLicenceEffectiveDate' => null,
|
|
'legalLicenceExpirationDate' => null,
|
|
'registerAddress' => null,
|
|
'organizationNo' => null,
|
|
'organizationStart' => null,
|
|
'organizationNoEnd' => null,
|
|
'taxNo' => 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 = [
|
|
'accountType' => 'accountType',
|
|
'bindCardType' => 'bindCardType',
|
|
'bindCardNo' => 'bindCardNo',
|
|
'bindBankCode' => 'bindBankCode',
|
|
'bindAccountName' => 'bindAccountName',
|
|
'businessLicenceEffectiveDate' => 'businessLicenceEffectiveDate',
|
|
'businessLicenceExpirationDate' => 'businessLicenceExpirationDate',
|
|
'legalLicenceEffectiveDate' => 'legalLicenceEffectiveDate',
|
|
'legalLicenceExpirationDate' => 'legalLicenceExpirationDate',
|
|
'registerAddress' => 'registerAddress',
|
|
'organizationNo' => 'organizationNo',
|
|
'organizationStart' => 'organizationStart',
|
|
'organizationNoEnd' => 'organizationNoEnd',
|
|
'taxNo' => 'taxNo'
|
|
];
|
|
|
|
/**
|
|
* Array of attributes to setter functions (for deserialization of responses)
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $setters = [
|
|
'accountType' => 'setAccountType',
|
|
'bindCardType' => 'setBindCardType',
|
|
'bindCardNo' => 'setBindCardNo',
|
|
'bindBankCode' => 'setBindBankCode',
|
|
'bindAccountName' => 'setBindAccountName',
|
|
'businessLicenceEffectiveDate' => 'setBusinessLicenceEffectiveDate',
|
|
'businessLicenceExpirationDate' => 'setBusinessLicenceExpirationDate',
|
|
'legalLicenceEffectiveDate' => 'setLegalLicenceEffectiveDate',
|
|
'legalLicenceExpirationDate' => 'setLegalLicenceExpirationDate',
|
|
'registerAddress' => 'setRegisterAddress',
|
|
'organizationNo' => 'setOrganizationNo',
|
|
'organizationStart' => 'setOrganizationStart',
|
|
'organizationNoEnd' => 'setOrganizationNoEnd',
|
|
'taxNo' => 'setTaxNo'
|
|
];
|
|
|
|
/**
|
|
* Array of attributes to getter functions (for serialization of requests)
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected static $getters = [
|
|
'accountType' => 'getAccountType',
|
|
'bindCardType' => 'getBindCardType',
|
|
'bindCardNo' => 'getBindCardNo',
|
|
'bindBankCode' => 'getBindBankCode',
|
|
'bindAccountName' => 'getBindAccountName',
|
|
'businessLicenceEffectiveDate' => 'getBusinessLicenceEffectiveDate',
|
|
'businessLicenceExpirationDate' => 'getBusinessLicenceExpirationDate',
|
|
'legalLicenceEffectiveDate' => 'getLegalLicenceEffectiveDate',
|
|
'legalLicenceExpirationDate' => 'getLegalLicenceExpirationDate',
|
|
'registerAddress' => 'getRegisterAddress',
|
|
'organizationNo' => 'getOrganizationNo',
|
|
'organizationStart' => 'getOrganizationStart',
|
|
'organizationNoEnd' => 'getOrganizationNoEnd',
|
|
'taxNo' => 'getTaxNo'
|
|
];
|
|
|
|
/**
|
|
* 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['accountType'] = isset($data['accountType']) ? $data['accountType'] : null;
|
|
$this->container['bindCardType'] = isset($data['bindCardType']) ? $data['bindCardType'] : null;
|
|
$this->container['bindCardNo'] = isset($data['bindCardNo']) ? $data['bindCardNo'] : null;
|
|
$this->container['bindBankCode'] = isset($data['bindBankCode']) ? $data['bindBankCode'] : null;
|
|
$this->container['bindAccountName'] = isset($data['bindAccountName']) ? $data['bindAccountName'] : null;
|
|
$this->container['businessLicenceEffectiveDate'] = isset($data['businessLicenceEffectiveDate']) ? $data['businessLicenceEffectiveDate'] : null;
|
|
$this->container['businessLicenceExpirationDate'] = isset($data['businessLicenceExpirationDate']) ? $data['businessLicenceExpirationDate'] : null;
|
|
$this->container['legalLicenceEffectiveDate'] = isset($data['legalLicenceEffectiveDate']) ? $data['legalLicenceEffectiveDate'] : null;
|
|
$this->container['legalLicenceExpirationDate'] = isset($data['legalLicenceExpirationDate']) ? $data['legalLicenceExpirationDate'] : null;
|
|
$this->container['registerAddress'] = isset($data['registerAddress']) ? $data['registerAddress'] : null;
|
|
$this->container['organizationNo'] = isset($data['organizationNo']) ? $data['organizationNo'] : null;
|
|
$this->container['organizationStart'] = isset($data['organizationStart']) ? $data['organizationStart'] : null;
|
|
$this->container['organizationNoEnd'] = isset($data['organizationNoEnd']) ? $data['organizationNoEnd'] : null;
|
|
$this->container['taxNo'] = isset($data['taxNo']) ? $data['taxNo'] : null;
|
|
}
|
|
|
|
/**
|
|
* Show all the invalid properties with reasons.
|
|
*
|
|
* @return array invalid properties with reasons
|
|
*/
|
|
public function listInvalidProperties()
|
|
{
|
|
$invalidProperties = [];
|
|
|
|
if ($this->container['accountType'] === null) {
|
|
$invalidProperties[] = "'accountType' can't be null";
|
|
}
|
|
if ($this->container['businessLicenceEffectiveDate'] === null) {
|
|
$invalidProperties[] = "'businessLicenceEffectiveDate' can't be null";
|
|
}
|
|
if ($this->container['businessLicenceExpirationDate'] === null) {
|
|
$invalidProperties[] = "'businessLicenceExpirationDate' can't be null";
|
|
}
|
|
if ($this->container['legalLicenceEffectiveDate'] === null) {
|
|
$invalidProperties[] = "'legalLicenceEffectiveDate' can't be null";
|
|
}
|
|
if ($this->container['legalLicenceExpirationDate'] === null) {
|
|
$invalidProperties[] = "'legalLicenceExpirationDate' can't be null";
|
|
}
|
|
if ($this->container['registerAddress'] === null) {
|
|
$invalidProperties[] = "'registerAddress' can't be null";
|
|
}
|
|
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 accountType
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getAccountType()
|
|
{
|
|
return $this->container['accountType'];
|
|
}
|
|
|
|
/**
|
|
* Sets accountType
|
|
*
|
|
* @param string $accountType 账户类型<br>可选项如下:<br>FUND_ACCOUNT:资金账户<br>ADVANCE_ACCOUNT:预收账户
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setAccountType($accountType)
|
|
{
|
|
$this->container['accountType'] = $accountType;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets bindCardType
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBindCardType()
|
|
{
|
|
return $this->container['bindCardType'];
|
|
}
|
|
|
|
/**
|
|
* Sets bindCardType
|
|
*
|
|
* @param string $bindCardType 绑定卡类型<br>可选项如下:<br>PUBLIC_CARD:对公卡<br>PRIVATE_CARD:对私卡
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setBindCardType($bindCardType)
|
|
{
|
|
$this->container['bindCardType'] = $bindCardType;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets bindCardNo
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBindCardNo()
|
|
{
|
|
return $this->container['bindCardNo'];
|
|
}
|
|
|
|
/**
|
|
* Sets bindCardNo
|
|
*
|
|
* @param string $bindCardNo 绑定银行卡号
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setBindCardNo($bindCardNo)
|
|
{
|
|
$this->container['bindCardNo'] = $bindCardNo;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets bindBankCode
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBindBankCode()
|
|
{
|
|
return $this->container['bindBankCode'];
|
|
}
|
|
|
|
/**
|
|
* Sets bindBankCode
|
|
*
|
|
* @param string $bindBankCode 绑定银行编码
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setBindBankCode($bindBankCode)
|
|
{
|
|
$this->container['bindBankCode'] = $bindBankCode;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets bindAccountName
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBindAccountName()
|
|
{
|
|
return $this->container['bindAccountName'];
|
|
}
|
|
|
|
/**
|
|
* Sets bindAccountName
|
|
*
|
|
* @param string $bindAccountName 绑定账户名称
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setBindAccountName($bindAccountName)
|
|
{
|
|
$this->container['bindAccountName'] = $bindAccountName;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets businessLicenceEffectiveDate
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBusinessLicenceEffectiveDate()
|
|
{
|
|
return $this->container['businessLicenceEffectiveDate'];
|
|
}
|
|
|
|
/**
|
|
* Sets businessLicenceEffectiveDate
|
|
*
|
|
* @param string $businessLicenceEffectiveDate 营业执照生效日期<br>格式为yyyyMMdd
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setBusinessLicenceEffectiveDate($businessLicenceEffectiveDate)
|
|
{
|
|
$this->container['businessLicenceEffectiveDate'] = $businessLicenceEffectiveDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets businessLicenceExpirationDate
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBusinessLicenceExpirationDate()
|
|
{
|
|
return $this->container['businessLicenceExpirationDate'];
|
|
}
|
|
|
|
/**
|
|
* Sets businessLicenceExpirationDate
|
|
*
|
|
* @param string $businessLicenceExpirationDate 营业执照失效日期<br>参数格式为yyyyMMdd或者forever
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setBusinessLicenceExpirationDate($businessLicenceExpirationDate)
|
|
{
|
|
$this->container['businessLicenceExpirationDate'] = $businessLicenceExpirationDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets legalLicenceEffectiveDate
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLegalLicenceEffectiveDate()
|
|
{
|
|
return $this->container['legalLicenceEffectiveDate'];
|
|
}
|
|
|
|
/**
|
|
* Sets legalLicenceEffectiveDate
|
|
*
|
|
* @param string $legalLicenceEffectiveDate 法人证件生效日期<br>参数格式为yyyyMMdd
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setLegalLicenceEffectiveDate($legalLicenceEffectiveDate)
|
|
{
|
|
$this->container['legalLicenceEffectiveDate'] = $legalLicenceEffectiveDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets legalLicenceExpirationDate
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLegalLicenceExpirationDate()
|
|
{
|
|
return $this->container['legalLicenceExpirationDate'];
|
|
}
|
|
|
|
/**
|
|
* Sets legalLicenceExpirationDate
|
|
*
|
|
* @param string $legalLicenceExpirationDate 法人证件失效日期<br>参数格式为yyyyMMdd或者forever
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setLegalLicenceExpirationDate($legalLicenceExpirationDate)
|
|
{
|
|
$this->container['legalLicenceExpirationDate'] = $legalLicenceExpirationDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets registerAddress
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getRegisterAddress()
|
|
{
|
|
return $this->container['registerAddress'];
|
|
}
|
|
|
|
/**
|
|
* Sets registerAddress
|
|
*
|
|
* @param string $registerAddress 商户注册地址不能超过512位
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setRegisterAddress($registerAddress)
|
|
{
|
|
$this->container['registerAddress'] = $registerAddress;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets organizationNo
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getOrganizationNo()
|
|
{
|
|
return $this->container['organizationNo'];
|
|
}
|
|
|
|
/**
|
|
* Sets organizationNo
|
|
*
|
|
* @param string $organizationNo 组织机构代码
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setOrganizationNo($organizationNo)
|
|
{
|
|
$this->container['organizationNo'] = $organizationNo;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets organizationStart
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getOrganizationStart()
|
|
{
|
|
return $this->container['organizationStart'];
|
|
}
|
|
|
|
/**
|
|
* Sets organizationStart
|
|
*
|
|
* @param string $organizationStart 组织机构代码生效日期<br>参数格式为yyyyMMdd或者forever
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setOrganizationStart($organizationStart)
|
|
{
|
|
$this->container['organizationStart'] = $organizationStart;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets organizationNoEnd
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getOrganizationNoEnd()
|
|
{
|
|
return $this->container['organizationNoEnd'];
|
|
}
|
|
|
|
/**
|
|
* Sets organizationNoEnd
|
|
*
|
|
* @param string $organizationNoEnd 组织机构代码失效日期<br>参数格式为yyyyMMdd或者forever
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setOrganizationNoEnd($organizationNoEnd)
|
|
{
|
|
$this->container['organizationNoEnd'] = $organizationNoEnd;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets taxNo
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getTaxNo()
|
|
{
|
|
return $this->container['taxNo'];
|
|
}
|
|
|
|
/**
|
|
* Sets taxNo
|
|
*
|
|
* @param string $taxNo 税务登记号
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setTaxNo($taxNo)
|
|
{
|
|
$this->container['taxNo'] = $taxNo;
|
|
|
|
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));
|
|
}
|
|
}
|
|
|
|
|