'string',
'merchantNo' => 'string',
'requestNo' => 'string',
'merchantMemberNo' => 'string',
'accountType' => 'string',
'bankAccountLevel' => 'string',
'memberInfo' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\AccountMemberDTO'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'parentMerchantNo' => null,
'merchantNo' => null,
'requestNo' => null,
'merchantMemberNo' => null,
'accountType' => null,
'bankAccountLevel' => null,
'memberInfo' => 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 = [
'parentMerchantNo' => 'parentMerchantNo',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo',
'merchantMemberNo' => 'merchantMemberNo',
'accountType' => 'accountType',
'bankAccountLevel' => 'bankAccountLevel',
'memberInfo' => 'memberInfo'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'parentMerchantNo' => 'setParentMerchantNo',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo',
'merchantMemberNo' => 'setMerchantMemberNo',
'accountType' => 'setAccountType',
'bankAccountLevel' => 'setBankAccountLevel',
'memberInfo' => 'setMemberInfo'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'parentMerchantNo' => 'getParentMerchantNo',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo',
'merchantMemberNo' => 'getMerchantMemberNo',
'accountType' => 'getAccountType',
'bankAccountLevel' => 'getBankAccountLevel',
'memberInfo' => 'getMemberInfo'
];
/**
* 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['merchantMemberNo'] = isset($data['merchantMemberNo']) ? $data['merchantMemberNo'] : null;
$this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null;
$this->container['bankAccountLevel'] = isset($data['bankAccountLevel']) ? $data['bankAccountLevel'] : null;
$this->container['memberInfo'] = isset($data['memberInfo']) ? $data['memberInfo'] : 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 parentMerchantNo
*
* @return string
*/
public function getParentMerchantNo()
{
return $this->container['parentMerchantNo'];
}
/**
* Sets parentMerchantNo
*
* @param string $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 商户编号
易宝支付分配的的商户唯一标识
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求号
每次开户的请求号不能重复
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets merchantMemberNo
*
* @return string
*/
public function getMerchantMemberNo()
{
return $this->container['merchantMemberNo'];
}
/**
* Sets merchantMemberNo
*
* @param string $merchantMemberNo 商户侧会员编号
商户侧存的会员编号,不同人的会员编号不能相同
*
* @return $this
*/
public function setMerchantMemberNo($merchantMemberNo)
{
$this->container['merchantMemberNo'] = $merchantMemberNo;
return $this;
}
/**
* Gets accountType
*
* @return string
*/
public function getAccountType()
{
return $this->container['accountType'];
}
/**
* Sets accountType
*
* @param string $accountType 银行编码
可选项如下:
CNCB:中信银行
*
* @return $this
*/
public function setAccountType($accountType)
{
$this->container['accountType'] = $accountType;
return $this;
}
/**
* Gets bankAccountLevel
*
* @return string
*/
public function getBankAccountLevel()
{
return $this->container['bankAccountLevel'];
}
/**
* Sets bankAccountLevel
*
* @param string $bankAccountLevel 银行账户等级
可选项如下:
ONEACCOUNT:一类户
TWOACCOUNT:二类户
THREEACCOUNT:三类户
*
* @return $this
*/
public function setBankAccountLevel($bankAccountLevel)
{
$this->container['bankAccountLevel'] = $bankAccountLevel;
return $this;
}
/**
* Gets memberInfo
*
* @return \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountMemberDTO
*/
public function getMemberInfo()
{
return $this->container['memberInfo'];
}
/**
* Sets memberInfo
*
* @param \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountMemberDTO $memberInfo memberInfo
*
* @return $this
*/
public function setMemberInfo($memberInfo)
{
$this->container['memberInfo'] = $memberInfo;
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));
}
}