<?php

namespace App\Classes\Modules\Transactions\Services;

use App\Classes\General\Eloquent\AbstractUpdateRecord;
use App\Models\Transaction;

class UpdatesTransactionIsWaived extends AbstractUpdateRecord
{

    /**
     * @param Transaction $model
     * @return \Illuminate\Database\Eloquent\Model
     * @throws \App\Classes\Exceptions\MalformedRequestException
     */
    public function execute(Transaction $model)
    {
        $model->is_waived = 1;

        return $this->handler($model);
    }
}
