PluginProbe
Billingo Official for WooCommerce / trunk
Billingo Official for WooCommerce vtrunk
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 / DocumentBlockSchemaFactory.php

DocumentBlockSchemaFactory.php in Billingo Official for WooCommerce trunk, at src/Factories/DocumentBlockSchemaFactory.php

33 lines 1.4 KB
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\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