/** * @param $username * @param $apiKey * @dataProvider provider */ public function testCreateCustomer($username, $apiKey) { return; $customer = new Customer(); $customer->setCustomerNumber(42)->setCustomerType('business')->setOrganization('d.velopment.at')->setLastName('Holzmann')->setCountryCode('AT')->setPaymentType(1); print_r($this->getApi($username, $apiKey)->createCustomer($customer)); }
/** * @param Customer $customer * * @return Project */ public function setCustomer(Customer $customer) { $this->setCustomerId($customer->getCustomerId()); return $this; }
/** * @param Customer $customer * * @return array */ public function deleteCustomer(Customer $customer) { return $this->call(new DeleteRequest('customer.delete', array('customer_id' => $customer->getCustomerId())))->getResponse(); }