예제 #1
0
 /**
  * @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));
 }
예제 #2
0
 /**
  * @param Customer $customer
  *
  * @return Project
  */
 public function setCustomer(Customer $customer)
 {
     $this->setCustomerId($customer->getCustomerId());
     return $this;
 }
예제 #3
0
파일: Api.php 프로젝트: dvelopment/fastbill
 /**
  * @param Customer $customer
  *
  * @return array
  */
 public function deleteCustomer(Customer $customer)
 {
     return $this->call(new DeleteRequest('customer.delete', array('customer_id' => $customer->getCustomerId())))->getResponse();
 }