feat: require all personal data fields for registration

This commit is contained in:
Björn Fromme
2026-03-16 12:02:59 +01:00
parent 3957f6bd09
commit 02ebddc34a
5 changed files with 88 additions and 45 deletions
+1 -8
View File
@@ -90,14 +90,7 @@ class ApiClient
'key' => $this->createKey($this->config['bpn_username'], $this->config['bpn_password'], static::TYPE_CUSTOMER_DATA),
'satz' => ['@typ' => static::TYPE_CUSTOMER_DATA],
'art' => 'Adresse_Neu',
'adressdaten' => [
'geschlecht' => $registrationData->gender,
'vorname' => $registrationData->firstName,
'name' => $registrationData->name,
'kommunikation' => [
'email' => $registrationData->email,
],
],
'adressdaten' => $registrationData->toPayload(),
];
return $this->sendRequest(static::TYPE_CUSTOMER_DATA, $data);