Remove edge_broker_client.php and related unit tests. Add new dependencies and configuration files for edge-agent, including build scripts and package-lock updates.
This commit is contained in:
@@ -120,9 +120,12 @@ class economic implements economic_i
|
||||
return new $this->helpers->economic_tasks();
|
||||
}
|
||||
|
||||
public function createCustomer(int $customer_number, string $name, int $cvr_number, string $email, int $phone): economic_customer
|
||||
/**
|
||||
* Create a customer in e-conomic and return the raw upstream payload.
|
||||
*/
|
||||
public function createCustomer(int $customer_number, string $name, int $cvr_number, string $email, int $phone): object
|
||||
{
|
||||
$result = $this->customers->customers->create([
|
||||
return $this->customers->customers->create([
|
||||
'customerNumber' => $customer_number,
|
||||
'corporateIdentificationNumber' => (string)$cvr_number,
|
||||
'customerGroup' => [
|
||||
@@ -139,8 +142,6 @@ class economic implements economic_i
|
||||
'vatZoneNumber' => 1,
|
||||
]
|
||||
]);
|
||||
|
||||
return new $this->helpers->economic_customer($customer_number);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -153,4 +154,4 @@ class economic implements economic_i
|
||||
// Return the booked invoice helper
|
||||
return (new economic_invoice_booked($raw));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user