Skip to content

Commit

Permalink
fix: allow empty email in order
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Jul 9, 2024
1 parent 8ff0122 commit ed677fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domains/Souk/Orders/DataTransferObject/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function __construct(
public readonly CompanyInterface $company,
public readonly People $people,
public readonly UserInterface $user,
public readonly string $email,
public readonly string $token,
public readonly string $orderNumber,
public readonly ?Address $shippingAddress,
Expand All @@ -37,6 +36,7 @@ public function __construct(
public readonly Currencies $currency,
#[DataCollectionOf(OrderItem::class)]
public readonly DataCollection $items,
public readonly ?string $email = null,
public readonly ?string $metadata = null,
public readonly float $weight = 0.0,
public readonly ?string $shippingMethod = null,
Expand Down

0 comments on commit ed677fe

Please sign in to comment.