File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
* @property-read string|null $owner_username Username of the reseller "owner" of the new account
16
16
* @property-read boolean|null $owns_itself Account should own itself (overrides $owner_username)
17
17
* @property-read string $email Email address of the new account holder
18
- * @property-read string $customer_name Name of the customer
18
+ * @property-read string|null $customer_name Name of the customer
19
19
* @property-read string|null $password Password for the new account
20
20
* @property-read string $domain Main domain name of the new account
21
21
* @property-read string $package_name Name/identifier of the package/tier/quota for the new account
@@ -33,7 +33,7 @@ public static function rules(): Rules
33
33
'owner_username ' => ['string ' ],
34
34
'owns_itself ' => ['bool ' ],
35
35
'email ' => ['required ' , 'email ' ],
36
- 'customer_name ' => ['required ' , 'string ' ],
36
+ 'customer_name ' => ['nullable ' , 'string ' ],
37
37
'password ' => ['string ' ],
38
38
'domain ' => ['required ' , 'domain_name ' ],
39
39
'package_name ' => ['required ' , 'string ' ],
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function create(CreateParams $params): AccountInfo
74
74
$ email = $ this ->findOwnerMember ($ customerId , $ params ->email )->getEmail ();
75
75
} else {
76
76
$ customerId = $ this ->createCustomer (
77
- $ params ->customer_name ,
77
+ $ params ->customer_name ?? $ params -> email ,
78
78
$ params ->email ,
79
79
$ params ->password ?: $ this ->generateRandomPassword ()
80
80
);
You can’t perform that action at this time.
0 commit comments