From 85ebc15065433e700ccf21fdcac0c45f69c5ba08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 16 Jun 2021 16:31:56 +0200 Subject: [PATCH] Remove deprecated method from SubscriptionService --- .../Subscription/SubscriptionService.php | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index f6c34f92346f..b390ba07661d 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -483,33 +483,6 @@ class SubscriptionService } - /** - * Handle a plan change where no payment is required - * - * @param array $data - * @deprecated - no usage found - */ - public function handlePlanChangeNoPayment($data) - { - - $recurring_invoice = $this->createNewRecurringInvoice($data['recurring_invoice']); - - $context = [ - 'context' => 'change_plan', - 'recurring_invoice' => $recurring_invoice->hashed_id, - 'invoice' => $this->encodePrimaryKey($payment_hash->fee_invoice_id), - 'client' => $recurring_invoice->client->hashed_id, - 'subscription' => $this->subscription->hashed_id, - 'contact' => auth('contact')->user()->hashed_id, - ]; - - $response = $this->triggerWebhook($context); - - // nlog($response); - - return $this->handleRedirect('/client/recurring_invoices/'.$recurring_invoice->hashed_id); - } - /** * Creates a credit note if the plan change requires *