| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Factories; |
| 4 |
|
| 5 |
use App\Billingo\Models\Address; |
| 6 |
use App\Billingo\Models\Document\DocumentBankAccount; |
| 7 |
|
| 8 |
class OrganizationFactory extends BaseFactory |
| 9 |
{ |
| 10 |
|
| 11 |
public function definition(): array |
| 12 |
{ |
| 13 |
return [ |
| 14 |
'name' => $this->faker->name(), |
| 15 |
'tax_number' => $this->faker->regexify('[0-9]{8}-[0-9]{1}-[0-9]{2}'), |
| 16 |
'bank_account' => DocumentBankAccount::factory(), |
| 17 |
'address' => Address::factory(), |
| 18 |
'small_taxpayer' => $this->faker->boolean(), |
| 19 |
'ev_number' => $this->faker->regexify('[0-9]{8}'), |
| 20 |
'eu_tax_number' => $this->faker->regexify('EU[0-9]{10}'), |
| 21 |
'cash_settled' => $this->faker->boolean(), |
| 22 |
]; |
| 23 |
} |
| 24 |
} |
| 25 |
|