'string', 'amount' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'trxCode' => 'enum', 'amount' => 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 = [ 'trxCode' => 'trxCode', 'amount' => 'amount' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'trxCode' => 'setTrxCode', 'amount' => 'setAmount' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'trxCode' => 'getTrxCode', 'amount' => 'getAmount' ]; /** * 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; } const TRX_CODE_RECHARGE = 'RECHARGE'; const TRX_CODE_WITHDRAW = 'WITHDRAW'; const TRX_CODE_BALANCE_PAY = 'BALANCE_PAY'; const TRX_CODE_CARD_PAY = 'CARD_PAY'; const TRX_CODE_BANK_TRANSFER = 'BANK_TRANSFER'; const TRX_CODE_PAY_REFUND = 'PAY_REFUND'; const TRX_CODE_DIVIDE = 'DIVIDE'; const TRX_CODE_DIVIED_REFUND = 'DIVIED_REFUND'; /** * Gets allowable values of the enum * * @return string[] */ public function getTrxCodeAllowableValues() { return [ self::TRX_CODE_RECHARGE, self::TRX_CODE_WITHDRAW, self::TRX_CODE_BALANCE_PAY, self::TRX_CODE_CARD_PAY, self::TRX_CODE_BANK_TRANSFER, self::TRX_CODE_PAY_REFUND, self::TRX_CODE_DIVIDE, self::TRX_CODE_DIVIED_REFUND, ]; } /** * 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['trxCode'] = isset($data['trxCode']) ? $data['trxCode'] : null; $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if ($this->container['trxCode'] === null) { $invalidProperties[] = "'trxCode' can't be null"; } $allowedValues = $this->getTrxCodeAllowableValues(); if (!is_null($this->container['trxCode']) && !in_array($this->container['trxCode'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'trxCode', must be one of '%s'", implode("', '", $allowedValues) ); } 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 trxCode * * @return string */ public function getTrxCode() { return $this->container['trxCode']; } /** * Sets trxCode * * @param string $trxCode
汇总金额