PluginProbe
Billingo Official for WooCommerce / 4.2.9
Billingo Official for WooCommerce v4.2.9
4.3.3 4.3.2 trunk 0.0.2 1.0.0 2.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 All 82 releases
billingo / src / Factories / DocumentPartnerFactory.php

DocumentPartnerFactory.php in Billingo Official for WooCommerce 4.2.9, at src/Factories/DocumentPartnerFactory.php

29 lines 996 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 'tax_code' => $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