Merge pull request #6050 from beganovich/v5-1605-remove-deprecated-method-from-ss

(v5) Remove deprecated method from SubscriptionService
This commit is contained in:
Benjamin Beganović 2021-06-16 16:32:24 +02:00 committed by GitHub
commit 2c798cecb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 * Creates a credit note if the plan change requires
* *