'string', 'orderAmount' => 'float', 'fundProcessType' => 'string', 'goodsName' => 'string', 'expiredTime' => 'string', 'notifyUrl' => 'string', 'memo' => 'string', 'csUrl' => 'string', 'businessInfo' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'orderId' => null, 'orderAmount' => null, 'fundProcessType' => null, 'goodsName' => null, 'expiredTime' => null, 'notifyUrl' => null, 'memo' => null, 'csUrl' => null, 'businessInfo' => 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 = [ 'orderId' => 'orderId', 'orderAmount' => 'orderAmount', 'fundProcessType' => 'fundProcessType', 'goodsName' => 'goodsName', 'expiredTime' => 'expiredTime', 'notifyUrl' => 'notifyUrl', 'memo' => 'memo', 'csUrl' => 'csUrl', 'businessInfo' => 'businessInfo' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'orderId' => 'setOrderId', 'orderAmount' => 'setOrderAmount', 'fundProcessType' => 'setFundProcessType', 'goodsName' => 'setGoodsName', 'expiredTime' => 'setExpiredTime', 'notifyUrl' => 'setNotifyUrl', 'memo' => 'setMemo', 'csUrl' => 'setCsUrl', 'businessInfo' => 'setBusinessInfo' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'orderId' => 'getOrderId', 'orderAmount' => 'getOrderAmount', 'fundProcessType' => 'getFundProcessType', 'goodsName' => 'getGoodsName', 'expiredTime' => 'getExpiredTime', 'notifyUrl' => 'getNotifyUrl', 'memo' => 'getMemo', 'csUrl' => 'getCsUrl', 'businessInfo' => 'getBusinessInfo' ]; /** * 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['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; $this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; $this->container['fundProcessType'] = isset($data['fundProcessType']) ? $data['fundProcessType'] : null; $this->container['goodsName'] = isset($data['goodsName']) ? $data['goodsName'] : null; $this->container['expiredTime'] = isset($data['expiredTime']) ? $data['expiredTime'] : null; $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; $this->container['memo'] = isset($data['memo']) ? $data['memo'] : null; $this->container['csUrl'] = isset($data['csUrl']) ? $data['csUrl'] : null; $this->container['businessInfo'] = isset($data['businessInfo']) ? $data['businessInfo'] : 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 orderId * * @return string */ public function getOrderId() { return $this->container['orderId']; } /** * Sets orderId * * @param string $orderId orderId * * @return $this */ public function setOrderId($orderId) { $this->container['orderId'] = $orderId; return $this; } /** * Gets orderAmount * * @return float */ public function getOrderAmount() { return $this->container['orderAmount']; } /** * Sets orderAmount * * @param float $orderAmount orderAmount * * @return $this */ public function setOrderAmount($orderAmount) { $this->container['orderAmount'] = $orderAmount; return $this; } /** * Gets fundProcessType * * @return string */ public function getFundProcessType() { return $this->container['fundProcessType']; } /** * Sets fundProcessType * * @param string $fundProcessType fundProcessType * * @return $this */ public function setFundProcessType($fundProcessType) { $this->container['fundProcessType'] = $fundProcessType; return $this; } /** * Gets goodsName * * @return string */ public function getGoodsName() { return $this->container['goodsName']; } /** * Sets goodsName * * @param string $goodsName goodsName * * @return $this */ public function setGoodsName($goodsName) { $this->container['goodsName'] = $goodsName; return $this; } /** * Gets expiredTime * * @return string */ public function getExpiredTime() { return $this->container['expiredTime']; } /** * Sets expiredTime * * @param string $expiredTime expiredTime * * @return $this */ public function setExpiredTime($expiredTime) { $this->container['expiredTime'] = $expiredTime; return $this; } /** * Gets notifyUrl * * @return string */ public function getNotifyUrl() { return $this->container['notifyUrl']; } /** * Sets notifyUrl * * @param string $notifyUrl notifyUrl * * @return $this */ public function setNotifyUrl($notifyUrl) { $this->container['notifyUrl'] = $notifyUrl; return $this; } /** * Gets memo * * @return string */ public function getMemo() { return $this->container['memo']; } /** * Sets memo * * @param string $memo memo * * @return $this */ public function setMemo($memo) { $this->container['memo'] = $memo; return $this; } /** * Gets csUrl * * @return string */ public function getCsUrl() { return $this->container['csUrl']; } /** * Sets csUrl * * @param string $csUrl csUrl * * @return $this */ public function setCsUrl($csUrl) { $this->container['csUrl'] = $csUrl; return $this; } /** * Gets businessInfo * * @return string */ public function getBusinessInfo() { return $this->container['businessInfo']; } /** * Sets businessInfo * * @param string $businessInfo businessInfo * * @return $this */ public function setBusinessInfo($businessInfo) { $this->container['businessInfo'] = $businessInfo; 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)); } }