mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Biling Subscription Service
This commit is contained in:
parent
bcdb264345
commit
6a2332526b
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Invoice Ninja (https://invoiceninja.com).
|
||||
*
|
||||
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||
*
|
||||
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
||||
*
|
||||
* @license https://opensource.org/licenses/AAL
|
||||
*/
|
||||
|
||||
namespace App\Services\BillingSubscription;
|
||||
|
||||
class BillingSubscriptionService
|
||||
{
|
||||
|
||||
private $billing_subscription;
|
||||
|
||||
public function __construct(BillingSubscription $billing_subscription)
|
||||
{
|
||||
$this->billing_subscription = $billing_subscription;
|
||||
}
|
||||
|
||||
public function createInvoice($payment_hash)
|
||||
{
|
||||
//create the invoice if necessary ie. only is a payment was actually processed
|
||||
}
|
||||
|
||||
public function createClientSubscription($payment_hash)
|
||||
{
|
||||
//create the client sub record
|
||||
}
|
||||
|
||||
public function triggerWebhook($payment_hash)
|
||||
{
|
||||
//hit the webhook to after a successful onboarding
|
||||
}
|
||||
|
||||
public function fireNotifications()
|
||||
{
|
||||
//scan for any notification we are required to send
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user