58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
||
|
||
namespace common\modelsgii;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "{{%payment_refund}}".
|
||
*
|
||
* @property int $id
|
||
* @property string $refund_no 退款单号
|
||
* @property float $amount 退款金额
|
||
* @property int $is_pay 支付状态 0--未支付|1--已支付
|
||
* @property int $pay_type 支付方式:1=微信支付
|
||
* @property string $out_trade_no 支付单号
|
||
* @property int $created_at
|
||
* @property int $updated_at
|
||
*/
|
||
class PaymentRefund extends \common\core\BaseActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return '{{%payment_refund}}';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['amount'], 'number'],
|
||
[['is_pay', 'pay_type', 'created_at', 'updated_at'], 'integer'],
|
||
[['refund_no', 'out_trade_no'], 'string', 'max' => 255],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'refund_no' => '退款单号',
|
||
'amount' => '退款金额',
|
||
'is_pay' => '支付状态 0--未支付|1--已支付',
|
||
'pay_type' => '支付方式:1=微信支付',
|
||
'out_trade_no' => '支付单号',
|
||
'created_at' => 'Created At',
|
||
'updated_at' => 'Updated At',
|
||
];
|
||
}
|
||
}
|