22
33namespace Basement \Webhooks \Database \Factories ;
44
5- use Illuminate \Database \Eloquent \Factories \Factory ;
6- use Illuminate \Support \Carbon ;
75use Basement \Webhooks \Enums \InboundWebhookSource ;
86use Basement \Webhooks \Models \InboundWebhook ;
7+ use Illuminate \Database \Eloquent \Factories \Factory ;
8+ use Illuminate \Support \Carbon ;
99
1010class InboundWebhookFactory extends Factory
1111{
@@ -17,7 +17,7 @@ public function definition(): array
1717 'source ' => $ this ->faker ->randomElement (InboundWebhookSource::cases ()),
1818 'event ' => $ this ->faker ->randomElement ([
1919 'signature.accepted ' , 'signature.rejected ' , 'signature.viewed ' , 'signature.signed ' ,
20- 'mail.sent ' , 'mail.opened ' , 'mail.refused ' , 'mail.delivered ' , 'mail.reason '
20+ 'mail.sent ' , 'mail.opened ' , 'mail.refused ' , 'mail.delivered ' , 'mail.reason ' ,
2121 ]),
2222 'url ' => $ this ->faker ->url (),
2323 'payload ' => $ this ->generateJsonElement (),
@@ -48,14 +48,14 @@ private function generateJsonElement(): string
4848 'phone ' => null ,
4949 'cpf ' => '35061134885 ' ,
5050 'cnpj ' => null ,
51- 'birthday ' => '1999-03-08 '
51+ 'birthday ' => '1999-03-08 ' ,
5252 ],
5353 'document ' => '123 ' ,
5454
5555 ],
5656 'previous_attributes ' => [],
57- 'created_at ' => '2025-07-15T18:37:28.098812Z '
58- ]
57+ 'created_at ' => '2025-07-15T18:37:28.098812Z ' ,
58+ ],
5959 ]);
6060 }
6161}
0 commit comments