예제 #1
0
 /**
  * @param int $customerNumber
  * @param object $data
  * @return object customer
  */
 public function update($customerNumber, BaseModel $data)
 {
     $request = new ArticleRequest($data->toArray());
     $request->method = 'PUT';
     $data = $this->callJson('/articles/' . $customerNumber, $request, 'Article');
     if (is_array($data)) {
         return new Article($data);
     }
 }
예제 #2
0
 /**
  * @param string SupplierNumber
  * @param ArticleFileConnection $data
  * @return ArticleFileConnection
  */
 public function update($articleFileConnectionNumber, BaseModel $data)
 {
     $request = new ArticleFileConnectionRequest($data->toArray());
     $request->method = 'PUT';
     $data = $this->callJson('/articlefileconnections/' . $articleFileConnectionNumber, $request, 'ArticleFileConnection');
     if (is_array($data)) {
         return new ArticleFileConnection($data);
     }
 }
예제 #3
0
 /**
  * @param string SupplierNumber
  * @param Supplier $data
  * @return Supplier
  */
 public function update($supplierNumber, BaseModel $data)
 {
     $request = new SupplierRequest($data->toArray());
     $request->method = 'PUT';
     $data = $this->callJson('/suppliers/' . $supplierNumber, $request, 'Supplier');
     if (is_array($data)) {
         return new Supplier($data);
     }
 }
예제 #4
0
 /**
  * @param int $accountNumber
  * @param object $data
  * @return object customer
  */
 public function update($accountNumber, BaseModel $data)
 {
     $request = new AccountRequest($data->toArray());
     $request->method = 'PUT';
     $data = $this->callJson('/accounts/' . $accountNumber, $request, 'Account');
     if (is_array($data)) {
         return new Account($data);
     }
 }
예제 #5
0
 /**
  * @param int $projectNumber
  * @param object $data
  * @return object customer
  */
 public function update($projectNumber, BaseModel $data)
 {
     $request = new ProjectRequest($data->toArray());
     $request->method = 'PUT';
     $data = $this->callJson('/projects/' . $projectNumber, $request, 'Project');
     if (is_array($data)) {
         return new Project($data);
     }
 }
예제 #6
0
 /**
  * @param int $invoiceNumber
  * @param object $data
  * @return object invoice
  */
 public function update($invoiceNumber, BaseModel $data)
 {
     $request = new InvoiceRequest($data->toArray());
     $request->method = 'PUT';
     $data = $this->callJson('/invoices/' . $invoiceNumber, $request, 'Invoice');
     if (is_array($data)) {
         return new Invoice($data);
     }
 }