Files
xk-api-yii/common/modelsgii/PaymentPrescripRefund.php

58 lines
1.3 KiB
PHP
Raw Normal View History

2024-09-19 11:32:39 +08:00
<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "yii_payment_prescrip_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 PaymentPrescripRefund extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'yii_payment_prescrip_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' => 'Refund No',
'amount' => 'Amount',
'is_pay' => 'Is Pay',
'pay_type' => 'Pay Type',
'out_trade_no' => 'Out Trade No',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}