23 lines
572 B
PHP
23 lines
572 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class BraintreePaymentRefund extends Model
|
|
{
|
|
protected $table = 'rcd_braintree_payment_refunds';
|
|
protected $primaryKey = 'refund_id';
|
|
public $incrementing = false;
|
|
protected $keyType = 'string';
|
|
public $timestamps = true;
|
|
const UPDATED_AT = null;
|
|
protected $guarded = [];
|
|
|
|
public function braintreePaymentStatus(): belongsTo
|
|
{
|
|
return $this->belongsTo(BraintreePayment::class, 'transaction_id');
|
|
}
|
|
}
|