M3 Integration fixes

This commit is contained in:
Mark Gregory
2026-09-21 10:14:57 +01:00
parent 4af997c465
commit 6d60cbff84
5853 changed files with 79032 additions and 1825 deletions
+5 -3
View File
@@ -11,6 +11,8 @@ use Modules\Platform\app\Models\PlatformPrice;
class PlatformPriceController extends Controller
{
private const MIN_ZERO = self::MIN_ZERO;
/**
* Display the customer-facing platform pricing cards.
*/
@@ -101,12 +103,12 @@ class PlatformPriceController extends Controller
'name' => ['required', 'string', 'max:255'],
'strapline' => ['nullable', 'string', 'max:255'],
'description' => ['nullable', 'string', 'max:2000'],
'monthly_amount' => ['required', 'numeric', 'min:0', 'max:999999.99'],
'annual_amount' => ['nullable', 'numeric', 'min:0', 'max:999999.99'],
'monthly_amount' => ['required', 'numeric', self::MIN_ZERO, 'max:999999.99'],
'annual_amount' => ['nullable', 'numeric', self::MIN_ZERO, 'max:999999.99'],
'currency' => ['required', 'string', 'size:3'],
'badge_label' => ['nullable', 'string', 'max:60'],
'features' => ['nullable', 'string', 'max:4000'],
'sort_order' => ['required', 'integer', 'min:0', 'max:65535'],
'sort_order' => ['required', 'integer', self::MIN_ZERO, 'max:65535'],
'is_featured' => ['nullable', 'boolean'],
'is_active' => ['nullable', 'boolean'],
]);