| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Factories; |
| 4 |
|
| 5 |
use App\Billingo\Enums\DocumentBlockTypeEnum; |
| 6 |
use App\Billingo\Enums\FinancialFulfillmentHighlightEnum; |
| 7 |
use App\Billingo\Enums\invoiceNumberFormatEnum; |
| 8 |
|
| 9 |
class DocumentBlockSchemaFactory extends BaseFactory |
| 10 |
{ |
| 11 |
|
| 12 |
public function definition(): array |
| 13 |
{ |
| 14 |
return [ |
| 15 |
'name' => $this->faker->name(), |
| 16 |
'prefix' => $this->faker->word(), |
| 17 |
'type' => $this->faker->randomElement(getEnumValues(DocumentBlockTypeEnum::class)), |
| 18 |
'invoice_number_format' => |
| 19 |
$this->faker->optional()->randomElement(getEnumValues(InvoiceNumberFormatEnum::class)), |
| 20 |
'sender_email' => $this->faker->optional()->email(), |
| 21 |
'sender_name' => $this->faker->optional()->name(), |
| 22 |
'bcc_email' => $this->faker->optional()->email(), |
| 23 |
'create_invoice_from_paid_proforma' => $this->faker->optional()->boolean(), |
| 24 |
'fulfillment_date_from_proforma_payment_date' => $this->faker->optional()->boolean(), |
| 25 |
'attach_xml_to_invoice_pdf' => $this->faker->optional()->boolean(), |
| 26 |
'advance_paid_instant' => $this->faker->optional()->boolean(), |
| 27 |
'financial_fulfillment_highlight' => |
| 28 |
$this->faker->optional()->randomElement(getEnumValues(FinancialFulfillmentHighlightEnum::class)), |
| 29 |
'entitlements_in_document_comment' => $this->faker->optional()->boolean(), |
| 30 |
]; |
| 31 |
} |
| 32 |
} |
| 33 |
|