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 / DocumentCancellationFactory.php

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

36 lines 1.0 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 class DocumentCancellationFactory extends BaseFactory
6 {
7 public function definition(): array
8 {
9 $cancellationReasons = [
10 'Customer requested cancellation',
11 'Product out of stock',
12 'Shipping address issues',
13 'Payment problems',
14 'Order placed by mistake',
15 'Better price found elsewhere',
16 'Changed mind',
17 'Item not needed anymore',
18 'Delivery time too long',
19 'Incorrect order'
20 ];
21
22 $cancellationRecipients = [
23 'customer_service@example.com',
24 'support_team@example.com',
25 'returns_department@example.com',
26 'billing@example.com',
27 'manager@example.com'
28 ];
29
30 return [
31 'cancellation_reason' => $this->faker->randomElement($cancellationReasons),
32 'cancellation_recipients' => $this->faker->randomElement($cancellationRecipients),
33 ];
34 }
35 }
36