/** * @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); } }
/** * @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); } }
/** * @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); } }
/** * @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); } }
/** * @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); } }
/** * @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); } }