Added Supplier Domain importing - using dreamscape API
This commit is contained in:
@@ -165,6 +165,16 @@ class Supplier extends Model
|
||||
return $this->api_class() && (collect(['api_key','api_secret'])->diff($this->detail->connections->keys())->count() === 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* If this supplier has a domain registrar, return it.
|
||||
*
|
||||
* @return DomainRegistrar|null
|
||||
*/
|
||||
public function registrar(): ?DomainRegistrar
|
||||
{
|
||||
return ($x=config('services.supplier.'.strtolower($this->name).'.registrar')) ? DomainRegistrar::where('name',$x)->single() : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the traffic records, that were not matched to a service.
|
||||
*
|
||||
|
Reference in New Issue
Block a user