| 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 |
|