Skip to content

Commit

Permalink
Merge pull request #7 from gerp/patch-1
Browse files Browse the repository at this point in the history
Update updateCustomerAddress method to send a PUT request
  • Loading branch information
stephangroen authored Aug 29, 2017
2 parents b743f14 + 52fc0ba commit 7737121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function addCustomerAddress($idcustomer, $params)

public function updateCustomerAddress($idcustomer, $idaddress, $params)
{
return $this->sendRequest('/customers/' . $idcustomer . '/addresses/' . $idaddress, $params, self::METHOD_POST);
return $this->sendRequest('/customers/' . $idcustomer . '/addresses/' . $idaddress, $params, self::METHOD_PUT);
}

public function deleteCustomerAddress($idcustomer, $idaddress)
Expand Down

0 comments on commit 7737121

Please sign in to comment.