49 lines
1.2 KiB
PHP
49 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Modules\VisaMasterPaymentOrder\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Spatie\MediaLibrary\HasMedia;
|
|
use Spatie\MediaLibrary\InteractsWithMedia;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property int $visa_master_payment_order_id
|
|
* @property int $online_payment_history_id
|
|
* @property ?string $payer_name
|
|
* @property ?string $payer_card
|
|
* @property ?string $payment_order_number
|
|
* @property string $tmt_payment_amount
|
|
* @property string $usd_payment_amount
|
|
* @property bool $paid
|
|
* @property \Illuminate\Support\Carbon $created_at
|
|
* @property \Illuminate\Support\Carbon $updated_at
|
|
*/
|
|
class VisaMasterPaymentOrderItem extends Model implements HasMedia
|
|
{
|
|
use InteractsWithMedia;
|
|
|
|
/**
|
|
* Table
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'visa_master_payment_order_items';
|
|
|
|
/**
|
|
* Guarded attributes
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* Parent order
|
|
*
|
|
* @return BelongsTo<VisaMasterPaymentOrder, VisaMasterPaymentOrderItem>
|
|
*/
|
|
public function parent(): BelongsTo
|
|
{
|
|
return $this->belongsTo(VisaMasterPaymentOrder::class, 'visa_master_payment_order_id');
|
|
}
|
|
}
|