Skip to content

Commit

Permalink
Update ConnectReseller _createContact() always pass a CompanyName
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed Mar 6, 2023
1 parent 924c2ce commit ff22615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConnectReseller/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ protected function _createContact(ContactParams $contact, ?int $customerId = nul
'EmailAddress' => $this->_normalizeEmail($contact->email),
'Password' => $this->_generateRandomPassword(),
'Name' => $contact->name ?? $contact->organisation,
'CompanyName' => $contact->organisation,
'CompanyName' => $contact->organisation ?? $contact->name,
'Address' => $contact->address1,
'City' => $contact->city,
'StateName' => $contact->state ?? $contact->city,
Expand Down

0 comments on commit ff22615

Please sign in to comment.