| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Factories; |
| 4 |
|
| 5 |
use App\Billingo\Enums\Partner\TaxTypeEnum; |
| 6 |
use App\Billingo\Models\Address; |
| 7 |
use App\Billingo\Models\Partner\PartnerShipping; |
| 8 |
|
| 9 |
class DocumentPartnerFactory extends BaseFactory |
| 10 |
{ |
| 11 |
|
| 12 |
public function definition(): array |
| 13 |
{ |
| 14 |
return [ |
| 15 |
'id' => $this->faker->unique()->numberBetween(1, 1000), |
| 16 |
'name' => $this->faker->company(), |
| 17 |
'address' => Address::factory(), |
| 18 |
'emails' => [$this->faker->email(), $this->faker->email()], |
| 19 |
'taxcode' => $this->faker->regexify('[0-9]{8}-[0-9]{1}-[0-9]{2}'), |
| 20 |
'iban' => $this->faker->iban(), |
| 21 |
'swift' => $this->faker->swiftBicNumber(), |
| 22 |
'account_number' => $this->faker->regexify('[A-Z]{2}--[0-9]{6}'), |
| 23 |
'phone' => $this->faker->phoneNumber(), |
| 24 |
'tax_type' => $this->faker->randomElement(getEnumValues(TaxTypeEnum::class)), |
| 25 |
'partner_shipping' => PartnerShipping::factory(), |
| 26 |
]; |
| 27 |
} |
| 28 |
} |
| 29 |
|