Braintree\AddressGateway::delete PHP Method

delete() public method

delete an address by id
public delete ( mixed $customerOrId = null, string $addressId = null )
$customerOrId mixed
$addressId string
    public function delete($customerOrId = null, $addressId = null)
    {
        $this->_validateId($addressId);
        $customerId = $this->_determineCustomerId($customerOrId);
        $path = $this->_config->merchantPath() . '/customers/' . $customerId . '/addresses/' . $addressId;
        $this->_http->delete($path);
        return new Result\Successful();
    }