'customerNumber' => 'ABC123XY',
'remoteAddress' => 'Test street 123, NY',
'customFields' =>
['customerGroup' => 'premium', 'origin' => 'newsletter', 'active' => true
],
],
$customerData);
} private function buildCustomerEntity(string
$id): CustomerEntity
{ $customerEntity =
new CustomerEntity();
$customerEntity->
setId($id);
$customerEntity->
setEmail('test@example.org'
);
$customerEntity->
setFirstName('Max'
);
$customerEntity->
setLastName('Smith'
);
$customerEntity->
setTitle('Dr.'
);
$customerEntity->
setCompany('Acme Inc.'
);
$customerEntity->
setCustomerNumber('ABC123XY'
);
$customerEntity->
setRemoteAddress('Test street 123, NY'
);
$customerEntity->
setCustomFields(['customerGroup' => 'premium', 'origin' => 'newsletter', 'active' => true
]);
return $customerEntity;
}}