<?php

namespace Modules\Payment\Models;

use App\Models\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PaymentNotify extends Model
{

    protected $casts = [
        'payload' => 'json',
    ];

    /**
     * Notes   : 所属支付单
     *
     * @Date   : 2021/5/26 9:55 上午
     * @Author : < Jason.C >
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function payment(): BelongsTo
    {
        return $this->belongsTo(Payment::class);
    }

}
