<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "refunds".
 *
 * @property int $id
 * @property int $store_id
 * @property string $hash_id
 * @property string $refund_id
 * @property string $merchant_refund_code
 * @property string $refund_status
 * @property string $request_date
 * @property string $pending_date
 * @property string $confirm_date
 * @property string $cancel_date
 * @property string $amount_ext
 * @property string $description
 * @property string $email_quantity
 * @property string $email_first_date
 * @property string $email_last_date
 * @property string $bank_info_customer_filled
 * @property string $bank_info_customer_filled_date
 * @property string $operation
 * @property string $status
 * @property string $created_at
 * @property string $updated_at
 */
class Refunds extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'refunds';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['store_id'], 'required'],
            [['store_id'], 'integer'],
            [['hash_id', 'description'], 'string'],
            [['request_date', 'pending_date', 'confirm_date', 'cancel_date', 'email_first_date', 'email_last_date', 'created_at', 'updated_at'], 'safe'],
            [['refund_id', 'merchant_refund_code', 'refund_status', 'amount_ext', 'email_quantity', 'bank_info_customer_filled', 'bank_info_customer_filled_date', 'operation', 'status'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'store_id' => 'Store ID',
            'hash_id' => 'Hash ID',
            'refund_id' => 'Refund ID',
            'merchant_refund_code' => 'Merchant Refund Code',
            'refund_status' => 'Refund Status',
            'request_date' => 'Request Date',
            'pending_date' => 'Pending Date',
            'confirm_date' => 'Confirm Date',
            'cancel_date' => 'Cancel Date',
            'amount_ext' => 'Amount Ext',
            'description' => 'Description',
            'email_quantity' => 'Email Quantity',
            'email_first_date' => 'Email First Date',
            'email_last_date' => 'Email Last Date',
            'bank_info_customer_filled' => 'Bank Info Customer Filled',
            'bank_info_customer_filled_date' => 'Bank Info Customer Filled Date',
            'operation' => 'Operation',
            'status' => 'Status',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
