Commit 3c318eb8 authored by Ivan Belitskii's avatar Ivan Belitskii

Add method for deleting profile

Add method for deleting card
parent bfc6459b
......@@ -55,4 +55,12 @@ class DqBilling extends \Staskjs\SimpleApi\SimpleJsonApi {
]);
return $this->request('POST', 'customers', $profileData);
}
public function destroyProfileById($id) {
return $this->request('DELETE', "customers/{$id}");
}
public function destroyCustomerCardById($customerId, $id) {
return $this->request('DELETE', "cards/{$id}", ['customer_id' => $customerId]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment