stan errors
This commit is contained in:
@@ -21,7 +21,7 @@ class CheckOnlinePayment extends Action
|
||||
* Perform the action on the given models.
|
||||
*
|
||||
* @param \Laravel\Nova\Fields\ActionFields $fields
|
||||
* @param \Illuminate\Support\Collection $models
|
||||
* @param \Illuminate\Support\Collection<array-key, \App\Models\Payment\OnlinePaymentHistory> $models
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(ActionFields $fields, Collection $models)
|
||||
@@ -81,7 +81,7 @@ class CheckOnlinePayment extends Action
|
||||
* Get the fields available on the action.
|
||||
*
|
||||
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
|
||||
* @return array
|
||||
* @return array<int, \Laravel\Nova\Fields\Field>
|
||||
*/
|
||||
public function fields(NovaRequest $request)
|
||||
{
|
||||
|
||||
@@ -17,6 +17,10 @@ class ExportTranslations extends Action
|
||||
|
||||
/**
|
||||
* Perform the action on the given models.
|
||||
*
|
||||
* @param ActionFields $fields
|
||||
* @param Collection<array-key, \Illuminate\Database\Eloquent\Model> $models
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(ActionFields $fields, Collection $models): mixed
|
||||
{
|
||||
@@ -27,6 +31,8 @@ class ExportTranslations extends Action
|
||||
|
||||
/**
|
||||
* Get the fields available on the action.
|
||||
*
|
||||
* @return array<int, \Laravel\Nova\Fields\Field>
|
||||
*/
|
||||
public function fields(NovaRequest $request): array
|
||||
{
|
||||
|
||||
@@ -39,10 +39,10 @@ class MakePaymentNovaVisaMaster extends Action
|
||||
* Perform the action on the given models.
|
||||
*
|
||||
* @param \Laravel\Nova\Fields\ActionFields $fields
|
||||
* @param \Illuminate\Support\Collection $models
|
||||
* @param \Illuminate\Support\Collection<array-key, \App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrder> $models
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle(ActionFields $fields, Collection $models)
|
||||
public function handle(ActionFields $fields, Collection $models): mixed
|
||||
{
|
||||
$payment_amount = $fields->get('payment_amount');
|
||||
$usd_payment = $fields->get('usd_payment');
|
||||
@@ -108,7 +108,7 @@ class MakePaymentNovaVisaMaster extends Action
|
||||
* Get the fields available on the action.
|
||||
*
|
||||
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
|
||||
* @return array
|
||||
* @return array<int, \Laravel\Nova\Fields\Field>
|
||||
*/
|
||||
public function fields(NovaRequest $request): array
|
||||
{
|
||||
@@ -192,9 +192,13 @@ class MakePaymentNovaVisaMaster extends Action
|
||||
|
||||
/**
|
||||
* Order a payment page
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public function order($resource, $amount)
|
||||
{
|
||||
public function order(
|
||||
\App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrder $resource,
|
||||
int|float|string $amount
|
||||
): array {
|
||||
$onlinePaymentRepo = OnlinePaymentRepo::make();
|
||||
|
||||
$orderNumber = $onlinePaymentRepo->generateOrderNumber($resource);
|
||||
|
||||
Reference in New Issue
Block a user