feat: Implement order and invoice management, enhance addon features, and remove the 'Type' module.
This commit is contained in:
@@ -32,4 +32,15 @@ class ServiceRepository extends BaseApiRepository implements ServiceRepositoryIn
|
||||
->where('is_active', 1)
|
||||
->first();
|
||||
}
|
||||
|
||||
public function getPricing(int $productId, string $billingCycle)
|
||||
{
|
||||
$pricing = $this->model->find($productId)
|
||||
->pricings()
|
||||
->where('billing_cycle', $billingCycle)
|
||||
->where('is_active', 1)
|
||||
->first();
|
||||
|
||||
return $pricing ? $pricing->price : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user