'string', 'message' => 'string', 'requestNo' => 'string', 'businessNo' => 'string', 'amount' => 'float', 'bindId' => 'string', 'cardNo' => 'string', 'bankName' => 'string', 'bankCode' => 'string', 'tradeStatus' => 'string', 'acceptTime' => '\DateTime', 'completeTime' => '\DateTime', 'userFee' => 'float', 'withdrawType' => 'string', 'deductionAmount' => 'float', 'arrivalAmount' => 'float', 'feeInnerType' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'code' => null, 'message' => null, 'requestNo' => null, 'businessNo' => null, 'amount' => null, 'bindId' => null, 'cardNo' => null, 'bankName' => null, 'bankCode' => null, 'tradeStatus' => null, 'acceptTime' => 'date-time', 'completeTime' => 'date-time', 'userFee' => null, 'withdrawType' => null, 'deductionAmount' => null, 'arrivalAmount' => null, 'feeInnerType' => 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 = [ 'code' => 'code', 'message' => 'message', 'requestNo' => 'requestNo', 'businessNo' => 'businessNo', 'amount' => 'amount', 'bindId' => 'bindId', 'cardNo' => 'cardNo', 'bankName' => 'bankName', 'bankCode' => 'bankCode', 'tradeStatus' => 'tradeStatus', 'acceptTime' => 'acceptTime', 'completeTime' => 'completeTime', 'userFee' => 'userFee', 'withdrawType' => 'withdrawType', 'deductionAmount' => 'deductionAmount', 'arrivalAmount' => 'arrivalAmount', 'feeInnerType' => 'feeInnerType' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', 'requestNo' => 'setRequestNo', 'businessNo' => 'setBusinessNo', 'amount' => 'setAmount', 'bindId' => 'setBindId', 'cardNo' => 'setCardNo', 'bankName' => 'setBankName', 'bankCode' => 'setBankCode', 'tradeStatus' => 'setTradeStatus', 'acceptTime' => 'setAcceptTime', 'completeTime' => 'setCompleteTime', 'userFee' => 'setUserFee', 'withdrawType' => 'setWithdrawType', 'deductionAmount' => 'setDeductionAmount', 'arrivalAmount' => 'setArrivalAmount', 'feeInnerType' => 'setFeeInnerType' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', 'requestNo' => 'getRequestNo', 'businessNo' => 'getBusinessNo', 'amount' => 'getAmount', 'bindId' => 'getBindId', 'cardNo' => 'getCardNo', 'bankName' => 'getBankName', 'bankCode' => 'getBankCode', 'tradeStatus' => 'getTradeStatus', 'acceptTime' => 'getAcceptTime', 'completeTime' => 'getCompleteTime', 'userFee' => 'getUserFee', 'withdrawType' => 'getWithdrawType', 'deductionAmount' => 'getDeductionAmount', 'arrivalAmount' => 'getArrivalAmount', 'feeInnerType' => 'getFeeInnerType' ]; /** * 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['code'] = isset($data['code']) ? $data['code'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; $this->container['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null; $this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null; $this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null; $this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; $this->container['tradeStatus'] = isset($data['tradeStatus']) ? $data['tradeStatus'] : null; $this->container['acceptTime'] = isset($data['acceptTime']) ? $data['acceptTime'] : null; $this->container['completeTime'] = isset($data['completeTime']) ? $data['completeTime'] : null; $this->container['userFee'] = isset($data['userFee']) ? $data['userFee'] : null; $this->container['withdrawType'] = isset($data['withdrawType']) ? $data['withdrawType'] : null; $this->container['deductionAmount'] = isset($data['deductionAmount']) ? $data['deductionAmount'] : null; $this->container['arrivalAmount'] = isset($data['arrivalAmount']) ? $data['arrivalAmount'] : null; $this->container['feeInnerType'] = isset($data['feeInnerType']) ? $data['feeInnerType'] : 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 code * * @return string */ public function getCode() { return $this->container['code']; } /** * Sets code * * @param string $code 返回码 * * @return $this */ public function setCode($code) { $this->container['code'] = $code; return $this; } /** * Gets message * * @return string */ public function getMessage() { return $this->container['message']; } /** * Sets message * * @param string $message 返回信息 * * @return $this */ public function setMessage($message) { $this->container['message'] = $message; 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 businessNo * * @return string */ public function getBusinessNo() { return $this->container['businessNo']; } /** * Sets businessNo * * @param string $businessNo 易宝订单号 * * @return $this */ public function setBusinessNo($businessNo) { $this->container['businessNo'] = $businessNo; return $this; } /** * Gets amount * * @return float */ public function getAmount() { return $this->container['amount']; } /** * Sets amount * * @param float $amount 提现金额 * * @return $this */ public function setAmount($amount) { $this->container['amount'] = $amount; return $this; } /** * Gets bindId * * @return string */ public function getBindId() { return $this->container['bindId']; } /** * Sets bindId * * @param string $bindId 绑卡ID * * @return $this */ public function setBindId($bindId) { $this->container['bindId'] = $bindId; return $this; } /** * Gets cardNo * * @return string */ public function getCardNo() { return $this->container['cardNo']; } /** * Sets cardNo * * @param string $cardNo 卡号
显示前4后2,中间* * * @return $this */ public function setCardNo($cardNo) { $this->container['cardNo'] = $cardNo; return $this; } /** * Gets bankName * * @return string */ public function getBankName() { return $this->container['bankName']; } /** * Sets bankName * * @param string $bankName 银行名称 * * @return $this */ public function setBankName($bankName) { $this->container['bankName'] = $bankName; return $this; } /** * Gets bankCode * * @return string */ public function getBankCode() { return $this->container['bankCode']; } /** * Sets bankCode * * @param string $bankCode 银行编码 * * @return $this */ public function setBankCode($bankCode) { $this->container['bankCode'] = $bankCode; return $this; } /** * Gets tradeStatus * * @return string */ public function getTradeStatus() { return $this->container['tradeStatus']; } /** * Sets tradeStatus * * @param string $tradeStatus 状态
可选项如下:
SUCCESS:成功
FAIL:失败
ACCEPTED:打款中 * * @return $this */ public function setTradeStatus($tradeStatus) { $this->container['tradeStatus'] = $tradeStatus; return $this; } /** * Gets acceptTime * * @return \DateTime */ public function getAcceptTime() { return $this->container['acceptTime']; } /** * Sets acceptTime * * @param \DateTime $acceptTime 受理时间 * * @return $this */ public function setAcceptTime($acceptTime) { $this->container['acceptTime'] = $acceptTime; return $this; } /** * Gets completeTime * * @return \DateTime */ public function getCompleteTime() { return $this->container['completeTime']; } /** * Sets completeTime * * @param \DateTime $completeTime 完成时间 * * @return $this */ public function setCompleteTime($completeTime) { $this->container['completeTime'] = $completeTime; return $this; } /** * Gets userFee * * @return float */ public function getUserFee() { return $this->container['userFee']; } /** * Sets userFee * * @param float $userFee 用户手续费 * * @return $this */ public function setUserFee($userFee) { $this->container['userFee'] = $userFee; return $this; } /** * Gets withdrawType * * @return string */ public function getWithdrawType() { return $this->container['withdrawType']; } /** * Sets withdrawType * * @param string $withdrawType 提现方式
可选项如下:
0:提现实时到账
1:提现2小时到账
2:次日到账 * * @return $this */ public function setWithdrawType($withdrawType) { $this->container['withdrawType'] = $withdrawType; return $this; } /** * Gets deductionAmount * * @return float */ public function getDeductionAmount() { return $this->container['deductionAmount']; } /** * Sets deductionAmount * * @param float $deductionAmount 实际扣款金额 * * @return $this */ public function setDeductionAmount($deductionAmount) { $this->container['deductionAmount'] = $deductionAmount; return $this; } /** * Gets arrivalAmount * * @return float */ public function getArrivalAmount() { return $this->container['arrivalAmount']; } /** * Sets arrivalAmount * * @param float $arrivalAmount 到账金额 * * @return $this */ public function setArrivalAmount($arrivalAmount) { $this->container['arrivalAmount'] = $arrivalAmount; return $this; } /** * Gets feeInnerType * * @return string */ public function getFeeInnerType() { return $this->container['feeInnerType']; } /** * Sets feeInnerType * * @param string $feeInnerType 手续费扣除方式
可选项如下:
INNER:内扣
OUTER:外扣
OUTER_TO_INNER:外扣转内扣 * * @return $this */ public function setFeeInnerType($feeInnerType) { $this->container['feeInnerType'] = $feeInnerType; 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)); } }