'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
账户类型
可选项如下:
FUND_ACCOUNT:资金账户
ADVANCE_ACCOUNT:预收账户
绑定卡类型
可选项如下:
PUBLIC_CARD:对公卡
PRIVATE_CARD:对私卡
绑定银行卡号
* * @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营业执照生效日期
格式为yyyyMMdd
营业执照失效日期
参数格式为yyyyMMdd或者forever
法人证件生效日期
参数格式为yyyyMMdd
法人证件失效日期
参数格式为yyyyMMdd或者forever
商户注册地址
* * @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组织机构代码生效日期
参数格式为yyyyMMdd或者forever
组织机构代码失效日期
参数格式为yyyyMMdd或者forever
税务登记号
* * @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)); } }