mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 12:12:15 +01:00
Add getTrialUntil to BillingContract; Allow delete endpoints after blocking
This commit is contained in:
committed by
Constantin Graf
parent
83301d03ca
commit
01dd13b947
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace App\Service;
|
||||
|
||||
use App\Models\Organization;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* This class is a contract for the billing system
|
||||
@@ -33,6 +34,15 @@ class BillingContract
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the date until which the organization's trial subscription is valid
|
||||
* If the organization does not have a trial subscription, this method should return null
|
||||
*/
|
||||
public function getTrialUntil(Organization $organization): ?Carbon
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the organization is blocked
|
||||
* A blocked organization is an organization that has more than 1 non-placeholder member but no subscription/trial
|
||||
|
||||
Reference in New Issue
Block a user