Explorar o código

Update Customer.php

Bozhidar Slaveykov hai 1 ano
pai
achega
6de86e3c21
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      web/app/Models/Customer.php

+ 10 - 1
web/app/Models/Customer.php

@@ -36,7 +36,16 @@ class Customer extends Model
                     $phyreApiSDK = new PhyreApiSDK($phyreServer->ip, 8443, $phyreServer->username, $phyreServer->password);
                     $createCustomer = $phyreApiSDK->createCustomer([
                         'name' => $model->name,
-                        'email' => $model->email
+                        'username' => $model->username,
+                        'password' => $model->password,
+                        'email' => $model->email,
+                        'phone' => $model->phone,
+                        'address' => $model->address,
+                        'city' => $model->city,
+                        'state' => $model->state,
+                        'zip' => $model->zip,
+                        'country' => $model->country,
+                        'company' => $model->company,
                     ]);
                     if (isset($createCustomer['data']['customer']['id'])) {
                         $model->external_id = $createCustomer['data']['customer']['id'];