<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BillingService extends Model
{
    /**
     * @var string[]
     */
    protected $fillable = [
     	'service_ref',
     	'setup_date',
     	'last_billed',
     	'next_billed',
     	'canseled_date',
     	'description',
     	'do_not_bill',
     	'fee',
     	'renew',
     	'agreement',
     	'notes',
     	'username',
     	'password',
     	'customer_id',
        'tax_type'
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function customer()
    {
        return $this->belongsTo(XeroCustomer::class, 'customer_id');
    }
}
