'string', 'id' => 'int', 'name' => 'string', 'phone' => 'string', 'certificateType' => 'string', 'certificateNo' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'merchantNo' => null, 'id' => 'int64', 'name' => null, 'phone' => null, 'certificateType' => null, 'certificateNo' => 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 = [ 'merchantNo' => 'merchantNo', 'id' => 'id', 'name' => 'name', 'phone' => 'phone', 'certificateType' => 'certificateType', 'certificateNo' => 'certificateNo' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'merchantNo' => 'setMerchantNo', 'id' => 'setId', 'name' => 'setName', 'phone' => 'setPhone', 'certificateType' => 'setCertificateType', 'certificateNo' => 'setCertificateNo' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'merchantNo' => 'getMerchantNo', 'id' => 'getId', 'name' => 'getName', 'phone' => 'getPhone', 'certificateType' => 'getCertificateType', 'certificateNo' => 'getCertificateNo' ]; /** * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; $this->container['certificateType'] = isset($data['certificateType']) ? $data['certificateType'] : null; $this->container['certificateNo'] = isset($data['certificateNo']) ? $data['certificateNo'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if ($this->container['merchantNo'] === null) { $invalidProperties[] = "'merchantNo' can't be null"; } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } if ($this->container['phone'] === null) { $invalidProperties[] = "'phone' can't be null"; } if ($this->container['certificateType'] === null) { $invalidProperties[] = "'certificateType' can't be null"; } if ($this->container['certificateNo'] === null) { $invalidProperties[] = "'certificateNo' 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 merchantNo * * @return string */ public function getMerchantNo() { return $this->container['merchantNo']; } /** * Sets merchantNo * * @param string $merchantNo

商户编号

* * @return $this */ public function setMerchantNo($merchantNo) { $this->container['merchantNo'] = $merchantNo; return $this; } /** * Gets id * * @return int */ public function getId() { return $this->container['id']; } /** * Sets id * * @param int $id

收款方id

* * @return $this */ public function setId($id) { $this->container['id'] = $id; return $this; } /** * Gets name * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name * * @param string $name
个人姓名
* * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets phone * * @return string */ public function getPhone() { return $this->container['phone']; } /** * Sets phone * * @param string $phone

手机号

* * @return $this */ public function setPhone($phone) { $this->container['phone'] = $phone; return $this; } /** * Gets certificateType * * @return string */ public function getCertificateType() { return $this->container['certificateType']; } /** * Sets certificateType * * @param string $certificateType

证件类型

* * @return $this */ public function setCertificateType($certificateType) { $this->container['certificateType'] = $certificateType; return $this; } /** * Gets certificateNo * * @return string */ public function getCertificateNo() { return $this->container['certificateNo']; } /** * Sets certificateNo * * @param string $certificateNo

证件号

* * @return $this */ public function setCertificateNo($certificateNo) { $this->container['certificateNo'] = $certificateNo; 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)); } }