$this->orderRepository->
upsert([$order],
$context);
return $orderId;
} private function createCustomer(Context
$context): string
{ $customerId = Uuid::
randomHex();
$addressId = Uuid::
randomHex();
$this->
addCountriesToSalesChannel();
$customer =
[ 'id' =>
$customerId,
'customerNumber' => '1337',
'salutationId' =>
$this->
getValidSalutationId(),
'firstName' => 'Max',
'lastName' => 'Mustermann',
'email' => Uuid::
randomHex() . '@example.com',
'password' => TestDefaults::HASHED_PASSWORD,
'defaultPaymentMethodId' =>
$this->
getValidPaymentMethodId(),
'groupId' => TestDefaults::FALLBACK_CUSTOMER_GROUP,